1function bg_showAlert() { 2 3 alert("Alert from JS file bg"); 4 5}//test_js_file 6 7 8 9function film_button_click_action(e){ 10 11 //var classN = jQuery(e).data("value"); 12 13 //alert(e.target.className); 14 15 //var classN = jQuery(e.target).data("value"); 16 17 var classN = jQuery(e.target).attr("film_id").toString(); 18 19 //console.log(classN ); 20 21 return classN; 22 23 //console.log(jQuery("#".classN)); 24 25 26 27 28 29}//film_button_click_action 30 31 32 33function film_details_visible(e){ 34 35 36 37 //console.log(e); 38 39 var isVisible=-1; 40 41 if(jQuery(e).css('display') == 'none'){ 42 43 isVisible = 'table-row'; 44 45 } 46 47 else{ 48 49 isVisible = 'none'; 50 51 } 52 53 54 55 56 57 return isVisible ; 58 59}//film_details_visible 60 61 62 63function film_list_return(fd,fb){ 64 65 66 67 jQuery(fd).css({"display": "none"}); 68 69 jQuery(fb).css({"display": "table-row"}); 70 71 window.location.hash = 'list'; 72 73 74 75}//film_list_return 76 77 78 79function replaceLanguage(currUrl, currLang,pack,pt_package_name,en_package_name){ 80 81 newLang='#'; 82 83 if(currLang=="pt"){ 84 85 newLang=currUrl.replace("language=pt","language=en"); 86 87 newLang=currUrl.replace("film_package_name=".pack,"film_package_name=".en_package_name); 88 89 90 91 }else{ 92 93 newLang=currUrl.replace("language=en","language=pt"); 94 95 newLang=currUrl.replace("film_package_name=".pack,"film_package_name=".pt_package_name); 96 97 } 98 99 console.log(pack); 100 101 console.log(en_package_name); 102 103 console.log(pt_package_name); 104 105 106 107 return newLang; 108 109}//replaceLanguage 110 111 112 113 114 115function lazyLoad(e){ 116 117 118 119 if(jQuery(e).attr("src")==""){ 120 121 jQuery(e).attr("src",jQuery(e).attr("data-src")); 122 123 } 124 125 126 127 //jQuery(e).attr("src",imgSrc); 128 129 //console.log(jQuery(e).attr("data-src").toString()); 130 131} 132 133 134 135function isScrolledIntoView(elem) { 136 137 var docViewTop = jQuery(window).scrollTop(); 138 139 var docViewBottom = docViewTop + jQuery(window).height(); 140 141 142 143 var elemTop = jQuery(elem).offset().top; 144 145 var elemBottom = elemTop + jQuery(elem).height(); 146 147 148 149 return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop)); 150 151} 152 153 154 155jQuery(window).scroll(function () { 156 157 jQuery('.lazyload_img').each(function () { 158 159 if (isScrolledIntoView(this) === true) { 160 161 //$(this).addClass('visible'); 162 163 //console.log(1); 164 165 lazyLoad(this); 166 167 } 168 169 }); 170 171 172 173}); 174 175 176function addScheduleColumnHandler(){ 177 178 // tb-monstra-buttons 179 var scheduleColumns = document.getElementsByClassName("tb-monstra_buttons"); 180 181 console.log(scheduleColumns); 182 183} 184 185 186function addRowHandlers() { 187 188 var table = document.getElementsByClassName("screening_table"); 189 190 // console.log(table); 191 192 // alert(table); 193 194 for(t = 0; t < table.length; t++){ 195 196 var rows = table[t].getElementsByTagName("tr"); 197 198 for (i = 0; i < rows.length; i++) { 199 200 201 202 var currentRow = table[t].rows[i]; 203 204 205 206 var createClickHandler = 207 208 function(row) 209 210 { 211 212 return function() { 213 214 //console.log(row); 215 216 var cell = row.getElementsByTagName("td")[0]; 217 218 var id = cell.innerHTML; 219 220 221 222 223 224 var film_info_collection = Array.from(document.getElementsByClassName("film_info")); 225 226 var screening_rows_collection = Array.from(document.getElementsByClassName("screening_row")); 227 228 229 230 for(var i = 0; i < film_info_collection.length; i++){ 231 232 233 234 if(film_info_collection[i].id!=id){ 235 236 237 238 film_info_collection[i].style.maxHeight="0px"; 239 240 film_info_collection[i].style.display="none"; 241 242 } 243 244 } 245 246 247 248 for(var i = 0; i < screening_rows_collection.length; i++){ 249 250 251 252 253 254 screening_rows_collection[i].className = screening_rows_collection[0].className.replace(" ev_active", " ev_inactive"); 255 256 } 257 258 259 260 261 262 var film_info = document.getElementById(id); 263 264 265 266 if (film_info.style.display === "none") { 267 268 row.className = row.className.replace(" ev_inactive", " ev_active"); 269 270 film_info.style.maxHeight="120000px"; 271 272 film_info.style.display = "block"; 273 274 275 276 var ImgToLoad_collection = Array.from(film_info.getElementsByTagName("img")); 277 278 279 280 for(var evImg = 0 ; evImg < ImgToLoad_collection.length; evImg++ ){ 281 282 283 284 lazyLoad(ImgToLoad_collection[evImg]); 285 286 287 288 } 289 290 } 291 292 else{ 293 294 row.className = row.className.replace(" ev_active", " ev_inactive"); 295 296 film_info.style.maxHeight="0px"; 297 298 film_info.style.display = "none"; 299 300 } 301 302 //alert("id:" + id); 303 304 }; 305 306 }; 307 308 309 310 if (typeof currentRow != "undefined") { 311 312 // currentRow is undefined 313 314 //console.log(currentRow); 315 316 currentRow.onclick = createClickHandler(currentRow); 317 318 } 319 320 321 322 } 323 324 } 325 326}
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.