1$(document).on('click', '.dyn_mp_jqm_frame .popup-text-info__btn .btn', function() { 2 var closeBtn = $(this).closest('.dyn_mp_jqm_frame').find('.jqmClose'); 3 4 if(closeBtn.length) { 5 closeBtn.trigger('click'); 6 } 7}); 8 9$(document).ready(function(){ 10 if($('.dyn_mp_jqm').length){ 11 var allDelays = []; 12 13 $('.dyn_mp_jqm').each(function(i, el) { 14 var jqmBlock = $(el), 15 delay = 0; 16 17 if(!jqmBlock.hasClass('initied')){ 18 // first load 19 jqmBlock.addClass('initied'); 20 21 if(jqmBlock.data('param-delay')){ 22 delay = jqmBlock.data('param-delay')*1000; 23 } 24 25 while(allDelays.indexOf(delay) !== -1) { 26 delay += 1000; 27 } 28 29 allDelays.push(delay); 30 31 if(typeof localStorage !== 'undefined'){ 32 var dataLS = localStorage.getItem(jqmBlock.data('ls')), 33 ls = ''; 34 35 try{ 36 ls = JSON.parse(dataLS); 37 } 38 catch(e){ 39 ls = dataLS 40 } 41 42 if(!ls || (ls && (ls.TIMESTAMP < Date.now() && ls.TIMESTAMP))){ 43 /*if(timeoutID) { 44 clearTimeout(timeoutID); 45 }*/ 46 timeoutID = setTimeout(function(){ 47 jqmBlock.click(); 48 }, delay); 49 } 50 } 51 else{ 52 var ls = $.cookie(jqmBlock.data('ls')); 53 if(!ls){ 54 /*if(timeoutID) { 55 clearTimeout(timeoutID); 56 }*/ 57 timeoutID = setTimeout(function(){ 58 jqmBlock.click(); 59 }, delay); 60 } 61 } 62 } 63 else{ 64 // ajax popup 65 } 66 }); 67 } 68})
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.