1var isDeeplink; 2let introPlay = false; 3(function ($) { 4 function Preload(imgs, options) { 5 this.imgs = typeof imgs === "string" ? [imgs] : imgs; 6 this.opts = $.extend({}, Preload.DEFAULT, options); 7 8 this._unordered(); 9 } 10 11 Preload.DEFAULT = { 12 each: null, 13 all: null, 14 }; 15 16 Preload.prototype._unordered = function () { 17 var imgs = this.imgs, 18 opts = this.opts, 19 count = 0, 20 len = imgs.length; 21 22 $.each(imgs, function (i, src) { 23 if (typeof src != "string") return; 24 25 var imgObj = new Image(); 26 27 $(imgObj).on("load error", function () { 28 opts.each && opts.each(count); 29 30 if (count >= len - 1) { 31 opts.all && opts.all(); 32 } 33 count++; 34 }); 35 imgObj.src = src; 36 }); 37 38 $(".btn").on("click", function () { 39 if ($(this).data("control") === "prev") { 40 index = Math.max(0, --index); 41 } else { 42 index = Math.min(len - 1, ++index); 43 } 44 document.title = index + 1 + "/" + len; 45 $("#img").attr("src", imgs[index]); 46 }); 47 }; 48 49 $.extend({ 50 preload: function (imgs, opts) { 51 new Preload(imgs, opts); 52 }, 53 }); 54})(jQuery); 55 56var imgs = [ 57 "assets/images/tt_small.png", 58 "assets/images/tt.png", 59 "assets/images/bg.jpg", 60 "assets/images/poster.jpg", 61 "assets/images/bg_portrait.jpg", 62 "assets/images/share.jpg", 63 "assets/images/favicon.ico", 64 "assets/images/rotate_device.jpg", 65 "assets/images/gallery/img1.jpg", 66 "assets/images/gallery/img2.jpg", 67 "assets/images/gallery/img3.jpg", 68 "assets/images/gallery/img4.jpg", 69 "assets/images/gallery/img5.jpg", 70 "assets/images/gallery/img6.jpg", 71 "assets/images/gallery/img7.jpg", 72 "assets/images/gallery/img8.jpg", 73]; 74 75var index = 0, 76 len = imgs.length, 77 $progress = $("#loaderText"); 78 79$.preload(imgs, { 80 each: function (count) { 81 var increaseWidth = Math.round((count / len) * 100) + "%"; 82 $("#loaderText").html(increaseWidth); 83 }, 84 all: function () { 85 // window.addEventListener("load", (event) => { 86 //debugLog(event); 87 //debugLog("Complete window onload....."); 88 $("#loaderText").html("100%"); 89 setTimeout(function () { 90 initGallery(); 91 initCharGallery(); 92 init(); 93 }, 500); 94 setTimeout(function () { 95 //debugLog("Progress js....."); 96 if (!isYTenable) { 97 playerList.length > 0 ? createPlayerFromObject() : ""; 98 } 99 }, 500); 100 101 if (isDeeplink === false) { 102 //alert(homepagedeeplink) 103 104 if (introVideoArray.length > 0 || introPlay == true) { 105 if (String($("#ticketingSectionOnOff").val()) !== "true") { 106 $("#modalTrailer").modal("show"); 107 $("body").css("overflow-y", "hidden"); 108 document.querySelector('body').classList.remove('noscroll'); 109 setTimeout(function () { 110 $("#containerCredits").delay(500).slideDown(); 111 document.querySelector('body').classList.remove('noscroll'); 112 setTimeout(function () { 113 $("#containerCredits").slideUp(); 114 }, 6000); 115 }); 116 var newImg = new Image; 117 newImg.onload = function() { 118 //_img.src = this.src; 119 } 120 newImg.src = 'assets/images/bg.jpg'; 121 } else { 122 initGallery(); 123 initCharGallery(); 124 pauseYoutubeVideo(); 125 $(".wrapper").show(); 126 } 127 128 $("body").css("overflow-y", "hidden"); 129 checkHeight(); 130 } 131 132 setTimeout(function () { 133 $(".wrapper").show(); 134 checkHeight(); 135 }, 200); 136 137 if ( 138 introVideoArray.length === 0 || introPlay == false || 139 String($("#ticketingSectionOnOff").val()) == "true" 140 ) { 141 setTimeout(function () { 142 $("#containerCredits").delay(500).slideDown(); 143 setTimeout(function () { 144 $("#containerCredits").slideUp(); 145 }, 6000); 146 }); 147 } 148 } else { 149 setTimeout(function () { 150 $("#containerCredits").delay(500).slideDown(); 151 setTimeout(function () {
152 $("#containerCredits").slideUp(); 153 }, 6000); 154 }); 155 } 156 157 setTimeout(checkHeight, 100); 158 setTimeout(checkHeight, 1500); 159 //}); 160 }, 161}); 162 163var checkHeight = function () { 164 //var reqHeight = window.innerHeight - ($('.footer').outerHeight() + $('.header').outerHeight()); 165 var navTop = 0; 166 var bgHeight = window.innerHeight - ($('.footer').outerHeight()) - navTop; 167 168 $(".divBackground").css({ 169 height: bgHeight + "px", 170 'top': navTop + 'px' 171 }); 172 173 $("#home").css({ 174 height: bgHeight + navTop + "px", 175 'padding-top': navTop + 'px' 176 }); 177 178 $(".ticketoverlay").css({ 179 height: bgHeight + "px", 180 }); 181 182 $("#navIcon").css({ 183 'top': navTop + 6 + 'px' 184 }); 185 186 $(".nav_share_bg").css({ 187 'top': navTop + 8 + 'px' 188 }); 189 190 $(".share-container").css({ 191 'top': navTop + 8 + 'px' 192 }); 193 194 $(".syts_backHomeFromTickets").css({ 195 'top': navTop + 9 + 'px' 196 }); 197 198 $(".getTickets").css({ 199 }); 200};
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.