<!doctype html>
<html>
<title></title>
<head>
<script src="/player/flow/jquery.min.js?v=5"></script>
<link rel="stylesheet" href="/player/flow/player.min.css?v=5">
<script src="/player/flow/player.min.js?v=11"></script> <script src="/player/js/ads.js"></script>
<style>
html {height: 100%; overflow: hidden;}
body {height: 100%; margin: 0; padding: 0; overflow: hidden; background: #000 url(http://kodik.cc/player/images/kodik-bg.jpg) center center; background-size: cover;}
.background {width: 100%; height: 100%;}
#videoplayer {height: 100%;}
.get_iframe {width: 380px; height: 180px; background: url(/player/images/get_code_bg.png); position: absolute; top: 100px; left: 200px; display: none;}
.get_iframe textarea {margin: 2px; height: 110px; width: 347px; position: absolute; left: 10px; top: 50px; border: none; outline: none;}
.close_code {position: absolute; width: 42px; height: 38px; top: 0px; right: 0px; cursor: pointer;}
.player_box {height: 100%;}
#get_code_window {display: none; z-index: 100000000;}
.get_code_main {position: absolute; display: table; width: 100%; height: 100%; top: 0; left: 0; background: url(/player/images/black_bg.png); z-index: 100000000;}
.get_code_paddings {padding:0 60px 0 60px; display: table-cell; vertical-align: middle;}
.get_code_paddings table {width: 100%;}
.get_code_paddings table, tr, td {border-spacing:0; margin: 0; padding: 0; z-index: 2;}
.get_code_paddings td {position: relative;}
.get_code_paddings tr, .get_code_paddings td {padding-bottom: 10px;}
.get_code_copy {width: 113px; height: 33px; background: url(/player/images/copy_button_nude.png) 0 -33px; cursor: pointer; text-align: center; font: 16px Arial; color: white; text-shadow:0 1px 0 #236AC2; line-height: 32px;}
.get_code_copy:hover {background: url(/player/images/copy_button_nude.png) 0 0;}
.get_code_copy.hover {width: 113px; height: 33px; background: url(/player/images/copy_button_nude.png) 0 0; cursor: pointer;}
.get_code_info {font: 14px Arial; color:white;}
.get_code_info span {color: #CF4C4C;}
.get_code_heading {font: 18px Arial; color: white;}
.get_code_left_info {font: 16px Arial; color: white;}
.get_code_copy_input {width: 100%; border: none; border-radius: 2px 0 0 2px; padding: 0 10px 0 10px; height: 33px; line-height: 33px; box-sizing: border-box;}
.close_get_code_window {position: absolute; top: 15px; right: 15px; background: url(/player/images/close_button.png); width: 32px; height: 32px; z-index: 100000001; cursor: pointer;}
.play_button {position: absolute; margin: auto; background: url(/player/images/kodik-play-button.png); width: 200px; height: 202px; cursor: pointer; top: 0; left: 0; bottom: 0; right: 0; display: block;}
.play_button:hover {background-position: 0px -202px;}
.play_button_loading {position: absolute; margin: auto; width: 200px; height: 202px; cursor: default; top: 0; left: 0; bottom: 0; right: 0; display: block; background: url(/player/images/kodik-play-button.png) 0 -404px;}
.play_loading {position: absolute; margin: auto; width: 60px; height: 60px; cursor: default; top: 0; left: 0; bottom: 0; right: 0; display: block; background: url(/player/images/kodik-loading.gif);}
.share_button {width: 106px; height: 70px; background: url(/player/images/player_share.png); cursor: pointer; position: absolute; top: 10px; left: 10px; z-index: 99999999;}
.share_button:hover {background-position: -106px 0;}
</style>
</head>
<body>
<div class="share_button"></div>
<div id="MT_overroll" style="width:100%;height:100%"><a class="play_button"></a></div>
<div class="player_box">
<div id='get_code_window'>
<div class='close_get_code_window'></div>
<div class='get_code_main'>
<div class='get_code_paddings'>
<table>
<tr>
<td style='width: 80px;'></td>
<td class='get_code_heading'>Получить код</td>
<td style='width: 113px;'></td>
</tr>
<tr>
<td class='get_code_left_info'>Код</td>
<td><input value='<iframe src="http://kodik.cc/video/10283/e40f746db1798e4bdc04ac8e97279346/720p" width="607" height="360" frameborder="0" AllowFullScreen></iframe>' readonly class='get_code_copy_input'/></td>
<td><div class='get_code_copy' data-code='<iframe src="http://kodik.cc/video/10283/e40f746db1798e4bdc04ac8e97279346/720p" width="607" height="360" frameborder="0" AllowFullScreen></iframe>'>копировать</div></td>
</tr>
<tr>
<td class='get_code_left_info'>Ссылка</td>
<td><input value='http://kodik.cc/video/10283/e40f746db1798e4bdc04ac8e97279346/720p' readonly class='get_code_copy_input'/></td>
<td><div class='get_code_copy' data-code='http://kodik.cc/video/10283/e40f746db1798e4bdc04ac8e97279346/720p'>копировать</div></td>
</tr>
<tr>
<td></td>
<td class='get_code_heading' colspan="2">Получить доступ к базе</td>
</tr>
<tr>
<td></td>
<td class='get_code_info' colspan="2">Если хотите получить доступ к нашей постоянно обновляющейся базе с множеством фильмов и сериалов, напишите письмо на <span>support@kodik.biz</span>, в котором укажите ваш сайт.</td>
</tr>
</table>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="/player/js/jquery.zclip.min.js"></script>
<script>
var links = {},
advert_script = "",
player_settings = "",
player_script = "",
player_banner = 0,
player_domain = "",
player_loaded = false,
player_started = false;
function startKodikPlayer() {
if (!player_started) {
if (links.is_mobile) {
links.autostart = false;
}
$("#MT_overroll").remove();
$(".player_box").append("<div style=\"width:100%; height: 100%; background-color: #000000;\" id=\"player\" class=\"is-splash loading\"></div>");
$.getScript("/player/flow/startplayer.min.js");
player_started = true;
}
}
$("body").on("click", ".center_pass_button", function(){
links.autostart = true;
if(player_loaded){
startKodikPlayer();
}
else{
GetPlayer();
}
});
function zclipRefresh(){
$('.zclip').remove();
$('.get_code_copy').each(function(index, element){
$(element).zclip({
path:'http://kodik.cc/player/js/ZeroClipboard.swf',
copy:function(){
return $(this).attr('data-code');
},
afterCopy: function(){
$(this).html('скопировано');
var this_elem = $(this);
setTimeout(function () {this_elem.html('копировать');}, 2000);
}
});
});
}
function GetCodeWindow(){
$('#get_code_window').fadeIn();
zclipRefresh();
}
$("<img>").attr("src", "/player/images/kodik-loading.gif");
$('body').on('click', '.close_get_code_window', function(){
$('#get_code_window').fadeOut();
});
$('body').on('click', '.share_button', function(){
GetCodeWindow();
});
$("body").on("click", ".background, .play_button", function(){
GetPlayer();
$("#MT_overroll").remove();
});
function GetPlayer(silent){
if (silent === undefined) {
silent = false;
}
if (!player_loaded) {
$.ajax({
type: "POST",
url: "/get-video",
cache: false,
dataType: 'json',
data: {
domain: "",
url: "",
type: "database", hash: "e40f746db1798e4bdc04ac8e97279346", id: "10283", quality: "720p", },
beforeSend:function(data){
if(!silent){
$(".play_button").removeClass("play_button").addClass("play_button_loading");
$(".play_button_loading").after("<div class='play_loading'></div>");
}
//$("#MT_overroll").remove();
},
success:function(data){
if(!silent){
$(".background, .play_button_loading, .share_button, .play_loading").remove();
}
$("body").append(data.advert_script);
links.qualities = data.qualities;
links.default = data.default;
links.is_mobile = data.is_mobile;
player_loaded = true;
player_domain = data.domain;
if(!silent){
startKodikPlayer();
}
},
error:function(data){
$(".background, .play_button, .share_button").remove();
$(".player_box").append('<div style="height: 100%;"><div style="color: white; font: bold 18px Arial; text-align: center; width: 415px; margin: auto; background: #A7495B; padding: 30px 20px 30px 20px; text-shadow: 0 1px 0 #662B2C; position: relative; top: 30%;">Извините, но эта видеозапись в данный момент недоступна</div></div>');
}
});
}
if(typeof IsAdBlock != "undefined" && IsAdBlock == false){
ga('send', 'event', 'adblock', 'false');
}
else{
ga('send', 'event', 'adblock', 'true');
}
}
var adv_started = false;
$("body").on("mousedown", "div[id^='_']:first", function(){
GetPlayer(true);
ga('send', 'event', 'flow_adv_started', '');
$(".share_button").remove();
console.log("MXstarted");
adv_started = true;
});
var MXoverrollCallback = function(){
if (1 == 1 || adv_started == true) {
links.autostart = true;
$("#MT_overroll").remove();
$("#videoplayer").empty();
if(player_loaded){
startKodikPlayer();
}
else{
GetPlayer();
}
}
ga('send', 'event', 'flow_adv_callback', '');
}
var iframeSearch = setInterval(function(){
if($("iframe")[0]){
var MxIframe = $("iframe").contents().get(0);
$(MxIframe).bind('mousedown', function(){
$(".share_button").remove();
GetPlayer(true);
ga('send', 'event', 'flow_adv_started', '<?php echo ; ?>');
console.log("iframe started");
adv_started = true;
});
clearInterval(iframeSearch);
}
}, 1000);
function listener(event) {
// if (event.origin != 'http://kodik.biz') {
// return;
// }
if (event.data == "player_started") {
$(".share_button").hide();
}
}
if (window.addEventListener) {
window.addEventListener("message", listener);
} else {
// IE8
window.attachEvent("onmessage", listener);
}
</script>
<script type='text/javascript' src='//mxtads.com/8940213088/b'></script><script>
$(document).ready(function(){
$('body').on('focus', '.get_code_copy_input', function(){
$(this).select();
});
$('.close_get_code_window').on('click', function(){
$('#get_code_window').fadeOut();
});
});
zclipRefresh();
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-50506388-2', 'auto');
ga('send', 'pageview');
</script>
<p></p>
</body>
</html>