1$(document).ready(function(){ 2 if($(window).width >= 560) { 3 var fheight = $('footer').height() - 80; 4 $('.main-container').attr('style', 'padding-bottom:' + fheight + 'px;'); 5 $(window).resize(function () { 6 var fheight = $('footer').height() - 80; 7 $('.main-container').attr('style', 'padding-bottom:' + fheight + 'px;'); 8 }); 9 } 10 11 makeMenu(); 12 $(window).on('resize',makeMenu); 13 14 function setCookie(cname, cvalue, exdays) { 15 var d = new Date(); 16 d.setTime(d.getTime() + (exdays*24*60*60*1000)); 17 var expires = "expires="+ d.toUTCString(); 18 document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; 19 } 20 21 $('.btn.btn-default.cancel').on('click',function (e) { 22 $.ajax({ 23 url: "https://pingler.com/account/cancel", 24 data: { 25 validate: 'is_canceled' 26 }, 27 type: "POST", 28 cache: false, 29 dataType: "JSON", 30 success: function(data){ 31 if(data.result == 1) 32 { 33 e.preventDefault(); 34 alert('You have already canceled your subscription.'); 35 location.reload(); 36 } 37 } 38 }); 39 }); 40 41 $('.hide-video').click(function(){ 42 setCookie("video_show", false,1*365); 43 $('.embed-responsive').fadeOut(600); 44 $('.hide-video').fadeOut(600); 45 $('.embed-responsive').remove(); 46 $('.promo').css({ 'background-color' : '#F8F8F8' }); 47 $('.banner').css({ 'background-color' : '#F8F8F8' }); 48 }); 49 $(".package button.toggleWrapper").click(function(){ 50 if($(this).parents(".package").find(".packageWrap").hasClass("active")) { 51 $(this).parents(".package").find(".packageWrap").slideUp(300).removeClass("active"); 52 return false; 53 } 54 $(".packageWrap.active").slideUp(300).removeClass("active"); 55 $(this).parents(".package").find(".packageWrap").addClass("active").slideDown(300); 56 }); 57 58 function makeMenu(){ 59 if($(window).width()<754){ return false; } 60 $fixed = true; 61 if($('.navbar-collapse.collapse').height() > 53){ 62 while($('.navbar-collapse.collapse').height() > 53) { 63 if($('.nav.topnav > li').length > 1) { 64 var dropdown = $('.nav.topnav > li').last(); 65 var previous = $('.nav.topnav > li').last().prev(); 66 if ($(dropdown).children().hasClass('dropdown')) { 67 $(dropdown).children().find('ul').prepend(previous); 68 } 69 } 70 else{ 71 break; 72 } 73 } 74 } 75 else{ 76 while($fixed === true) { 77 var fullWidth = $('.navbar-collapse.collapse').width(); 78 var firstWidth = $('.navbar-collapse.collapse ul').first().width(); 79 calcPercentage = (firstWidth * 100) / fullWidth; 80 if (calcPercentage < 60) { 81 var dropdown = $('.nav.topnav > li').last(); 82 if ($(dropdown).children().hasClass('dropdown')) { 83 if(firstChild = $(dropdown).children().find('ul').children().length > 0) { 84 $('.nav.topnav .dropdown-toggle').removeClass('hidden'); 85 firstChild = $(dropdown).children().find('ul').children().first(); 86 $('.nav.topnav > li').last().before(firstChild); 87 } 88 else{ 89 $('.nav.topnav .dropdown-toggle').addClass('hidden'); 90 $fixed = false; 91 break; 92 } 93 } 94 } 95 else { 96 $fixed = false; 97 break; 98 } 99 } 100 while($('.navbar-collapse.collapse').height() > 53) { 101 if($('.nav.topnav > li').length > 1) { 102 var dropdown = $('.nav.topnav > li').last(); 103 var previous = $('.nav.topnav > li').last().prev(); 104 if ($(dropdown).children().hasClass('dropdown')) { 105 $(dropdown).children().find('ul').prepend(previous); 106 } 107 } 108 else{ 109 break; 110 } 111 } 112 var dropdown = $('.nav.topnav > li').last(); 113 if($(dropdown).children().find('ul').children().length < 1) { 114 $('.nav.topnav .dropdown-toggle').addClass('hidden'); 115 } 116 } 117 } 118 119 $('input[name="csv"]').on('change', function() { 120 var input = $(this), 121 numFiles = input.get(0).files ? input.get(0).files.length : 1, 122 label = input.val().replace(/\\/g, '/').replace(/.*\//, ''); 123 console.log(label); 124 $('.file-name').text(label).show(); 125 });
126 127 128 $('#close-message').on('click',function(){ 129 $('.padd-message').parent().fadeOut(600); 130 }); 131 132 if($('.promo').length > 0){ 133 $('.promo').prepend('<style>.urladded{ margin-top: 0px; }</style>'); 134 } 135 136 if($('.good').length > 0){ 137 if($('.account.navbar').length > 0){ 138 selector = '.accset .container'; 139 } 140 else{ 141 selector = '.accset .container'; 142 } 143 144 content = '<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><div class="urladded" style="display: none;">'+$('.good').text()+'</div></div>'; 145 $(selector).prepend(content); 146 $('.urladded').fadeIn(600).delay(1200).fadeOut(600); 147 } 148 if($('.bad').length > 0){ 149 if($('.account.navbar').length > 0){ 150 selector = '.accset .container'; 151 } 152 else{ 153 selector = '.accset .container'; 154 } 155 156 content = '<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><div class="urladded red" style="display: none;">'+$('.bad').text()+'</div></div>'; 157 $(selector).prepend(content); 158 $('.urladded').fadeIn(600).delay(1200).fadeOut(600); 159 } 160 161 if($('.bad-to-go').length > 0){ 162 if(readCookie('no_thanks') === null) { 163 if ($('.account.navbar').length > 0) { 164 selector = '.accset .container'; 165 } 166 else { 167 selector = '.accset .container'; 168 } 169 170 content = '<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><div class="urladded custom red" style="display: none;"><div class="close" onclick="createCookie(\'no_thanks\',true,1);$(this).parent().fadeOut(600);"></div>' + $('.bad-to-go').html() + '</div></div>'; 171 $(selector).prepend(content); 172 $('.urladded').fadeIn(600); 173 } 174 } 175 176 $('#liveChat').click(function () { 177 eval($('.supportchat a').last().attr('href')); 178 }); 179}); 180 181 182function createCookie(name,value,days) { 183 var expires = ""; 184 if (days) { 185 var date = new Date(); 186 date.setTime(date.getTime() + (days*24*60*60*1000)); 187 expires = "; expires=" + date.toUTCString(); 188 } 189 document.cookie = name + "=" + value + expires + "; path=/"; 190} 191 192function readCookie(name) { 193 var nameEQ = name + "="; 194 var ca = document.cookie.split(';'); 195 for(var i=0;i < ca.length;i++) { 196 var c = ca[i]; 197 while (c.charAt(0)==' ') c = c.substring(1,c.length); 198 if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); 199 } 200 return null; 201} 202 203function eraseCookie(name) { 204 createCookie(name,"",-1); 205} 206 207$('.modal').on('shown.bs.modal', function(){ 208 if($(window).outerHeight() < 800){ 209 $(this).addClass('fixmodaloverflow'); 210 $('body').addClass('fixheight'); 211 } 212}); 213 214$('.modal').on('hidden.bs.modal', function () { 215 $(this).removeClass('fixmodaloverflow'); 216 $('body').removeClass('fixheight'); 217}); 218 219 220$(window).scroll(function() { 221 var calc = $(document).height() - $(window).outerHeight() - window.pageYOffset; 222 if(calc <= 100){ 223 $('.supportchat').css({ bottom: 100 - calc }); 224 } 225 else{ 226 $('.supportchat').css({ bottom: 20 }); 227 } 228});
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.