1// JavaScript Document 2var dealerConnect = { 3 sideBar: false, 4 orderButton: 'reserve-button', 5 freeTrialURL: 'https://securepay.virtualyard.com.au/signup-lead/', 6 orderURL: 'https://securepay.virtualyard.com.au/signup/', 7 contactURL: 'https://securepay.virtualyard.com.au/contact/' 8} 9 10var industry = 'cars'; 11var pricingTitles = { 12 "cars" : "Car Dealership", 13 "rvs" : "RV Dealership", 14 "trucks" : "Truck Dealership", 15 "bikes" : "Bike Dealership", 16 "marine" : "Marine Dealership", 17 "manufacturer" : "Manufacturer", 18 "finance" : "Finance", 19 "classifieds" : "Classified" 20} 21 22function freeTrialNow(action) { 23 24 $("body").addClass("virtual-dealer-open"); 25 $(".virtual-dealer-overlay iframe").attr("src",dealerConnect.freeTrialURL + action + "?ref=vydms"); 26 $(".virtual-dealer-overlay").removeClass("closed"); 27 28} 29 30function orderNow(action) { 31 32 $("body").addClass("virtual-dealer-open"); 33 $(".virtual-dealer-overlay iframe").attr("src",dealerConnect.orderURL + action + "?ref=vydms"); 34 $(".virtual-dealer-overlay").removeClass("closed"); 35 36} 37 38function contactNow(action) { 39 40 $("body").addClass("virtual-dealer-open"); 41 $(".virtual-dealer-overlay iframe").attr("src",dealerConnect.contactURL + action + "?ref=vydms"); 42 $(".virtual-dealer-overlay").removeClass("closed"); 43 44} 45 46 47$( document ).ready(function() { 48 49 50 if(window.location.hash == '#free-trial') { 51 52 setTimeout(function() { 53 54 freeTrialNow('DrF25W_a8KH8bV4zYUzr37s711UhVBnM8WAbe47Bi41wuBYa9Srgyzt3yHDaMXAj47kTDNx2Kk3E2C8U58chRA'); 55 56 }, 1500); 57 58 } 59 60 $('#navbarNav .nav-item a:not(.dropdown-toggle)').on('click', function(e) { 61 62 if($("#navbarNav").hasClass('show')) { 63 $("#navbarNav .btn-close").trigger('click'); 64 } 65 66 }); 67 68 $('.switch-industry').on('click', function(e) { 69 e.preventDefault(); 70 71 if(window.location.pathname != '/dealership-management-software/') { 72 location.href = '/dealership-management-software/#pricing'; 73 } 74 75 industry = $(this).data('industry'); 76 77 78 $('.nav-tabs a[href="#pricing-' + industry + '"]').tab('show'); 79 80 location.hash = "#pricing"; 81 $("#choose-industry").dropdown('toggle'); 82 83 $("#pricing-title").html(pricingTitles[industry] + ' Plans'); 84 }); 85 86 $('#pricing .dropdown-item').on('click', function(e) { 87 88 industry = $(this).data('industry'); 89 90 $("#pricing-title").html(pricingTitles[industry] + ' Plans'); 91 }); 92 93 94 $(".trigger").on('click', function(e) { 95 e.preventDefault(); 96 97 var el = $(this).data('element'); 98 99 $("." + el).trigger('click'); 100 101 }); 102 103 $("button.reserve-button, .btnFreeTrial").on('click', function(e) { 104 e.preventDefault(); 105 106 var type = $(this).data('type'); 107 var action = $(this).data('action'); 108 109 console.log(type + " => " + action); 110 111 switch(type) { 112 113 case "href": 114 window.location.href = action + "?ref=vydms"; 115 116 break; 117 118 case "signup-trial": 119 freeTrialNow(action); 120 break; 121 122 case "signup": 123 orderNow(action); 124 125 break; 126 127 case "contact": 128 contactNow(action); 129 130 break; 131 132 default: 133 window.location.href = $(this).attr("href"); 134 break; 135 136 } 137 138 }); 139 140});
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.