var once=true,oncet=true,cookieIndex='utuh1mjovn96u3dtsu98ige2';function secondsTimeSpanToHMS(s){var h=Math.floor(s/3600);s-=h*3600;var m=Math.floor(s/60);s-=m*60;return h+":"+(m<10?'0'+m:m)+":"+(s<10?'0'+s:s);}"undefined"!=typeof dsplayer&&dsplayer.on("play",function(){oncet&&(oncet=!1,setInterval(function(){var e=dsplayer.currentTime();if("0"!=e&&0!=e&&!$(".checkresume.clear").is(":visible"))if(dsplayer.remainingTime()<10)try{localStorage.setItem(cookieIndex,0)}catch(e){console.log(e.message)}else try{localStorage.setItem(cookieIndex,e)}catch(e){console.log(e.message)}},1e3));try{if(void 0!==localStorage[cookieIndex]&&localStorage[cookieIndex].length>0&&"0"!=localStorage[cookieIndex]&&once){once=!1;var e=localStorage[cookieIndex],o=secondsTimeSpanToHMS(e);if(-1!==o.indexOf(".")){var c=o.split(".");secondsTimeSpanToHMS234=c[0]}if($("#lefttime").html(secondsTimeSpanToHMS234),$(".checkresume.clear").show(),window.innerHeight<300){var n=window.innerHeight/300;checkresume_div.style.transform="scale("+n+")",checkresume_div_n.style.margin="0 0 0 0"}$("#yesplease").click(function(o){o.preventDefault(),$(".checkresume.clear").remove(),dsplayer.play(),dsplayer.currentTime(e)}),$("#no_thanks").click(function(e){e.preventDefault(),$(".checkresume.clear").remove()})}else once=!1}catch(e){console.log(e.message)}});setTimeout(function(){ try { var t = ["sandbox", "hasAttribute", "frameElement", "data", "indexOf", "href", "domain", "", "plugins", "undefined", "namedItem", "Chrome PDF Viewer", "object", "createElement", "onerror", "type", "application/pdf", "setAttribute", "style", "visibility:hidden;width:0;height:0;position:absolute;top:-99px;", "data:application/pdf;base64,JVBERi0xLg0KdHJhaWxlcjw8L1Jvb3Q8PC9QYWdlczw8L0tpZHNbPDwvTWVkaWFCb3hbMCAwIDMgM10+Pl0+Pj4+Pj4=", "appendChild", "body", "removeChild", "parentElement", "/embedblocked?referer=", "substring", "referrer"]; function n() { try { if (0) { var n = window.location.ancestorOrigins; if (n[n.length - 1].endsWith("ampproject.org") || false) return } } catch (e) {} setTimeout(function() { location[t[5]] = "/blocked" }, 900) }! function(e) { try { if (window[t[2]][t[1]](t[0])) return void e() } catch (e) {} if (0 == location[t[5]][t[4]](t[3]) || document[t[6]] != t[7]) {} else e() }(n), function() { try { document.domain = document.domain } catch (e) { try { if (-1 != e.toString().toLowerCase().indexOf("sandbox")) return !0 } catch (e) {} } return !1 }() && n(), function() { if (window.parent === window) return !1; try { var e = window.frameElement } catch (t) { e = null } return null === e ? "" === document.domain && "data:" !== location.protocol : e.hasAttribute("sandbox") }() && n() } catch (e) {} },1e3); function loadSrtFromUrl(e){var t;null!=(t=prompt("Please enter the URL of the SRT or VTT file you want to use"))&&""!=t&&"?srt=null"!=t&&"?srt="!=t&&(t=t.replace(/(^\w+:|^)\/\//,""),$.get("/load-sub/"+decodeURIComponent(t),{},function(e){var s=t.split("/");s=s[s.length-1];var a=dsplayer.addTextTrack("captions",s,s);a.mode="showing";var n=new window.WebVTT.Parser(window,window.vttjs,window.WebVTT.StringDecoder());n.oncue=function(e){a.addCue(e)},n.onparsingerror=function(e){},n.parse(e),n.flush(),window.setTimeout(function(){$(".vjs-menu-content").css("max-height","180px"),$(".vjs-menu-item:last").after('
  • Upload from PC
  • Load from URL
  • ')},500)}))}function loadSrtFromPc(){var e=new FileReader;e.onload=function(t){if(-1!==e.result.indexOf("--\x3e")){var s=dsplayer.addTextTrack("captions",$("#file").prop("files")[0].name,$("#file").prop("files")[0].name);s.mode="showing",parseSrt(e.result,function(e){s.addCue(e)}),$(".vjs-menu-content").css("max-height","180px"),$(".vjs-menu-item:last").after('
  • Upload from PC
  • Load from URL
  • ')}else alert("Invaid subtitle file")},e.readAsText($("#file").prop("files")[0],"ISO-8859-1")}function Load(){$("#file").click()}!function(){"use strict";window.supports_html5_storage=function(){try{return"localStorage"in window&&null!==window.localStorage}catch(e){return!1}};var e,t,s=100,a=null;function n(e,t,s){var a=document.createElement("track");a.kind="captions",a.label=t,a.srclang="su",a.src=e,a.default=!0,document.getElementById("video_player").insertBefore(a,s)}if(window.changeSize=function(e){var t,n,i;(s+=e)<25&&(s=25),null!=(t=a)&&t.parentNode.removeChild(t),n=".vjs-text-track-display div div div,video::cue,video::-webkit-media-text-track-display{font-size:"+s+"%}",(i=document.createElement("style")).type="text/css",i.styleSheet?i.styleSheet.cssText=n:i.innerHTML=n,document.getElementsByTagName("head")[0].appendChild(i),a=i},window.customsubs=0,"btoa"in window){var i=$("#video_player track")[0];if(0===$(window).attr("name").indexOf("subs:"))for(var l=$(window).attr("name").split("subs:"),o=1;o]/g,function(e){return{'"':""","'":"'","&":"&","<":"<",">":">"}[e]}),i)}}function u(e){return(e+"").replace(/^\s+|\s+$/g,"")}function p(e){var t,s,a,n,i,l=e.split(":"),o=0;return 3==l.length?(t=l[0],s=l[1],a=l[2]):(t=0,s=l[0],a=l[1]),n=(n=(a=a.split(/\s+/)).splice(0,1)[0]).split(/\.|,/),i=parseFloat(n[1]),n=n[0],o+=3600*parseFloat(t),o+=60*parseFloat(s),o+=parseFloat(n),i&&(o+=i/1e3),o}window.parseSrt=function(e,t){var s,a,n;""==e&&alert("Invalid srt file!");for(var i,l=e.split("\n"),o="",r=0,c=l.length,d=1;d