1<!DOCTYPE html> 2<html lang="en"> 3 <head> 4 <title>New Powersports Models Showroom | Carolina BRP</title> 5 6 7 8 <meta name="robots" content="index, follow" /> 9 10 11<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 12<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> 13<!-- Safe shims for GA/gtag to prevent ReferenceError if analytics is not loaded -->
14<script> 15(function(w){ 16 w.dataLayer = w.dataLayer || []; 17 if (typeof w.gtag !== 'function') { w.gtag = function(){ w.dataLayer.push(arguments); }; } 18 if (typeof w.ga !== 'function') { w.ga = function(){ (w.ga.q = w.ga.q || []).push(arguments); }; w.ga.l = +new Date; } 19})(window); 20</script>
20 21<link rel="canonical" href="https://www.hondaws.com/showroom"> 22 23<link rel="icon" href="/theme/img/favicon/favicon.ico?v=2" /> 24<link rel="apple-touch-icon" sizes="57x57" href="/theme/img/favicon/apple-icon-57x57.png"> 25<link rel="apple-touch-icon" sizes="60x60" href="/theme/img/favicon/apple-icon-60x60.png"> 26<link rel="apple-touch-icon" sizes="72x72" href="/theme/img/favicon/apple-icon-72x72.png"> 27<link rel="apple-touch-icon" sizes="76x76" href="/theme/img/favicon/apple-icon-76x76.png"> 28<link rel="apple-touch-icon" sizes="114x114" href="/theme/img/favicon/apple-icon-114x114.png"> 29<link rel="apple-touch-icon" sizes="120x120" href="/theme/img/favicon/apple-icon-120x120.png"> 30<link rel="apple-touch-icon" sizes="144x144" href="/theme/img/favicon/apple-icon-144x144.png"> 31<link rel="apple-touch-icon" sizes="152x152" href="/theme/img/favicon/apple-icon-152x152.png"> 32<link rel="apple-touch-icon" sizes="180x180" href="/theme/img/favicon/apple-icon-180x180.png"> 33<link rel="icon" type="image/png" sizes="192x192" href="/theme/img/favicon/android-icon-192x192.png"> 34<link rel="icon" type="image/png" sizes="32x32" href="/theme/img/favicon/favicon-32x32.png"> 35<link rel="icon" type="image/png" sizes="96x96" href="/theme/img/favicon/favicon-96x96.png"> 36<link rel="icon" type="image/png" sizes="16x16" href="/theme/img/favicon/favicon-16x16.png"> 37<!-- <link rel="manifest" href="/theme/img/favicon/manifest.json"> --> 38<meta name="msapplication-TileColor" content="#ffffff"> 39<meta name="msapplication-TileImage" content="/theme/img/favicon/ms-icon-144x144.png"> 40<meta name="theme-color" content="#ffffff"> 41 <link rel="stylesheet" href="https://www.hondaws.com/assets/css/custom_widget_style.css" /> 42
43<script> 44// Safe guards to avoid ReferenceError in templates that assume these exist 45try { if (typeof window.muoptions === 'undefined') { window.muoptions = {}; } } catch(e){} 46try { if (typeof window.mumobileoptions === 'undefined') { window.mumobileoptions = {}; } } catch(e){} 47try { if (typeof window.mumainoptions === 'undefined') { window.mumainoptions = {}; } } catch(e){} 48</script>
48 49 50<meta name="description" content="Browse new powersports models in the Carolina BRP factory showroom. Explore the latest ATVs, side-by-sides, and motorcycles from top industry brands."> 51<meta name="keywords" content="Carolina BRP showroom, powersports showroom, factory showroom powersports, new powersports models, ATV showroom, side by side showroom, motorcycle showroom"> 52<meta property="og:image" content="https://www.hondaws.com/media/logo_(8)13.png"/> 53<meta property="og:site_name" content="Honda, Sea-Doo and Can-Am of Winston-Salem"/> 54<meta property="og:url" content="https://www.hondaws.com/showroom" /> 55<meta name="geo.region" content="US-NC" /> 56<meta name="geo.placename" content="Clemmons" /> 57
58<script> var marketing_switch = '1';</script>
58 59<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:400,500,600,700,900,800,300" /> 60 61 62 63 64 65 66 67
67<script src="https://www.hondaws.com/assets/scriptlibrary.js?v=3"></script>
67 68 <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> 69
69<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
69 70
70<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
70 71
71<script>window.WEBSITE_HOSTNAME = "www.hondaws.com";</script>
71 72 73
73<script> 74 // $(function() { 75 // $("#datepicker_customForm").datepicker({ 76 // dateFormat: "mm/dd/yy" 77 // }); 78 // }); 79 80 $(function() { 81 $(".datepicker_customForm").datepicker({ 82 dateFormat: "mm\/dd\/yy" }); 83 }); 84 85 function maskPhone(input) { 86 87 let value = input.value.trim(); 88 // Remove any non-digit and non-plus sign characters after the first plus sign 89 if (value.match(/^\+?\d*/)) { 90 let firstPart = value.match(/^\+?\d*/)[0]; 91 let secondPart = value.slice(firstPart.length).replace(/[^0-9]/g, ''); // Remove non-digit characters 92 93 input.value = firstPart + secondPart; 94 // Ensure the total length is at most 12 characters 95 if (input.value.length > 13) { 96 input.value = input.value.slice(0, 13); 97 } 98 } else { 99 // If the input doesn't match the format, reset it to an empty string 100 input.value = ''; 101 } 102 } 103 </script>
103 104 105<!--
105<script src="https://www.hondaws.com/push.js?t=1790869120"></script>
105
106<script src="https://www.hondaws.com/main.js?t=1790869120"></script>
106 --> 107 108
108<script> var marketing_switch = 'true';</script>
108 <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Oswald:400,500"> 109 <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Bungee+Inline"> 110 <!-- CSS LINKS here--> 111 <link rel="stylesheet" href="https://www.hondaws.com/assets/css/nav.css" type="text/css" /> 112 <link rel="stylesheet" href="https://www.hondaws.com/assets/css/style.css" type="text/css" /> 113 114 <link rel="stylesheet" href="https://www.hondaws.com/qatesting/benz_assets//css/responsive.css" type="text/css" /> 115 <link rel="stylesheet" href="https://www.hondaws.com/assets/css/benz.css" type="text/css" /> 116 <link rel="stylesheet" href="https://www.hondaws.com/assets/css/account_nav.css" type="text/css" /> 117 <link rel="stylesheet" href="https://www.hondaws.com/assets/css/jquery.bxslider.css" type="text/css" /> 118 <link rel="stylesheet" href="https://www.hondaws.com/assets/css/magnific-popup.css" type="text/css"> 119 <link rel="stylesheet" href="https://www.hondaws.com/assets/css/jquery.selectbox.css" type="text/css"> 120 <link rel="stylesheet" href="https://www.hondaws.com/assets/css/expand.css" type="text/css"> 121 <link rel="stylesheet" href="https://www.hondaws.com/assets/css/modal.css" type="text/css"> 122 <link rel="stylesheet" href="https://www.hondaws.com/assets/font-awesome-4.1.0/css/font-awesome.min.css"> 123 <link rel="stylesheet" href="https://www.hondaws.com/qatesting/benz_assets/css/style.css" /> 124 <link rel="stylesheet" href="https://www.hondaws.com/qatesting/benz_assets/css/bootstrap.min.css" /> 125 <link rel="stylesheet" href="https://www.hondaws.com/qatesting/benz_assets/css/font-awesome.css" /> 126 <link rel="stylesheet" href="/qatesting/benz_assets/css/jquery.fancybox.css" /> 127 128 <!-- Common css for global widgets h-3--> 129 <link rel="stylesheet" href="/assets/new_design/plugins/OwlCarousel/v_2-2.3.4/dist/assets/owl.carousel.min.css"> 130 <link rel="stylesheet" href="/assets/new_design/plugins/OwlCarousel/v_2-2.3.4/dist/assets/owl.theme.default.min.css"> 131 <link rel="stylesheet" href="/assets/new_design/plugins/animate/4.1.1/animate.min.css"/> 132 <!-- <link rel="stylesheet" href="https://www.hondaws.com/assets/css/custom_widget_style.css" /> --> 133 <!-- END CSS LINKS --> 134
134<script> 135 $(document).ready(function() { 136 $("li").click(function(){ 137 // console.log("clicked li master v"); 138 $(this).toggleClass("active"); 139 $(this).next(".tlg").stop('true','true').slideToggle("slow"); 140 }); 141 }); 142 </script>
142 143
143<script src="https://www.hondaws.com/qatesting/benz_assets/js/bootstrap.min.js"></script>
143 144
144<script src="https://www.hondaws.com/qatesting/benz_assets/js/owl.carousel.js"></script>
144 145
145<script src="/assets/new_design/plugins/OwlCarousel/v_2-2.3.4/dist/owl.carousel.min.js"></script>
145 146 <!-- jQuery library --> 147
147<script> 148 $(document).ready(function(){ 149 $(".sidebar-menu span").click(function(){ 150 $(".mb-drpdwn").toggle('slow'); 151 }); 152 }); 153 </script>
153 154
154<script> 155 $(document).ready(function() { 156 $(".fiter-menu").click(function(){ 157 $(this).toggleClass("active"); 158 $(this).next(".section-fiter").stop('true','true').slideToggle("slow"); 159 }); 160 }); 161 </script>
161 162 163 164
164<script> 165 var environment = 'production'; 166 var base_url = 'https://www.hondaws.com/'; 167 var s_base_url = 'https://www.hondaws.com/'; 168 shopping_cart_count = 0; 169 </script>
169 170 171 <!-- bxSlider Javascript file --> 172
172<script src="https://www.hondaws.com/assets/js/jquery.bxslider.min.js"></script>
172 173 174 <!-- NAVIGATION JS --> 175
175<script> 176 $( document ).ready( function( $ ) { 177 $('body').addClass('js'); 178 $('.menu-link').click(function(e) { 179 e.preventDefault(); 180 $('.menu-link').toggleClass('active'); 181 $('#menu').toggleClass('active'); 182 }); 183 $('.has-submenu > a').click(function(e) { 184 e.preventDefault(); 185 $(this).toggleClass('active').next('ul').toggleClass('active'); 186 }); 187 }); 188 </script>
188 189 <!-- END NAVIGATION JS --> 190 191 192 <!-- ACCOUNT NAVIGATION JS --> 193
193<script> 194 $( document ).ready( function( $ ) { 195 $('body').addClass('js'); 196 $('.acct_menu-link').click(function(e) { 197 e.preventDefault(); 198 $('.acct_menu-link').toggleClass('active'); 199 $('#acct_menu').toggleClass('active'); 200 }); 201 202 $('.has-submenu > a').click(function(e) { 203 e.preventDefault(); 204 $(this).toggleClass('active').next('ul').toggleClass('active'); 205 }); 206 }); 207 </script>
207 208 <!-- END ACCOUNT NAVIGATION JS --> 209 210 <!-- SELECT BOX JS --> 211
211<script type="text/javascript" src="https://www.hondaws.com/assets/js/jquery.selectbox-0.2.js"></script>
211 212 <!-- END SELECT BOX JS --> 213 214 <!-- ACCORDI0N JS --> 215
215<script type="text/javascript"> 216 $(document).ready(function() 217 { 218 $(".toggle_container").hide(); 219 $("h4.expand_heading").show(function() 220 { 221 $(this).addClass("active"); 222 }, 223 function () 224 { 225 $(this).removeClass("active"); 226 } 227 ); 228 $("h4.expand_heading").click(function(){ 229 $(this).next(".toggle_container").slideToggle("fast"); 230 }); 231 $(".expand_all").toggle(function(){ 232 $(this).addClass("expanded"); 233 }, function () { 234 $(this).removeClass("expanded"); 235 }); 236 $(".expand_all").click(function(){ 237 $(".toggle_container").slideToggle("fast"); 238 }); 239 240 }); 241 </script>
241 242 243
243<script src="/qatesting/benz_assets/js/jquery.fancybox.pack.js" ></script>
243 244 245 246
247<script src="/assets/autocomplete/jquery.easy-autocomplete.min.js"></script>
247<link rel="stylesheet" href="/assets/autocomplete/easy-autocomplete.min.css"> <link rel="stylesheet" href="https://www.hondaws.com/basebranding.css" /> 248 <link rel="stylesheet" href="https://www.hondaws.com/custom.css" /> 249 <!-- master_v --> 250 <!-- <link rel="stylesheet" href="" /> --> 251 <link rel="stylesheet" href="https://www.hondaws.com/flexible_templates_style.css?v=1790869119" /> 252 253 </head> 254 255 <body class="body master_v page_id_520 Pages parent-PageCode-520" 256 style="width:100%;margin:0 auto;" data-page-id=""> 257
257<script> 258(function redirectStockQr() { 259 try { 260 // Only QR landings (default.asp / home) â not financing or other pages that use ?stock= 261 var path = (window.location.pathname || '').replace(/\/+$/, '').toLowerCase(); 262 if (path && path !== '/default.asp' && path !== '/') return; 263 264 var stock = ''; 265 var search = window.location.search || ''; 266 var match = search.match(/[?&]stock=([^&]*)/i); 267 if (match && match[1]) { 268 stock = decodeURIComponent(match[1].replace(/\+/g, ' ')).trim(); 269 } 270 if (!stock) return; 271 var destPath = '/majorunit/Stock/' + encodeURIComponent(stock); 272 var current = (window.location.pathname || '').replace(/\/+$/, ''); 273 if (current.toLowerCase() === destPath.toLowerCase()) return; 274 console.log('HondaWS - stock QR redirect', stock, destPath); 275 window.location.replace(destPath); 276 } catch (e) { 277 console.warn('HondaWS - stock QR redirect error', e); 278 } 279})(); 280 281(function moveAccountToFooter() { 282 function run() { 283 try { 284 if (document.querySelector('.footer_account_links')) return; 285 286 var footerBar = document.querySelector('.footer_bottom_bar'); 287 var footerInner = 288 (footerBar && footerBar.querySelector('.container_b')) || 289 footerBar || 290 document.querySelector('.footer_section'); 291 if (!footerInner) return; 292 293 var auth = document.querySelector('.top_header .auth_dropdown, .auth_dropdown'); 294 var mbl = document.querySelector('.mblacnt-log'); 295 if (!auth && !mbl) return; 296 297 var wrap = document.createElement('div'); 298 wrap.className = 'footer_account_links'; 299 300 if (auth) { 301 var btnGroup = auth.querySelector('.btn-group'); 302 if (btnGroup) { 303 btnGroup.className = btnGroup.className 304 .replace(/\bhidden-xs\b/g, '') 305 .replace(/\bhidden-sm\b/g, '') 306 .replace(/\bhidden-md\b/g, '') 307 .replace(/\s+/g, ' ') 308 .trim(); 309 if ((' ' + btnGroup.className + ' ').indexOf(' dropup ') === -1) { 310 btnGroup.className += ' dropup'; 311 } 312 } 313 wrap.appendChild(auth); 314 } 315 316 if (mbl) { 317 // Prefer the desktop dropdown in the footer; drop the header mobile duplicate 318 if (auth) { 319 mbl.parentNode && mbl.parentNode.removeChild(mbl); 320 } else { 321 wrap.appendChild(mbl); 322 } 323 } 324 325 if (footerBar && footerBar.firstChild) { 326 footerBar.insertBefore(wrap, footerBar.firstChild); 327 } else { 328 footerInner.appendChild(wrap); 329 } 330 console.log('HondaWS - moved login/account to footer'); 331 } catch (e) { 332 console.warn('HondaWS - move account to footer failed', e); 333 } 334 } 335 336 if (document.readyState === 'loading') { 337 document.addEventListener('DOMContentLoaded', run); 338 } else { 339 run(); 340 } 341})(); 342 343(function fillFinancingVehicleFromVdp() { 344 var STORAGE_KEY = 'hondaws_vehicle'; 345 var STOCK_RE = /^[A-Za-z0-9._-]{3,}$/; 346 var FIELD_MAP = { 347 stock: 'field_id_406', 348 condition: 'field_id_231', 349 year: 'field_id_410', 350 make: 'field_id_411', 351 model: 'field_id_412' 352 }; 353 354 function runWhenDomReady(fn) { 355 if (document.readyState === 'loading') { 356 document.addEventListener('DOMContentLoaded', fn); 357 } else { 358 fn(); 359 } 360 } 361 362 function trim(v) { 363 return String(v || '').replace(/\s+/g, ' ').trim(); 364 } 365 366 function isListPage() { 367 var path = (window.location.pathname || '').toLowerCase(); 368 if (path.indexOf('major_unit_list') !== -1) return true; 369 try { 370 return document.querySelectorAll('input[name="stock_number"]').length > 1; 371 } catch (e) { 372 return false; 373 } 374 } 375 376 function stockFromPath(pathname) { 377 try { 378 var path = String(pathname || '').replace(/\/+$/, ''); 379 var last = path.split('/').pop() || ''; 380 // Ignore list/index path segments that look like stock ids 381 if (/list|inventory|search|filter|category/i.test(last)) return ''; 382 return STOCK_RE.test(last) ? last : ''; 383 } catch (e) { 384 return ''; 385 } 386 } 387 388 function dtalValue(labelRe) { 389 try { 390 var items = document.querySelectorAll('.dtal-txt'); 391 for (var i = 0; i < items.length; i++) { 392 var labelEl = items[i].querySelector('label'); 393 var label = labelEl ? trim(labelEl.textContent) : ''; 394 if (!labelRe.test(label)) continue; 395 var span = items[i].querySelector('span'); 396 return span ? trim(span.textContent) : ''; 397 } 398 } catch (e) { 399 /* ignore */ 400 } 401 return ''; 402 } 403 404 function readVehicleOnPage() { 405 var info = { 406 stock: '', 407 year: '', 408 make: '', 409 model: '', 410 condition: '' 411 }; 412 // List pages have many units â never treat the first card as "the" vehicle 413 if (isListPage()) return info; 414 415 try { 416 info.year = dtalValue(/^year\s*:/i); 417 info.make = dtalValue(/^make\s*:/i); 418 info.model = dtalValue(/^model\s*:/i); 419 info.condition = dtalValue(/^Condition\s*:/i);
420 info.stock = dtalValue(/^Stock\s*(?:Code|#)?\s*:/i); 421 422 if (!info.stock) { 423 var ds = document.querySelector('.liUnit.LiInvstock-number .spnUnitValue'); 424 if (ds && trim(ds.textContent)) info.stock = trim(ds.textContent); 425 } 426 if (!info.stock) { 427 var stockInputs = document.querySelectorAll( 428 'input[name="stock_number"][value]:not([value=""])' 429 ); 430 // Only trust a single stock_number input (detail page) 431 if (stockInputs.length === 1 && stockInputs[0].value) { 432 info.stock = trim(stockInputs[0].value); 433 } 434 } 435 436 var path = (window.location.pathname || '').replace(/\/+$/, ''); 437 if ( 438 !info.stock && 439 /For_Sale|majorunit|dirtbike|atv|motorcycle|side.?by.?side|watercraft|pontoon|pre-?owned/i.test( 440 path 441 ) 442 ) { 443 info.stock = stockFromPath(path); 444 } 445 446 // Fallback parse from slug: Pre-Owned_2026_DENAGO_POWERSPORTS_MX1_Dirt_Bike_For_Sale_... 447 if ((!info.year || !info.make || !info.model) && /For_Sale/i.test(path)) { 448 var slug = (path.split('/').slice(-2, -1)[0] || '').replace(/_/g, ' '); 449 var m = slug.match( 450 /^(New|Pre-Owned)\s+(\d{4})\s+(.+?)\s+For Sale\b/i 451 ); 452 if (m) { 453 if (!info.condition) info.condition = /pre/i.test(m[1]) ? 'Pre-Owned' : 'New'; 454 if (!info.year) info.year = m[2]; 455 if (!info.make || !info.model) { 456 var rest = trim(m[3]); 457 rest = rest.replace( 458 /\s+(Dirt Bike|ATV|Motorcycle|Side by Side|Watercraft|Pontoon|Three Wheel|UTV|SXS|Scooter|Generator).*$/i, 459 '' 460 ); 461 if (!info.make && !info.model) { 462 var parts = rest.split(/\s+/); 463 if (parts.length >= 2) { 464 info.make = parts.slice(0, Math.min(2, parts.length - 1)).join(' '); 465 info.model = parts.slice(Math.min(2, parts.length - 1)).join(' '); 466 } else if (parts.length === 1) { 467 info.make = parts[0]; 468 } 469 } 470 } 471 } 472 } 473 474 if (info.stock && !STOCK_RE.test(info.stock)) info.stock = ''; 475 if (info.year && !/^\d{4}$/.test(info.year)) info.year = ''; 476 if (info.condition) { 477 if (/pre/i.test(info.condition)) info.condition = 'Pre-Owned'; 478 else if (/new/i.test(info.condition)) info.condition = 'New'; 479 else info.condition = ''; 480 } 481 } catch (e) { 482 console.warn('HondaWS - Error reading vehicle details:', e); 483 } 484 return info; 485 } 486 487 function stockFromCard(card) { 488 if (!card) return ''; 489 try { 490 var input = card.querySelector( 491 'input[name="stock_number"][value]:not([value=""])' 492 ); 493 if (input && input.value) return trim(input.value); 494 var filter = card.querySelector('.stock_filter span'); 495 if (filter && trim(filter.textContent)) return trim(filter.textContent); 496 var text = card.innerText || ''; 497 var m = text.match(/stock\s*:\s*([A-Za-z0-9._-]+)/i); 498 if (m && m[1]) return trim(m[1]); 499 } catch (e) { 500 /* ignore */ 501 } 502 return ''; 503 } 504 505 function findListCard(el) { 506 if (!el) return null; 507 return ( 508 el.closest('.mid-r.md-flex') || 509 el.closest('.mid-r') || 510 el.closest('.product_repeat') || 511 el.closest('[class*="product"]') || 512 el.parentElement 513 ); 514 } 515 516 // Parse /majorunit/New_2026_CAN-AM_Spyder_F3_LIMITED_For_Sale_Clemmons_NC/000H9TB00 517 function parseMajorUnitUrl(href) { 518 try { 519 if (!href) return null; 520 var u = new URL(href, window.location.origin); 521 var parts = u.pathname.replace(/\/+$/, '').split('/').filter(Boolean); 522 if (parts.length < 2) return null; 523 var stock = parts[parts.length - 1]; 524 var slug = parts[parts.length - 2] || ''; 525 if (!STOCK_RE.test(stock)) return null; 526 if (!/For_Sale/i.test(slug)) return null; 527 528 var m = slug.match( 529 /^(New|Pre-Owned|Used|PreOwned)_(\d{4})_(.+)_For_Sale(?:_.*)?$/i 530 ); 531 if (!m) return { stock: stock }; 532 533 var condition = /pre/i.test(m[1]) ? 'Pre-Owned' : 'New'; 534 var year = m[2];
535 var restTokens = m[3].split('_').filter(Boolean); 536 var make = ''; 537 var model = ''; 538 539 if (restTokens.length >= 2) { 540 var firstTwo = (restTokens[0] + '_' + restTokens[1]).toUpperCase(); 541 if ( 542 firstTwo === 'DENAGO_POWERSPORTS' || 543 firstTwo === 'SEA_DOO' || 544 firstTwo === 'CAN_AM' 545 ) { 546 make = restTokens.slice(0, 2).join(' ').replace(/Can Am/i, 'CAN-AM'); 547 if (/^CAN_AM$/i.test(firstTwo)) make = 'CAN-AM'; 548 if (/^SEA_DOO$/i.test(firstTwo)) make = 'SEA-DOO'; 549 model = restTokens.slice(2).join(' '); 550 } else { 551 make = restTokens[0]; 552 model = restTokens.slice(1).join(' '); 553 } 554 } else if (restTokens.length === 1) { 555 make = restTokens[0]; 556 } 557 558 return { 559 stock: stock, 560 year: year, 561 make: trim(make), 562 model: trim(model), 563 condition: condition 564 }; 565 } catch (e) { 566 return null; 567 } 568 } 569 570 function vehicleFromViewDetailsLink(financeLink) { 571 try { 572 var detail = null; 573 var next = financeLink.nextElementSibling; 574 if (next && /view\s*details/i.test(next.textContent || '')) { 575 detail = next.tagName === 'A' ? next : next.querySelector('a'); 576 } 577 if (!detail) { 578 var card = findListCard(financeLink); 579 if (card) { 580 var anchors = card.querySelectorAll('a[href]'); 581 for (var i = 0; i < anchors.length; i++) { 582 var t = (anchors[i].textContent || '').replace(/\s+/g, ' ').trim(); 583 if (/view\s*details/i.test(t) && /For_Sale|majorunit/i.test(anchors[i].href)) { 584 detail = anchors[i]; 585 break; 586 } 587 } 588 if (!detail) { 589 for (var j = 0; j < anchors.length; j++) { 590 if (/\/majorunit\/.+For_Sale/i.test(anchors[j].href)) { 591 detail = anchors[j]; 592 break; 593 } 594 } 595 } 596 } 597 } 598 if (!detail || !detail.href) return null; 599 return parseMajorUnitUrl(detail.href); 600 } catch (e) { 601 return null; 602 } 603 } 604 605 // List HTML has finance links with only finance_product â fill from View Details URL 606 function fixListFinancingLinks() { 607 if (!isListPage()) return; 608 try { 609 var links = document.querySelectorAll('a[href*="get_financing_with_us"]'); 610 var fixed = 0; 611 for (var i = 0; i < links.length; i++) { 612 var a = links[i]; 613 try { 614 var info = vehicleFromViewDetailsLink(a); 615 if (!info || !info.stock) { 616 // Fallback: card stock only 617 var card = findListCard(a); 618 var stockOnly = stockFromCard(card); 619 if (!stockOnly || !STOCK_RE.test(stockOnly)) continue; 620 info = { stock: stockOnly }; 621 } 622 var url = new URL(a.href, window.location.origin); 623 url.searchParams.set('stock', info.stock); 624 if (info.year) url.searchParams.set('year', info.year); 625 else url.searchParams.delete('year'); 626 if (info.make) url.searchParams.set('make', info.make); 627 else url.searchParams.delete('make'); 628 if (info.model) url.searchParams.set('model', info.model); 629 else url.searchParams.delete('model'); 630 if (info.condition) url.searchParams.set('condition', info.condition); 631 else url.searchParams.delete('condition'); 632 a.href = url.pathname + url.search + url.hash; 633 fixed += 1; 634 } catch (e) { 635 /* skip */ 636 } 637 } 638 console.log('HondaWS - fixed list financing links from View Details URLs', fixed); 639 } catch (e) { 640 console.warn('HondaWS - Error fixing list financing links:', e); 641 } 642 } 643 644 function hasVehicleData(info) { 645 return !!(info && (info.stock || info.year || info.make || info.model || info.condition)); 646 } 647 648 function stocksMatch(a, b) { 649 return trim(a).toLowerCase() === trim(b).toLowerCase(); 650 } 651 652 function saveVehicle(info) { 653 if (!hasVehicleData(info)) return; 654 try { 655 var prev = loadSavedVehicle(); 656 // Different stock = replace storage; do not keep stale year/make/model 657 var sameStock = !info.stock || !prev.stock || stocksMatch(info.stock, prev.stock); 658 var merged = sameStock 659 ? { 660 stock: info.stock || prev.stock || '', 661 year: info.year || prev.year || '', 662 make: info.make || prev.make || '', 663 model: info.model || prev.model || '', 664 condition: info.condition || prev.condition || '' 665 } 666 : { 667 stock: info.stock || '', 668 year: info.year || '', 669 make: info.make || '', 670 model: info.model || '', 671 condition: info.condition || '' 672 }; 673 sessionStorage.setItem(STORAGE_KEY, JSON.stringify(merged)); 674 } catch (e) { 675 console.warn('HondaWS - Could not save vehicle to sessionStorage:', e); 676 } 677 } 678 679 function loadSavedVehicle() { 680 try { 681 var raw = sessionStorage.getItem(STORAGE_KEY); 682 if (!raw) return {}; 683 var parsed = JSON.parse(raw); 684 return parsed && typeof parsed === 'object' ? parsed : {}; 685 } catch (e) { 686 return {}; 687 } 688 } 689 690 function vehicleFromQuery() { 691 try { 692 var params = new URLSearchParams(window.location.search || ''); 693 var info = { 694 stock: trim(params.get('stock')), 695 year: trim(params.get('year')), 696 make: trim(params.get('make')), 697 model: trim(params.get('model')), 698 condition: trim(params.get('condition')) 699 }; 700 if (info.stock && !STOCK_RE.test(info.stock)) info.stock = ''; 701 if (info.year && !/^\d{4}$/.test(info.year)) info.year = ''; 702 if (info.condition) { 703 if (/pre/i.test(info.condition)) info.condition = 'Pre-Owned'; 704 else if (/new/i.test(info.condition)) info.condition = 'New'; 705 else info.condition = ''; 706 } 707 return info; 708 } catch (e) { 709 return {}; 710 } 711 } 712 713 function vehicleFromReferrer() { 714 try { 715 var ref = document.referrer || ''; 716 if (!ref) return {}; 717 var parsed = parseMajorUnitUrl(ref); 718 if (parsed && parsed.stock) return parsed; 719 var path = new URL(ref, window.location.origin).pathname; 720 var stock = stockFromPath(path);
721 return stock ? { stock: stock } : {}; 722 } catch (e) { 723 return {}; 724 } 725 } 726 727 function mergeVehicle() { 728 var fromQuery = vehicleFromQuery(); 729 var fromStore = loadSavedVehicle(); 730 var fromRef = vehicleFromReferrer(); 731 var ignoredStorage = false; 732 var stockOnlyUrl = 733 !!(fromQuery.stock && !fromQuery.year && !fromQuery.make && !fromQuery.model); 734 735 // List financing links only pass ?stock= â never reuse a prior VDP's 736 // year/make/model from sessionStorage for those clicks. 737 if (stockOnlyUrl) { 738 if (fromStore.stock && stocksMatch(fromQuery.stock, fromStore.stock)) { 739 // Same unit was viewed on a detail page earlier â extras are OK 740 } else { 741 ignoredStorage = true; 742 fromStore = {}; 743 try { 744 sessionStorage.removeItem(STORAGE_KEY); 745 } catch (e) { 746 /* ignore */ 747 } 748 } 749 } else if ( 750 fromQuery.stock && 751 fromStore.stock && 752 !stocksMatch(fromQuery.stock, fromStore.stock) 753 ) { 754 console.log( 755 'HondaWS - URL stock differs from storage; ignoring storage', 756 fromQuery.stock, 757 fromStore.stock 758 ); 759 ignoredStorage = true; 760 fromStore = {}; 761 try { 762 sessionStorage.removeItem(STORAGE_KEY); 763 } catch (e) { 764 /* ignore */ 765 } 766 } 767 768 if (stockOnlyUrl && ignoredStorage) { 769 console.log( 770 'HondaWS - stock-only financing URL; ignoring unrelated storage', 771 fromQuery.stock 772 ); 773 } 774 775 return { 776 ignoredStorage: ignoredStorage, 777 stock: fromQuery.stock || fromStore.stock || fromRef.stock || '', 778 year: fromQuery.year || fromStore.year || '', 779 make: fromQuery.make || fromStore.make || '', 780 model: fromQuery.model || fromStore.model || '', 781 condition: fromQuery.condition || fromStore.condition || '' 782 }; 783 } 784 785 function appendVehicleToFinancingLinks(info) { 786 if (!hasVehicleData(info)) return; 787 try { 788 var links = document.querySelectorAll('a[href*="get_financing_with_us"]'); 789 for (var i = 0; i < links.length; i++) { 790 var a = links[i]; 791 try { 792 var url = new URL(a.href, window.location.origin); 793 if (info.stock && !url.searchParams.get('stock')) { 794 url.searchParams.set('stock', info.stock); 795 } 796 if (info.year && !url.searchParams.get('year')) { 797 url.searchParams.set('year', info.year); 798 } 799 if (info.make && !url.searchParams.get('make')) { 800 url.searchParams.set('make', info.make); 801 } 802 if (info.model && !url.searchParams.get('model')) { 803 url.searchParams.set('model', info.model); 804 } 805 if (info.condition && !url.searchParams.get('condition')) { 806 url.searchParams.set('condition', info.condition); 807 } 808 a.href = url.pathname + url.search + url.hash; 809 } catch (e) { 810 /* skip bad href */ 811 } 812 } 813 } catch (e) { 814 console.warn('HondaWS - Error updating financing links:', e); 815 } 816 } 817 818 function findField(name) { 819 return ( 820 document.querySelector('#custom-lead-form-5 [name="' + name + '"]') || 821 document.querySelector('[name="' + name + '"]') 822 ); 823 } 824 825 function setFieldValue(name, value, overwrite) { 826 try { 827 var field = findField(name); 828 if (!field) return false; 829 var current = String(field.value || '').trim(); 830 if (!overwrite && current) return false; 831 if (!value && !overwrite) return false; 832 field.value = value || ''; 833 try { 834 field.dispatchEvent(new Event('input', { bubbles: true })); 835 field.dispatchEvent(new Event('change', { bubbles: true })); 836 } catch (e) { 837 /* older browsers */ 838 } 839 return true; 840 } catch (e) { 841 console.warn('HondaWS - Error filling field', name, e); 842 return false; 843 } 844 } 845 846 function clearVehicleFieldsExceptStock() { 847 setFieldValue(FIELD_MAP.year, '', true); 848 setFieldValue(FIELD_MAP.make, '', true); 849 setFieldValue(FIELD_MAP.model, '', true); 850 setFieldValue(FIELD_MAP.condition, '', true); 851 } 852 853 function fillFinancingForm(info) { 854 if (!hasVehicleData(info)) return; 855 856 var query = vehicleFromQuery(); 857 var stockField = findField(FIELD_MAP.stock); 858 var existingStock = stockField ? trim(stockField.value) : ''; 859 860 // List links often only pass ?stock= â wipe stale VDP year/make/model first 861 if ( 862 info.ignoredStorage || 863 (query.stock && existingStock && !stocksMatch(query.stock, existingStock)) 864 ) { 865 clearVehicleFieldsExceptStock(); 866 } 867 868 var filled = []; 869 if (query.stock) { 870 // URL stock always wins over whatever is already in the field
871 if (setFieldValue(FIELD_MAP.stock, info.stock, true)) filled.push('stock'); 872 } else if (setFieldValue(FIELD_MAP.stock, info.stock, false)) { 873 filled.push('stock'); 874 } 875 876 if (info.year) { 877 if (setFieldValue(FIELD_MAP.year, info.year, !!info.ignoredStorage)) filled.push('year'); 878 } 879 if (info.make) { 880 if (setFieldValue(FIELD_MAP.make, info.make, !!info.ignoredStorage)) filled.push('make'); 881 } 882 if (info.model) { 883 if (setFieldValue(FIELD_MAP.model, info.model, !!info.ignoredStorage)) filled.push('model'); 884 } 885 if (info.condition) { 886 if (setFieldValue(FIELD_MAP.condition, info.condition, !!info.ignoredStorage)) { 887 filled.push('condition'); 888 } 889 } 890 891 if (filled.length || info.ignoredStorage) { 892 console.log( 893 'HondaWS - filled financing vehicle fields', 894 filled.join(', ') || '(cleared stale)', 895 info 896 ); 897 } 898 } 899 900 runWhenDomReady(function () { 901 try { 902 var path = (window.location.pathname || '').toLowerCase(); 903 var onFinancing = path.indexOf('get_financing_with_us') !== -1; 904 905 // Inventory grids: put each card's real stock on its financing link 906 fixListFinancingLinks(); 907 908 var vehicle = readVehicleOnPage(); 909 if (hasVehicleData(vehicle) && !isListPage()) { 910 saveVehicle(vehicle); 911 appendVehicleToFinancingLinks(vehicle); 912 } 913 914 if (!onFinancing) return; 915 916 var info = mergeVehicle(); 917 if (!hasVehicleData(info) && !info.ignoredStorage) return; 918 919 if (info.ignoredStorage) { 920 try { 921 sessionStorage.setItem( 922 STORAGE_KEY, 923 JSON.stringify({ 924 stock: info.stock || '', 925 year: info.year || '', 926 make: info.make || '', 927 model: info.model || '', 928 condition: info.condition || '' 929 }) 930 ); 931 } catch (e) { 932 /* ignore */ 933 } 934 } else { 935 saveVehicle(info); 936 } 937 938 fillFinancingForm(info); 939 } catch (e) { 940 console.warn('HondaWS - financing vehicle autofill error', e); 941 } 942 }); 943})(); 944 945(function initHondaWSTracking() { 946 try { 947 if (window.hondaWSTrackingInitialized) { 948 console.warn('HondaWS - Tracking already initialized'); 949 return; 950 } 951 window.hondaWSTrackingInitialized = true; 952 var GA4_NEW = 'G-QCPXSDZTCB'; 953 var GA4_LIVE = 'G-CWY2MM28TX'; 954 var GOOGLE_ADS = 'AW-1008508505'; 955 var GOOGLE_ADS_CREDIT_APP = 'AW-1008508505/e7epCIq-nGwQ2bzy4AM'; 956 var GOOGLE_ADS_REMARKETING = 'AW-965912728'; 957 var UA_LEGACY = 'UA-8818191-5'; 958 var FB_PIXEL_ID = '178332946031680'; 959 var MAUTIC_SRC = 'https://market.hondaws.com/mtc.js'; 960 // ----- Google (gtag): GA4, Ads, remarketing, legacy UA ----- 961 (function initGoogleTags() { 962 try { 963 window.dataLayer = window.dataLayer || []; 964 var gtagAlreadyPresent = typeof window.gtag === 'function'; 965 if (!gtagAlreadyPresent) { 966 window.gtag = function () { 967 window.dataLayer.push(arguments); 968 }; 969 window.gtag('js', new Date()); 970 var gaScript = document.createElement('script'); 971 gaScript.async = true; 972 gaScript.src = 973 'https://www.googletagmanager.com/gtag/js?id=' + GOOGLE_ADS; 974 var firstScript = document.getElementsByTagName('script')[0]; 975 if (firstScript && firstScript.parentNode) { 976 firstScript.parentNode.insertBefore(gaScript, firstScript); 977 } else { 978 (document.head || document.documentElement).appendChild( 979 gaScript 980 ); 981 } 982 } 983 window.gtag('config', GA4_NEW); 984 window.gtag('config', GA4_LIVE); 985 window.gtag('config', GOOGLE_ADS); 986 window.gtag('config', GOOGLE_ADS_REMARKETING); 987 window.gtag('config', UA_LEGACY); 988 } catch (e) { 989 console.warn('HondaWS - Error initializing Google tags:', e); 990 } 991 })(); 992 // ----- Facebook Pixel ----- 993 (function initFacebookPixel() { 994 try { 995 if (window.fbq) return; 996 var n; 997 n = window.fbq = function () { 998 n.callMethod 999 ? n.callMethod.apply(n, arguments) 1000 : n.queue.push(arguments); 1001 }; 1002 if (!window._fbq) window._fbq = n; 1003 n.push = n; 1004 n.loaded = true; 1005 n.version = '2.0'; 1006 n.queue = []; 1007 var t = document.createElement('script'); 1008 t.async = true; 1009 t.src = 'https://connect.facebook.net/en_US/fbevents.js'; 1010 var s = document.getElementsByTagName('script')[0]; 1011 if (s && s.parentNode) { 1012 s.parentNode.insertBefore(t, s); 1013 } else { 1014 (document.head || document.documentElement).appendChild(t); 1015 } 1016 fbq('init', FB_PIXEL_ID); 1017 fbq('track', 'PageView'); 1018 } catch (e) { 1019 console.warn('HondaWS - Error initializing Facebook Pixel:', e); 1020 } 1021 })(); 1022 // ----- Mautic ----- 1023 (function initMauticTracking() { 1024 try { 1025 (function (w, d, t, u, n, a, m) { 1026 w['MauticTrackingObject'] = n; 1027 w[n] = 1028 w[n] || 1029 function () { 1030 (w[n].q = w[n].q || []).push(arguments); 1031 }; 1032 a = d.createElement(t); 1033 m = d.getElementsByTagName(t)[0]; 1034 a.async = 1; 1035 a.src = u; 1036 if (m && m.parentNode) { 1037 m.parentNode.insertBefore(a, m); 1038 } else { 1039 (d.head || d.documentElement).appendChild(a); 1040 } 1041 })(window, document, 'script', MAUTIC_SRC, 'mt'); 1042 } catch (e) { 1043 console.warn('HondaWS - Error initializing Mautic tracking:', e); 1044 } 1045 })(); 1046 function runWhenDomReady(fn) { 1047 if (document.readyState === 'loading') { 1048 document.addEventListener('DOMContentLoaded', fn); 1049 } else { 1050 fn(); 1051 } 1052 } 1053 runWhenDomReady(function () { 1054 function getHondaWSUrlParameter(paramName) { 1055 try { 1056 paramName = paramName.replace(/[[\]]/g, '\\$&'); 1057 var regex = new RegExp('[?&]' + paramName + '(=([^&#]*)|&|#|$)'); 1058 var results = regex.exec(window.location.search); 1059 if (!results) return ''; 1060 if (!results[2]) return ''; 1061 return decodeURIComponent(results[2].replace(/\+/g, ' ')); 1062 } catch (e) { 1063 console.warn('HondaWS - Error parsing URL parameter:', e); 1064 return ''; 1065 } 1066 } 1067 function getFormFieldValue(form, fieldName) { 1068 try { 1069 if (!form || !fieldName) return ''; 1070 var named = form.elements.namedItem(fieldName); 1071 if (named) { 1072 if (named.nodeName) { 1073 return String(named.value || '').trim(); 1074 } 1075 if (named.length && named[0] && named[0].type === 'radio') { 1076 var checked = form.querySelector( 1077 'input[name="' + 1078 fieldName.replace(/\\/g, '\\\\').replace(/"/g, '\\"') + 1079 '"]:checked' 1080 ); 1081 return checked ? String(checked.value || '').trim() : ''; 1082 } 1083 } 1084 var esc = fieldName.replace(/\\/g, '\\\\').replace(/"/g, '\\"'); 1085 var el = form.querySelector('[name="' + esc + '"]'); 1086 if (el && 'value' in el) return String(el.value || '').trim(); 1087 } catch (e) { 1088 console.warn('HondaWS - Error reading form field:', fieldName, e); 1089 } 1090 return ''; 1091 } 1092 function getStockNumber() { 1093 try { 1094 var ds = document.querySelector(
1095 '.liUnit.LiInvstock-number .spnUnitValue' 1096 ); 1097 if (ds && ds.textContent.trim()) return ds.textContent.trim(); 1098 var hidden = document.querySelector( 1099 'input[name="stock_number"][value]:not([value=""])' 1100 ); 1101 if (hidden && hidden.value) return String(hidden.value).trim(); 1102 var labeled = document.body && document.body.innerText 1103 ? document.body.innerText.match(/Stock\s*#\s*:\s*([A-Za-z0-9._-]+)/i) 1104 : null; 1105 if (labeled && labeled[1]) return labeled[1]; 1106 var path = (window.location.pathname || '').replace(/\/+$/, ''); 1107 var last = path.split('/').pop() || ''; 1108 if (/^[A-Za-z0-9._-]{4,}$/.test(last) && /For_Sale|majorunit|inventory/i.test(path)) { 1109 return last; 1110 } 1111 } catch (e) { 1112 console.warn('HondaWS - Error reading stock number:', e); 1113 } 1114 return ''; 1115 } 1116 function sendMauticPageview(email, firstname, lastname) { 1117 try { 1118 if (typeof window.mt !== 'function') return; 1119 var trackingData = {}; 1120 if (email && email.trim() !== '') trackingData.email = email.trim(); 1121 if (firstname && firstname.trim() !== '') trackingData.firstname = firstname.trim(); 1122 if (lastname && lastname.trim() !== '') trackingData.lastname = lastname.trim(); 1123 if (Object.keys(trackingData).length > 0) { 1124 mt('send', 'pageview', trackingData); 1125 } else { 1126 mt('send', 'pageview'); 1127 } 1128 } catch (e) { 1129 console.warn('HondaWS - Error sending Mautic tracking event:', e); 1130 } 1131 } 1132 function sendMauticFormSubmitEvent(email, firstname, lastname, form) { 1133 try { 1134 if (typeof window.mt !== 'function') return; 1135 var data = {}; 1136 if (email && email.trim() !== '') data.email = email.trim(); 1137 if (firstname && firstname.trim() !== '') data.firstname = firstname.trim(); 1138 if (lastname && lastname.trim() !== '') data.lastname = lastname.trim(); 1139 var baseUrl = window.location.href.split('#')[0]; 1140 data.page_url = baseUrl + '#mautic-lead-form-submit'; 1141 data.page_title = 'Lead form submitted'; 1142 if (form && (form.name || form.id)) { 1143 data.page_title += ' (' + (form.name || form.id) + ')'; 1144 } 1145 data.tags = 'lead-form-submit'; 1146 mt('send', 'pageview', data); 1147 } catch (e) { 1148 console.warn('HondaWS - Error sending Mautic form submit event:', e); 1149 } 1150 } 1151 function getFormName(form) { 1152 try { 1153 var fromField = getFormFieldValue(form, 'form_name'); 1154 if (fromField) return fromField; 1155 if (form && form.name) return String(form.name).trim(); 1156 } catch (e) { 1157 console.warn('HondaWS - Error reading form_name:', e); 1158 } 1159 return ''; 1160 } 1161 function isGoogleAdsCreditAppForm(formName) { 1162 return ( 1163 formName === 'get_a_quote' || 1164 formName === 'Credit Application Form' 1165 ); 1166 } 1167 var lastCreditAppConversionAt = 0; 1168 var lastGaLeadAt = 0; 1169 function sendGoogleAnalyticsLeadEvent(formName, extra) { 1170 try { 1171 var now = Date.now(); 1172 if (now - lastGaLeadAt < 2000) return; 1173 lastGaLeadAt = now; 1174 var params = extra && typeof extra === 'object' ? extra : {}; 1175 if (formName) params.form_name = formName; 1176 if (typeof window.gtag === 'function') { 1177 window.gtag('event', 'form_submit', params); 1178 window.gtag('event', 'generate_lead', params); 1179 console.log( 1180 'HondaWS - GA4 generate_lead sent', 1181 formName || '(no form_name)' 1182 ); 1183 return; 1184 } 1185 if (typeof window.ga === 'function') { 1186 window.ga( 1187 'send', 1188 'event', 1189 'Form', 1190 'submit', 1191 formName || 'form' 1192 ); 1193 } 1194 } catch (e) { 1195 console.warn( 1196 'HondaWS - Error sending Google Analytics lead event:', 1197 e 1198 ); 1199 } 1200 } 1201 function recordSuccessfulEnquiry(formName, extra) { 1202 sendGoogleAnalyticsLeadEvent(formName, extra); 1203 if (isGoogleAdsCreditAppForm(formName)) { 1204 sendGoogleAdsCreditAppConversion(); 1205 } 1206 } 1207 function sendGoogleAdsCreditAppConversion() { 1208 try { 1209 var now = Date.now(); 1210 if (now - lastCreditAppConversionAt < 2000) return; 1211 lastCreditAppConversionAt = now; 1212 if (typeof window.gtag === 'function') { 1213 var callbackLogged = false; 1214 window.gtag('event', 'conversion', { 1215 send_to: GOOGLE_ADS_CREDIT_APP, 1216 event_callback: function () { 1217 if (callbackLogged) return; 1218 callbackLogged = true; 1219 console.log( 1220 'HondaWS - Google Ads conversion callback', 1221 GOOGLE_ADS_CREDIT_APP 1222 ); 1223 }, 1224 event_timeout: 2000 1225 }); 1226 } 1227 var adsId = String(GOOGLE_ADS).replace(/^AW-/, ''); 1228 var label = GOOGLE_ADS_CREDIT_APP.split('/')[1] || ''; 1229 var pixel = new Image(1, 1); 1230 pixel.src = 1231 'https://www.googleadservices.com/pagead/conversion/' + 1232 adsId + 1233 '/?label=' + 1234 encodeURIComponent(label) + 1235 '&guid=ON&script=0&ord=' + 1236 now; 1237 console.log( 1238 'HondaWS - Google Ads Credit App conversion sent', 1239 GOOGLE_ADS_CREDIT_APP 1240 ); 1241 } catch (e) { 1242 console.warn('HondaWS - Error sending Google Ads Credit App conversion:', e); 1243 } 1244 } 1245 function formNameFromAjaxData(data) { 1246 try { 1247 if (!data) return ''; 1248 if (typeof data === 'string') { 1249 var match = data.match(/(?:^|&)form_name=([^&]*)/); 1250 return match 1251 ? decodeURIComponent(match[1].replace(/\+/g, ' ')) 1252 : ''; 1253 } 1254 if (typeof FormData !== 'undefined' && data instanceof FormData) { 1255 var value = data.get('form_name'); 1256 return value ? String(value) : ''; 1257 } 1258 if (typeof data === 'object' && data.form_name) { 1259 return String(data.form_name); 1260 } 1261 } catch (e) { 1262 console.warn('HondaWS - Error parsing AJAX form_name:', e); 1263 } 1264 return ''; 1265 } 1266 function wrapSubmitEnquiryFormModal() { 1267 try { 1268 var original = window.submitEnquiryFormModal; 1269 if (typeof original !== 'function') return false; 1270 if (original._hondaWSCreditAppWrapped) return true; 1271 window.submitEnquiryFormModal = function ( 1272 modalId, 1273 url, 1274 successCallback 1275 ) { 1276 var formName = ''; 1277 try { 1278 var root = document.getElementById(modalId); 1279 var form = root 1280 ? root.querySelector('form') 1281 : document.querySelector('#' + modalId + ' form'); 1282 formName = getFormName(form); 1283 } catch (e) { 1284 console.warn( 1285 'HondaWS - Error reading quote form_name:', 1286 e 1287 ); 1288 } 1289 var wrappedSuccess = function () { 1290 recordSuccessfulEnquiry(formName); 1291 if (typeof successCallback === 'function') { 1292 return successCallback.apply(this, arguments); 1293 } 1294 }; 1295 return original.call(this, modalId, url, wrappedSuccess); 1296 }; 1297 window.submitEnquiryFormModal._hondaWSCreditAppWrapped = true; 1298 return true; 1299 } catch (e) { 1300 console.warn( 1301 'HondaWS - Error wrapping submitEnquiryFormModal:', 1302 e 1303 ); 1304 return false; 1305 } 1306 } 1307 function hookProductEnquiryXHR() { 1308 try { 1309 if (XMLHttpRequest.prototype._hondaWSProductEnquiryHooked) { 1310 return; 1311 } 1312 XMLHttpRequest.prototype._hondaWSProductEnquiryHooked = true; 1313 var origOpen = XMLHttpRequest.prototype.open; 1314 var origSend = XMLHttpRequest.prototype.send; 1315 XMLHttpRequest.prototype.open = function (method, url) { 1316 this._hondaWSUrl = url == null ? '' : String(url); 1317 return origOpen.apply(this, arguments); 1318 }; 1319 XMLHttpRequest.prototype.send = function (body) { 1320 try { 1321 var url = this._hondaWSUrl || ''; 1322 if (url.indexOf('productEnquiry') !== -1) { 1323 var formName = formNameFromAjaxData(body); 1324 var xhr = this; 1325 this.addEventListener('load', function () { 1326 try { 1327 var res = null; 1328 try { 1329 res = JSON.parse(xhr.responseText); 1330 } catch (parseErr) { 1331 res = null; 1332 } 1333 if (res && res.success === false) return; 1334 recordSuccessfulEnquiry(formName); 1335 } catch (e) { 1336 console.warn( 1337 'HondaWS - Error on productEnquiry XHR load:', 1338 e 1339 ); 1340 } 1341 }); 1342 } 1343 } catch (e) { 1344 console.warn( 1345 'HondaWS - Error hooking productEnquiry XHR:', 1346 e 1347 ); 1348 } 1349 return origSend.apply(this, arguments); 1350 }; 1351 } catch (e) { 1352 console.warn('HondaWS - Error installing XHR hook:', e); 1353 } 1354 } 1355 function bindProductEnquiryConversion() { 1356 try { 1357 if (typeof window.jQuery !== 'function') return; 1358 window.jQuery(document).ajaxSuccess(function (event, xhr, settings) { 1359 try { 1360 if (
1361 !settings || 1362 !settings.url || 1363 String(settings.url).indexOf('productEnquiry') === -1 1364 ) { 1365 return; 1366 } 1367 var body = xhr && xhr.responseJSON; 1368 if (!body && xhr && xhr.responseText) { 1369 try { 1370 body = JSON.parse(xhr.responseText); 1371 } catch (parseErr) { 1372 body = null; 1373 } 1374 } 1375 if (body && body.success === false) return; 1376 var formName = formNameFromAjaxData(settings.data); 1377 recordSuccessfulEnquiry(formName); 1378 } catch (e) { 1379 console.warn( 1380 'HondaWS - Error handling productEnquiry conversion:', 1381 e 1382 ); 1383 } 1384 }); 1385 } catch (e) { 1386 console.warn('HondaWS - Error binding productEnquiry conversion:', e); 1387 } 1388 } 1389 function sendGoogleAnalyticsFormSubmitEvent(form) { 1390 try { 1391 var formName = getFormName(form); 1392 var params = {}; 1393 if (form.id) params.form_id = form.id; 1394 if (form.action) params.form_action = form.action; 1395 params.form_method = String(form.method || 'get').toLowerCase(); 1396 sendGoogleAnalyticsLeadEvent(formName, params); 1397 } catch (e) { 1398 console.warn('HondaWS - Error sending Google Analytics form event:', e); 1399 } 1400 } 1401 // Catalog feed ids are MD5(stock number) as lowercase hex. Web Crypto has no MD5. 1402 function md5Hex(value) { 1403 function add(x, y) { 1404 var lsw = (x & 0xffff) + (y & 0xffff); 1405 var msw = (x >>> 16) + (y >>> 16) + (lsw >>> 16); 1406 return (msw << 16) | (lsw & 0xffff); 1407 } 1408 function rol(x, n) { 1409 return (x << n) | (x >>> (32 - n)); 1410 } 1411 function cmn(q, a, b, x, s, t) { 1412 return add(rol(add(add(a, q), add(x, t)), s), b); 1413 } 1414 function ff(a, b, c, d, x, s, t) { 1415 return cmn((b & c) | (~b & d), a, b, x, s, t); 1416 } 1417 function gg(a, b, c, d, x, s, t) { 1418 return cmn((b & d) | (c & ~d), a, b, x, s, t); 1419 } 1420 function hh(a, b, c, d, x, s, t) { 1421 return cmn(b ^ c ^ d, a, b, x, s, t); 1422 } 1423 function ii(a, b, c, d, x, s, t) { 1424 return cmn(c ^ (b | ~d), a, b, x, s, t); 1425 } 1426 function wordToHex(n) { 1427 var out = ''; 1428 var t; 1429 for (t = 0; t < 4; t++) { 1430 out += ((n >> (t * 8 + 4)) & 0xf).toString(16); 1431 out += ((n >> (t * 8)) & 0xf).toString(16); 1432 } 1433 return out; 1434 } 1435 var utf8 = unescape(encodeURIComponent(String(value))); 1436 var len = utf8.length; 1437 var words = new Array((((len + 8) >> 6) + 1) * 16); 1438 var i; 1439 for (i = 0; i < words.length; i++) words[i] = 0; 1440 for (i = 0; i < len; i++) { 1441 words[i >> 2] |= utf8.charCodeAt(i) << ((i % 4) * 8); 1442 } 1443 words[len >> 2] |= 0x80 << ((len % 4) * 8); 1444 words[(((len + 8) >> 6) << 4) + 14] = len * 8; 1445 var a = 1732584193; 1446 var b = -271733879; 1447 var c = -1732584194; 1448 var d = 271733878; 1449 for (i = 0; i < words.length; i += 16) { 1450 var aa = a; 1451 var bb = b; 1452 var cc = c; 1453 var dd = d; 1454 a = ff(a, b, c, d, words[i + 0], 7, -680876936); 1455 d = ff(d, a, b, c, words[i + 1], 12, -389564586); 1456 c = ff(c, d, a, b, words[i + 2], 17, 606105819); 1457 b = ff(b, c, d, a, words[i + 3], 22, -1044525330); 1458 a = ff(a, b, c, d, words[i + 4], 7, -176418897);
1459 d = ff(d, a, b, c, words[i + 5], 12, 1200080426); 1460 c = ff(c, d, a, b, words[i + 6], 17, -1473231341); 1461 b = ff(b, c, d, a, words[i + 7], 22, -45705983); 1462 a = ff(a, b, c, d, words[i + 8], 7, 1770035416); 1463 d = ff(d, a, b, c, words[i + 9], 12, -1958414417); 1464 c = ff(c, d, a, b, words[i + 10], 17, -42063); 1465 b = ff(b, c, d, a, words[i + 11], 22, -1990404162); 1466 a = ff(a, b, c, d, words[i + 12], 7, 1804603682); 1467 d = ff(d, a, b, c, words[i + 13], 12, -40341101); 1468 c = ff(c, d, a, b, words[i + 14], 17, -1502002290); 1469 b = ff(b, c, d, a, words[i + 15], 22, 1236535329); 1470 a = gg(a, b, c, d, words[i + 1], 5, -165796510); 1471 d = gg(d, a, b, c, words[i + 6], 9, -1069501632); 1472 c = gg(c, d, a, b, words[i + 11], 14, 643717713); 1473 b = gg(b, c, d, a, words[i + 0], 20, -373897302); 1474 a = gg(a, b, c, d, words[i + 5], 5, -701558691); 1475 d = gg(d, a, b, c, words[i + 10], 9, 38016083); 1476 c = gg(c, d, a, b, words[i + 15], 14, -660478335); 1477 b = gg(b, c, d, a, words[i + 4], 20, -405537848); 1478 a = gg(a, b, c, d, words[i + 9], 5, 568446438); 1479 d = gg(d, a, b, c, words[i + 14], 9, -1019803690); 1480 c = gg(c, d, a, b, words[i + 3], 14, -187363961); 1481 b = gg(b, c, d, a, words[i + 8], 20, 1163531501); 1482 a = gg(a, b, c, d, words[i + 13], 5, -1444681467); 1483 d = gg(d, a, b, c, words[i + 2], 9, -51403784); 1484 c = gg(c, d, a, b, words[i + 7], 14, 1735328473); 1485 b = gg(b, c, d, a, words[i + 12], 20, -1926607734); 1486 a = hh(a, b, c, d, words[i + 5], 4, -378558); 1487 d = hh(d, a, b, c, words[i + 8], 11, -2022574463); 1488 c = hh(c, d, a, b, words[i + 11], 16, 1839030562); 1489 b = hh(b, c, d, a, words[i + 14], 23, -35309556); 1490 a = hh(a, b, c, d, words[i + 1], 4, -1530992060); 1491 d = hh(d, a, b, c, words[i + 4], 11, 1272893353); 1492 c = hh(c, d, a, b, words[i + 7], 16, -155497632); 1493 b = hh(b, c, d, a, words[i + 10], 23, -1094730640); 1494 a = hh(a, b, c, d, words[i + 13], 4, 681279174); 1495 d = hh(d, a, b, c, words[i + 0], 11, -358537222); 1496 c = hh(c, d, a, b, words[i + 3], 16, -722521979); 1497 b = hh(b, c, d, a, words[i + 6], 23, 76029189); 1498 a = hh(a, b, c, d, words[i + 9], 4, -640364487); 1499 d = hh(d, a, b, c, words[i + 12], 11, -421815835); 1500 c = hh(c, d, a, b, words[i + 15], 16, 530742520); 1501 b = hh(b, c, d, a, words[i + 2], 23, -995338651); 1502 a = ii(a, b, c, d, words[i + 0], 6, -198630844); 1503 d = ii(d, a, b, c, words[i + 7], 10, 1126891415); 1504 c = ii(c, d, a, b, words[i + 14], 15, -1416354905); 1505 b = ii(b, c, d, a, words[i + 5], 21, -57434055); 1506 a = ii(a, b, c, d, words[i + 12], 6, 1700485571); 1507 d = ii(d, a, b, c, words[i + 3], 10, -1894986606); 1508 c = ii(c, d, a, b, words[i + 10], 15, -1051523); 1509 b = ii(b, c, d, a, words[i + 1], 21, -2054922799); 1510 a = ii(a, b, c, d, words[i + 8], 6, 1873313359); 1511 d = ii(d, a, b, c, words[i + 15], 10, -30611744); 1512 c = ii(c, d, a, b, words[i + 6], 15, -1560198380); 1513 b = ii(b, c, d, a, words[i + 13], 21, 1309151649); 1514 a = ii(a, b, c, d, words[i + 4], 6, -145523070); 1515 d = ii(d, a, b, c, words[i + 11], 10, -1120210379); 1516 c = ii(c, d, a, b, words[i + 2], 15, 718787259); 1517 b = ii(b, c, d, a, words[i + 9], 21, -343485551); 1518 a = add(a, aa); 1519 b = add(b, bb); 1520 c = add(c, cc); 1521 d = add(d, dd); 1522 } 1523 return wordToHex(a) + wordToHex(b) + wordToHex(c) + wordToHex(d); 1524 } 1525 function sendFacebookViewContent() { 1526 try { 1527 if (typeof window.fbq !== 'function') return; 1528 var stock = getStockNumber(); 1529 var payload = { content_type: 'product' }; 1530 if (stock) { 1531 payload.content_ids = [md5Hex(stock)]; 1532 payload.stock_number = stock; 1533 } 1534 fbq('track', 'ViewContent', payload); 1535 } catch (e) { 1536 console.warn('HondaWS - Error sending Facebook ViewContent:', e); 1537 } 1538 } 1539 function sendFacebookLead(form) { 1540 try { 1541 if (typeof window.fbq !== 'function') return; 1542 var payload = { content_name: 'lead_form' }; 1543 if (form && (form.id || form.name)) { 1544 payload.content_name = form.id || form.name; 1545 } 1546 fbq('track', 'Lead', payload); 1547 } catch (e) { 1548 console.warn('HondaWS - Error sending Facebook Lead:', e); 1549 } 1550 } 1551 try { 1552 var email = 1553 getHondaWSUrlParameter('email') || 1554 getHondaWSUrlParameter('real_email') || 1555 getHondaWSUrlParameter('e') || 1556 ''; 1557 var firstname = 1558 getHondaWSUrlParameter('firstName') || getHondaWSUrlParameter('f') || ''; 1559 var lastname = 1560 getHondaWSUrlParameter('lastName') || getHondaWSUrlParameter('l') || ''; 1561 sendMauticPageview(email, firstname, lastname); 1562 } catch (e) { 1563 console.warn('HondaWS - Error getting user data from URL:', e); 1564 sendMauticPageview('', '', ''); 1565 } 1566 sendFacebookViewContent(); 1567 hookProductEnquiryXHR(); 1568 bindProductEnquiryConversion(); 1569 wrapSubmitEnquiryFormModal(); 1570 var wrapAttempts = 0; 1571 var wrapTimer = setInterval(function () { 1572 wrapAttempts += 1; 1573 if (wrapSubmitEnquiryFormModal() || wrapAttempts >= 50) { 1574 clearInterval(wrapTimer); 1575 } 1576 }, 100); 1577 document.addEventListener( 1578 'submit', 1579 function (ev) { 1580 try { 1581 var form = ev.target; 1582 if (!form || form.nodeName !== 'FORM') return; 1583 var formName = getFormName(form); 1584 if (isGoogleAdsCreditAppForm(formName)) { 1585 sendGoogleAdsCreditAppConversion(); 1586 } 1587 var email = 1588 getFormFieldValue(form, 'email') || 1589 getFormFieldValue(form, 'real_email'); 1590 var firstname = getFormFieldValue(form, 'firstName'); 1591 var lastname = getFormFieldValue(form, 'lastName'); 1592 if (!email && !firstname && !lastname) return; 1593 sendGoogleAnalyticsFormSubmitEvent(form); 1594 sendFacebookLead(form); 1595 sendMauticFormSubmitEvent(email, firstname, lastname, form); 1596 } catch (e) { 1597 console.warn('HondaWS - Error handling form submit for tracking:', e); 1598 } 1599 }, 1600 true 1601 ); 1602 }); 1603 } catch (e) { 1604 console.warn('HondaWS - Error during initialization check:', e); 1605 } 1606})(); 1607</script>
1607 1608 1609 <!-- <input type="hidden" class="page_id" value="520"> --> 1610 <input type="hidden" class="page_id" value="520"> 1611 1612 1613 <!-- WRAPPER ==============================================================================--> 1614 <div class="wrap"> 1615 1616 <link rel="stylesheet" href="https://www.hondaws.com/qatesting/newassets/stylesheet/style.css" /> 1617 <link rel="stylesheet" href="https://www.hondaws.com/qatesting/newassets/stylesheet/custom.css" /> 1618 <!-- <link rel="stylesheet" href="" /> --> 1619 <link rel="stylesheet" href="https://www.hondaws.com/flexible_templates_style.css?v=1790869119" /> 1620 1621 1622<link rel="preconnect" href="https://fonts.googleapis.com"> 1623<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> 1624<link href="https://fonts.googleapis.com/css2?family=Palanquin+Dark:wght@400;500;600;700&display=swap" rel="stylesheet"> 1625<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap" rel="stylesheet"> 1626 1627<div class="combine_header"> 1628 <div class="top_header --transition-ease"> 1629 <div class="container-fluid"> 1630 <div class="top_header_flex mobile_hide hidden-md hidden-sm hidden-xs"> 1631 <div class="top_header_left"> 1632 <div class="header_contact_bar"> 1633 <div class="header_contact_inner"><a class="header_phone" href="tel:3367650330"><span><!-- <i class="fa fa-phone"> </i> -->3367650330 <span class="text_with_phone">- Call Today! </span></span></a></div> 1634 <!-- <div class="header_contact_inner"> <a class="header_email" href="mailto:"><span><i class="fa fa-envelope"> </i> </span></a></div> --> 1635 </div> 1636 </div> 1637 1638 <div class="top_header_right"> 1639 <div class="float-right"> 1640 </div> 1641 1642 <div class="float-right"><div class="header_search_design"><div class="searchHolder search-one"> 1643 <form action="https://www.hondaws.com/shopping/productlist" method="post" id="moto_search" class="form_standard moto_search_form"> 1644 <input id="search" name="search" placeholder="Search Parts and Apparel" class="search-bx" style="float:left;" /> 1645 <a href="javascript:void(0);" class="goBtn_b">Go!</a> 1646 </form> 1647 <div class="clear"></div> 1648</div> 1649
1650<script type="application/javascript"> 1651 (function() { 1652 1653 1654 var fixLanguage = function() { 1655 1656 var $b = "search"; 1657 if ($b == 'mu_search') { 1658 $(".form_standard.moto_search_form .search-bx").attr("name", "search_keywords"); 1659 var $x = $(".form_standard.moto_search_form"); 1660 console.log('fixing Search Function'); 1661 $x.attr("action", "/Motorcycle_List?filterChange=1"); 1662 1663 $x.attr("method", "post"); 1664 } 1665 }; 1666 1667 try { 1668 fixLanguage(); 1669 } catch(err) { 1670 console.log("Error: " + err); 1671 } 1672 1673 $(document).on("ready", fixLanguage); 1674 1675 })(); 1676 1677 </script>
1677 1678 1679 1680</div></div> 1681 1682 <div class="float-right"> 1683 <div class="header_shopping_area"> 1684 <!---<a href="/shopping/cart"> 1685 <div class="cart_text"> <i class="fa fa-shopping-cart"> </i>CART </div> 1686 </a>---> 1687 </div> 1688 </div> 1689 1690 <div class="float-right"> 1691 <div class="auth_dropdown"> 1692 <div class="btn-group hidden-md hidden-sm hidden-xs "> 1693 <a class="user_dropdown dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" href="javascript:void(0)" class="vp-btn"><i class="fa fa-user"></i> ACCOUNT <span class="caret"></span></a> 1694 1695 <ul class="dropdown-menu dropdown-menu-right"> 1696 <li> 1697 <a class="login_btn_link" href="javascript:void(0);" onclick="openLogin();"> 1698 Login</a> 1699 1700 <a class="login_btn_link" href="javascript:void(0);" onclick="openLogin();"> 1701 Create Account</a> 1702 </li> 1703 </ul> 1704 </div> 1705 </div> 1706 </div> 1707 </div> 1708 </div> 1709 </div> 1710 </div> 1711 1712 <header class="themeheader --transition-ease"> 1713 <div class="header_first_bar"> 1714 <div class="container"> 1715 1716 <div class="header_logo_area_flex"> 1717 <div class="header_logo_area"> 1718 <a href="/" class=""> 1719 <img src="/logo.png" alt="Honda of Winston Salem" title="Honda of Winston Salem"> 1720<style>img[src$="/logo.png"]{transform:scale(1.2);transform-origin:bottom center;position:relative;z-index:1000;}@media(min-width:992px){img[src$="/logo.png"]{transform:scale(1.5);}}</style> 1721 </a> 1722 </div> 1723 </div> 1724 1725 1726 </div> 1727 </div> 1728 1729 <div class="header_scnd_bar mobile_hide"> 1730 <div class="navigation_bar_main hidden-md hidden-sm hidden-xs"> 1731 <div class="navigation_bar"> 1732 <div class="container"> 1733 <div class="header_nav_area"> 1734 <div class="dynamic-nav"> 1735 <div class="dynamic-nav-wrapper"> 1736 <div class="dynamicNav" style="background-color:#000000;color:#ffffff;"> 1737 <div class="dynamicNavCont"> 1738 <ul style="width: 100%; margin: 0 auto; padding: 0px;"> 1739 <li class="bnz-nv"><a class="dynamicTopNavAnchors" href="/" id="" style="color:#ffffff;font-size:16px;" >Home </a> 1740 <span style="color:#ffffff;">|</span> 1741 </li> 1742 <li class="bnz-nv"><a class="dynamicTopNavAnchors" href="javascript:void(0);" id="1" style="color:#ffffff;font-size:16px;" >Current Inventory <i class="fa fa-caret-down" aria-hidden="true"></i></a> 1743 <span style="color:#ffffff;">|</span> 1744 <ul id="nav1" class="active SubNavs" style="display:none;background-color:#05104e;"> 1745 <!--span class="toolTip"></span--> 1746 <li><a href="/New_3-Wheel-Motorcycle_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&vehicles=3+Wheel+Motorcycle&filterChange=1&preserveSearch=1" style="font-size:16px; color:#ffffff; ">Three Wheel</a></li> 1747 <li><a href="/New_ATV_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&vehicles=ATV&filterChange=1&preserveSearch=1" style="font-size:16px; color:#ffffff; ">ATV</a></li> 1748 <li><a href="/New_Side-by-Side_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&vehicles=Side+by+Side&filterChange=1&preserveSearch=1" style="font-size:16px; color:#ffffff; ">Side by Side</a></li> 1749 <li><a href="/New_Watercraft_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&vehicles=Watercraft&filterChange=1&preserveSearch=1" style="font-size:16px; color:#ffffff; ">Watercraft</a></li> 1750 <li><a href="/New_Pontoon_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&vehicles=Pontoon&filterChange=1&preserveSearch=1" style="font-size:16px; color:#ffffff; ">Pontoon</a></li> 1751 <li><a href="/New_Dirt-Bike_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&categories=Dirt+Bike&filterChange=1&preserveSearch=1" style="font-size:16px; color:#ffffff; ">Dirt</a></li> 1752 <li><a href="/New_Generator_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&vehicles=Generator&filterChange=1&preserveSearch=1" style="font-size:16px; color:#ffffff; ">Generator</a></li> 1753 <li><a href="/New_Motorcycle_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&vehicles=Motorcycle&filterChange=1&preserveSearch=1" style="font-size:16px; color:#ffffff; ">Motorcycle</a></li> 1754 <li><a href="/New_Units_For_Sale_Clemmons_NC/Major_Unit_List?filterChange=1&fltr=pre-owned&search_keywords=" style="font-size:16px; color:#ffffff; ">Pre-Owned</a></li> 1755 </ul> 1756 </li> 1757 <li class="bnz-nv"><a class="dynamicTopNavAnchors" href="/parts-atvs-utvs-motorcycles-dealership--parts" id="2" style="color:#ffffff;font-size:16px;" >Parts & Accessories </a>
1758 <span style="color:#ffffff;">|</span> 1759 </li> 1760 <li class="bnz-nv"><a class="dynamicTopNavAnchors" href="/service-repair-atvs-utvs-motorcycles-dealership--service" id="3" style="color:#ffffff;font-size:16px;" >Service </a> 1761 <span style="color:#ffffff;">|</span> 1762 </li> 1763 <li class="bnz-nv"><a class="dynamicTopNavAnchors" href="/showroom" id="4" style="color:#ffffff;font-size:16px;" >Showroom </a> 1764 <span style="color:#ffffff;">|</span> 1765 </li> 1766 <li class="bnz-nv"><a class="dynamicTopNavAnchors" href="/credit-financing-atvs-utvs-motorcycles-dealership--financing" id="5" style="color:#ffffff;font-size:16px;" >Financing </a> 1767 <span style="color:#ffffff;">|</span> 1768 </li> 1769 <li class="bnz-nv"><a class="dynamicTopNavAnchors" href="/aboutus" id="6" style="color:#ffffff;font-size:16px;" >About Us <i class="fa fa-caret-down" aria-hidden="true"></i></a> 1770 <span style="color:#ffffff;">|</span> 1771 <ul id="nav6" class="active SubNavs" style="display:none;background-color:#05104e;"> 1772 <!--span class="toolTip"></span--> 1773 <li><a href="/contactus" style="font-size:16px; color:#ffffff; ">Contact Us</a></li> 1774 <li><a href="/careers-jobs-employment-powersports-vehicles-dealership--xcareers" style="font-size:16px; color:#ffffff; ">Employment</a></li> 1775 </ul> 1776 </li> 1777 1778 </ul> 1779 </div> 1780 </div> 1781 </div> 1782</div> 1783<style type="text/css"> 1784 .dynamicNavCont li a:hover{ 1785 background-color: #05104e; 1786 } 1787 1788</style> 1789<!--script type="text/javascript"> 1790 $(document).ready(function(){ 1791 $(".mobile-menu").on("click",function(){ 1792 $(this).next(".dynamic-nav-wrapper").toggle(); 1793 }); 1794 1795 $(".dynamicNavCont li a").on("click",function(e){ 1796 e.preventDefault(); 1797 if($(this).next(".SubNav").length > 0){ 1798 $(this).next(".SubNav").slideToggle(); 1799 } 1800 }); 1801 }); 1802</script--> 1803 </div> 1804 </div> 1805 </div> 1806 </div> 1807 </div> 1808 </header> 1809 1810 <div class="header_b desktop_hide"> 1811 <div class=""> 1812 <div class="side-hdr"> 1813 <div class="sidebar-menu"> 1814 <span> <i class="fa fa-bars" aria-hidden="true"></i> Menu</span> 1815 <ul class="mb-drpdwn"> 1816 <li><a href="/" id="" >Home </a> 1817 1818 </li> 1819 <li><a class="child-menu-head" href="javascript:void(0);" id="1" >Current Inventory <i class="fa fa-caret-down" aria-hidden="true"></i></a> 1820 1821 <ul class="subnav"> 1822 <!--span class="toolTip"></span--> 1823 <li><a href="/New_3-Wheel-Motorcycle_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&vehicles=3+Wheel+Motorcycle&filterChange=1&preserveSearch=1" >- Three Wheel</a></li> 1824 <li><a href="/New_ATV_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&vehicles=ATV&filterChange=1&preserveSearch=1" >- ATV</a></li> 1825 <li><a href="/New_Side-by-Side_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&vehicles=Side+by+Side&filterChange=1&preserveSearch=1" >- Side by Side</a></li> 1826 <li><a href="/New_Watercraft_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&vehicles=Watercraft&filterChange=1&preserveSearch=1" >- Watercraft</a></li> 1827 <li><a href="/New_Pontoon_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&vehicles=Pontoon&filterChange=1&preserveSearch=1" >- Pontoon</a></li> 1828 <li><a href="/New_Dirt-Bike_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&categories=Dirt+Bike&filterChange=1&preserveSearch=1" >- Dirt</a></li> 1829 <li><a href="/New_Generator_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&vehicles=Generator&filterChange=1&preserveSearch=1" >- Generator</a></li> 1830 <li><a href="/New_Motorcycle_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&vehicles=Motorcycle&filterChange=1&preserveSearch=1" >- Motorcycle</a></li> 1831 <li><a href="/New_Units_For_Sale_Clemmons_NC/Major_Unit_List?filterChange=1&fltr=pre-owned&search_keywords=" >- Pre-Owned</a></li> 1832 </ul> 1833 </li> 1834 <li><a href="/parts-atvs-utvs-motorcycles-dealership--parts" id="2" >Parts & Accessories </a> 1835 1836 </li> 1837 <li><a href="/service-repair-atvs-utvs-motorcycles-dealership--service" id="3" >Service </a> 1838 1839 </li> 1840 <li><a href="/showroom" id="4" >Showroom </a> 1841 1842 </li> 1843 <li><a href="/credit-financing-atvs-utvs-motorcycles-dealership--financing" id="5" >Financing </a> 1844 1845 </li> 1846 <li><a class="child-menu-head" href="/aboutus" id="6" >About Us <i class="fa fa-caret-down" aria-hidden="true"></i></a> 1847 1848 <ul class="subnav"> 1849 <!--span class="toolTip"></span--> 1850 <li><a href="/contactus" >- Contact Us</a></li> 1851 <li><a href="/careers-jobs-employment-powersports-vehicles-dealership--xcareers" >- Employment</a></li> 1852 </ul> 1853 </li> 1854 1855
1856<script type="text/javascript"> 1857 $(document).ready(function(){ 1858 $(".child-menu-head").on("click",function(){ 1859 // This helps track whether the menu is open or closed, 1860 // allowing for additional styling or behavior changes 1861 if ($(this).hasClass('sm_active')) { 1862 $(this).removeClass('sm_active'); 1863 $(this).next('.subnav').removeClass("showme"); 1864 1865 } else { 1866 $(this).addClass('sm_active'); 1867 // $(this).next('.subnav').toggle("slow"); 1868 $(this).next('.subnav').addClass("showme"); 1869 1870 } 1871 $(this).find('.fa').toggleClass('fa-caret-down fa-caret-up'); 1872 1873 //$(this).next('.subnav').toggle("slow"); 1874 1875 }); 1876 }); 1877</script>
1877 1878 1879 </ul> 1880 </div> 1881 <div class="cl"><a class="cel" href="tel:3367650330"> 1882 <img class="cl-img" src="/theme/img/cl.png"><br>Call</a> 1883 </div> 1884 <div class="crt"> 1885 <a class="cel" href="/shopping/cart"> 1886 <img class="cl-img" src="/theme/img/kart.png"><br>Cart</a> 1887 </div> 1888 <div class="shpbrnd-map"> 1889 <p class="creditCar_b loct"> 1890 <a href="/pages/index/contactus"><i class="fa fa-map-marker" aria-hidden="true"></i> MAP & HOURS</a><!-- <br /> 1891 6209 Ramada Dr<br /> --> 1892 </p> 1893 </div> 1894 </div> 1895 <div class="mblacnt-log"> 1896 <a href="javascript:void(0);" onclick="openLogin();"> <i class="fa fa-user usr" aria-hidden="true"></i> Login/create account</a> 1897 </div> 1898 <div class="mob_main"> 1899 <div class="mob p-0"> 1900 <div class="header_search_design mt-3 mb-2"><div class="searchHolder search-one"> 1901 <form action="https://www.hondaws.com/shopping/productlist" method="post" id="moto_search_mobile" class="form_standard moto_search_form"> 1902 <input id="search_mobile" name="search" placeholder="Search Parts and Apparel" class="search-bx" style="float:left;" /> 1903 <a href="javascript:void(0);" class="goBtn_b">Go!</a> 1904 </form> 1905 <div class="clear"></div> 1906</div> 1907
1908<script type="application/javascript"> 1909 (function() { 1910 1911 1912 var fixLanguage = function() { 1913 1914 var $b = "search_mobile"; 1915 if ($b == 'mu_search_mobile') { 1916 $(".form_standard.moto_search_form .search-bx").attr("name", "search_keywords"); 1917 var $x = $(".form_standard.moto_search_form"); 1918 console.log('fixing Search Function'); 1919 $x.attr("action", "/Motorcycle_List?filterChange=1"); 1920 1921 $x.attr("method", "post"); 1922 } 1923 }; 1924 1925 try { 1926 fixLanguage(); 1927 } catch(err) { 1928 console.log("Error: " + err); 1929 } 1930 1931 $(document).on("ready", fixLanguage); 1932 1933 })(); 1934 1935 </script>
1935 1936 1937</div> 1938 </div> 1939 </div> 1940 </div> 1941 <div class="container"> 1942 <div class="vehicleCategory"> 1943 1944 </div> 1945 1946 <div class="clear"></div> 1947 </div> 1948 </div> 1949 1950</div> 1951<div class="header_fixed_spacer"></div> 1952
1953<script> 1954 1955$(document).ready(function(){ 1956 1957 if($(window).width() > 767){ 1958 $('.search-wrapper form').addClass('moto_search_form'); 1959 $(".mob form").removeClass('moto_search_form'); 1960 $('.search-wrapper .search-bx').attr('id','mu_search'); 1961 $(".mob .search-bx").attr('id',''); 1962 $(".search-wrapper .easy-autocomplete-container").attr('id','eac-container-mu_search'); 1963 $(".mob .easy-autocomplete-container").attr('id',''); 1964 }else{ 1965 $('.search-wrapper form').removeClass('moto_search_form'); 1966 $(".mob form").addClass('moto_search_form'); 1967 $('.search-wrapper .search-bx').attr('id',''); 1968 $(".mob .search-bx").attr('id','mu_search'); 1969 $(".search-wrapper .easy-autocomplete-container").attr('id',''); 1970 $(".mob .easy-autocomplete-container").attr('id','eac-container-mu_search'); 1971 } 1972if($("#mu_search").length > 0){$("#mu_search").easyAutocomplete(muoptions);} 1973}); 1974</script>
1974 1975 1976 <div class="modal fade pop" id="major-unit-generic-modal"> 1977 <div class="modal-dialog"> 1978 <div class="modal-content"> 1979 <div class="modal-body modal-body-dark"> 1980 <button type="button" class="close" data-dismiss="modal" aria-label="Close"> 1981 <span aria-hidden="true">×</span> 1982 </button> 1983 1984 <p class="modal-body-title">Get Out-The-Door Price</p> 1985 1986 <p class="modal-body-subtitle">Looking for Your Next Adventure?</p> 1987 1988 <div class="alert-container" style="border: 1px solid green; color:black; background-color: #ddffdd; padding: 24px; font-weight: bold; font-size: 125%; text-align: center; display: none"> 1989 Message Sent! Thank You. 1990 </div> 1991 1992 1993 <div class="row"> 1994 <div class="hidden-xs col-sm-4"> 1995 <ol class="modal-form-instructions"> 1996 <li>Complete the form</li> 1997 <li>Tell us which model you're interested in</li> 1998 <li>Receive your out-the-door price</li> 1999 </ol> 2000 </div> 2001 2002 <div class="col-xs-12 col-sm-8"> 2003 <div class="modal-form-container"> 2004 <form action="https://www.hondaws.com/welcome/productEnquiry" class="form_standard csrf_required"><div style="display:none"> 2005<input type="hidden" id="" name="csrf_test_name" value="13869efb23e38e1ae6d9f61313b8d766" /> 2006<input type="hidden" id="" name="csrf_required" value="1" /> 2007</div> 2008 <input type="hidden" value="1790869120" name="time"> 2009 <input type="hidden" value="out_the_door" name="form_name"> 2010 <p>Fill out the form below to get your<br>free out-the-door price!</p> 2011 2012 <div class="form-group"> 2013 <label for="major-unit-generic-modal_firstName">First Name:</label> 2014 <input id="major-unit-generic-modal_firstName" class="form-control" type="text" name="firstName" required> 2015 <div class="formRequired">*</div> 2016 </div> 2017 2018 <div class="form-group"> 2019 <label for="major-unit-generic-modal_lastName">Last Name:</label> 2020 <input id="major-unit-generic-modal_lastName" class="form-control" type="text" name="lastName" required> 2021 <div class="formRequired">*</div> 2022 </div> 2023 2024 <div class="form-group"> 2025 <label for="major-unit-generic-modal_phone">Phone:</label> 2026 <input id="major-unit-generic-modal_phone" class="form-control" type="text" name="phone" oninput="maskPhone(this)" required > 2027 <div class="formRequired">*</div> 2028 </div> 2029 2030 <div class="form-group"> 2031 <label for="major-unit-generic-modal_email">
2031Email:</label> 2032 <input id="major-unit-generic-modal_email" class="form-control" type="hidden" name="email"> 2033 <input id="major-unit-generic-modal_real_email" class="form-control" type="email" name="real_email" required> 2034 <div class="formRequired">*</div> 2035 </div> 2036 2037 <input type="hidden" name="location" value="1" /> 2038 2039 2040 <div class="form-group"> 2041 <label for="major-unit-generic-modal_make">Make:</label> 2042 <input id="major-unit-generic-modal_make" class="form-control" type="text" name="make" required> 2043 <div class="formRequired">*</div> 2044 </div> 2045 2046 <div class="form-group"> 2047 <label for="major-unit-generic-modal_model">Model:</label> 2048 <input id="major-unit-generic-modal_model" class="form-control" type="text" name="model" required> 2049 <div class="formRequired">*</div> 2050 </div> 2051 2052 <div class="form-group"> 2053 <label for="major-unit-generic-modal_questions">Comments:</label> 2054 <textarea id="major-unit-generic-modal_questions" class="form-control" type="text" name="questions"></textarea> 2055 </div> 2056 <div> 2057 <div style="width:100%; padding:1%;"> 2058 <b>Solve the Security Equation. <br> <br>What is <div class="captcha_imgs"><img style="width:auto!important; padding-bottom:4px;" src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD//gA8Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcgSlBFRyB2ODApLCBxdWFsaXR5ID0gMTAwCv/bAEMAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/bAEMBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAB4AHgMBEQACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgv/xAC1EAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4eLj5OXm5+jp6vHy8/T19vf4+fr/xAAfAQADAQEBAQEBAQEBAAAAAAAAAQIDBAUGBwgJCgv/xAC1EQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo6ery8/T19vf4+fr/2gAMAwEAAhEDEQA/AP8AP/oAKACgAoAKAP6Hvix4R/ZH8S/8G0/we+M3wg/ZW8P/AAr+O3g7/gq/on7Pnxd+PXibxFonxR+Mvxn1FP2N/GXxR8VanbePR8OvA2r/AA0+D+oav4h8Nad4T/Z50J9W8K+GIPAOjeJ9f8Q+PPiTrPirx3rYAfse+Ef2R/H/APwb/f8ABYfxDF+yt4fP7WH7PHiD9g/Wb79q3x34i0T4i+KrjTvjV+1lH4W0vwn8DfDt58OtEuf2cPD/AId8EeEdY0fxvc+HvGPjDxV8ZdR8d6/L4x8TQeDtG8C+AvCQB/PDQAUAfp//AMPOr7/hgX/h3R/wxf8Asgf8KS/4WB/wvH/hKft/7ZP/AAtP/hpj/hS//Ci/+Gkv7b/4bA/4RL/hYH/CJf8AEx/4Qf8A4Qf/AIZ7/wCEj/0v/hSf9mf8SigA/Zq/4KdX37NH7J3xu/Y6039i/wDZA+Kfwy/ab/4Vt/w0hrvxSv8A9slfHfxm/wCFL/EnXvil8H/7d1P4XftgfDDw/wCDf+Fd+INeks9M/wCFSeGPh1/wkOj6dp9v49/4S69OoahqAB+YFABQAUAFABQB/9k=" alt="captcha"> <img style="width:auto!important; padding-bottom:4px;"src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD//gA8Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcgSlBFRyB2ODApLCBxdWFsaXR5ID0gMTAwCv/bAEMAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/bAEMBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAB4AHgMBEQACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgv/xAC1EAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4eLj5OXm5+jp6vHy8/T19vf4+fr/xAAfAQADAQEBAQEBAQEBAAAAAAAAAQIDBAUGBwgJCgv/xAC1EQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo6ery8/T19vf4+fr/2gAMAwEAAhEDEQA/AP8AP/oAKACgAoAKAP3+/wCHJOqf8Osv+Gtf+Fqfs/8A/DTX/Df/APwzp/Zv/Dx7/gnH/wAMsf8ACif+Gdf+Fl/bv+Fsf8Ls/wCFf/8ADQH/AAsD9x/wrv8A4Xz/AMJj/wAK6/4qX/hUX9i/8VlQB+ANABQAUAe//wDDUfx2/wCGWP8Ahin/AITn/jGX/hoD/hqP/hWn/CM+Dv8A
2058ku3/AArr/hU//Cc/8Jl/wj3/AAsD/kn/APxIP+EZ/wCEr/4Q7/mK/wDCPf21/wATKgDwCgAoAKACgAoAKAP/2Q==" alt="captcha1"> <img style="width:auto!important; padding-bottom:4px;" src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD//gA8Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcgSlBFRyB2ODApLCBxdWFsaXR5ID0gMTAwCv/bAEMAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/bAEMBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAB4AHgMBEQACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgv/xAC1EAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4eLj5OXm5+jp6vHy8/T19vf4+fr/xAAfAQADAQEBAQEBAQEBAAAAAAAAAQIDBAUGBwgJCgv/xAC1EQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo6ery8/T19vf4+fr/2gAMAwEAAhEDEQA/AP8AP/oAKACgAoAKAP7nP2Mf+CHOnfsvfAL9vr4JftDfsI/GD9pT9vDxf/wSg/an+LunfF3WPgN4q8bfswfsyfGW48F+Fh8A/wBkj9k/xVe+Bdb8EftH/tv+Irnxc3xA+Inxl+EOv6lB8LfEHgnSfgn+zzrHi+/h+OHiq/AP4Y6ACgAoA+v/ANkP9tb4p/sXf8NP/wDCrdA+H+v/APDWX7IHxq/Yp+Iv/Cf6V4j1T+xfhZ8d/wDhGv8AhLtf8Ff8I74r8K/2d8QNO/4RXT/+Ec1XXf8AhI/Dln517/afhTWPMg+zgHyBQAUAFABQAUAFAH//2Q==" alt="captcha2"></div><span class="captcha_eq"> = </span></b> 2059 <input type="hidden" name="encrypted_answer" value="8ae20d11d061f9679b7f3829021d464271461ab9cd06c55998baea129a68434e66ccdf48f56b30878a98d67e2d8ad0e4dc868549864c88571adfd3f528bcb8fauMYcJGU7Vmj3GQ0yUA6/Lsh1lTmxaMwrfZ6PV7AvYlE=" /> 2060 <input type="text" name="user_answer" value="" class="text mini" style="color:black"/> 2061 </div> 2062 </div> 2063 <input type="hidden" name="form_type" value="2" /> 2064 2065 <div class="text-center"> 2066 <input class="btn" type="submit" value="Submit"> 2067 </div> 2068 2069 </form> 2070 </div> 2071 </div> 2072 </div> 2073 2074 <p class="modal-body-footer">We respect your privacy and won't share your information with any other company. Terms and conditions apply.</p> 2075 </div> 2076 </div> 2077 </div> 2078</div> 2079
2080<script type="application/javascript"> 2081 (function() { 2082 $("#major-unit-generic-modal form").on("submit", function(e) { 2083 e.preventDefault(); 2084 submitEnquiryFormModal("major-unit-generic-modal", "https://www.hondaws.com/welcome/productEnquiry", function() { 2085 2086 $("#major-unit-generic-modal .row").hide(); 2087 $("#major-unit-generic-modal .alert-container").show(); 2088 2089 setTimeout(function() { 2090 $("#major-unit-generic-modal .alert-container").hide(); 2091 $("#major-unit-generic-modal .row").show(); 2092 $("#major-unit-generic-modal").modal("hide"); 2093 }, 4000); 2094 }); 2095 }); 2096 })(); 2097</script>
2097 2098
2099<script type="application/javascript"> 2100 $(document).ready(function () { 2101 // Record the modal form submission so we don't show more sales modals 2102 $('.modal form input[type=submit]').click(function () { 2103 var siteModalsState = JSON.parse(localStorage.getItem('siteModalsState')) || {}; 2104 siteModalsState['hasContactedSales'] = true; 2105 if($(this).parents('.modal').hasClass("custom-lead-form-modal")) 2106 siteModalsState['hasFilledCustomLeadModal'+$(this).parents('.custom-lead-form-modal').find(".form_id").val()] = true; 2107 2108 localStorage.setItem('siteModalsState', JSON.stringify(siteModalsState)); 2109 }); 2110 }); 2111</script>
2111 2112 2113 2114 <div class="clear"></div> 2115 2116 <style> 2117 .button_no{ 2118 background: #EEE !important; 2119 border: 1px #DDD solid !important; 2120 color: #BBB !important; 2121 } 2122 </style> 2123 2124 <!-- CONTENT WRAP =========================================================================--> 2125<!-- Title New Powersports Models Showroom | Carolina BRP Dis Title New Powersports Models Showroom | Carolina BRP --> <div class="cntnr-ttl page_id_520 stores"> 2126 <div class="container"> 2127 <div class="brndimg"> 2128 <h1 class='mn'> 2129 Showroom </h1> 2130 </div> 2131 </div> 2132 </div> 2133 2134
2134<script> 2135 $(document).ready(function () { 2136 // Get token from localStorage 2137 const authToken = localStorage.getItem("authToken"); 2138 console.log('authToken : ' + authToken); 2139 if (authToken) { 2140 $.ajax({ 2141 url: "https://www.hondaws.com/ApiController/getUserLogedInWithToken", 2142 type: "GET", 2143 dataType: "json", 2144 headers: { 2145 "Authorization": "Bearer " + authToken 2146 }, 2147 success: function (response) { 2148 if (response.status === "success" && response.url) { 2149 localStorage.setItem("loginSession", 1); 2150 // Redirect user 2151 window.location.href = response.url; 2152 } 2153 }, 2154 error: function (xhr, status, error) { 2155 console.error("AJAX Error:", status, error, xhr.responseText); 2156 } 2157 }); 2158 } else { 2159 console.warn("No authToken found in localStorage"); 2160 } 2161 }); 2162 </script>
2162 2163 <!-- CONTENT WRAP =========================================================================--> 2164 <div class="content_wrap_n"> 2165 <!-- MAIN CONTENT 13--> 2166 <div class="main_content fl-wdh full_info_content" 2167 2168 style="float: none !important; width: 100% !important;" 2169 > 2170 <div class='individal_page_widget smw page_widget_section_176 page_widget_Textbox' data-page-section-id='176'><h1 class="title_theme" style="text-align:center; color:#C0392B; font-weight:900;">NEW POWERSPORTS MODELS & FACTORY SHOWROOM</h1> 2171</div><div class='individal_page_widget smw page_widget_section_177 page_widget_Textbox' data-page-section-id='177'><div class="mustache w100 float-left textarea_177" style="padding: 0px 0px 0px 0px;"><div class="mustache no_container"><div class="mustache row"><div class="mustache col-lg-12"><style type="text/css">.showroom_section{ 2172 width:100%; 2173 padding:30px 0; 2174} 2175 2176.showroom_list_inner{ 2177 display:flex; 2178 flex-wrap:wrap; 2179 justify-content:center; 2180 gap:30px; 2181} 2182 2183.showroom_list{ 2184 position:relative; 2185 width:300px; 2186 height:300px; 2187 overflow:hidden; 2188 border-radius:8px; 2189} 2190 2191/* Make entire tile clickable */ 2192.showroom_list a{ 2193 display:block; 2194 width:100%; 2195 height:100%; 2196 position:relative; 2197 text-decoration:none !important; 2198 color:#ffffff !important; 2199} 2200 2201/* Force link states white */ 2202.showroom_list a:link, 2203.showroom_list a:visited, 2204.showroom_list a:hover, 2205.showroom_list a:active{ 2206 color:#ffffff !important; 2207 text-decoration:none !important; 2208} 2209 2210/* Image */ 2211.showroom_list img{ 2212 width:100%; 2213 height:100%; 2214 object-fit:cover; 2215 display:block; 2216} 2217 2218/* Overlay Text (Brands Only) */ 2219.overlay_text{ 2220 position:absolute; 2221 bottom:20px; 2222 left:20px; 2223 right:20px; 2224 z-index:5; 2225 color:#ffffff !important; 2226 font-size:26px; 2227 font-weight:900; 2228 text-transform:uppercase; 2229 letter-spacing:2px; 2230 background:transparent !important; 2231 padding:0 !important; 2232 text-shadow:0 2px 8px rgba(0,0,0,0.85); 2233} 2234</style> 2235<div class="showroom_section"> 2236<div class="showroom_list_inner"><!-- CAN-AM --> 2237<div class="showroom_list"><a href="/Factory_Showroom/CAN_AM"><img src="https://cdpcdn.dx1app.com/products/USA/CA/2026/UTILVEH/USXS/DEFENDER_XT_HD11/50/DARK_WILDLAND_CAMO/2000000023.jpg" /> </a> 2238<div class="overlay_text"><a href="https://c105190.virtualbusiness360.com/Factory_Showroom/CAN_AM">CAN-AM</a></div> 2239</div> 2240<!-- Campagna --> 2241 2242<div class="showroom_list"><a href="/Factory_Showroom/Campagna_Motors"><img src="https://i.gaw.to/vehicles/photos/07/66/076695_2016_campagna_motors_V13R.jpg" /> </a> 2243 2244<div class="overlay_text"><a href="https://c105190.virtualbusiness360.com/Factory_Showroom/Campagna_Motors">Campagna Motors</a></div> 2245</div> 2246<!-- Denago --> 2247 2248<div class="showroom_list"><a href="/Factory_Showroom/Denago_PowerSports"><img src="https://cdn.shopify.com/s/files/1/0766/3809/3609/files/DSC1018.jpg" /> </a> 2249 2250<div class="overlay_text"><a href="/showroom_make_denago_powersports">Denago PowerSports</a></div> 2251</div> 2252<!-- Honda --> 2253 2254<div class="showroom_list"><a href="/Factory_Showroom/Honda"><img src="https://cdpcdn.dx1app.com/products/USA/HO/2026/MC/OR/CRF450X/50/RED/2000000101.jpg" /> </a> 2255 2256<div class="overlay_text"><a href="https://c105190.virtualbusiness360.com/Factory_Showroom/Honda">Honda</a></div> 2257</div> 2258<!-- KYMCO --> 2259 2260<div class="showroom_list"><a href="/Factory_Showroom/KYMCO"><img src="https://img1.wsimg.com/isteam/ip/72ea9e7a-4226-4ea1-b6b9-706b399e0839/ols/PDM_BCOL10-1024x768.jpg" /> </a> 2261 2262<div class="overlay_text"><a href="https://c105190.virtualbusiness360.com/Factory_Showroom/KYMCO">KYMCO</a></div> 2263</div> 2264<!-- Sea-Doo --> 2265 2266<div class="showroom_list"><a href="/Factory_Showroom/Sea_Doo"><img src="https://c105190.virtualbusiness360.com/ckeditor/plugins/imageuploader/uploads/33887c4d.jpg" style="width: 474px; height: 316px;" /> </a> 2267 2268<div class="overlay_text"><a href="https://c105190.virtualbusiness360.com/Factory_Showroom/Sea_Doo">Sea-Doo</a></div> 2269</div> 2270<!-- SSR --> 2271 2272<div class="showroom_list"><a href="/Factory_Showroom/SSR_Motorsports"><img src="https://cdpcdn.dx1app.com/products/VENDOR/FB101EB6-BC25-451F-B9CC-A27E0023E0CF/LIFESTYLE/128CB8FA-9C55-40A5-9AAF-431E5EB02BF1.jpg" /> </a> 2273 2274<div class="overlay_text"><a href="https://c105190.virtualbusiness360.com/Factory_Showroom/SSR_Motorsports">SSR Motorsports</a></div> 2275</div> 2276</div> 2277<!-- PRE-OWNED + NEW ROW --> 2278 2279<div style="width:100%; display:flex; justify-content:center; gap:30px; flex-wrap:wrap; margin-top:30px;"><!-- PRE-OWNED --> 2280<div class="showroom_list"><a href="/New_Units_For_Sale_Clemmons_NC/Major_Unit_List?fltr=pre-owned"><img src="https://www.mainstreetcycle.com/ckeditor/plugins/imageuploader/uploads/48470b6a.jpg" /> </a></div> 2281<!-- NEW --> 2282 2283<div class="showroom_list"><a href="/New_Units_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory"><img src="https://www.mainstreetcycle.com/ckeditor/plugins/imageuploader/uploads/4969269b.jpg" /> </a></div> 2284</div> 2285</div> 2286</div></div></div></div></div> 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 </div> 2297 <!-- END MAIN CONTENT --> 2298 2299 <div class="clear"></div> 2300 2301 </div> 2302 2303 <div class="clearfooter"></div> 2304 <!-- END CONTENT WRAP ===================================================================--> 2305 2306 2307 </div> 2308 <!-- END WRAPPER ==========================================================================--> 2309 2310 <footer class="footer_section"> 2311<div class="newsletter_area_main"> 2312 <div class="newsletter_area_inner w-100"> 2313 <div class="newsletter_area">
2314 <span class="ThemeFontTwo text-uppercase text-center WhiteColor mb-2 section_subtitle subtitle_red_shape subtitle_shape">Stay Updated</span> 2315 <h3 class="nwsltr newsletter_title text-uppercase WhiteColor ThemeFont mt-4 mb-4"><b>Subscribe to our newsletter</b></h3> 2316 <p class="text-center alert alert-success p-3 mb-2" id="newsletter_success" style="display:none;">You have been added to the list!</p> 2317 <p class="text-center alert alert-danger p-3 mb-2" id="newsletter_error" style="display:none;"></p> 2318 <form action="" class="form_standard flex_input_group mt-3" onsubmit="submitNewsletter(); return false;"> 2319 <input type="text" placeholder="Enter email address" class="form-control" id="newsletter" name="newsletter"> 2320 <input class="tbtn tbtn-theme tbtn-md input_last" type="button" value="Subscribe Now" onclick="submitNewsletter(); return false;"> 2321 </form> 2322 </div> 2323 </div> 2324</div> 2325 2326 <div class="footer_section_bg"> 2327 <div class="container"> 2328 <div class="footer_section_area"> 2329 <div class="footer_section_inner"> 2330 2331 <div class="footer_inventory_section w100 float-left"> 2332 <div class="footer_inventory_text"> 2333 <h2 class="WhiteColor ThemeFont text-uppercase TextShadow">You Meet the Best People at Honda, Sea-Doo and Can-Am of Winston-Salem</h2> 2334 </div> 2335 <a class="tbtn tbtn-theme tbtn-md m-2 mt-4" href="/New_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&filterChange=1&preserveSearch=1">SHOP NEW</a> 2336 2337 </div> 2338 <div class="row"> 2339 <div class="col-lg-3 col-md-12"> 2340 <h3 class="footer_title">Address</h3> 2341 <div class="footer_address_area"> 2342 <div class="footer_address_inr"> 2343 <a href="/contactus"> 2344 <p>6209 Ramada Dr, <br/>Clemmons, NC 27012-9733</p> 2345 </a> 2346 </div> 2347 2348 </div> 2349 </div> 2350 <div class="col-lg-3 col-md-12"> 2351 <div class="quick_links_mod"> 2352 <div class="one-fifth"> 2353 <h3>quick links </h3> 2354 <ul class="clear"> 2355 <li><a href="https://www.hondaws.com/privacypolicy" >Privacy Policy</a></li> 2356 <li><a href="https://www.hondaws.com/termsofservice" >Terms of Service</a></li> 2357 2358 <!-- <li><a href="" ></a></li> --> 2359 2360 </ul> 2361</div> 2362 2363 <ul class="clear"> 2364 <li><a href="/New_Units_For_Sale_Clemmons_NC/Major_Unit_List?filterChange=1&fltr=New_Inventory&search_keywords=">New Inventory</a></li> 2365 <li><a href="/credit-financing-atvs-utvs-motorcycles-dealership--financing">Get Financing</a></li> 2366 <li><a href="/parts-atvs-utvs-motorcycles-dealership--parts">Parts Department</a></li> 2367 <li><a href="/service-repair-atvs-utvs-motorcycles-dealership--service">Service Department</a></li> 2368 <li><a href="/aboutus">About Us</a></li> 2369 </ul> 2370 </div> 2371 </div> 2372 <div class="col-lg-3 col-md-12"> 2373 <h3 class="footer_title"><a href="/contactus">Contact Us</a></h3> 2374 <div class="footer_contact2"> 2375 <a href="tel:3367650330">3367650330</a> 2376 <a href="mailto:[email protected]"></a> 2377 </div> 2378 </div> 2379<!-- <div class="col-lg-3 col-md-12"> 2380 <h3 class="footer_title"><a href="/contactus">Contact Us</a></h3> 2381 <div class="footer_contact2"> 2382 <a href="tel:"></a> 2383 <a href="mailto:"></a> 2384 </div> 2385 </div> --> 2386 2387 <div class="col-lg-3 col-md-12"> 2388 <h3 class="footer_title">Hours</h3> 2389 <div class="footer_time_sec">Sunday and Monday : Closed<br/> 2390Tuesday - Friday : 9:00 A.M. - 6:00 P.M.<br/> 2391Saturday : 9:00 A.M. - 5:00 P.M. 2392</div> 2393 </div> 2394 </div> 2395 2396 <div class="footer_bottom_social_links text-center"> 2397 <a class="social" href="https://www.facebook.com/hondaofws" target="_blank" title="Facebook"> 2398 <i class="fa fa-facebook-f"></i> 2399 </a> 2400 2401 2402 <a class="social" href="https://www.youtube.com/@hondaws" target="_blank" title="YouTube"> 2403 <i class="fa fa-youtube"></i> 2404 </a> 2405 2406 2407 <a class="social" href="https://www.instagram.com/hondaofws" target="_blank" title="Instagram"> 2408 <i class="fa fa-instagram"></i> 2409 </a> 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 </div> 2421 </div> 2422 </div> 2423 </div> 2424 </div> 2425</footer> 2426 2427 2428
2429<script type="text/javascript"> 2430 /* Submit on Enter */ 2431 $(document).ready(function(){ 2432 $('#search').keydown(function(e){ 2433 if(e.keyCode == 13) 2434 { 2435 e.preventDefault(); 2436 setSearch($('#search').val()); 2437 return false; 2438 } 2439 }); 2440 2441 $('.scl').click(function(e){ 2442 $('.scl').removeClass('active'); 2443 $(this).addClass('active'); 2444 $('.social-page').hide(); 2445 $('.'+$(this).data('link')).show(); 2446 }); 2447 2448 }); 2449 2450 2451 2452</script>
vendor: 1 bytes, line 2452
2452
2453<script> 2454 function submitNewsletter() 2455 { 2456 $.post(base_url + 'ajax/updateNewsletterList/', 2457 { 2458 'email' : $('#newsletter').val(), 2459 'ajax' : true 2460 }) 2461 .done(function (response) { 2462 /** Parse the JSON response */ 2463 var responseData = JSON.parse(response); 2464 2465 /** Check the "status" field in the response */ 2466 if (responseData.status === "success") { 2467 /** Hide error message first */ 2468 $('#newsletter_error').hide(); 2469 $('#newsletter').val(''); 2470 /** Success case: Show success message or perform any other actions */ 2471 $('#newsletter_success').show(); 2472 } else if (responseData.status === "error") { 2473 /** Error case: Display the error message */ 2474 var errorMessage = responseData.message; 2475 2476 /** Remove HTML tags */ 2477 var plainTextErrorMessage = errorMessage.replace(/<\/?[^>]+(>|$)/g, ""); 2478 2479 /** Remove newline characters and replace them with spaces */ 2480 plainTextErrorMessage = plainTextErrorMessage.replace(/\n/g, ' '); 2481 2482 /** Hide success message first */ 2483 $('#newsletter_success').hide(); 2484 2485 /** Empty text of newsletter_error */ 2486 $('#newsletter_error').text(''); 2487 2488 /** Display the error message in the specified <p> element */ 2489 $('#newsletter_error').text(plainTextErrorMessage).show(); 2490 } 2491 }) 2492 .fail(function (xhr, textStatus, errorThrown) { 2493 /** This function will be called when there's an error */ 2494 console.error("Error: " + errorThrown); 2495 /** Display an error message to the user or perform any other error handling */ 2496 /** Example: $('#error_message').text("An error occurred"); */ 2497 }); 2498 } 2499</script>
vendor: 1 bytes, line 2499
2499
2500<script> 2501 function showSubNav( from ){ alert("here"); 2502 $(".SubNavs").hide(); 2503 if($('.dynamicNavCont ul').length > 0){ 2504 $('.dynamicNavCont ul li').each(function(){ 2505 $(this).find('.fa').removeClass('fa-caret-up').addClass('fa-caret-down') 2506 }); 2507 } 2508 $(".productNavCont #nav"+from).show(); 2509 console.log($("#nav"+from).parent().find('.fa').length); 2510 if($(".productNavCont #nav"+from).parent().find('.fa').length > 0){ 2511 console.log($("#nav"+from).parent().find('.fa')); 2512 $(".productNavCont #nav"+from).parent().find('.fa').removeClass('fa-caret-down').addClass('fa-caret-up'); 2513 } 2514 } 2515 2516 function openLogin() 2517 { 2518 window.location.replace('https://www.hondaws.com/checkout/account'); 2519 } 2520 2521 function openCreateAccount() 2522 { 2523 window.location.replace('https://www.hondaws.com/checkout/account'); 2524 } 2525</script>
vendor: 1 bytes, line 2525
2525
2526<script> 2527 $(document).ready(function() { 2528 2529 $('.panel-title').click(function() { 2530 var id = $(this).data('id'); 2531 var not = $(this).data('not'); 2532 $('#'+not).slideUp(); 2533 $('#'+id).slideDown(); 2534 //alert(id); 2535 }); 2536 if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { 2537 $("body").css("display","table"); 2538 } 2539 2540 $( ".topNavAnchors" ).hover( 2541 function() { 2542 showSubNav( $(this).attr("id") ); 2543 }, function() { 2544 //showSubNav( $(this).attr("id") ); 2545 } 2546 ); 2547 2548 $( ".dynamicTopNavAnchors" ).hover( 2549 function() { 2550 dynamicShowSubNav( $(this).attr("id") ); 2551 }, function() { 2552 console.log("footer"); 2553 dynamicShowSubNav( $(this).attr("id") ); 2554 //showSubNav( $(this).attr("id") ); 2555 } 2556 ); 2557 if (navigator.userAgent.match(/Tablet|iPad/i)) 2558 { 2559 $( ".dynamicTopNavAnchors" ).click( 2560 function() { 2561 dynamicShowSubNav( $(this).attr("id") ); 2562 }, function() { 2563 console.log("footer"); 2564 dynamicShowSubNav( $(this).attr("id") ); 2565 //showSubNav( $(this).attr("id") ); 2566 } 2567 ); 2568 } 2569 $(document).mouseup(function (e){ 2570 var container = $(".SubNavs"); 2571 if (!container.is(e.target) // if the target of the click isn't the container... 2572 && container.has(e.target).length === 0) // ... nor a descendant of the container 2573 { 2574 container.hide(); 2575 if(container.parent().find('.fa').length > 0) 2576 container.parent().find('.fa').removeClass('fa-caret-up').addClass('fa-caret-down'); 2577 } 2578 }); 2579 2580 try { 2581 2582 $('.popup-gallery').magnificPopup({ 2583 delegate: 'a', 2584 type: 'image', 2585 tLoading: 'Loading image #%curr%...', 2586 mainClass: 'mfp-img-mobile', 2587 gallery: { 2588 enabled: true, 2589 navigateByImgClick: false, 2590 preload: [0,1] // Will preload 0 - before current, and 1 after the current image 2591 }, 2592 image: { 2593 tError: '<a href="%url%">The image #%curr%</a> could not be loaded.', 2594 titleSrc: function(item) { 2595 return item.el.attr('title') + '<small>™</small>'; 2596 } 2597 } 2598 }); 2599 } catch(err) { 2600 console.log("Error with magnificPopup AGAIN: " + err); 2601 } 2602 2603 }); 2604</script>
2604 2605
2606<script type="text/javascript"> 2607 /* Submit on Enter */ 2608 $(document).ready(function(){ 2609 $('#search').keydown(function(e){ 2610 if(e.keyCode == 13) 2611 { 2612 e.preventDefault(); 2613 setSearch($('#search').val()); 2614 return false; 2615 } 2616 }); 2617 2618 $('.scl').click(function(e){ 2619 $('.scl').removeClass('active'); 2620 $(this).addClass('active'); 2621 $('.social-page').hide(); 2622 $('.'+$(this).data('link')).show(); 2623 }); 2624 2625 }); 2626 2627 2628 2629 function setURLSearch(event, url, section, id, name) 2630 { 2631 console.log('url: ' + url); 2632 console.log('section: ' + section); 2633 console.log('id: ' + id); 2634 console.log('name: ' + name); 2635 2636 $.post(base_url + 'ajax/setURLSearch/', 2637 { 2638 'ajax' : true, 2639 'url' : url, 2640 'section' : section, 2641 'name' : name, 2642 'id': id 2643 }, 2644 function(newURL) 2645 { 2646 console.log(newURL); 2647 window.location.href = base_url + 'shopping/productlist/' + newURL; 2648 2649 }); 2650 } 2651 2652 function fixedEncodeURIComponent (str) { 2653 return encodeURIComponent(str).replace(/[!'()]/g, escape).replace(/\*/g, "%2A"); 2654 } 2655 2656 function setSearch(search) 2657 { 2658 search = search.toLowerCase(); 2659 encoded = fixedEncodeURIComponent(search); 2660 console.log('Search: ' + encoded); 2661 window.location.href = base_url + 'shopping/productlist/SE-' + encoded; 2662 } 2663 2664 function removeHeaderSearch() { 2665 $.post(base_url + 'ajax/removeHeaderSearch/',{}, 2666 function(newURL) { 2667 }); 2668 } 2669 2670 function removeMainSearch(url, section, id, name) 2671 { 2672 $.post(base_url + 'ajax/removeSearch/', 2673 { 2674 'ajax' : true, 2675 'url' : url, 2676 'section' : section, 2677 'name' : name, 2678 'id': id 2679 }, 2680 function(newURL) 2681 { 2682 window.location.href = base_url + 'shopping/productlist/' + newURL; 2683 }); 2684 2685 } 2686 2687 2688</script>
2688 2689 2690 2691 2692
2692<script type="application/javascript"> 2693 $(document).ready(function() { 2694 2695 $(".slider_1 #owl-demo").owlCarousel({ 2696 navigation : true, 2697 slideSpeed : 500, 2698 paginationSpeed : 500, 2699 singleItem:true, 2700 autoPlay: 5000, 2701 autoPlayTimeout: 1000 2702 }); 2703 2704 2705 2706 $("#hotels-flats").owlCarousel({ 2707 items : 4, 2708 lazyLoad : true, 2709 navigation : true, 2710 autoPlay: true, 2711 autoPlayTimeout:3000 2712 }); 2713 2714 $("#homes-for-rent").owlCarousel({ 2715 items : 4, 2716 lazyLoad : true, 2717 navigation : true 2718 }); 2719 $("#homes-for-rent-1").owlCarousel({ 2720 items : 3, 2721 lazyLoad : true, 2722 navigation : true 2723 }); 2724 $("#hotels-flats-1").owlCarousel({ 2725 items : 3, 2726 lazyLoad : true, 2727 navigation : true 2728 }); 2729 $("#hotels-flats-2").owlCarousel({ 2730 items : 3, 2731 lazyLoad : true, 2732 navigation : true, 2733 autoPlay: true, 2734 autoPlayTimeout:3000 2735 }); 2736 2737 2738 }); 2739 2740</script>
2740<script>var ct = ""; var resetAll = function() { 2741} 2742 2743switch (ct) { 2744 2745 2746}</script>
2746<script>var ctd = ""; var resetAll = function() { 2747} 2748 2749switch (ctd) { 2750 2751 2752}</script>
2752<script type="application/javascript"> 2753 var model_val; 2754 var make_val; 2755 var year_val; 2756 var machine_val; 2757 2758 2759 function updateGarage() 2760 { 2761 var pathname = window.location.pathname; 2762 $('#update_garage_form').append('<input type="hidden" name="url" value="'+pathname +'" />'); 2763 $('#update_garage_form').submit(); 2764 2765 } 2766 2767 function executeMachine() { 2768 try { 2769 $("#machine").selectbox({ 2770 onChange: function (val, inst) { 2771 if (val != '') { 2772 machine_val = val; 2773 $.ajax( 2774 { 2775 async: false, 2776 type: 'POST', 2777 url: base_url +'ajax/getMake/', 2778 data: { 2779 'machineId': val, 2780 'ajax': true 2781 }, 2782 success: function (encodeResponse) { 2783 responseData = JSON.parse(encodeResponse); 2784 $('#make').selectbox("detach"); 2785 var mySelect = $('#make'); 2786 mySelect.html($('<option></option>').val('').html('-- Select Make --')); 2787 2788 2789 // JLB 09-28-17 2790 // It would be great if these were alphabetized, otherwise, it's a little stupid. 2791 var reverseMap = {}; 2792 var arr = []; 2793 for (var x in responseData) { 2794 reverseMap[responseData[x]] = x; 2795 arr.push(responseData[x]); 2796 } 2797 2798 // now, sort it 2799 arr.sort(function (a, b) { 2800 a = a.toLowerCase(); 2801 b = b.toLowerCase(); 2802 if (a < b) { 2803 return -1 2804 } else if (a > b) { 2805 return 1; 2806 } else { 2807 return 0; 2808 } 2809 }); 2810 2811 // Now, iterate and make them in alphabetical order 2812 for (var i = 0; i < arr.length; i++) { 2813 var text = arr[i]; 2814 var val = reverseMap[text]; 2815 mySelect.append( 2816 $('<option></option>').val(val).html(text) 2817 ); 2818 } 2819 2820 executeMake(); 2821 $('#make').selectbox("attach"); 2822 } 2823 }); 2824 } 2825 else { 2826 $('#make').selectbox("detach"); 2827 $('#make').html($('<option></option>').val('').html('-- Make --')); 2828 executeMake(); 2829 $('#make').selectbox("attach"); 2830 } 2831 $('#model').selectbox("detach"); 2832 $('#year').selectbox("detach"); 2833 $('#model').html($('<option></option>').val('').html('-- Model --')); 2834 executeModel(); 2835 $('#model').selectbox("attach"); 2836 $('#year').html($('<option></option>').val('').html('-- Year --')); 2837 executeYear(); 2838 $('#year').selectbox("attach"); 2839 $('#add').attr('class', 'button_no'); 2840 2841 } 2842 }); 2843 } catch(err) { 2844 console.log("Error executeMachine: " + err); 2845 } 2846 } 2847 2848 function executeMake() { 2849 try { 2850 2851 2852 $("#make").selectbox({ 2853 onChange: function (val, inst) { 2854 if (val != '') { 2855 make_val = val; 2856 $.ajax( 2857 { 2858 async: false, 2859 type: 'POST', 2860 url: base_url +'ajax/getNewYear/', 2861 data: { 2862 'makeId': val, 2863 'ajax': true 2864 }, 2865 success: function (encodeResponse) { 2866 responseData = JSON.parse(encodeResponse); 2867 2868 var arr = []; 2869 2870 for (var x in responseData) { 2871 arr.push(responseData[x]); 2872 } 2873 2874 arr.sort(function (a, b) { 2875 return b - a 2876 }); 2877 console.log(["Array in executeMake success", arr]); 2878 $('#year').selectbox("detach"); 2879 var mySelect = $('#year'); 2880 mySelect.html($('<option></option>').val('').html('-- Select Year --')); 2881 $.each(arr, function (val, text) { 2882 mySelect.append( 2883 $('<option></option>').val(text).html(text) 2884 ); 2885 }); 2886 executeYear(); 2887 $('#year').selectbox("attach"); 2888 } 2889 }); 2890 } 2891 else { 2892 $('#year').selectbox("detach"); 2893 $('#year').html($('<option></option>').val('').html('-- Model --')); 2894 executeYear(); 2895 $('#year').selectbox("attach"); 2896 } 2897 $('#model').selectbox("detach"); 2898 $('#model').html($('<option></option>').val('').html('-- Year --')); 2899 executeModel(); 2900 $('#model').selectbox("attach"); 2901 $('#add').attr('class', 'button_no'); 2902 2903 } 2904 }); 2905 } catch(err) { 2906 console.log("Error executeMake: " + err); 2907 } 2908 } 2909 2910 function executeYear() { 2911 try { 2912 2913 $("#year").selectbox({ 2914 onChange: function (val, inst) { 2915 if (val != '') { 2916 year_val = val; 2917 $.ajax( 2918 { 2919 async: false, 2920 type: 'POST', 2921 url: base_url +'ajax/getNewModel/', 2922 data: { 2923 'year': val, // $("#update_garage_form [name=year] option:selected").text(), 2924 'makeId': make_val, 2925 'ajax': true 2926 }, 2927 success: function (encodeResponse) { 2928 responseData = JSON.parse(encodeResponse); 2929 2930 var arr = []; 2931 var reverseMap = {}; 2932 2933 for (var x in responseData) { 2934 arr.push(responseData[x]); 2935 reverseMap[responseData[x]] = x; 2936 } 2937 2938 arr.sort(function (a, b) { 2939 a = a.toLowerCase(); 2940 b = b.toLowerCase(); 2941 if (a < b) { 2942 return -1 2943 } else if (a > b) { 2944 return 1; 2945 } else { 2946 return 0; 2947 } 2948 }); 2949 $('#model').selectbox("detach"); 2950 var mySelect = $('#model'); 2951 mySelect.html($('<option></option>').val('').html('-- Select Model --')); 2952 for (var i = 0; i < arr.length; i++) { 2953 var text = arr[i]; 2954 var val = reverseMap[text]; 2955 mySelect.append( 2956 $('<option></option>').val(val).html(text) 2957 ); 2958 } 2959 executeModel(); 2960 $('#model').selectbox("attach"); 2961 } 2962 }); 2963 } 2964 else { 2965 $('#model').selectbox("detach"); 2966 $('#model').html($('<option></option>').val('').html('-- Year --')); 2967 executeModel(); 2968 $('#model').selectbox("attach"); 2969 } 2970 $('#add').attr('class', 'button_no'); 2971 2972 } 2973 }); 2974 } catch(err) { 2975 console.log("Error executeYear: " + err); 2976 } 2977 } 2978 2979 function executeModel() 2980 { 2981 try { 2982 2983 $("#model").selectbox({ 2984 onChange: function (val, inst) { 2985 displayAdd(val); 2986 updateGarage(); 2987 } 2988 }); 2989 2990 } catch(err) { 2991 console.log("Error executeModel: " + err); 2992 } 2993 } 2994 2995 2996 function displayAdd(val) 2997 { 2998 if(val != '') 2999 $('#add').attr('class', 'button' ); 3000 else 3001 $('#add').attr('class', 'button_no' ); 3002 } 3003 3004 3005 // JLB 09-27-17 3006 // I have no idea why these were run at the top before the functions were defined, and I fear running them does something bad...but it looks relatively safe. 3007 (function() { 3008 // used for fitment/garrage-part-number 3009 executeMachine(); 3010 executeMake(); 3011 executeModel(); 3012 executeYear(); 3013 })(); 3014 3015</script>
vendor: 1 bytes, line 3015
3015
3016<script type="application/javascript"> 3017 function showVideo(vidId, vidTit, override_id, override_vdottle, id_extra) { 3018 if (!override_id) { 3019 override_id = "mainVideo"; 3020 } 3021 3022 if (!override_vdottle) { 3023 override_vdottle = "vdottl"; 3024 } 3025 3026 if (!id_extra) { 3027 id_extra = ""; 3028 } 3029 3030 var mainVideo = $('#' + override_id).data('id'); 3031 //var mainTitle = $('.vdottl').html(); 3032 $('.' + override_vdottle).html(vidTit); 3033 $("#" + override_id)[0].src = "https://www.youtube.com/embed/" + vidId + "?rel=0&autoplay=1"; 3034 $('#' + override_id).data('id', vidId); 3035 //$('.shwVidHalf').show(); 3036 $('#' + vidId + id_extra).hide(); 3037 $('#' + mainVideo + id_extra).show(); 3038 //$("#mainVideo")[0].src = "https://www.youtube.com/embed/"+vidId+"?rel=0&autoplay=1"; 3039 } 3040</script>
3040<script type="text/javascript"> 3041 3042 $(window).on('load',function() { 3043 try { 3044 $("#flexiselDemo1").flexisel(); 3045 } catch(err) { 3046 console.log("Error in flexiselDemo: " + err); 3047 } 3048 3049 try { 3050 $("#flexiselDemo2").flexisel({ 3051 enableResponsiveBreakpoints: true, 3052 responsiveBreakpoints: { 3053 portrait: { 3054 changePoint: 480, 3055 visibleItems: 1 3056 }, 3057 landscape: { 3058 changePoint: 640, 3059 visibleItems: 2 3060 }, 3061 tablet: { 3062 changePoint: 768, 3063 visibleItems: 3 3064 } 3065 } 3066 }); 3067 } catch(err) { 3068 console.log("Error in flexiselDemo2: " + err); 3069 } 3070 3071 try { 3072 $("#flexiselDemo3").flexisel({ 3073 visibleItems: 5, 3074 animationSpeed: 1000, 3075 autoPlay: true, 3076 autoPlaySpeed: 3000, 3077 pauseOnHover: true, 3078 enableResponsiveBreakpoints: true, 3079 responsiveBreakpoints: { 3080 portrait: { 3081 changePoint: 480, 3082 visibleItems: 3 3083 }, 3084 landscape: { 3085 changePoint: 640, 3086 visibleItems: 4 3087 }, 3088 tablet: { 3089 changePoint: 768, 3090 visibleItems: 5 3091 } 3092 } 3093 }); 3094 } catch(err) { 3095 console.log("Error in flexiselDemo3: " + err); 3096 } 3097 3098 try { 3099 $("#flexiselDemo4").flexisel({ 3100 clone: false 3101 }); 3102 } catch(err) { 3103 console.log("Error in flexiselDemo4: " + err); 3104 } 3105 3106 }); 3107</script>
3107 3108<link type="text/css" rel="stylesheet" href="https://www.hondaws.com/assets/css_front/style.css"> 3109
3110<script> 3111 function submitNewsletter() 3112 { 3113 $.post(base_url + 'ajax/updateNewsletterList/', 3114 { 3115 'email' : $('#newsletter').val(), 3116 'ajax' : true 3117 }) 3118 .done(function (response) { 3119 /** Parse the JSON response */ 3120 var responseData = JSON.parse(response); 3121 3122 /** Check the "status" field in the response */ 3123 if (responseData.status === "success") { 3124 /** Hide error message first */ 3125 $('#newsletter_error').hide(); 3126 3127 /** Success case: Show success message or perform any other actions */ 3128 $('#newsletter_success').show(); 3129 } else if (responseData.status === "error") { 3130 /** Error case: Display the error message */ 3131 var errorMessage = responseData.message; 3132 3133 /** Remove HTML tags */ 3134 var plainTextErrorMessage = errorMessage.replace(/<\/?[^>]+(>|$)/g, ""); 3135 3136 /** Remove newline characters and replace them with spaces */ 3137 plainTextErrorMessage = plainTextErrorMessage.replace(/\n/g, ' '); 3138 3139 /** Hide success message first */ 3140 $('#newsletter_success').hide(); 3141 3142 /** Empty text of newsletter_error */ 3143 $('#newsletter_error').text(''); 3144 3145 /** Display the error message in the specified <p> element */ 3146 $('#newsletter_error').text(plainTextErrorMessage).show(); 3147 } 3148 }) 3149 .fail(function (xhr, textStatus, errorThrown) { 3150 /** This function will be called when there's an error */ 3151 console.error("Error: " + errorThrown); 3152 /** Display an error message to the user or perform any other error handling */ 3153 /** Example: $('#error_message').text("An error occurred"); */ 3154 }); 3155 } 3156</script>
3156 3157
3158<script> 3159 if(window.location.href.indexOf('shopping/cart') != -1) 3160 { 3161 var id = new Array(); 3162 var price = jQuery('.cart_total h3')[0].innerHTML.replace("Cart Total: $",""). replace("",""); 3163 var len = jQuery('input[placeholder="Add Quanity"]').length; 3164 for(i=0;i<len;i++) 3165 { 3166 id.push(jQuery('input[placeholder="Add Quanity"]')[i].id); 3167 } 3168 var google_tag_params = { 3169 ecomm_prodid: id, 3170 ecomm_pagetype: 'cart', 3171 ecomm_totalvalue: price 3172 }; 3173 } 3174</script>
3174 3175
3176<script> 3177 if(window.location.pathname == '/') 3178 { 3179 var google_tag_params = { 3180 ecomm_pagetype: 'home' 3181 }; 3182 } 3183</script>
3183 3184
3185<script> 3186 try { 3187 if(page != undefined && page == "category") 3188 { 3189 var google_tag_params = { 3190 ecomm_pagetype: 'category' 3191 }; 3192 } 3193 3194 } catch (err) { 3195 // console.log("Error in page category check: " + err); 3196 } 3197 3198</script>
3198 3199 3200<!-- start code of benz_views/footer.php -->
3201<script> 3202 function showSubNav( from ){ 3203 $(".SubNavs").hide(); 3204 if($('.dynamicNavCont ul').length > 0){ 3205 $('.dynamicNavCont ul li').each(function(){ 3206 $(this).find('.fa').removeClass('fa-caret-up').addClass('fa-caret-down') 3207 }); 3208 } 3209 $(".productNavCont #nav"+from).show(); 3210 console.log($("#nav"+from).parent().find('.fa').length); 3211 if($(".productNavCont #nav"+from).parent().find('.fa').length > 0){ 3212 console.log($("#nav"+from).parent().find('.fa')); 3213 $(".productNavCont #nav"+from).parent().find('.fa').removeClass('fa-caret-down').addClass('fa-caret-up'); 3214 } 3215 } 3216 3217 function getUrlVars(){ 3218 var vars = [], hash; 3219 var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); 3220 for(var i = 0; i < hashes.length; i++) 3221 { 3222 hash = hashes[i].split('='); 3223 vars.push(hash[0]); 3224 vars[hash[0]] = hash[1]; 3225 } 3226 return vars; 3227 } 3228 3229 function openLogin() 3230 { 3231 var query_string = getUrlVars(); 3232 console.log(query_string); 3233 // window.location.replace('https://www.hondaws.com/checkout/account'); 3234 var _baseURL = "https://www.hondaws.com/checkout/account"; 3235 var finalURL = _baseURL + (query_string ? "?" + query_string : ""); 3236 3237 window.location.replace(finalURL); 3238 } 3239 3240 function openCreateAccount() 3241 { 3242 window.location.replace('https://www.hondaws.com/checkout/account'); 3243 } 3244</script>
vendor: 1 bytes, line 3244
3244
3245<script> 3246 $(document).ready(function() { 3247 3248 $('.panel-title').click(function() { 3249 var id = $(this).data('id'); 3250 var not = $(this).data('not'); 3251 $('#'+not).slideUp(); 3252 $('#'+id).slideDown(); 3253 //alert(id); 3254 }); 3255 if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { 3256 $("body").css("display","table"); 3257 } 3258 3259 $( ".topNavAnchors" ).hover( 3260 function() { 3261 showSubNav( $(this).attr("id") ); 3262 }, function() { 3263 //showSubNav( $(this).attr("id") ); 3264 } 3265 ); 3266 3267 $( ".dynamicTopNavAnchors" ).hover( 3268 function() { 3269 dynamicShowSubNav( $(this).attr("id") ); 3270 }, function() { 3271 console.log("footer"); 3272 dynamicShowSubNav( $(this).attr("id") ); 3273 //showSubNav( $(this).attr("id") ); 3274 } 3275 ); 3276 if (navigator.userAgent.match(/Tablet|iPad/i)) 3277 { 3278 $( ".dynamicTopNavAnchors" ).click( 3279 function() { 3280 dynamicShowSubNav( $(this).attr("id") ); 3281 }, function() { 3282 console.log("footer"); 3283 dynamicShowSubNav( $(this).attr("id") ); 3284 //showSubNav( $(this).attr("id") ); 3285 } 3286 ); 3287 } 3288 $(document).mouseup(function (e){ 3289 var container = $(".SubNavs"); 3290 if (!container.is(e.target) // if the target of the click isn't the container... 3291 && container.has(e.target).length === 0) // ... nor a descendant of the container 3292 { 3293 container.hide(); 3294 if(container.parent().find('.fa').length > 0) 3295 container.parent().find('.fa').removeClass('fa-caret-up').addClass('fa-caret-down'); 3296 } 3297 }); 3298 3299 try { 3300 3301 $('.popup-gallery').magnificPopup({ 3302 delegate: 'a', 3303 type: 'image', 3304 tLoading: 'Loading image #%curr%...', 3305 mainClass: 'mfp-img-mobile', 3306 gallery: { 3307 enabled: true, 3308 navigateByImgClick: false, 3309 preload: [0,1] // Will preload 0 - before current, and 1 after the current image 3310 }, 3311 image: { 3312 tError: '<a href="%url%">The image #%curr%</a> could not be loaded.', 3313 titleSrc: function(item) { 3314 return item.el.attr('title') + '<small>Honda, Sea-Doo and Can-Am of Winston-Salem™</small>'; 3315 } 3316 } 3317 }); 3318 } catch(err) { 3319 console.log("Error with magnificPopup AGAIN: " + err); 3320 } 3321 3322 }); 3323</script>
vendor: 1 bytes, line 3323
3323
3324<script type="text/javascript"> 3325 /* Submit on Enter */ 3326 $(document).ready(function(){ 3327 $('#search').keydown(function(e){ 3328 if(e.keyCode == 13) 3329 { 3330 e.preventDefault(); 3331 setSearch($('#search').val()); 3332 return false; 3333 } 3334 }); 3335 3336 $('.scl').click(function(e){ 3337 $('.scl').removeClass('active'); 3338 $(this).addClass('active'); 3339 $('.social-page').hide(); 3340 $('.'+$(this).data('link')).show(); 3341 }); 3342 3343 }); 3344 3345 function setURLSearch(event, url, section, id, name) 3346 { 3347 console.log('url: ' + url); 3348 console.log('section: ' + section); 3349 console.log('id: ' + id); 3350 console.log('name: ' + name); 3351 3352 $.post(base_url + 'ajax/setURLSearch/', 3353 { 3354 'ajax' : true, 3355 'url' : url, 3356 'section' : section, 3357 'name' : name, 3358 'id': id 3359 }, 3360 function(newURL) 3361 { 3362 console.log(newURL); 3363 window.location.href = base_url + 'shopping/productlist/' + newURL; 3364 3365 }); 3366 } 3367 3368 function fixedEncodeURIComponent (str) { 3369 return encodeURIComponent(str).replace(/[!'()]/g, escape).replace(/\*/g, "%2A"); 3370 } 3371 3372 function setSearch(search) 3373 { 3374 search = search.toLowerCase(); 3375 encoded = fixedEncodeURIComponent(search); 3376 console.log('Search: ' + encoded); 3377 window.location.href = base_url + 'shopping/productlist/SE-' + encoded; 3378 } 3379 3380 function removeHeaderSearch() { 3381 $.post(base_url + 'ajax/removeHeaderSearch/',{}, 3382 function(newURL) { 3383 }); 3384 } 3385 3386 function removeMainSearch(url, section, id, name) 3387 { 3388 $.post(base_url + 'ajax/removeSearch/', 3389 { 3390 'ajax' : true, 3391 'url' : url, 3392 'section' : section, 3393 'name' : name, 3394 'id': id 3395 }, 3396 function(newURL) 3397 { 3398 window.location.href = base_url + 'shopping/productlist/' + newURL; 3399 }); 3400 3401 } 3402 3403 3404</script>
3404 3405 3406 3407 3408 3409 3410 3411 3412
3413<script> 3414$(document).ready(function() 3415{ 3416 applyHeader(); 3417}); 3418 3419function applyHeader() 3420 { 3421 3422 $('.inr-link').click(function(){ 3423 $('html, body').animate({ 3424 scrollTop: $( $(this).attr('href') ).offset().top 3425 }, 1000); 3426 return false; 3427 }); 3428 3429 $('.sidemenu_js').bind('click', function() { 3430 var target=$(this).attr('data-target'); 3431 var target_class=$(this).attr('data-class'); 3432 if ($(this).hasClass('va_active')) { 3433 $(this).removeClass('va_active'); 3434 } else { 3435 $(this).addClass('va_active'); 3436 } 3437 }); 3438 3439 } 3440 3441 $(window).scroll(function(){ 3442 if ($(window).scrollTop() >= 50) { 3443 $('.combine_header').addClass('fix_header'); 3444 } 3445 else { 3446 $('.combine_header').removeClass('fix_header'); 3447 } 3448 }); 3449 </script>
3449 <div class="footer_bottom_bar"> 3450 <div class="container_b"> 3451 <div class="row"> 3452 <div class="col-md-6"> 3453 <p class="cwhite" style="margin-top:10px;">2026 COPYRIGHT VIRTUAL DEALER 360</p> 3454 </div> 3455 <div class="col-md-6 text-right"> 3456 <div class="bottom_logo_black"> 3457 POWERED BY : <a href="https://www.virtualdealer360.com/"><img class="rr_logo" src="/assets/footer_logos/vd_360.png" title="VIRTUAL DEALER 360" alt="VIRTUAL DEALER 360"></a> 3458 </div> 3459 <div class="bottom_logo_white" style="display:none;"> 3460 POWERED BY : <a href="https://www.virtualdealer360.com/"><img class="rr_logo" src="/assets/footer_logos/vd_360_white.png" title="VIRTUAL DEALER 360" alt="VIRTUAL DEALER 360"></a> 3461 </div> 3462 </div> 3463 </div> 3464 </div> 3465</div> 3466 <style> 3467 .bnz-nv{ 3468 transition:0.5s; 3469 } 3470 </style> 3471 3472
3472<script> 3473 function showSubNav( from ){ 3474 $(".SubNavs").hide(); 3475 3476 $(".productNavCont #nav"+from).show(); 3477 if($(".productNavCont #nav"+from).parent().find('.fa').length > 0) 3478 $(".productNavCont #nav"+from).parent().find('.fa').removeClass('fa-caret-down').addClass('fa-caret-up'); 3479 } 3480 function dynamicShowSubNav( from ){ 3481 $(".SubNavs").hide(); 3482 if($('.dynamicNavCont ul').length > 0){ 3483 $('.dynamicNavCont ul li').each(function(){ 3484 $(this).find('.fa').removeClass('fa-caret-up').addClass('fa-caret-down') 3485 }); 3486 } 3487 $(".dynamicNavCont #nav"+from).show(); 3488 if($(".dynamicNavCont #nav"+from).parent().find('.fa').length > 0) 3489 $(".dynamicNavCont #nav"+from).parent().find('.fa').removeClass('fa-caret-down').addClass('fa-caret-up'); 3490 } 3491 3492 //$( ".bnz-nv" ).on("mouseleave", function() { 3493 $(".SubNavs").hide('slow'); 3494 //}); 3495 3496 function openLogin() 3497 { 3498 window.location.replace('https://www.hondaws.com/checkout/account'); 3499 } 3500 3501 function openCreateAccount() 3502 { 3503 window.location.replace('https://www.hondaws.com/checkout/account'); 3504 } 3505 </script>
3505 3506 3507
3507<script> 3508 $(document).ready(function() { 3509 3510 if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { 3511 $("body").css("display","table"); 3512 } 3513 3514 $( ".topNavAnchors" ).hover( 3515 function() { 3516 showSubNav( $(this).attr("id") ); 3517 }, function() { 3518 //showSubNav( $(this).attr("id") ); 3519 } 3520 ); 3521 3522 $( ".dynamicTopNavAnchors" ).hover( 3523 function() { 3524 // console.log("master_v"); 3525 dynamicShowSubNav( $(this).attr("id") ); 3526 }, function() { 3527 dynamicShowSubNav( $(this).attr("id") ); 3528 //showSubNav( $(this).attr("id") ); 3529 } 3530 ); 3531 3532 if (navigator.userAgent.match(/Tablet|iPad/i)) 3533 { 3534 $( ".dynamicTopNavAnchors" ).click( 3535 function() { 3536 dynamicShowSubNav( $(this).attr("id") ); 3537 }, function() { 3538 // console.log("footer"); 3539 dynamicShowSubNav( $(this).attr("id") ); 3540 //showSubNav( $(this).attr("id") ); 3541 } 3542 ); 3543 } 3544 $(".SubNavs").hide('slow'); 3545 3546 3547 $(document).mouseup(function (e){ 3548 var container = $(".SubNavs"); 3549 if (!container.is(e.target) // if the target of the click isn't the container... 3550 && container.has(e.target).length === 0) // ... nor a descendant of the container 3551 { 3552 container.hide(); 3553 if(container.parent().find('.fa').length > 0) 3554 container.parent().find('.fa').removeClass('fa-caret-up').addClass('fa-caret-down'); 3555 } 3556 }); 3557 }); 3558 </script>
3558 3559 3560
3560<script type="text/javascript"> 3561 3562 /* Submit on Enter */ 3563 $(document).ready(function(){ 3564 $('#search').keydown(function(e){ 3565 if(e.keyCode == 13) 3566 { 3567 e.preventDefault(); 3568 setSearch($('#search').val()); 3569 return false; 3570 } 3571 }); 3572 }); 3573 3574 3575 3576 3577 function getSessionSearch() 3578 { 3579 $.post(base_url + 'ajax/getSessionSearchData/', 3580 { 3581 'ajax' : true 3582 }, 3583 function(session) 3584 { 3585 console.log(session); 3586 }); 3587 } 3588 3589 function setURLSearch(event, url, section, id, name) 3590 { 3591 event.preventDefault(); 3592 console.log('url: ' + url); 3593 console.log('section: ' + section); 3594 console.log('id: ' + id); 3595 console.log('name: ' + name); 3596 3597 $.post(base_url + 'ajax/setURLSearch/', 3598 { 3599 'ajax' : true, 3600 'url' : url, 3601 'section' : section, 3602 'name' : name, 3603 'id': id 3604 }, 3605 function(newURL) 3606 { 3607 console.log(newURL); 3608 window.location.href = base_url + 'shopping/productlist/' + newURL; 3609 /* 3610 var win = window.open(base_url + 'shopping/productlist/' + newURL, '_blank'); 3611 if (win) { 3612 //Browser has allowed it to be opened 3613 win.focus(); 3614 } else { 3615 //Browser has blocked it 3616 alert('Please allow popups for this website'); 3617 } 3618 */ 3619 3620 }); 3621 } 3622 3623 function removeMainSearch(url, section, id, name) 3624 { 3625 console.log('url: ' + url); 3626 console.log('section: ' + section); 3627 console.log('id: ' + id); 3628 console.log('name: ' + name); 3629 $.post(base_url + 'ajax/removeSearch/', 3630 { 3631 'ajax' : true, 3632 'url' : url, 3633 'section' : section, 3634 'name' : name, 3635 'id': id 3636 }, 3637 function(newURL) 3638 { 3639 //console.log("master",newURL); 3640 window.location.href = base_url + 'shopping/productlist/' + newURL; 3641 }); 3642 3643 } 3644 3645 3646 function fixedEncodeURIComponent (str) { 3647 return encodeURIComponent(str).replace(/[!'()]/g, escape).replace(/\*/g, "%2A"); 3648 } 3649 3650 function setSearch(search) 3651 { 3652 search = search.toLowerCase(); 3653 encoded = fixedEncodeURIComponent(search); 3654 encoded = encoded.replace(/%20/g, ""); 3655 //console.log('Search: ' + encoded); 3656 window.location.href = base_url + 'shopping/productlist/SE-'+ encoded; 3657 } 3658 3659 3660 function removeHeaderSearch() { 3661 $.post(base_url + 'ajax/removeHeaderSearch/',{}, 3662 function(newURL) { 3663 }); 3664 } 3665 3666 3667 3668 3669 </script>
3669 3670 3671 3672
3673<script> 3674 3675 var getUrlParameter = function getUrlParameter(sParam) { 3676 var sPageURL = window.location.search.substring(1), 3677 sURLVariables = sPageURL.split('&'), 3678 sParameterName, 3679 i; 3680 3681 for (i = 0; i < sURLVariables.length; i++) { 3682 sParameterName = sURLVariables[i].split('='); 3683 3684 if (sParameterName[0] === sParam) { 3685 return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]); 3686 } 3687 } 3688 }; 3689 3690 var muoptions = { 3691 3692 url: function(phrase) { 3693 condition = getUrlParameter('fltr'); 3694 return_url = base_url + "motorcycle_ci/mu_predictive_search/" + condition; 3695 console.log(return_url); 3696 return return_url; 3697 }, 3698 3699 getValue: "name", 3700 3701 list: { 3702 maxNumberOfElements: 10, 3703 match: { 3704 enabled: false 3705 }, 3706 onClickEvent: function() { 3707 var value = $("#mu_search").getSelectedItemData().name; 3708 console.log(value); 3709 $("#mu_search").val(value).trigger("change"); 3710 //$("form.moto_search_form").submit(); 3711 if($(window).width() > 767 && $("form#moto_search").length > 0){ 3712 $("form#moto_search").submit(); 3713 }else if($(window).width() <= 767 && $("form#moto_search_mobile").length > 0){ 3714 $("form#moto_search_mobile").submit(); 3715 }else{ 3716 $("form.moto_search_form").submit(); 3717 } 3718 3719 } 3720 }, 3721 3722 ajaxSettings: { 3723 dataType: "json", 3724 method: "POST", 3725 data: { 3726 dataType: "json" 3727 } 3728 }, 3729 3730 preparePostData: function(data) { 3731 data.phrase = $("#mu_search").val(); 3732 return data; 3733 }, 3734 3735 requestDelay: 400 3736 }; 3737 3738 $("#mu_search").easyAutocomplete(muoptions); 3739 3740 var mumobileoptions = { 3741 3742 url: function(phrase) { 3743 condition = getUrlParameter('fltr'); 3744 return_url = base_url + "motorcycle_ci/mu_predictive_search/" + condition; 3745 console.log(return_url); 3746 return return_url; 3747 }, 3748 3749 getValue: "name", 3750 3751 list: { 3752 maxNumberOfElements: 10, 3753 match: { 3754 enabled: false 3755 }, 3756 onClickEvent: function() { 3757 var value = $("#mu_search_mobile").getSelectedItemData().name; 3758 console.log(value); 3759 $("#mu_search").val(value).trigger("change"); 3760 //$("form.moto_search_form").submit(); 3761 if($(window).width() > 767 && $("form#moto_search").length > 0){ 3762 $("form#moto_search").submit(); 3763 }else if($(window).width() <= 767 && $("form#moto_search_mobile").length > 0){ 3764 $("form#moto_search_mobile").submit(); 3765 }else{ 3766 $("form.moto_search_form").submit(); 3767 } 3768 3769 3770 } 3771 }, 3772 3773 ajaxSettings: { 3774 dataType: "json", 3775 method: "POST", 3776 data: { 3777 dataType: "json" 3778 } 3779 }, 3780 3781 preparePostData: function(data) { 3782 data.phrase = $("#mu_search_mobile").val(); 3783 return data; 3784 }, 3785 3786 requestDelay: 400 3787 }; 3788 3789 $(".goBtn_b").click(function() { 3790 if($(window).width() > 767 && $("form#moto_search").length > 0) 3791 $("form#moto_search").submit(); 3792 else if($(window).width() <= 767 && $("form#moto_search_mobile").length > 0) 3793 $("form#moto_search_mobile").submit(); 3794 else 3795 $("form.moto_search_form").submit(); 3796 }); 3797 3798 $("#mu_search_mobile").easyAutocomplete(mumobileoptions); 3799 3800 var mumainoptions = { 3801 3802 url: function(phrase) { 3803 condition = getUrlParameter('fltr'); 3804 return_url = base_url + "motorcycle_ci/mu_predictive_search/" + condition; 3805 console.log(return_url); 3806 return return_url; 3807 }, 3808 3809 getValue: "name", 3810 3811 list: { 3812 maxNumberOfElements: 10, 3813 match: { 3814 enabled: false 3815 }, 3816 onClickEvent: function() { 3817 var value = $("#major_unit_search").getSelectedItemData().name; 3818 console.log(value); 3819 $("#major_unit_search").val(value).trigger("change"); 3820 $( "#major_unit_search_form" ).submit(); 3821 3822 } 3823 }, 3824 3825 ajaxSettings: { 3826 dataType: "json", 3827 method: "POST", 3828 data: { 3829 dataType: "json" 3830 } 3831 }, 3832 3833 preparePostData: function(data) { 3834 data.phrase = $("#major_unit_search").val(); 3835 return data; 3836 }, 3837 3838 requestDelay: 400 3839 }; 3840 3841 $("#major_unit_search").easyAutocomplete(mumainoptions); 3842 3843 $("#mu_search_mobile").keydown(function(e){ 3844 if(e.keyCode == 13) 3845 { 3846 e.preventDefault(); 3847 console.log($("#mu_search_mobile").val()); 3848 $("#mu_search").val($("#mu_search_mobile").val()); 3849 $("form.moto_search_form").submit(); 3850 return false;
3851 } 3852 }); 3853 3854 3855 var options = { 3856 3857 url: function(phrase) { 3858 return base_url + "welcome/predictive_search"; 3859 }, 3860 3861 getValue: "name", 3862 3863 list: { 3864 maxNumberOfElements: 10, 3865 match: { 3866 enabled: false 3867 }, 3868 onClickEvent: function() { 3869 var value = $("#search").getSelectedItemData().name; 3870 console.log(value); 3871 setSearch(value); 3872 } 3873 }, 3874 3875 ajaxSettings: { 3876 dataType: "json", 3877 method: "POST", 3878 data: { 3879 dataType: "json" 3880 } 3881 }, 3882 3883 preparePostData: function(data) { 3884 data.phrase = $("#search").val(); 3885 return data; 3886 }, 3887 3888 requestDelay: 400 3889 }; 3890 $("#search").easyAutocomplete(options); 3891 3892 var mobileoptions = { 3893 3894 url: function(phrase) { 3895 return base_url + "welcome/predictive_search"; 3896 }, 3897 3898 getValue: "name", 3899 3900 list: { 3901 maxNumberOfElements: 10, 3902 match: { 3903 enabled: false 3904 }, 3905 onClickEvent: function() { 3906 var value = $("#search_mobile").getSelectedItemData().name; 3907 console.log(value); 3908 setSearch(value); 3909 } 3910 }, 3911 3912 ajaxSettings: { 3913 dataType: "json", 3914 method: "POST", 3915 data: { 3916 dataType: "json" 3917 } 3918 }, 3919 3920 preparePostData: function(data) { 3921 data.phrase = $("#search_mobile").val(); 3922 return data; 3923 }, 3924 3925 requestDelay: 400 3926 }; 3927 $("#search_mobile").easyAutocomplete(mobileoptions); 3928 3929 $("form.moto_search_form").on("submit", function(e) { 3930 if ($("#search").val() !== undefined) 3931 { 3932 e.preventDefault(); 3933 e.stopPropagation(); 3934 console.log($("#search").val()); 3935 setSearch($("#search").val()); 3936 } 3937 3938 }); 3939 $("#search_mobile").keydown(function(e){ 3940 if(e.keyCode == 13) 3941 { 3942 e.preventDefault(); 3943 console.log($("#search_mobile").val()); 3944 $("#search").val($("#search_mobile").val()); 3945 $("form.moto_search_form").submit(); 3946 return false; 3947 } 3948 }); 3949 3950 $("form.moto_search_form .goBtn_b").on("click", function(e) { 3951 if ($("#search").val() !== undefined) 3952 { 3953 e.preventDefault(); 3954 e.stopPropagation(); 3955 console.log($("#search").val()); 3956 setSearch($("#search").val()); 3957 } 3958 }); 3959 </script>
3959<!-- Start Tracking --> 3960<!-- BEGIN: Google Trusted Stores --> 3961 3962 3963 3964 3965 3966 3967 3968<!-- Google Code for Remarketing Tag --> 3969<!-------------------------------------------------- 3970Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. See more information and instructions on how to setup the tag on: http://google.com/ad$ 3971---------------------------------------------------> 3972
3972<script> 3973 var curr = "$"; 3974 var curr_code = ""; 3975 if(window.location.pathname == "/"){ 3976 var google_tag_params = { 3977 ecomm_pagetype: 'home', 3978 ecomm_totalvalue: 0 3979 }; 3980 } 3981 else if (window.location.pathname.indexOf('shopping/productlist') >= 0){ 3982 var google_tag_params = { 3983 ecomm_pagetype: 'category', 3984 }; 3985 } 3986 else if (window.location.pathname.indexOf('shopping/item') >= 0){ 3987 3988 var pid = []; 3989 for(i=1 ;i<jQuery('select[name="question[]"] option').length ;i++){ 3990 pid.push(jQuery('select[name="question[]"] option')[i].value) 3991 } 3992 var google_tag_params = { 3993 ecomm_prodid: pid, 3994 ecomm_pagetype: 'product', 3995 ecomm_totalvalue: parseFloat(jQuery('.prodPrice').text().replace(curr,'').replace(curr_code,'')) 3996 }; 3997 } 3998 else if (window.location.pathname == "/shopping/cart"){ 3999 4000 var pid = []; 4001 jQuery('input[placeholder="Add Quanity"]').each(function(){ 4002 pid.push(jQuery(this).attr('id')) 4003 }) 4004 4005 var google_tag_params = { 4006 ecomm_prodid: pid, 4007 ecomm_pagetype: 'cart', 4008 ecomm_totalvalue: parseFloat(jQuery('.cart_total h3').text().split(curr)[1]) 4009 }; 4010 } 4011 else if (window.location.href.indexOf('confirm') > 0 ){ 4012 var google_tag_params = { 4013 ecomm_pagetype: 'purchase' 4014 }; 4015 } 4016 else{ 4017 var google_tag_params = { 4018 ecomm_pagetype: 'other', 4019 ecomm_totalvalue: 0 4020 }; 4021 } 4022 </script>
4022 4023 <!-- Google Code for Remarketing Tag --> 4024 <!-------------------------------------------------- 4025 Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. See more information and instructions on how to setup the tag on: http://google.com/ads/remarketingsetup 4026 ---------------------------------------------------> 4027
4027<script type="text/javascript"> 4028 /* <![CDATA[ */ 4029 var google_conversion_id = 1052220103; 4030 var google_custom_params = window.google_tag_params; 4031 var google_remarketing_only = true; 4032 /* ]]> */ 4033 </script>
4033 4034
4034<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"> 4035 </script>
4035 4036 <noscript> 4037 <div style="display:inline;"> 4038 <img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/1052220103/?guid=ON&script=0"/> 4039 </div> 4040 </noscript> 4041 4042 4043 4044<!-- Google Analytics -->
4045<script type="text/javascript">
vendor: 335 bytes, lines 4045-4051
4045 4046(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ 4047(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), 4048m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 4049})(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); 4050 4051ga('create', '
4051UA-12591015-1
vendor: 36 bytes, lines 4051-4052
4051', 'auto'); 4052ga('send', 'pageview');
4053ga('require', 'ecommerce'); 4054 </script>
4054 4055 4056<!-- End Google Analytics --> 4057<!-- End Tracking --> 4058
4059<script> 4060var csid = getCookie("csid"); 4061if(csid == undefined){ 4062 var csid = uuidv4(); 4063 setCookie('csid',csid,365); 4064} 4065 4066 4067ga('set','userId',csid); 4068 4069function uuidv4() { 4070 return ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g, c => 4071 (c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16) 4072 ); 4073} 4074function setCookie(name,value,days) { 4075 var expires = ""; 4076 if (days) { 4077 var date = new Date(); 4078 date.setTime(date.getTime() + (days*24*60*60*1000)); 4079 expires = "; expires=" + date.toUTCString(); 4080 } 4081 document.cookie = name + "=" + (value || "") + expires + "; path=/"; 4082} 4083function getCookie(name) { 4084 var nameEQ = name + "="; 4085 var ca = document.cookie.split(';'); 4086 for(var i=0;i < ca.length;i++) { 4087 var c = ca[i]; 4088 while (c.charAt(0)==' ') c = c.substring(1,c.length); 4089 if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); 4090 } 4091 return null; 4092} 4093function eraseCookie(name) { 4094 document.cookie = name +'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;'; 4095} 4096 4097 4098</script>
4098 4099 4100 4101 4102 4103 4104 4105 4106
4106<script type="application/javascript"> 4107 var model_val; 4108 var make_val; 4109 var year_val; 4110 var machine_val; 4111 4112 4113 function updateGarage() 4114 { 4115 var pathname = window.location.pathname; 4116 $('#update_garage_form').append('<input type="hidden" name="url" value="'+pathname +'" />'); 4117 $('#update_garage_form').submit(); 4118 4119 } 4120 4121 function executeMachine() { 4122 try { 4123 $("#machine").selectbox({ 4124 onChange: function (val, inst) { 4125 if (val != '') { 4126 machine_val = val; 4127 $.ajax( 4128 { 4129 async: false, 4130 type: 'POST', 4131 url: base_url +'ajax/getMake/', 4132 data: { 4133 'machineId': val, 4134 'ajax': true 4135 }, 4136 success: function (encodeResponse) { 4137 responseData = JSON.parse(encodeResponse); 4138 $('#make').selectbox("detach"); 4139 var mySelect = $('#make'); 4140 mySelect.html($('<option></option>').val('').html('-- Select Make --')); 4141 4142 4143 // JLB 09-28-17 4144 // It would be great if these were alphabetized, otherwise, it's a little stupid. 4145 var reverseMap = {}; 4146 var arr = []; 4147 for (var x in responseData) { 4148 reverseMap[responseData[x]] = x; 4149 arr.push(responseData[x]); 4150 } 4151 4152 // now, sort it 4153 arr.sort(function (a, b) { 4154 a = a.toLowerCase(); 4155 b = b.toLowerCase(); 4156 if (a < b) { 4157 return -1 4158 } else if (a > b) { 4159 return 1; 4160 } else { 4161 return 0; 4162 } 4163 }); 4164 4165 // Now, iterate and make them in alphabetical order 4166 for (var i = 0; i < arr.length; i++) { 4167 var text = arr[i]; 4168 var val = reverseMap[text]; 4169 mySelect.append( 4170 $('<option></option>').val(val).html(text) 4171 ); 4172 } 4173 4174 executeMake(); 4175 $('#make').selectbox("attach"); 4176 } 4177 }); 4178 } 4179 else { 4180 $('#make').selectbox("detach"); 4181 $('#make').html($('<option></option>').val('').html('-- Make --')); 4182 executeMake(); 4183 $('#make').selectbox("attach"); 4184 } 4185 $('#model').selectbox("detach"); 4186 $('#year').selectbox("detach"); 4187 $('#model').html($('<option></option>').val('').html('-- Model --')); 4188 executeModel(); 4189 $('#model').selectbox("attach"); 4190 $('#year').html($('<option></option>').val('').html('-- Year --')); 4191 executeYear(); 4192 $('#year').selectbox("attach"); 4193 $('#add').attr('class', 'button_no'); 4194 4195 } 4196 }); 4197 } catch(err) { 4198 console.log("Error executeMachine: " + err); 4199 } 4200 } 4201 4202 function executeMake() { 4203 try { 4204 4205 4206 $("#make").selectbox({ 4207 onChange: function (val, inst) { 4208 if (val != '') { 4209 make_val = val; 4210 $.ajax( 4211 { 4212 async: false, 4213 type: 'POST', 4214 url: base_url +'ajax/getNewYear/', 4215 data: { 4216 'makeId': val, 4217 'ajax': true 4218 }, 4219 success: function (encodeResponse) { 4220 responseData = JSON.parse(encodeResponse); 4221 4222 var arr = []; 4223 4224 for (var x in responseData) { 4225 arr.push(responseData[x]); 4226 } 4227 4228 arr.sort(function (a, b) { 4229 return b - a 4230 }); 4231 console.log(["Array in executeMake success", arr]); 4232 $('#year').selectbox("detach"); 4233 var mySelect = $('#year'); 4234 mySelect.html($('<option></option>').val('').html('-- Select Year --')); 4235 $.each(arr, function (val, text) { 4236 mySelect.append( 4237 $('<option></option>').val(text).html(text) 4238 ); 4239 }); 4240 executeYear(); 4241 $('#year').selectbox("attach"); 4242 } 4243 }); 4244 } 4245 else { 4246 $('#year').selectbox("detach"); 4247 $('#year').html($('<option></option>').val('').html('-- Model --')); 4248 executeYear(); 4249 $('#year').selectbox("attach"); 4250 } 4251 $('#model').selectbox("detach"); 4252 $('#model').html($('<option></option>').val('').html('-- Year --')); 4253 executeModel(); 4254 $('#model').selectbox("attach"); 4255 $('#add').attr('class', 'button_no'); 4256 4257 } 4258 }); 4259 } catch(err) { 4260 console.log("Error executeMake: " + err); 4261 } 4262 } 4263 4264 function executeYear() { 4265 try { 4266 4267 $("#year").selectbox({ 4268 onChange: function (val, inst) { 4269 if (val != '') { 4270 year_val = val; 4271 $.ajax( 4272 { 4273 async: false, 4274 type: 'POST', 4275 url: base_url +'ajax/getNewModel/', 4276 data: { 4277 'year': val, // $("#update_garage_form [name=year] option:selected").text(), 4278 'makeId': make_val, 4279 'ajax': true 4280 }, 4281 success: function (encodeResponse) { 4282 responseData = JSON.parse(encodeResponse); 4283 4284 var arr = []; 4285 var reverseMap = {}; 4286 4287 for (var x in responseData) { 4288 arr.push(responseData[x]); 4289 reverseMap[responseData[x]] = x; 4290 } 4291 4292 arr.sort(function (a, b) { 4293 a = a.toLowerCase(); 4294 b = b.toLowerCase(); 4295 if (a < b) { 4296 return -1 4297 } else if (a > b) { 4298 return 1; 4299 } else { 4300 return 0; 4301 } 4302 }); 4303 $('#model').selectbox("detach"); 4304 var mySelect = $('#model'); 4305 mySelect.html($('<option></option>').val('').html('-- Select Model --')); 4306 for (var i = 0; i < arr.length; i++) { 4307 var text = arr[i]; 4308 var val = reverseMap[text]; 4309 mySelect.append( 4310 $('<option></option>').val(val).html(text) 4311 ); 4312 } 4313 executeModel(); 4314 $('#model').selectbox("attach"); 4315 } 4316 }); 4317 } 4318 else { 4319 $('#model').selectbox("detach"); 4320 $('#model').html($('<option></option>').val('').html('-- Year --')); 4321 executeModel(); 4322 $('#model').selectbox("attach"); 4323 } 4324 $('#add').attr('class', 'button_no'); 4325 4326 } 4327 }); 4328 } catch(err) { 4329 console.log("Error executeYear: " + err); 4330 } 4331 } 4332 4333 function executeModel() 4334 { 4335 try { 4336 4337 $("#model").selectbox({ 4338 onChange: function (val, inst) { 4339 displayAdd(val); 4340 updateGarage(); 4341 } 4342 }); 4343 4344 } catch(err) { 4345 console.log("Error executeModel: " + err); 4346 } 4347 } 4348 4349 4350 function displayAdd(val) 4351 { 4352 if(val != '') 4353 $('#add').attr('class', 'button' ); 4354 else 4355 $('#add').attr('class', 'button_no' ); 4356 } 4357 4358 4359 // JLB 09-27-17 4360 // I have no idea why these were run at the top before the functions were defined, and I fear running them does something bad...but it looks relatively safe. 4361 (function() { 4362 // used for fitment/garrage-part-number 4363 executeMachine(); 4364 executeMake(); 4365 executeModel(); 4366 executeYear(); 4367 })(); 4368 4369</script>
4369 4370 4371
4371<script type="application/javascript"> 4372 function showVideo(vidId, vidTit, override_id, override_vdottle, id_extra) { 4373 if (!override_id) { 4374 override_id = "mainVideo"; 4375 } 4376 4377 if (!override_vdottle) { 4378 override_vdottle = "vdottl"; 4379 } 4380 4381 if (!id_extra) { 4382 id_extra = ""; 4383 } 4384 4385 var mainVideo = $('#' + override_id).data('id'); 4386 //var mainTitle = $('.vdottl').html(); 4387 $('.' + override_vdottle).html(vidTit); 4388 $("#" + override_id)[0].src = "https://www.youtube.com/embed/" + vidId + "?rel=0&autoplay=1"; 4389 $('#' + override_id).data('id', vidId); 4390 //$('.shwVidHalf').show(); 4391 $('#' + vidId + id_extra).hide(); 4392 $('#' + mainVideo + id_extra).show(); 4393 //$("#mainVideo")[0].src = "https://www.youtube.com/embed/"+vidId+"?rel=0&autoplay=1"; 4394 } 4395</script>
4395 4396
4396<script> 4397 //cntnr-ttl 4398 //if( "pagesBrand" == "index" ) { 4399 $('.grghdng').html($('.cntnr-ttl').html()); 4400 $('.cntnr-ttl').addClass('ttldspl'); 4401 //} else { 4402 // $('.cntnr-ttl').removeClass('ttldspl'); 4403 //} 4404 //if (!$('.grghdng').is(':empty')){ 4405 // $('.grghdng').addClass('mrgn60'); 4406 //} else { 4407 // $('.grghdng').removeClass('mrgn60'); 4408 //} 4409 </script>
4409 4410
4410<script> 4411(function(d, s, id) { 4412 var js, fjs = d.getElementsByTagName(s)[0]; 4413 if (d.getElementById(id)) return; 4414 js = d.createElement(s); js.id = id; 4415 js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5&appId=1038872762878770"; 4416 fjs.parentNode.insertBefore(js, fjs); 4417}(document, 'script', 'facebook-jssdk')); 4418</script>
4418 4419 4420
4420<script> 4421 var url = window.location.href; 4422 4423 var resetAll = function() { 4424} 4425 4426switch (url) { 4427 4428 4429} 4430 </script>
4430 4431
4431<script type="application/javascript" src="https://www.hondaws.com/custom.js" ></script>
4431 4432 4433 </body> 4434</html>
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.