1var j = jQuery.noConflict(); 2 3/* INFUSIONSOFT FORMS ONCHANGE ======================================= */ 4 5 jQuery(document).ready(function($){ 6 function gotoInfusion(formType){ 7 switch(formType){ 8 case 1: //google pages 9 //var pages = new Array("niohnat","niihnat","nifthnat"); 10 //var pages = new Array("niurihnat","niusfhnat","niuslhnat"); // edited by r0dger 11 var pages = new Array("nathniuri","nathniusf","nathniusl"); 12 break; 13 case 2: // action form (guerilla marketing/high tech sales) 14 var pages = new Array("nathnis","nathnir","nathnie"); 15 break; 16 case 3: // whitepapers action form 17 var pages = new Array("nilhnat","niuhnat","nifhnat"); 18 break; 19 case 4: // adwords 20 var pages = new Array("niohnat","niferhnat","nifthnat"); 21 break; 22 case 5: // boswell 23 var pages = new Array("nifoihnat","nifowhnat","niforhnat"); 24 break; 25 case 6: 26 var pages = new Array("nifolhnat", "nifiuhnat", "nifishnat"); 27 break; 28 case 7: 29 var pages = new Array("https://m171.infusionsoft.com/cart/?update=true&l=all&clear=true&product_id=p273&p273_qty=1&cart_skin=8632","https://m171.infusionsoft.com/cart/?update=true&l=all&clear=true&product_id=p460&p460_qty=1&cart_skin=8632","https://m171.infusionsoft.com/cart/?update=true&l=all&clear=true&product_id=p476&p476_qty=1&cprogram_id=c1&c1_qty=1&cart_skin=8632"); 30 break; 31 case 8: 32 var pages = new Array("https://m171.infusionsoft.com/cart/?update=true&l=n&clear=true&cprogram_id=c9&c9_qty=1&product_id=p510&p510_qty=1&cart_skin=8632", "https://m171.infusionsoft.com/cart/?update=true&l=n&clear=true&cprogram_id=c9&c9_qty=1&product_id=p512&p512_qty=1&cart_skin=8632", "https://m171.infusionsoft.com/cart/?update=true&l=n&clear=true&cprogram_id=c9&c9_qty=1&product_id=p514&p514_qty=1&cart_skin=8632"); 33 break; 34 case 9: 35 var pages = new Array("https://m171.infusionsoft.com/go/mgmspl/MG1/", "https://m171.infusionsoft.com/go/mgmsgl/MG1/", "https://m171.infusionsoft.com/go/mgmsbs/MG1/"); 36 break; 37 case 10: 38 var pages = new Array("nathnilou", "nathnilot", "nathnilwo"); 39 break; 40 case 11: 41 var pages = new Array("https://m171.infusionsoft.com/cart/?update=true&l=n&clear=true&cprogram_id=c9&c9_qty=1&product_id=p588&p588_qty=1&cart_skin=8632", "https://m171.infusionsoft.com/cart/?update=true&l=n&clear=true&cprogram_id=c9&c9_qty=1&product_id=p590&p590_qty=1&cart_skin=8632", "https://m171.infusionsoft.com/cart/?update=true&l=n&clear=true&cprogram_id=c9&c9_qty=1&product_id=p592&p592_qty=1&cart_skin=8632"); 42 break; 43 case 12: 44 var pages = new Array("nathnieto", "nathnieft", "nathniefu"); 45 break; 46 default: 47 return false; 48 } 49 selpage = $("input:checked").val(); 50 if ($.inArray(selpage,pages) && formType != 7 && formType != 8 && formType != 9 && formType != 11) { 51 $("#memform1:eq(0)").attr("action","https://m171.infusionsoft.com/saleform/" + pages[selpage]); 52 $("#memform1:eq(0)").submit(); 53 } 54 else if ($.inArray(selpage,pages) && formType == 7) { 55 $("#memform1:eq(0)").attr("action",pages[selpage]); 56 $("#memform1:eq(0)").submit(); 57 } 58 else if ($.inArray(selpage,pages) && formType == 8) { 59 $("#memform1:eq(0)").attr("action",pages[selpage]); 60 $("#memform1:eq(0)").submit(); 61 } else if ($.inArray(selpage,pages) && formType == 9) { 62 $("#memform1:eq(0)").attr("action",pages[selpage]); 63 $("#memform1:eq(0)").submit(); 64 } else if ($.inArray(selpage,pages) && formType == 11) { 65 $("#memform1:eq(0)").attr("action",pages[selpage]); 66 $("#memform1:eq(0)").submit(); 67 } else { 68 alert(selpage+" is an invalid choice!"); 69 return false; 70 } 71 } 72 }); 73 74/* SIMPLE CALCULATOR ON /ADWORDS/VISITORVALUE ======================== */ 75 76 jQuery(document).ready(function($){ 77 //VV Calculator 78 $("#simple-sales-calc-wrap").hide(); 79 $("#result").hide(); 80 $('input[type="radio"]').change(function(){ 81 if($("#smrd").is(':checked')){ 82 $("#simple-sales-calc-wrap").slideDown(); 83 clear3(); 84 $("#result").hide(); 85 var rate = 'Daily'; 86 $('.rate').html(rate); 87 $('#simplecc').val('Calculate'); 88 } 89 else if($("#smrm").is(':checked')){ 90 $("#simple-sales-calc-wrap").slideDown(); 91 clear3(); 92 $("#result").hide(); 93 var rate = 'Monthly'; 94 $('.rate').html(rate); 95 $('#simplecc').val('Calculate'); 96 } 97 }); 98 99 }); 100 //Simple Visitor Value Calculator 101 function clear3(){ 102 j('#simple-sales-calc input[type="text"]').each(function(){ 103 j(this).val(""); 104 }); 105 j('.rsb').html(''); 106 j('.nrsb').html(''); 107 j('.n2rsb').html(''); 108 } 109 function placement(n, currency) { 110 return currency + "" + n.toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1,"); 111 } 112 function resultsimplecc(){ 113 //C5 = val1 114 //C7 = val2 115 j("#result").slideDown(); 116 var val1 = j("#visitors").val(); 117 var val2 = j("#totalsales").val(); 118 if(j("#smrd").is(':checked')){ 119 var cr = (val2 / val1); 120 var headTxtDaily = "Daily Sales Increase"; 121 var headTxtMonthly = "Monthly Sales Increase"; 122 var headTxtYearly = "Yearly Sales Increase"; 123 //Daily Increase 124 var res1 = val2 * 0.2286; 125 var res2 = val2 * 0.6193; 126 var res3 = val2 * 1.401; 127 //Monthly Increase 128 var nres1 = res1 * 30; 129 var nres2 = res2 * 30; 130 var nres3 = res3 * 30; 131 //Yearly Increase 132 var n2res1 = nres1 * 12; 133 var n2res2 = nres2 * 12; 134 var n2res3 = nres3 * 12; 135 } 136 else if(j("#smrm").is(':checked')){ 137 var cr = (val2 / val1); 138 var headTxtDaily = "Daily Sales Increase"; 139 var headTxtMonthly = "Monthly Sales Increase"; 140 var headTxtYearly = "Yearly Sales Increase"; 141 //Daily Increase 142 var res1 = (val2 * 0.2286) / 30; 143 var res2 = (val2 * 0.6193) /30; 144 var res3 = (val2 * 1.401) / 30; 145 //Monthly Increase 146 var nres1 = ((val2 * 0.2286) * 30) / 30; 147 var nres2 = ((val2 * 0.6193) * 30) / 30; 148 var nres3 = ((val2 * 1.401) * 30) / 30; 149 //Yearly Increase 150 var n2res1 = (((val2 * 0.2286) * 30) * 12) / 30; 151 var n2res2 = (((val2 * 0.6193) * 30) * 12) / 30; 152 var n2res3 = (((val2 * 1.401) * 30) * 12) / 30; 153 } 154 //Display Leads Increase % 155 j(".rs").html(placement(res1,"$")); 156 j(".rs2").html(placement(res2,"$")); 157 j(".rs3").html(placement(res3,"$")); 158 //Display Daily Leads 159 j(".nrs").html(placement(nres1,"$")); 160 j(".nrs2").html(placement(nres2,"$")); 161 j(".nrs3").html(placement(nres3,"$")); 162 //Display Monthly Leads 163 j(".n2rs").html(placement(n2res1,"$")); 164 j(".n2rs2").html(placement(n2res2,"$")); 165 j(".n2rs3").html(placement(n2res3,"$")); 166 j('#headtxtdaily').html(headTxtDaily); 167 j('#headtxtmonthly').html(headTxtMonthly); 168 j('#headtxtyearly').html(headTxtYearly); 169 j("#conv-rate").html(placement(cr,"$")+" Per Visitor"); 170 j('#simplecc').val('Recalculate'); 171 return false;
172 } 173 174/* VARIOUS POPUS ========================== */ 175 176 function popTimeConverter(){ 177 newwindow=window.open("http://www.timeanddate.com/worldclock/converter.html", 178 "TimeConverter",'height=400,width=800,scrollbars=yes,resizable=yes,top=100'); 179 if (window.focus) { 180 newwindow.focus(); 181 } 182 return false; 183 }//func 184 function popPrivacy(){ 185 newwindow=window.open("/privacy/","TimeConverter",'height=600,width=900,scrollbars=yes,resizable=yes,top=100,left=300'); 186 if (window.focus) { 187 newwindow.focus(); 188 } 189 return false; 190 } 191 function popSakAppTY(){ 192 newwindow=window.open("https://www.perrymarshall.com/marketing/hyperevolution/sak-app/thank-you/", 193 "Thank You",'height=400,width=900,scrollbars=yes,resizable=no,top=100,left=300'); 194 if (window.focus) { 195 newwindow.focus(); 196 } 197 return false; 198 } 199 function popimage($image,$title,$width,$height){ 200 newwindow=window.open("http://www.perrymarshall.com/images/"+$image, 201 $title,'width='+$width+',height='+$height+',scrollbars=yes,resizable=no,top=100,left=300'); 202 if (window.focus) { 203 newwindow.focus(); 204 } 205 return false; 206 } 207 function popimage2($image,$title,$width,$height){ 208 newwindow=window.open($image,$title,'width='+$width+',height='+$height+',scrollbars=yes,resizable=no,top=100,left=300'); 209 if (window.focus) { 210 newwindow.focus(); 211 } 212 return false; 213 } 214 215/* SMOOTH SCROLL TO SPECIFIC DIV ===================================== */ 216 217 jQuery(document).ready(function($){ 218 function scrollToDiv(element,navheight){ 219 var offset = element.offset(); 220 var offsetTop = offset.top; 221 var totalScroll = offsetTop-navheight; 222 $('body,html').animate({ 223 scrollTop: totalScroll 224 }, 500); 225 } 226 }); 227 228/* NICE FORMATTING FOR CURRENCY ====================================== */ 229 230 function placement(n, currency) { 231 return currency + "" + n.toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1,"); 232 } 233 234/* CLICK WORD "top" (CLASS '.top') and go to top ===================== */ 235 236 jQuery(document).ready(function($){ 237 $("a.top").click(function(){ 238 $('html, body').animate({ scrollTop: 0 }, 1000); 239 return false; 240 }); 241 });
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.