PageSourceSearch

https://mywebs.su/js/video-js/HD.js

js mywebs.su collected 2026-10-02 10:46:40 UTC 1,448 bytes, 1 lines download raw bytes

1function HDtoggle(elem){var HD1=false;videojs.HD=videojs.Button.extend({init:function(player,options){videojs.Button.call(this,player,options);this.on('click',this.onClick);}});videojs.HD.prototype.onClick=function(){var HDsrc=$(elem).find("video").attr("HD");var current_time=videojs(elem).currentTime();var noHDsrc=$(elem).find("video").attr("nonHD");if(HD1){var css=document.createElement("style");css.type="text/css";css.innerHTML=".vjs-control.vjs-HD-button { color: silver; font-weight:normal; text-shadow: 0 0 5em #fff;}";document.body.appendChild(css);videojs(elem).src([{type:"video/mp4",src:noHDsrc}]);videojs(elem).currentTime(current_time);videojs(elem).play();HD1=false;}else{var css=document.createElement("style");css.type="text/css";css.innerHTML=".vjs-control.vjs-HD-button { color: #36D8DE; font-weight:bold; text-shadow: 0 0 1em #fff;}";document.body.appendChild(css);videojs(elem).src([{type:"video/mp4",src:HDsrc}]);videojs(elem).currentTime(current_time);videojs(elem).play();HD1=true;}};var createHDButton=function(){var props={className:'vjs-HD-button vjs-control',innerHTML:'<div class="vjs-control-content">'+('HD')+'</div>',role:'button','aria-live':'polite',tabIndex:0};return videojs.Component.prototype.createEl(null,props);};var HD;videojs.plugin('HD',function(){var options={'el':createHDButton()};HD=new videojs.HD(this,options);this.controlBar.el().appendChild(HD.el());});var vid=videojs(elem,{plugins:{HD:{}}});}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.