1var couponCounter = 10; 2 3function couponTimer() { 4 if (couponCounter > 0) {couponCounter -= 1;} 5 setTimeout("couponTimer()", 1000); 6} 7 8addLoadEvent(function() { 9 if (typeof brandcaster_728_1 == 'undefined') {return;} 10 11 setTimeout("couponTimer()", 1000); 12 13 if (typeof $jq == 'undefined') {$jq = $j;} 14 15 $jq(document).on('click', '.gsnaction', function(e) {couponRefresh(false);}); 16 17 function couponRefresh(force) { 18 if (force || couponCounter <= 0) { 19 couponCounter = 10; 20 21 var bc_script_1 = brandcaster_728_1; 22 var bc_script_2 = brandcaster_728_2; 23 var bc_size = "728x90"; 24 var bc_height = 90; 25 26 if (typeof responsive != 'undefined' && responsive && $jq(window).width() < 825) { 27 bc_script_1 = brandcaster_300_1; 28 bc_script_2 = brandcaster_300_2; 29 bc_size = "300x250"; 30 bc_height = 250; 31 } 32 33 if (bc_script_1 != "hide") {$jq('#brandcaster-1').height(bc_height);} else {$jq('#brandcaster-1').height(0);} 34 $jq('#brandcaster-1').html(""); 35 if (bc_script_1 != "hide") {$jq('#brandcaster-1').html("<script class=\"scriptId_" + bc_size + "_" + bc_script_1 + "\" type=\"text/javascript\">\n" + 36 "var ci_cap_scriptId = \"" + bc_script_1 + "\";\n" + 37 "var ci_cap_bid = \"1255070001\";\n" + 38 "var ci_cap_format = \"" + bc_size + "\";\n" + 39 "var ci_cap_bannerType = \"10\";\n" + 40 "</script>\n" + 41 "<noscript><p>Coupons powered by <a href=\"http://www.coupons.com?pid=13903&nid=10&zid=xh20&bid=1255070001\">Coupons.com</a></p></noscript>");} 42 43 $jq.getScript("https://bc.coupons.com", function() { 44 if (bc_script_2 != "hide") {$jq('#brandcaster-2').height(bc_height);} else {$jq('#brandcaster-1').height(0);} 45 $jq('#brandcaster-2').html(""); 46 if (bc_script_2 != "hide") {$jq('#brandcaster-2').html("<script class=\"scriptId_" + bc_size + "_" + bc_script_2 + "\" type=\"text/javascript\">\n" + 47 "var ci_cap_scriptId = \"" + bc_script_2 + "\";\n" + 48 "var ci_cap_bid = \"1255070001\";\n" + 49 "var ci_cap_format = \"" + bc_size + "\";\n" + 50 "var ci_cap_bannerType = \"10\";\n" + 51 "</script>\n" + 52 "<noscript><p>Coupons powered by <a href=\"http://www.coupons.com?pid=13903&nid=10&zid=xh20&bid=1255070001\">Coupons.com</a></p></noscript>");} 53 54 $jq.getScript("https://bc.coupons.com"); 55 }); 56 } 57 } 58 59 var width0 = 825; 60 var widthVersion = 1; 61 var windowWidth = $jq(window).width(); 62 if (windowWidth <= width0) {widthVersion = 0;} 63 64 function cleanupBanners() { 65 var tempWindowWidth = $jq(window).width(); 66 67 if (widthVersion !== 0 && tempWindowWidth <= width0) { 68 widthVersion = 0; 69 couponRefresh(true); 70 71 } else if (widthVersion !== 1 && tempWindowWidth > width0) { 72 widthVersion = 1; 73 couponRefresh(true); 74 } 75 } 76 77 if (typeof responsive != 'undefined' && responsive) {$jq(window).resize(cleanupBanners);} 78 couponRefresh(true); 79});
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.