1(function($) { 2 $(document).ready(function(){ 3 4 var videoplayers = $(".Elite_video_player"); 5 6 $.each(videoplayers, function(){ 7 var id = $(this).attr('id'); 8 9 var options = $(this).find("#elite_options").html(); 10 11 var json_str = options.replace(/"/g, '"'); 12 13 json_str = json_str.replace(/â/g, '"'); 14 json_str = json_str.replace(/â/g, '"'); 15 json_str = json_str.replace(/â³/g, '"'); 16 json_str = json_str.replace(/â/g, '"'); 17 json_str = json_str.replace(/amp;/g, ''); 18 19 options = jQuery.parseJSON(json_str); 20 21 if(options.playerLayout == "fitToContainer"){ 22 if(options.lightBox){ 23 var vp_Container = $(this).css({ 24 width: options.lightBoxThumbnailWidth, 25 height: options.lightBoxThumbnailHeight, 26 position: "relative", 27 display:"inline-flex", 28 margin:10 29 }); 30 } 31 else{ 32 var vp_Container = $(this).css({ 33 width: "100%", 34 height: options.videoPlayerHeight, 35 position: "relative" 36 }); 37 } 38 } 39 else if(options.playerLayout == "fixedSize"){ 40 if(options.lightBox){ 41 var vp_Container = $(this).css({ 42 width: options.lightBoxThumbnailWidth, 43 height: options.lightBoxThumbnailHeight, 44 position: "relative", 45 display:"inline-flex", 46 margin:10 47 }); 48 } 49 else{ 50 var vp_Container = $(this).css({ 51 width: options.videoPlayerWidth, 52 height: options.videoPlayerHeight 53 }); 54 } 55 } 56 else if(options.playerLayout == "fitToBrowser"){ 57 var fixedCont = $("<div />") 58 .addClass("fixedCont") 59 .css({ 60 position: 'fixed', 61 width: '100%', 62 height: '100%', 63 top: 0, 64 left: 0, 65 background: '#000000', 66 zIndex: 2147483647 67 }); 68 videoplayers.parent().append(fixedCont); 69 videoplayers.appendTo(fixedCont); 70 } 71 vp_Container = $(this).css({direction:"ltr"}); 72 73 if(typeof Video != 'function'){ 74 var i = setInterval(function(){ 75 if(typeof Video == 'function'){ 76 vp_Container.Video(options); 77 clearInterval(i); 78 } 79 }, 200); 80 } 81 else{ 82 vp_Container.Video(options); 83 } 84 }) 85 }); 86}(jQuery));
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.