1 2 3 4 5 6<!DOCTYPE html> 7<html lang="en" prefix="og: http://ogp.me/ns#"> 8 <head> 9 <meta name="author" content="Sigma Photo https://sigmaphoto.com.au" /> 10 11 12<meta name="generator" content="Sigma Photo" /> 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36<title>Login | Sigma Photo</title> 37<meta name="description" content="Login"/> 38 39 40 41 42 43<meta name="robots" content="noindex, nofollow" /> 44 45 <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> 46 <meta charset="utf-8"> 47 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 48 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> 49 <meta name="theme-color" content="#000"> 50 <meta name="mobile-web-app-capable" content="yes"> 51 52 53 <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> 54 <meta name="google-site-verification" content="wTbuN-UVTSbEFowrvO1M72azpXZNH8ksIce4dRf3s3Q" /><!-- https:// --> 55 <meta name="google-site-verification" content="Sud53wT-mga6HWHmNYdxobT47q2MfIr_XEciP2Ky1lg" /><!-- https://www --> 56 <meta name="google-site-verification" content="5uw4i8R9bJ0MNwTC0wXUcJjBbkwn9wr_WuoN_1hdKLA" /><!-- test site --> 57 <meta name="facebook-domain-verification" content="wu0mqfrm6sk845nwn2239yhbzyevhs" /> 58 59 <link rel="preconnect" href="https://maxcdn.bootstrapcdn.com"> 60<link rel="preconnect" href="https://code.jquery.com"> 61<link rel="preconnect" href="https://cdnjs.cloudflare.com"> 62<link rel="preconnect" href="https://ajax.googleapis.com"> 63 64 65<link rel="preconnect" href="https://d3dy1x2aulifge.cloudfront.net"> 66 67 68 <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous"> 69<link rel="stylesheet" media="screen" type="text/css" href="https://d3dy1x2aulifge.cloudfront.net/ts1761269046/style_sheets/av-aggregated-css.min.css"> 70<link rel="stylesheet" media="screen" type="text/css" href="https://d3dy1x2aulifge.cloudfront.net/ts1761269046/style_sheets/crk-custom-2025.min.css"> 71<link rel="stylesheet" media="screen" type="text/css" href="https://d3dy1x2aulifge.cloudfront.net/ts1761269046/style_sheets/megasearch.min.css"> 72<link href="https://fonts.googleapis.com/css?family=Kalam:400,700&display=swap" rel="stylesheet"> 73<link href="https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700" rel="stylesheet"> 74 75<link rel="stylesheet" media="screen" type="text/css" href="https://sachinchoolur.github.io/lightslider/dist/css/lightslider.css"> 76<link rel="stylesheet" media="screen" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/2.7.1/css/lightgallery.min.css"> 77<link rel="stylesheet" media="screen" type="text/css" href="//code.jquery.com/ui/1.12.1/themes/blitzer/jquery-ui.min.css"> 78<link rel="stylesheet" media="screen" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.css"> 79 80 81<link type="text/css" rel="stylesheet" href="https://d3dy1x2aulifge.cloudfront.net/ts1761269043/style_sheets/av-print.min.css" media="print" /> 82 83 84 85 86 87 88 89 90 <link href="https://sigmaphoto.com.au/login" rel="canonical" /> 91 92 93 <!-- Global site tag (gtag.js) - Google Analytics -->
vendor: 64 bytes, lines 93-94
93 94<script async src="https://www.googletagmanager.com/gtag/js?id=
94G-1FB6C8W1W7
vendor: 12 bytes, line 94
94"></script>
95<script> 96
vendor: 134 bytes, lines 96-100
96window.dataLayer = window.dataLayer || []; 97 function gtag(){dataLayer.push(arguments);} 98 gtag('js', new Date()); 99 100 gtag('config', '
100G-1FB6C8W1W7
vendor: 4 bytes, line 100
100');
101</script>
101 102 103 104 105 106
106<script> 107 gtag('set', {'user_id': 'casual'}); 108 dataLayer.push({"user_id": "casual"}); 109 </script>
109 110 111 112 113<!-- Google Tag Manager --> 114
114<script>
vendor: 335 bytes, lines 114-118
114(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 115 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 116 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 117 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 118 })(window,document,'script','dataLayer','
118GTM-KC37V79
vendor: 3 bytes, line 118
118');
118</script>
118 119<!-- End Google Tag Manager --> 120 121 122 123 124
124<script type="application/ld+json"> 125 { 126 "@context": "http://schema.org", 127 "@type": "Organization", 128 "name": "Sigma Photo", 129 "url": "https://sigmaphoto.com.au", 130 "logo": "<img src="https://d3dy1x2aulifge.cloudfront.net/ts1761268928/attachments/CmsSetting/19/sigma_logo_new.png">" 131 } 132 </script>
132 133 134 135 <link rel="shortcut icon" href="https://d3dy1x2aulifge.cloudfront.net/ts1761268928/attachments/CmsSetting/8/favicon.png" type="image/png" /> 136 <!--[if lt IE 9 ]> 137
137<script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js" type="text/javascript"></script>
137 138 <![endif]--> 139
139<script>document.documentElement.classList = 'js';</script>
139 140
140<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js" crossorigin="anonymous" type="text/javascript"></script>
140 141
141<script src="//code.jquery.com/ui/1.13.2/jquery-ui.min.js" type="text/javascript"></script>
141 142
142<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe" crossorigin="anonymous"></script>
142 143 </head> 144 145 146 147<body class="overflow-unset bg-white"> 148 149 150
150<script id="mcjs">!function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,"script","https://chimpstatic.com/mcjs-connected/js/users/cd5ae63206382fd74401b57fe/252d50e2d72d945a3e7a70d21.js");</script>
150 151 152 <!-- Google Tag Manager (noscript) -->
vendor: 70 bytes, lines 152-153
152 153 <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=
153GTM-TQVV8ZM
vendor: 87 bytes, lines 153-155
153" 154 height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> 155
155<!-- End Google Tag Manager (noscript) --> 156 157 158 159 <div class="search-wrapper"> 160 <p class="offcanvasSearchTitle" id="offcanvasSearchLabel"> 161 Search for Anything 162 <span class="offCanvasSearchClose">Close</span> 163 </p> 164 <form class="" id="megasearch" action="/search"> 165 <input class="av-search-input" autocomplete="off" placeholder="Search by Keyword" id="q" type="text" name="q" value=""> 166 167 <button class="av-search-btn" name="submit" type="submit" aria-label="Click to search our products"> 168 <svg class="av-search-svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path d="M384 208A176 176 0 1 0 32 208a176 176 0 1 0 352 0zM343.3 366C307 397.2 259.7 416 208 416C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208c0 51.7-18.8 99-50 135.3L507.3 484.7c6.2 6.2 6.2 16.4 0 22.6s-16.4 6.2-22.6 0L343.3 366z"/></svg> 169 170 </button> 171 </form> 172 <a href="/search?q=&submit=" id="thisSearchAll" class="megasearch-link">View all</a> 173 <style>.popover{margin-top:24px!important;}</style> 174 <div id="search-results-container"></div> 175</div> 176 177<nav class="navbar navbar-expand-xl sticky-top" aria-label="Offcanvas navbar large"> 178 <div class="container-fluid bg-white pt-3 pb-2 ps-0"> 179 180 181 <div class="col-4 col-sm-5"> 182 <a class="nav-menu-trigger" data-bs-toggle="offcanvas" data-bs-target="#offcanvasMainNav" aria-controls="offcanvasMainNav" aria-label="Toggle navigation"> 183 Menu 184 </a> 185 <div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasMainNav" aria-labelledby="offcanvasMainNavLabel"> 186 187 <div class="offcanvas-header"> 188 <a data-bs-dismiss="offcanvas" aria-label="Close">Menu</a> 189 <a class="navCloseMobile" data-bs-dismiss="offcanvas" aria-label="Close">Close</a> 190 </div> 191 192 <a class="collapseNavMobile firstMobileNav" data-bs-toggle="collapse" href="#collapseProducts" role="button" aria-expanded="false" aria-controls="collapseProducts"> 193 Products 194 <span class="me-2 icon-toggle"> 195 <svg class="mobile-nav-icon rotatable-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"> 196 <path d="M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32v144H48c-17.7 0-32 14.3-32 32s14.3 32 32 32h144v144c0 17.7 14.3 32 32 32s32-14.3 32-32V288h144c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"/> 197 </svg> 198 </span> 199 </a> 200 201<div class="collapse" id="collapseProducts"> 202 <ul> 203 <li><a class="" href="/sigma-lenses">Lenses</a></li> 204 <li><a class="" href="/sigma-cine-lenses">Cine Lenses</a></li> 205 <li><a class="" href="/sigma-cameras">Cameras</a></li> 206 <li><a class="" href="/accessories">Accessories</a></li> 207 </ul> 208</div> 209 210<a class="collapseNavMobile" data-bs-toggle="collapse" href="#collapseAizu" role="button" aria-expanded="false" aria-controls="collapseAizu"> 211 Made in Aizu 212 <span class="me-2 icon-toggle"> 213 <svg class="mobile-nav-icon rotatable-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"> 214 <path d="M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32v144H48c-17.7 0-32 14.3-32 32s14.3 32 32 32h144v144c0 17.7 14.3 32 32 32s32-14.3 32-32V288h144c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"/> 215 </svg> 216 </span> 217</a> 218 219<div class="collapse" id="collapseAizu"> 220 <ul> 221 <li><a class="" href="/about">About Sigma</a></li> 222 <li><a class="" href="/about/manufacturing">Manufacturing</a></li> 223 <li><a class="" href="/about/factory">Factory</a></li> 224 <li><a class="" href="/about/sustainability">Sustainability</a></li> 225 <li><a class="" href="https://www.sigma-global.com/en/history/" target="_blank">History</a></li> 226 </ul> 227</div> 228 229 <a class="collapseNavMobile" href="/blogs/inspiration" > 230 Inspiration 231 </a> 232 233 <a class="collapseNavMobile" href="/support"> 234 Support 235 </a> 236 237 <a class="collapseNavMobile" href="/blogs/news"> 238 News 239 </a> 240 241 242 <a class="collapseNavMobile" href="/login"> 243 Log in 244 </a> 245 246 247 248 249 250 <div class="offcanvas-body lg-nav-wrap"> 251 <ul class="nav p-0 col-md-auto mb-2 justify-content-start mb-md-0"> 252 253 <li class="nav-item dropdown"> 254 <a class="nav-link dropdown-toggle pe-2" href="#" data-bs-toggle="dropdown" aria-expanded="false">Products</a> 255 <ul class="dropdown-menu"> 256 <li><a class="dropdown-item" href="/sigma-lenses">Lenses</a></li> 257 <li><a class="dropdown-item" href="/sigma-cine-lenses">Cine Lenses</a></li> 258 <li><a class="dropdown-item" href="/sigma-cameras">Cameras</a></li> 259 <li><a class="dropdown-item" href="/accessories">Accessories</a></li> 260 </ul> 261 <div class="dropdown-menu-overlay"></div> 262 </li> 263 264 <li class="nav-item dropdown"> 265 <a class="nav-link dropdown-toggle ps-1 pe-2" href="#" data-bs-toggle="dropdown" aria-expanded="false">Made in Aizu</a> 266 <ul class="dropdown-menu" style="left: -108px !important;"> 267 <li><a class="dropdown-item" href="/about">About Sigma</a></li> 268 <li><a class="dropdown-item" href="/about/manufacturing">Manufacturing</a></li> 269 <li><a class="dropdown-item" href="/about/factory">Factory</a></li> 270 <li><a class="dropdown-item" href="/about/sustainability">Sustainability</a></li> 271 <li><a class="dropdown-item" target="_blank" href="https://www.sigma-global.com/en/history/">History</a></li> 272 </ul> 273 <div class="dropdown-menu-overlay"></div> 274 </li> 275 276 277 <li><a href="/blogs/inspiration" class="nav-link px-1">Inspiration</a></li> 278 <li><a href="/support" class="nav-link px-1">Support</a></li> 279 <li><a href="/blogs/news" class="nav-link px-1">News</a></li> 280 </ul> 281 </div> 282 </div> 283 </div> 284 285 286 287 288 <div class="col-4 col-sm-2 mb-2 mb-md-0"> 289 <a href="/" class=""> 290 <img src="https://d3dy1x2aulifge.cloudfront.net/ts1761268935/attachments/PageLayout/24/SIGMA_Wordmark_Black_RGB.svg" alt="sigmaphoto.com.au header logo" class="main-hdr-logo img-fluid mx-auto d-block"> 291 </a> 292 </div> 293 294 295 <div class="col-4 col-sm-5 text-end"> 296 <ul class="nav col-md-auto mb-2 justify-content-end mb-md-0"> 297 <li class="d-none d-lg-block"> 298 299 <a href="/login" class="nav-link px-2">Log In</a> 300 301 302 303 </li> 304 305 <li class="nav-link px-2 show-megasearch">Search</li> 306 <li><a href="/cart" class="cart-icon-number nav-link px-2"><div data-avenue-part="cart-icon-number" data-avenue-reload="cart"> 307<span class="d-inline-block d-sm-none"> 308<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" style="fill:#999;height:16px;"><!--!Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path d="M8 0L0 0 0 16l8 0 49.8 0 94.4 362 1.6 6 6.2 0 336 0 8 0 0-16-8 0-329.8 0-20.9-80L496 288 571 48l5-16-16.8 0L78.5 32 71.7 6 70.2
3080 64 0 8 0zM82.7 48l471.5 0-70 224-343.1 0L82.7 48zM176 432a32 32 0 1 1 0 64 32 32 0 1 1 0-64zm0 80a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm256-48a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm80 0a48 48 0 1 0 -96 0 48 48 0 1 0 96 0z"/></svg> (0) 309</span> 310<span class="d-none d-sm-inline-block">Cart (0)</span> 311 312 313 314 315</div></a></li> 316 </ul> 317 </div> 318 319 320 321 </div> 322 </nav> 323 324<div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasTest" aria-labelledby="offcanvasTest"> 325 <div class="offcanvas-header"> 326 <p class="offcanvasSearchTitle" id="offcanvasSearchLabel"> 327 Search for Anything 328 <span class="offCanvasSearchClose" data-bs-dismiss="offcanvas" aria-label="Close">Close</span> 329 </p> 330 </div> 331 <div class="offcanvas-body ps-3"> 332 <div class="d-flex mt-3" role="search"> 333 334 </div> 335 336 </div> 337</div> 338 339 340 341<noscript> 342<div class="alert alert-danger"> 343 <div class="error"> 344 <i class="fa fa-times-circle"></i> 345 Your browser either doesn't support Javascript or has Javascript disabled. Some features of our site require Javascript to function correctly. To get the full experience, please enable Javscript in your browser. 346 </div> 347</div> 348</noscript> 349 350 351 352 353 354 355 356 357 358 359 360<div class="container-fluid p-0 bg-white"> 361 362 363<div class="container-fluid mt-5 pt-5 mb-5 pb-5" > 364<div class="container pt-5 mb-5 pb-5" style="text-align:center;"> 365 <div class="col-sm-3 offset-sm-6 pt-5" style="margin:0 auto;"> 366 <div class="form-wrap"> 367 <div class="login-div"> 368 <style> 369.fa-eye { 370 position: absolute; 371 right: 27px; 372 font-size: 23px; 373 cursor: pointer; 374 top: 19px; 375} 376</style> 377 378<form action="/login" method="post" class="form-horizontal"> 379 <input type="hidden" name="redirect_uri" value="/login"> 380 <input type="hidden" name="on_failure" value="render:/login"> 381 <input type="hidden" name="on_success" value="render:/account"> 382 383 384 385 <div class="form-floating col-sm-12 mb-3 has-validation"> 386 <input type="text" class="form-control form-control-sm form-input-all stripChar" id="login_user_email_address" name="user[email_address]" placeholder="Email Address" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$" required=""> 387 <label for="user_email_address">Email Address</label> 388 <div class="valid-feedback"></div> 389 <div class="invalid-feedback"> 390 Please enter your Email Address 391 </div> 392 </div> 393 394 <div class="form-floating col-sm-12 mb-3 has-validation"> 395 <input type="password" class="form-control form-control-sm form-input-all" id="login_user_password" name="user[password]" placeholder="Password" required=""> 396 <label for="user_password">Password</label> 397 <div class="valid-feedback"></div> 398 <div class="invalid-feedback"> 399 Please enter a Password 400 </div> 401 <i class="fad fa-eye login-eye" onclick="toggleLogin()" aria-hidden="true"></i> 402 </div> 403 404 <div class="form-group"> 405 <div class="col-sm-12"> 406 <button class="btn login-btn" name="login" type="submit">Login</button> 407 <span class="toggle-forgotten pt-5">Forgot Your Password?</span> 408 </div> 409 </div> 410 411 412</form> 413 414 </div> 415 <div class="forgotten-div" style="display:none;"> 416 <div class="col-sm-12"> 417 <p style="color:#666;">Enter your registered email address and we'll send you a reset link.</p> 418</div> 419 420<form class="form-horizontal needs-validation" action="/actions/send_forgotten_password" novalidate> 421 <input id="authenticity_token" type="hidden" name="authenticity_token" value="eaxAm66mTkc+TovMDano2w1FgvolwhT7+SpJvB2FvT46kDcdCgze8qA1aeZRLwPXsIX7R97ePlNsmwVyXGrfHQ==" class="authenticity_token" /> 422 <input type="hidden" name="on_complete" value="render:/login"> 423 <input type="hidden" name="on_success" value="redirect:/login"> 424 425 <div class="form-floating col-sm-12 mb-3 has-validation"> 426 <input type="text" class="form-control stripChar" id="email_address" name="email_address" placeholder="Email Address" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$" required=""> 427 <label for="email_address">Email Address</label> 428 <div class="valid-feedback"></div> 429 <div class="invalid-feedback"> 430 Please enter your Email Address 431 </div> 432 </div> 433 434 <div class="col-12 col-sm-6 mb-3 pe-3" style="position:relative;
434left:-7px;"> 435 <div class="form-group mb-30 mt-30"> 436 <div class="g-div-wrap"> 437 <div class="g-recaptcha" data-sitekey="6Lcx9PIpAAAAAGhl5L1zXk2AYOABOLGg9QC9vDGf"></div> 438 <noscript> 439 <iframe src="https://www.google.com/recaptcha/api/noscript?6Lcx9PIpAAAAAGhl5L1zXk2AYOABOLGg9QC9vDGf"> 440 </iframe> 441 <br> 442 <textarea name="recaptcha_challenge_field" rows="3" cols="40"> 443 </textarea> 444 <input type="hidden" name="recaptcha_response_field" value="manual_challenge"> 445 </noscript> 446 447 </div> 448 <div class="g-recaptcha-error invalid-feedback" style="display:none;">Please complete the recaptcha</div> 449 </div> 450 </div> 451 452 <div class="form-group"> 453 <div class="col-sm-12"> 454 <button class="btn btn-hd-olive login-btn" name="submit" type="submit">Reset</button> 455 </div> 456 </div> 457</form> 458 459 </div> 460 <div class="pt-0"> 461 <a class="create-acc" href="/register" style="padding-top:3px;">Create an Account</a> 462 </div> 463 </div> 464 </div> 465</div> 466 <div class="clearfix"></div> 467</div> 468</div> 469 470<div class="clearfix"></div> 471 472<div class="container-fluid info-footer-wrap"> 473 474 <div class="col text-center mb-5 pb-5"> 475 <img src="https://d3dy1x2aulifge.cloudfront.net/ts1761268935/attachments/PageLayout/24/logo-footer.svg" alt="Sigma Photo Logo" class="mx-auto footer-logo"> 476 </div> 477 478 479 480 <div class="row footer-links-area pb-4 pb-sm-0 pt-0"> 481 482 483 <div class="col-6 col-sm-2 ps-3 pb-2"> 484 <h2 class="footer-h2">Information</h2> 485 <ul> 486 <li><a href="https://www.sigma-global.com/en/corporate-overview/" target="_blank">Corporate Overview</a></li> 487 <li><a href="https://www.sigma-global.com/en/world-network/" target="_blank">Worldwide Network</a></li> 488 489 </ul> 490 </div> 491 <div class="col-6 col-sm-2 ps-3 pb-2"> 492 <h2 class="footer-h2">Customer Service</h2> 493 <ul> 494 <li><a href="/contact-us">Contact Us</a></li> 495 <li><a href="/account">My Account</a></li> 496 <li><a href="/service-centres">Service & Repairs</a></li> 497 <li><a href="/store-locator">Find a Sigma Dealer</a></li> 498 <li><a href="/professional-rental-network">Find a Sigma Rental House</a></li> 499 500 </ul> 501 </div> 502 503 <div class="col-6 col-sm-2 ps-3 pb-2"> 504 <h2 class="footer-h2">Support</h2> 505 <ul> 506 <li><a href="https://www.sigma-global.com/en/support/faq/" target="_blank">FAQ</a></li> 507 <li><a href="https://www.sigma-global.com/en/support/software/" target="_blank">SOFTWARE DOWNLOAD</a></li> 508 <li><a href="https://www.sigma-global.com/en/support/firmware/" target="_blank">FIRMWARE DOWNLOAD</a></li> 509 <li><a href="https://www.sigma-global.com/en/support/catalog/" target="_blank">MANUALS / BROCHURES / RESOURCES</a></li> 510 <li><a href="https://www.sigma-global.com/en/support/camera-compatibility/" target="_blank">CAMERA COMPATIBILITY</a></li> 511 <li><a href="https://www.sigma-global.com/en/support/accessories-compatibility/" target="_blank">ACCESSORIES COMPATIBILITY</a></li> 512 </ul> 513 </div> 514 515 <div class="col-6 col-sm-2 pb-2"> 516 517 <h2 class="footer-h2">Policies</h2> 518 <ul> 519 <li><a href="/about/site-policy">Site Policy</a></li> 520 <li><a href="/about/privacy-policy">Privacy Policy</a></li> 521 <li><a href="/about/warranty-information">Warranty Information</a></li> 522 <li><a rel="noreferrer" href="https://www.crkennedy.com.au/terms/" target="_blank">Terms & Conditions</a></li> 523 </ul> 524 </div> 525 526 <div class="col-6 col-sm-2 pb-2"> 527 <h2 class="footer-h2">Follow Sigma Photo</h2> 528 <ul> 529 <li><a href="https://www.facebook.com/SigmaPhotoAustralia" target="_blank">Facebook</a></li> 530 <li><a href="https://www.instagram.com/sigmaphotoaustralia/" target="_blank">Instagram</a></li> 531 <li><a href="https://www.youtube.com/playlist?list=PLpqDLK5jtPTRWCU7MfX9pTdCGqqZYo-AI" target="_blank">YouTube</a></li> 532 <li><a href="/subscribe">Subscribe</a></li> 533 </ul> 534 </div> 535 </div> 536 </div> 537 538 <div class="clearfix"></div> 539 <div class="container-fluid ps-3 pb-5 mb-4" style="font-size:11px;color:#333;"> 540 541 <p style="float:left;">© 2026 C.R. KENNEDY. 542 All rights reserved.</p> 543 </div> 544 545<a href="#" id="back-to-top" title="Back to top"><svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 384 512" style="fill:#fff;"><!--! Font Awesome Pro 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><defs><style>.fa-secondary{opacity:0.4;}</style></defs><path class="fa-primary" d="M169.4 41.4c12.5-12.5 32.8-12.5 45.3 0l160 160c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L192 109.3 54.6 246.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l160-160z"/><path class="fa-secondary" d="M160 141.3V448c0 17.7 14.3 32 32 32s32-14.3 32-32V141.3l-32-32-32 32z"/>
545</svg></a> 546 547 548 549 550 551 552 553</body> 554 555 556 557 558 559 560 561<!--Twitter Meta Tag --> 562 <meta name="twitter:card" content="summary" /> 563 <meta name="twitter:site" content="@SigmaPhotoAUS" /> 564 <meta property="og:title" content="Login"/> 565 <meta property="og:description" content="Sigma Photo | Continuing to produce the heritage-rich and award-winning SIGMA cameras, lenses and cine lenses" /> 566 <meta property="og:image" content="https://d3dy1x2aulifge.cloudfront.net/ts1761268935/attachments/PageLayout/23/tw-share.webp" /> 567<!--Facebook and Linkedin Meta Tag --> 568 <meta property="og:title" content="Login" /> 569 <meta property="og:description" content="Sigma Photo | Continuing to produce the heritage-rich and award-winning SIGMA cameras, lenses and cine lenses" /> 570 <meta property="og:url" content="/login" /> 571 <meta property="og:image" content="https://d3dy1x2aulifge.cloudfront.net/ts1761268935/attachments/PageLayout/23/fb-share.webp" /> 572<!-- 180x110 Image for Linkedin --> 573 <meta property="og:image:width" content="640" /> 574 <meta property="og:image:height" content="400" /> 575 <meta property="og:image" content="https://d3dy1x2aulifge.cloudfront.net/ts1761268935/attachments/PageLayout/23/li-share.webp " /> 576<!-- 600x315 Image for Facebook --> 577 <meta property="og:image:width" content="600" /> 578 <meta property="og:image:height" content="315" /> 579<div class="zip-spinner" style="position: absolute;top: 50%;left: 50%; display:none;"><img class="Processing" src="/ajax.gif" alt="Processing"></div> 580<div class="cart-create-account" style="position: absolute;top: 25%;left: 48%; display:none;padding:20px;z-index:1050;border-radius:8px;background-color:#00263b;color:#fff;text-align:center;"> 581 Creating your Account<br><br> 582 <img class="Processing" src="/ajax.gif" alt="Processing"></div> 583 <!-- Modal --> 584<div id="myModal" class="modal fade hide-myModal" role="dialog"> 585 <div class="modal-dialog modal-lg backorder-modal"> 586 <!-- Modal content--> 587 <div class="modal-content"> 588 <div class="text-center"> 589 <p class="fs-4 fw-bold pt-2 pb-2" style="margin:0 auto;">Ordering this item will place it on Backorder</p> 590 <div class="col-12"> 591 592 593 <form class="add-to-cart-form offcanvasAddToCartHidden" style="position:relative;top:14px;height:70px;overflow:hidden;" data-avenue-ajax-form="/api/add_to_cart" action=""> 594 <input id="authenticity_token" type="hidden" name="authenticity_token" value="eaxAm66mTkc+TovMDano2w1FgvolwhT7+SpJvB2FvT46kDcdCgze8qA1aeZRLwPXsIX7R97ePlNsmwVyXGrfHQ==" class="authenticity_token" /> 595 <input type="hidden" name="page_to_render" value="/av-added-to-cart"> 596 597 <input type="hidden" name="fast_order[][item_code]" value="" class="item_code code-from-storages"> 598 <input class="invisible form-control hidden" size="2" step="any" value="1" id="fast_order__add" type="text" name="fast_order[][add]"> 599 600 <div class="row"> 601 <div class="col-6 col-sm-4 offset-sm-2"> 602 <button class="btn add-to-cart-btn mt-0 backorder-from-modal" name="submit" type="submit" style="padding:8px 40px;font-weight:700;"> 603 Backorder Now 604 </button> 605 </div> 606 <div class="col-6 ps-0 pe-0 col-sm-4"> 607 <button type="button" class="btn btn-secondary no-thanks-btn" style="margin-left:12px;" data-bs-dismiss="modal"> 608 No Thanks 609 </button> 610 </div> 611 </div> 612 </form> 613 614 615 616 617 618 619 620 </div> 621 </div> 622 <div class="modal-body"> 623 <span class="product-that-popped"></span> 624 <p class="text-center fs-5 fw-bold">What does this mean?</p> 625 <p class="text-center fs-7 text-muted fw-bold">If you order an item we do not have in stock it may take a period of time for us to receive the product from our suppliers and ship it to you as explained further below</p> 626 627 628 <div class="clearfix"></div> 629 <p class="pt-3 pb-3 text-center fs-6 fw-bold">If we do not currently have an item in stock we will show you in one of the following ways:</p> 630 631 <div class="row"> 632 <div class="col-sm-12 col-md-6"> 633 <p class="fs-7 text-muted text-center"> <span class="no-stock-bubble"><!-- <img src="https://d3dy1x2aulifge.cloudfront.net/ts1761268935/attachments/PageLayout/23/stockcoming.svg" class="svg-stock"> --> <strong>ETA: dd/mm/yyyy </strong><small>(From time of order)</small> </span> <br> The product is not currently in stock however our best estimate of the date we are due to receive more stock is indicated by the date shown. This does not guarantee all orders placed will be able to be fulfilled from the stock we are receiving on this date but is the best date we are able to provide as an estimate.<br><br><strong>All displayed dates are subject to change without notice.</strong><br>Also note once we receive stock it may take a number of days for this stock to be sent to our customers</p> 634 </div> 635 <div class="col-sm-12 col-md-6"> 636 <p class="fs-7 text-muted text-center"> <span class="no-stock-bubble"><!-- <img src="https://d3dy1x2aulifge.cloudfront.net/ts1761268935/attachments/PageLayout/23/nostock.svg" class="svg-stock" style="width:17px;"> --> <strong>On Order</strong> </span> <br> The product is on order with a supplier but not currently in stock and we do not have a clear enough date from our supplier as to when the stock
636is due to arrive. In this situation we cannot therefore provide an estimated availability date to you</p> 637 <p class="fs-7 text-muted text-center"><span class="no-stock-bubble"><!-- <img src="https://d3dy1x2aulifge.cloudfront.net/ts1761268935/attachments/PageLayout/23/nostock.svg" class="svg-stock" style="width:17px;"> --> <strong>No Stock</strong></span> <br> The product is not currently in stock and we do not have this on order with a supplier<br>Our product page will display an estimated lead time if you were to place a no stock item on backorder</p> 638 </div> 639 640 </div> 641 642 643 644 645 646 647 648 649 650 </div> 651 652 653 <div class="modal-footer text-center pt-0"> 654 <hr> 655 <p class="fs-7 text-center lh-sm text-muted pb-2">If you have questions about the availability of items on our web site or if you have placed an order for products not in stock and would like further information or wish to cancel your order please Contact Us and include the product code and/or order number so we can assist you further</p> 656 657 <p class="text-center"> 658 <a href="/contact-us" class="btn no-thanks-btn">Contact Us</a> 659 </p> 660 </div> 661 </div> 662 663 </div> 664</div> 665<div class="fancybox-overlay fancybox-overlay-fixed" style="width: auto;height: auto;display: none;z-index:2 !important;"></div>
666<script> 667document.addEventListener('DOMContentLoaded', function () { 668 var dropdowns = document.querySelectorAll('.nav-item.dropdown'); 669 670 dropdowns.forEach(function (dropdown) { 671 dropdown.addEventListener('mouseover', function () { 672 var dropdownToggle = this.querySelector('.dropdown-toggle'); 673 var dropdownMenu = this.querySelector('.dropdown-menu'); 674 dropdownToggle.classList.add('show'); 675 dropdownMenu.classList.add('show'); 676 }); 677 678 dropdown.addEventListener('mouseout', function () { 679 var dropdownToggle = this.querySelector('.dropdown-toggle'); 680 var dropdownMenu = this.querySelector('.dropdown-menu'); 681 dropdownToggle.classList.remove('show'); 682 dropdownMenu.classList.remove('show'); 683 }); 684 }); 685}); 686</script>
vendor: 1 bytes, line 686
686
687<script type="text/javascript" src="https://d3dy1x2aulifge.cloudfront.net/ts1770867874/cms_javascripts/lazysizes.js.min.js"></script>
vendor: 1 bytes, line 687
687
688<script type="text/javascript" src="https://d3dy1x2aulifge.cloudfront.net/ts1770867874/cms_javascripts/av-aggregated-js.js"></script>
688 689 690 691
692<script type="text/javascript" src="https://d3dy1x2aulifge.cloudfront.net/ts1770867874/cms_javascripts/av-avenue-scripts.min.js"></script>
692 693
694<script> 695 //loadCSS("//code.jquery.com/ui/1.12.1/themes/blitzer/jquery-ui.min.css"); 696 //loadCSS("//cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.css"); 697 //loadCSS("//code.jquery.com/ui/1.12.1/jquery-ui.min.js"); 698</script>
vendor: 1 bytes, line 698
698
699<script> 700 701</script>
vendor: 86 bytes, lines 701-707
701 702 703 704 705 <script src="https://www.google.com/recaptcha/api.js" async defer></script> 706 707
708<script type="text/javascript" src="https://d3dy1x2aulifge.cloudfront.net/ts1770867874/cms_javascripts/slick.js.min.js"></script>
vendor: 1 bytes, line 708
708
709<script type="text/javascript" src="https://d3dy1x2aulifge.cloudfront.net/ts1770867874/cms_javascripts/hoverintent-min-js.min.js"></script>
709 710
711<script type="text/javascript" src="https://d3dy1x2aulifge.cloudfront.net/ts1770867874/cms_javascripts/crk-init-js.js.min.js"></script>
711 712
713<script type="text/javascript" src="https://d3dy1x2aulifge.cloudfront.net/ts1770867874/cms_javascripts/crk-custom-scripts.js.min.js"></script>
713 714 715
716<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.validate.min.js" type="text/javascript"></script>
vendor: 1 bytes, line 716
716
717<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/additional-methods.min.js" type="text/javascript"></script>
vendor: 1 bytes, line 717
717
718<script> 719 var hostname = 'sigmaphoto.com.au'; 720 721 $('.stripChar').on('input', function() { 722 var c = this.selectionStart, 723 r = /[<\>]/g, 724 v = $(this).val(); 725 if(r.test(v)) { 726 $(this).val(v.replace(r, '')); 727 c--; 728 } 729 this.setSelectionRange(c, c); 730 }); 731 $('#contact_number').on('keyup', function() { 732 const cn = $('#contact_number').val(); 733 const result = cn.replace(/[^0-9+]/g, ""); 734 $('#contact_number').val(result); 735 }); 736</script>
736 737 738 739 740
741<script src="https://sachinchoolur.github.io/lightslider/dist/js/lightslider.js" type="text/javascript"></script>
vendor: 1 bytes, line 741
741
742<script src="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/2.7.1/lightgallery.min.js" type="text/javascript"></script>
742 743 744 745<!--[if gt IE 8]><!-->
746<script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js" type="text/javascript"></script>
746 747<!--<![endif]--> 748
748<script type="text/javascript" src="https://d3dy1x2aulifge.cloudfront.net/ts1770867874/cms_javascripts/inputmask.min.js" data-autoinit="true"></script>
vendor: 1 bytes, line 748
748
749<script> 750 751 $('#thisSearchAll').on('click', function(){ 752 753 let searchVal = $('.av-search-input').val(); 754 //alert(searchVal); 755 const dynamicUrl = '/search?q=' + searchVal + '&submit='; 756 $('#thisSearchAll').attr('href', dynamicUrl); 757 }); 758 759 760 761// open & close icons for mobile nav collapse 762document.addEventListener('DOMContentLoaded', function () { 763 const toggles = document.querySelectorAll('.collapseNavMobile'); 764 765 toggles.forEach(toggle => { 766 const targetSelector = toggle.getAttribute('href') || toggle.dataset.bsTarget; 767 const collapseEl = document.querySelector(targetSelector); 768 const icon = toggle.querySelector('.rotatable-icon'); 769 770 if (!collapseEl || !icon) return; 771 772 const updateIcon = (expanded) => { 773 icon.classList.toggle('rotated', expanded); 774 }; 775 776 // Initialize 777 updateIcon(collapseEl.classList.contains('show')); 778 779 // Toggle on collapse events 780 collapseEl.addEventListener('show.bs.collapse', () => updateIcon(true)); 781 collapseEl.addEventListener('hide.bs.collapse', () => updateIcon(false)); 782 }); 783}); 784 785 document.addEventListener('DOMContentLoaded', function () { 786 const dropdown2 = document.querySelector('.dropdown2'); 787 const toggle2 = dropdown.querySelector('[data-bs-toggle="dropdown"]'); 788 const menu2 = dropdown.querySelector('.dropdown-menu'); 789 const overlay2 = dropdown.querySelector('.dropdown-menu-overlay'); 790 const dropdownInstance2 = bootstrap.Dropdown.getOrCreateInstance(toggle2); 791 792 let hideTimeout2; 793 794 // Show on hover 795 dropdown2.addEventListener('mouseenter', function () { 796 clearTimeout(hideTimeout2); 797 dropdownInstance2.show(); 798 overlay2.classList.add('active'); 799 alert(); 800 }); 801 802 // Hide when mouse leaves dropdown 803 dropdown2.addEventListener('mouseleave', function () { 804 hideTimeout2 = setTimeout(() => { 805 dropdownInstance2.hide(); 806 overlay2.classList.remove('active'); 807 }, 1000); 808 }); 809 810 // Hide when mouse enters the overlay 811 overlay2.addEventListener('mouseenter', function () { 812 dropdownInstance2.hide(); 813 overlay2.classList.remove('active'); 814 }); 815 816 // Optional: also hide on overlay click 817 overlay2.addEventListener('click', function () { 818 dropdownInstance2.hide(); 819 overlay2.classList.remove('active'); 820 }); 821 }); 822 823 824 825 document.addEventListener('DOMContentLoaded', function () { 826 const dropdown = document.querySelector('.dropdown'); 827 const toggle = dropdown.querySelector('[data-bs-toggle="dropdown"]'); 828 const menu = dropdown.querySelector('.dropdown-menu'); 829 const overlay = dropdown.querySelector('.dropdown-menu-overlay'); 830 const dropdownInstance = bootstrap.Dropdown.getOrCreateInstance(toggle); 831 832 let hideTimeout; 833 834 // Show on hover 835 dropdown.addEventListener('mouseenter', function () { 836 clearTimeout(hideTimeout); 837 dropdownInstance.show(); 838 overlay.classList.add('active'); 839 840 }); 841 842 // Hide when mouse leaves dropdown 843 dropdown.addEventListener('mouseleave', function () { 844 hideTimeout = setTimeout(() => { 845 dropdownInstance.hide(); 846 overlay.classList.remove('active'); 847 }, 1000); 848 }); 849 850 // Hide when mouse enters the overlay 851 overlay.addEventListener('mouseenter', function () { 852 dropdownInstance.hide(); 853 overlay.classList.remove('active'); 854 }); 855 856 // Optional: also hide on overlay click 857 overlay.addEventListener('click', function () { 858 dropdownInstance.hide(); 859 overlay.classList.remove('active'); 860 }); 861 }); 862 863$('.product-buy-now-a').on('click', function(){ 864 $('.product-buy-now-a').html('^Top').addClass('top-buy-now-show'); 865 $('.hide-cat-content').slideUp(); 866}); 867 868 869 870/* 871var distance = $('.sticky-add-to-cart').offset().top, 872 $window = $(window); 873 874$window.scroll(function() { 875 876 console.log(distance); 877 if ( $window.scrollTop() >= distance ) { 878 //alert('made it!'); 879 } 880}); 881 */ 882 883 (function() { 884 $(document).on("click", ".click-to-expand", function() { 885 var imageSrc = $(this).find("img").attr("src"); 886 $(".js-modal-image").attr("src", imageSrc); 887 }); 888})(); 889 890// get the data attributes from the <a> tag and add to the modal window 891$('.modal-thumb').click(function(){ 892 var $this = $(this); 893 var $parent = $this.parent('a'); 894 895 var $modal = $('#modalGallery');
896 var $title = $modal.find('.modal-title'); 897 var $body = $modal.find('.modal-body'); 898 899 var $items = $(); 900 901 $.each(['photographer', 'camera', 'lens', 'shutter', 'aperture', 'focal'], function(i, key) { 902 var $item = $('<div />', { 'class': 'modal-' + key }); 903 $item.text($parent.attr('data-' + key)); 904 $items = $items.add($item.get(0)); 905 }); 906 907 $title.text($parent.attr('title')); 908 $body.html($this.clone()); 909 $body.append($items); 910 911 if ( $('.modal-photographer').text().length != 0 ) { 912 $('.modal-photographer').prepend('Photographer: '); 913 } 914 if ( $('.modal-camera').text().length != 0 ) { 915 $('.modal-camera').prepend('Camera: '); 916 } 917 if ( $('.modal-lens').text().length != 0 ) { 918 $('.modal-lens').prepend('Lens: '); 919 } 920 if ( $('.modal-shutter').text().length != 0 ) { 921 $('.modal-shutter').prepend('Shutter: '); 922 } 923 if ( $('.modal-aperture').text().length != 0 ) { 924 $('.modal-aperture').prepend('Aperture: '); 925 } 926 if ( $('.modal-focal').text().length != 0 ) { 927 $('.modal-focal').prepend('Focal Length: '); 928 } 929 if ( $('.modal-photographer').text().length == 0 ) { 930 $('.modal-photographer').css('display','none'); 931 } 932 if ( $('.modal-camera').text().length == 0 ) { 933 $('.modal-camera').css('display','none'); 934 } 935 if ( $('.modal-lens').text().length == 0 ) { 936 $('.modal-lens').css('display','none'); 937 } 938 if ( $('.modal-shutter').text().length == 0 ) { 939 $('.modal-shutter').css('display','none'); 940 } 941 if ( $('.modal-aperture').text().length == 0 ) { 942 $('.modal-aperture').css('display','none'); 943 } 944 if ( $('.modal-focal').text().length == 0 ) { 945 $('.modal-focal').css('display','none'); 946 } 947}); 948 949 950 if ($(".auto-suggest-mega-price").hasClass("megasearch-from-scs")) { 951 // If it contains the class, remove the <a> element with the class "megasearch-enquire" 952 $(".auto-suggest-mega-price").find("a.megasearch-enquire").remove(); 953} 954 955 var doesSortExist = localStorage.getItem('sortByVal'); 956 $("#submit-sort-order select").val(doesSortExist); 957 $('#pagination_order').on('change', function(){ 958 var sortByVal = $(this).val(); 959 localStorage.setItem('sortByVal', sortByVal); 960 }); 961 962 963 964 965 966// Example starter JavaScript for disabling form submissions if there are invalid fields 967(function () { 968 'use strict' 969 // Fetch all the forms we want to apply custom Bootstrap validation styles to 970 var forms = document.querySelectorAll('.needs-validation') 971 // Loop over them and prevent submission 972 Array.prototype.slice.call(forms) 973 .forEach(function (form) { 974 form.addEventListener('submit', function (event) { 975 var response = grecaptcha.getResponse(); 976 //debugger; 977 if (response.length === 0) { // recaptcha has not been completed 978 $('.g-recaptcha-error').css('display','inline-block'); 979 $('.g-div-wrap').css('border','1px').css('border-color','#dc3545').css('border-style','solid').css('border-radius','5px').css('width','304px').css('height','78px'); 980 event.preventDefault() 981 event.stopPropagation() 982 } else if (!form.checkValidity()) { 983 if (response.length === 0) { // recaptcha has not been completed 984 $('.g-recaptcha-error').css('display','inline-block'); 985 $('.g-div-wrap').css('border','1px').css('border-color','#dc3545').css('border-style','solid').css('border-radius','5px').css('width','304px').css('height','78px'); 986 } 987 event.preventDefault() 988 event.stopPropagation() 989 } 990 form.classList.add('was-validated') 991 }, false) 992 }) 993})() 994 995 996$('#contact_number, .del-address1').on('focus', function() { 997 $("#contact_number").removeClass('is-invalid'); 998}); 999$('#contact_number').on('keyup', function() { 1000 //let progressOfChknum = 0; 1001 var getProgress = $("#contact_number").val(); 1002 let chkProgress = getProgress.replaceAll('+',''); 1003 console.log("Value of chkProgress:", chkProgress); 1004 // Count the length of chknum 1005 let progressOfChknum = chkProgress.length; 1006 console.log("Length of chknum:", progressOfChknum); 1007 1008 /*if(getProgress.includes("_") && getProgress.length > 12) { 1009 if(chkProgress.includes("_") { 1010 $("#contact_number").removeClass('is-valid'); 1011}*/ 1012 1013 if(progressOfChknum > 11) { 1014 $('#contact_number').addClass('is-valid'); 1015 1016 } else { 1017 $("#contact_number").removeClass('is-valid'); 1018 } 1019 1020
1021}); 1022 1023 $('.del-address1').on('keyup', function() { 1024 if(!$.trim(this.value).length) { 1025 $('.del-address1').addClass('is-invalid'); 1026 } else { 1027 $('.del-address1').addClass('is-valid'); 1028 $('.del-address1').removeClass('is-invalid'); 1029 } 1030 }); 1031 1032localStorage.setItem('manualUpdate','false'); 1033$("#NewDeliveryAddressAcc").on("click", function(e) { 1034 e.preventDefault(); 1035 //alert('NewDeliveryAddressAcc'); 1036 //debugger; 1037 //$('#check-delivery-address').submit(); 1038 1039 var autoOrManualAddress = localStorage.getItem('manualUpdate'); 1040 //alert(autoOrManualAddress); 1041 if($(".del-address1").val() !== '') { 1042 var delName = 10; 1043 console.log("name:10"); 1044 $('.del-address1').removeClass('is-invalid'); 1045 $('.del-address1').addClass('is-valid'); 1046 } else { 1047 var delName = 0; 1048 $('.del-address1').addClass('is-invalid'); 1049 $('.del-address1').removeClass('is-valid'); 1050 } 1051 1052 var getval = $("#contact_number").val(); 1053 let chknum = getval.replaceAll('_',''); 1054 // Count the length of chknum 1055 let lengthOfChknum = chknum.length; 1056 console.log("Length of chknum:", lengthOfChknum); 1057 1058 if(lengthOfChknum == 12) { 1059 //if($("#contact_number").val().length == 12) { 1060 console.log('value'); 1061 console.log("phone:10"); 1062 var delPhone = 10; 1063 $("#contact_number").addClass('is-valid'); 1064 $("#contact_number").removeClass('is-invalid'); 1065 } else { 1066 console.log('no-value'); 1067 var delPhone = 0; 1068 $("#contact_number").addClass('is-invalid'); 1069 $("#contact_number").removeClass('is-valid'); 1070 } 1071 1072 if(autoOrManualAddress == 'true') { 1073 1074 if($(".del-address3").val() !== '') { 1075 var delAdd = 10; 1076 console.log("address:10"); 1077 $(".del-address3").addClass('is-valid'); 1078 $(".del-address3").removeClass('is-invalid'); 1079 } else { 1080 var delAdd = 0; 1081 $(".del-address3").addClass('is-invalid'); 1082 $(".del-address3").removeClass('is-valid'); 1083 } 1084 1085 } else { 1086 1087 if($(".del-address2").val() !== '') { 1088 var delAdd = 10; 1089 console.log("address:10"); 1090 $(".del-address2").addClass('is-valid'); 1091 $(".del-address2").removeClass('is-invalid'); 1092 } else { 1093 var delAdd = 0; 1094 $(".del-address2").addClass('is-invalid'); 1095 $(".del-address2").removeClass('is-valid'); 1096 } 1097 1098 } 1099 1100 if($(".del-address4").val() !== '') { 1101 var delAdd4 = 10; 1102 console.log("suburb:10"); 1103 } else { 1104 var delAdd4 = 0; 1105 } 1106 1107 if($(".del-postcode").val() !== '') { 1108 var delPost = 10; 1109 console.log("postcode:10"); 1110 // $('.del-post-man-error').fadeOut(); 1111 } else { 1112 var delPost = 0; 1113 // $('.del-post-man-error').fadeIn(); 1114 } 1115 1116 var delCount = delName + delPhone + delAdd + delAdd4 + delPost; 1117 document.getElementById("totalC").innerHTML = delCount; 1118 if(delCount == 50) { 1119 //alert(); 1120 $('#check-delivery-address').submit(); 1121 } 1122 1123 }); 1124 1125 1126 1127 1128 1129 1130 1131 1132$(".enquiry-form").submit(function(event) { 1133 var recaptcha = $("#g-recaptcha-response").val(); 1134 if (recaptcha === "") { 1135 event.preventDefault(); 1136 $('.g-recaptcha-error').css('display','inline-block'); 1137 $('.g-div-wrap').css('border','1px').css('border-color','#dc3545').css('border-style','solid').css('border-radius','5px').css('width','304px').css('height','78px'); 1138 } else { 1139 $('.g-recaptcha-error').css('display','none'); 1140 $('.g-div-wrap').css('border','0px'); 1141 } 1142}); 1143 1144$("#registrationForm").submit(function(event) { 1145 var recaptcha = $("#g-recaptcha-response").val(); 1146 if (recaptcha === "") { 1147 event.preventDefault(); 1148 $('.g-recaptcha-error').css('display','inline-block'); 1149 $('.g-div-wrap').css('border','1px').css('border-color','#dc3545').css('border-style','solid').css('border-radius','5px').css('width','304px').css('height','78px'); 1150 } else { 1151 $('.g-recaptcha-error').css('display','none'); 1152 $('.g-div-wrap').css('border','0px'); 1153 } 1154}); 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171$(document).ready(function(){ 1172 $('.del-phone').removeClass('is-invalid'); 1173 $('.del-address1').removeClass('is-invalid'); 1174 $('.del-address2').removeClass('is-invalid'); 1175}); 1176 1177 1178 1179 1180$('.mobile-logo').on('click hover touchstart', function () { 1181 $(this).css('transform','rotate(1080deg)').css('transition','ease-in-out 2s'); 1182}); 1183 1184 1185 1186 1187 1188 1189 $('.fast-order-acc-btn').on('click', function () { 1190 $("#flush-collapseThree").removeClass('show'); 1191 }); 1192 $('.csv-upload-acc-btn').on('click', function () { 1193 $("#flush-collapseTwo").removeClass('show'); 1194 }); 1195 1196 setTimeout(function() { 1197 $(document).ready(function() { 1198 var slider = $('#featuredGallery').lightSlider({ 1199 gallery: false, 1200 item: 3, 1201 auto: true, 1202 loop: true, 1203 pauseOnHover: true, 1204 controls: false, 1205 slideMargin: 10, 1206 easing: 'cubic-bezier(0.25, 0, 0.25, 1)', 1207 speed:1800,
1208 mode: 'slide', 1209 currentPagerPosition:'middle', 1210 responsive : [ 1211 { 1212 breakpoint:800, 1213 settings: { 1214 item:2, 1215 slideMove:1, 1216 slideMargin:6, 1217 } 1218 }, 1219 { 1220 breakpoint:480, 1221 settings: { 1222 item:2, 1223 slideMove:1 1224 } 1225 } 1226 ] 1227 }); 1228 1229 $('#featuredGallery').removeClass('cS-hidden'); 1230 $('.spinner-wrap').css('display','none'); 1231 $('.spinner-outer').css('margin-top','0px'); 1232}); 1233}, 2000); 1234 </script>
1234 1235
1236<script type="text/javascript" src="https://d3dy1x2aulifge.cloudfront.net/ts1770867874/cms_javascripts/inputmask.min.js" data-autoinit="true"></script>
1236 1237 1238 1239 1240
1240<script> 1241 document.addEventListener("DOMContentLoaded", function() { 1242 const select = document.getElementById("pagination_order"); 1243 if (select && !select.value) { 1244 select.selectedIndex = 0; 1245 } 1246 }); 1247 </script>
1247 1248 1249
1250<script> 1251 1252$('#contact_number').on('input',function(){ 1253 var num=$('#contact_number').val(); 1254 if(num.indexOf('0')!==0){ 1255 $('#contact_number').val(''); 1256 } 1257});// end contact_number function 1258 1259$('#contact_number').on('keyup',function() { 1260 //alert($(this).val()); 1261 let cNumber = $("#contact_number").val(); 1262 let cnLength = $("#contact_number").val().length; 1263 console.log(cnLength); 1264 console.log($.isNumeric(cnLength)); 1265 1266 if($(this).val() == '02' || $(this).val() == '02__ ___ ___' || $(this).val() == '03' || $(this).val() == '04__ ___ ___' || $(this).val() == '07' || $(this).val() == '07__ ___ ___' || $(this).val() == '08' || $(this).val() == '08__ ___ ___') { 1267 1268 1269 $("#contact_number").inputmask({ 1270 mask: '99 9999 9999', 1271 placeholder: '__ ____ ____', 1272 showMaskOnHover: false, 1273 showMaskOnFocus: true, 1274 onBeforePaste: function (pastedValue, opts) { 1275 var processedValue = pastedValue; 1276 return processedValue; 1277 } 1278 }); 1279 1280 } else if($(this).val() == '04' || $(this).val() == '04 ____ ____'){ 1281 //$(this).attr("data-placeholder", "XXXX XXX XXX"); 1282 //$(this).attr("pattern", "\d{4}\d{3}\d{3}"); 1283 1284 $("#contact_number").inputmask({ 1285 mask: '9999 999 999', 1286 placeholder: '____ ___ ___', 1287 showMaskOnHover: false, 1288 showMaskOnFocus: true, 1289 onBeforePaste: function (pastedValue, opts) { 1290 var processedValue = pastedValue; 1291 return processedValue; 1292 } 1293 }); 1294 } else if($(this).val() == '00' || $(this).val() == '00 ____ ____' || $(this).val() == '01' || $(this).val() == '01 ____ ____' || $(this).val() == '05' || $(this).val() == '05 ____ ____' || $(this).val() == '09' || $(this).val() == '09 ____ ____' ){ 1295 $('#contact_number').val(''); 1296 } 1297 if(!$.trim(this.value).length) { 1298 $('#contact_number-error').fadeIn(); 1299 } else { 1300 $('#contact_number-error').fadeOut(); 1301 } 1302 }); 1303 1304$('#cc_contact_number').on('input',function(){ 1305 var num=$('#cc_contact_number').val(); 1306 if(num.indexOf('0')!==0){ 1307 $('#cc_contact_number').val(''); 1308 } 1309});// end contact_number function 1310 1311$('#cc_contact_number').on('keyup',function() { 1312 //alert($(this).val()); 1313 let cNumber = $("#cc_contact_number").val(); 1314 let cnLength = $("#cc_contact_number").val().length; 1315 console.log(cnLength); 1316 console.log($.isNumeric(cnLength)); 1317 1318 if($(this).val() == '02' || $(this).val() == '02__ ___ ___' || $(this).val() == '03' || $(this).val() == '04__ ___ ___' || $(this).val() == '07' || $(this).val() == '07__ ___ ___' || $(this).val() == '08' || $(this).val() == '08__ ___ ___') { 1319 1320 1321 $("#cc_contact_number").inputmask({ 1322 mask: '99 9999 9999', 1323 placeholder: '__ ____ ____', 1324 showMaskOnHover: false, 1325 showMaskOnFocus: true, 1326 onBeforePaste: function (pastedValue, opts) { 1327 var processedValue = pastedValue; 1328 return processedValue; 1329 } 1330 }); 1331 1332 } else if($(this).val() == '04' || $(this).val() == '04 ____ ____'){ 1333 //$(this).attr("data-placeholder", "XXXX XXX XXX"); 1334 //$(this).attr("pattern", "\d{4}\d{3}\d{3}"); 1335 1336 $("#cc_contact_number").inputmask({ 1337 mask: '9999 999 999', 1338 placeholder: '____ ___ ___', 1339 showMaskOnHover: false, 1340 showMaskOnFocus: true, 1341 onBeforePaste: function (pastedValue, opts) { 1342 var processedValue = pastedValue; 1343 return processedValue; 1344 } 1345 }); 1346 } else if($(this).val() == '00' || $(this).val() == '00 ____ ____' || $(this).val() == '01' || $(this).val() == '01 ____ ____' || $(this).val() == '05' || $(this).val() == '05 ____ ____' || $(this).val() == '09' || $(this).val() == '09 ____ ____' ){ 1347 $('#contact_number').val(''); 1348 } 1349 if(!$.trim(this.value).length) { 1350 $('#contact_number-error').fadeIn(); 1351 } else { 1352 $('#contact_number-error').fadeOut(); 1353 } 1354 }); 1355 1356$('#new_contact_number').on('keyup',function() { 1357 //alert($(this).val()); 1358 let cNumber = $("#new_contact_number").val(); 1359 let cnLength = $("#new_contact_number").val().length; 1360 //console.log(cnLength); 1361 console.log($.isNumeric(cnLength)); 1362 console.log(cNumber); 1363 let thisNumber = cNumber; 1364 let result = thisNumber.includes("_"); 1365 1366 if(result == true){
1367 console.log('it contains a mask _'); 1368 } else { 1369 console.log('no mask found - progress'); 1370 } 1371 1372//document.getElementById("demo").innerHTML = result; 1373 1374 if($(this).val() == '02' || $(this).val() == '02__ ___ ___' || $(this).val() == '03' || $(this).val() == '04__ ___ ___' || $(this).val() == '07' || $(this).val() == '07__ ___ ___' || $(this).val() == '08' || $(this).val() == '08__ ___ ___') { 1375 1376 1377 $("#new_contact_number").inputmask({ 1378 mask: '99 9999 9999', 1379 placeholder: '__ ____ ____', 1380 showMaskOnHover: false, 1381 showMaskOnFocus: true, 1382 onBeforePaste: function (pastedValue, opts) { 1383 var processedValue = pastedValue; 1384 return processedValue; 1385 } 1386 }); 1387 1388 } else if($(this).val() == '04' || $(this).val() == '04 ____ ____'){ 1389 //$(this).attr("data-placeholder", "XXXX XXX XXX"); 1390 //$(this).attr("pattern", "\d{4}\d{3}\d{3}"); 1391 1392 $("#new_contact_number").inputmask({ 1393 mask: '9999 999 999', 1394 placeholder: '____ ___ ___', 1395 showMaskOnHover: false, 1396 showMaskOnFocus: true, 1397 onBeforePaste: function (pastedValue, opts) { 1398 var processedValue = pastedValue; 1399 return processedValue; 1400 } 1401 }); 1402 } 1403 1404 }); 1405</script>
1405 1406 1407 1408
1409<script> 1410 // control animation from hamburger menu 1411 /*document.querySelector( "#navbarSideCollapse" ).addEventListener( "click", function() { 1412 this.classList.toggle( "active" ); 1413 }); 1414 */ 1415 1416 $('.pay-by-cc-btn').on('click', function() { 1417 $('.hide-border').css('visibility','visible'); 1418 $('.card-delivery').css('margin-top','1.25rem!important'); 1419 }); 1420 1421 1422$('.related-product-categories-btn').on('click', function() { 1423 $('.offcanvas-collapse').removeClass('open'); 1424}); 1425 1426 if($('#accountMenu').hasClass('acc-open')) { 1427 $('.account-menu').on('click', function() { 1428 $('.hd-acc-menu-icon').css('transform','rotate(180deg)'); 1429 $('.account-menu').removeClass('acc-open'); 1430 }); 1431 } else { 1432 $('.account-menu').on('click', function() { 1433 $('.hd-acc-menu-icon').css('transform','rotate(180deg)'); 1434 $('.account-menu').addClass('acc-open'); 1435 }); 1436 } 1437 1438 1439/*document.querySelectorAll('.product-tab').forEach(linkItem => { 1440 linkItem.addEventListener('click', _ => { 1441 //window.scrollTo(0, 0); 1442 //alert(); 1443 //$('#tab-content-wrapper').offset().top - 20; 1444 //const href = $(this).data('data-bs-target'); 1445 //alert(href); 1446 $('html, body').animate({ 1447 scrollTop: $('#nav-overview').offset().top() 1448 }, 'slow'); 1449 }); 1450});*/ 1451 1452 1453 1454 1455 1456 // carousel setup for default product categories 1457 let items = document.querySelectorAll('.carousel .carousel-item') 1458 items.forEach((el) => { 1459 const minPerSlide = 6 1460 let next = el.nextElementSibling 1461 for (var i=1; i<minPerSlide; i++) { 1462 if (!next) { 1463 // wrap carousel by using first child 1464 next = items[0] 1465 } 1466 let cloneChild = next.cloneNode(true) 1467 el.appendChild(cloneChild.children[0]) 1468 next = next.nextElementSibling 1469 } 1470 }) 1471 1472 $('.catCarouselBtn').on('click', function(){ 1473 if($(this).hasClass('open')){ 1474 $(this).removeClass('open'); 1475 $('.catMenuWrapper').slideUp(); 1476 } else { 1477 $(this).addClass('open'); 1478 $('.catMenuWrapper').slideDown(); 1479 }; 1480 }); 1481 1482 1483 $(".bi-a").contents().unwrap(); 1484 1485 $('.av-facet-showmore').click(function(){ 1486 $('.av-facet-row-after20').show(); 1487 $('.av-facet-showmore').hide(); 1488 $('.av-facet-showless').show(); 1489 }); 1490 $('.av-facet-showless').click(function(){ 1491 $('.av-facet-row-after20').hide(); 1492 $('.av-facet-showmore').show(); 1493 $('.av-facet-showless').hide(); 1494 }); 1495 1496 $('.paymentToClickCollect').on('click', function(){ 1497 localStorage.setItem('openClickCollect', 'true'); 1498 $('.delivery-address-btn-wrap').show(); 1499 //add in function to open cc on delivery page - will need to add a value to local storage and retrieve it to programatically to open the accordion for cc 1500 }); 1501 $('.inactivePaymentToClickCollect').on('click', function(){ 1502 localStorage.setItem('openClickCollect', 'true'); 1503 //add in function to open cc on delivery page - will need to add a value to local storage and retrieve it to programatically to open the accordion for cc 1504 }); 1505 1506 1507 1508 1509 $('#resetAccSearch').on('click', function(){ 1510 window.location.href='/accounts/orders?search'; 1511 }); 1512 1513 var popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover" ]')) 1514 var popoverList = popoverTriggerList.map(function (popoverTriggerEl) { 1515 return new bootstrap.Popover(popoverTriggerEl) 1516 }) 1517 var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')) 1518 var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) { 1519 return new bootstrap.Tooltip(tooltipTriggerEl) 1520 }) 1521 1522 $('.backorder-from-modal').on('click',function(){ 1523 $('.modal-backdrop').hide(); 1524 $('.fancybox-overlay-fixed').fadeIn(); 1525 $('.fancybox-overlay').css('z-index','1030'); 1526 }); 1527 $('.fancybox-overlay-fixed').on('click',function(){ 1528 $('.offcanvas').hide(); 1529 }); 1530 1531 1532 1533 1534 $(document).ready(function() { 1535 1536 1537 1538 1539 $('.show-megasearch').click(function(){ 1540 setTimeout(function() { 1541 $('.search-wrapper').fadeIn(); 1542 $('.fancybox-overlay-fixed').fadeIn(); 1543 $('.fancybox-overlay').css('z-index','1030'); 1544 $('.av-search-input').focus(); 1545 }, 100); 1546 }); 1547 1548 $('.offCanvasSearchClose').click(function(){ 1549 setTimeout(function() { 1550 $('.popover').fadeOut(); 1551 $('.search-wrapper').fadeOut(); 1552 $('.fancybox-overlay-fixed').fadeOut(); 1553 1554 }, 50); 1555 }); 1556 $('.fancybox-overlay-fixed').click(function(){ 1557 setTimeout(function() { 1558 $('.popover').fadeOut(); 1559 $('.search-wrapper').fadeOut(); 1560 $('.fancybox-overlay-fixed').fadeOut(); 1561 1562 }, 50); 1563 }); 1564 1565 1566 1567 }); 1568 1569 jQuery(function($) { 1570 $(".av-search-input").keyup(function() { 1571 var $form = $('#megasearch'); 1572 $.get('/search/_part/megasearch?per_page=6&' + $form.serialize(),function(d) { 1573 var po = $form.data(this, "bs.popover"); 1574 po.popover('dispose'); 1575 $form.popover({content: (d), placement: 'bottom', html: true , trigger: "manual"}); 1576 $form.popover('show'); 1577 $('.fancybox-overlay-fixed').fadeIn(); 1578 $('.clear-search').fadeIn().css('opacity','1'); 1579 $('.fancybox-overlay').css('z-index','1030'); 1580 $('.popover').css('max-width','400px').css('border','none').css('background-color','transparent'); 1581 1582 }); 1583 }); 1584 }); 1585 1586const popoverTrigger = document.querySelector('.popover'); 1587if (popoverTrigger) { 1588 new bootstrap.Popover(popoverTrigger, { 1589 placement: 'bottom', 1590 modifiers: [ 1591 { 1592 name: 'flip', 1593 enabled: false, 1594 } 1595 ], 1596 }); 1597} 1598 1599 1600 1601 1602 $('.fancybox-overlay-fixed').on('click', function(){ 1603 $('#megasearch').show(); 1604 $('.fancybox-overlay-fixed').fadeOut(); 1605 $('.clear-search').fadeOut(); 1606 $('.popover-arrow').hide(); 1607 $('.popover-body').hide(); 1608 }); 1609 $('.clear-search').on('click', function(){ 1610 $('#megasearch').show(); 1611 $('.clear-search').fadeOut(); 1612 $('.fancybox-overlay-fixed').fadeOut(); 1613 $('.popover-arrow').hide(); 1614 $('.popover-body').hide(); 1615 }); 1616 1617 $('.open-mobile-search').on('click',function () { 1618 $('#megasearch').fadeIn(); 1619 $('.av-search-input').slideDown().focus(); 1620 $('.fancybox-overlay-fixed').fadeIn(); 1621 $('.clear-search').fadeIn().css('opacity','1'); 1622 $('.fancybox-overlay').css('z-index','2'); 1623 }); 1624 1625 jQuery(function($) { 1626 $("#megasearch-mobile").keyup(function() { 1627 var $form = $('#megasearch-mobile'); 1628 $form.popover({content: '', placement: 'bottom', html: true, trigger: 'manual'}); 1629 $.get('/search/_part/megasearch?per_page=6&' + $form.serialize(),function(d) { 1630 $form.data('bs.popover').options.content = d; 1631 $form.popover('show'); 1632 alert(); 1633 }); 1634 }); 1635 }); 1636 1637 1638 1639 1640$('.open-cc-logged').on('click', function(){ 1641 $('.guest-click-collect').css('display','block'); 1642 /* var getCCemail = localStorage.getItem('email'); 1643 if(!$.trim(getCCemail.value).length) { 1644 $("#delivery_ship_to_email").val(getCCemail); 1645 } */ 1646 1647 1648 var cclocation = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" style="height:28px;fill:#000;"><!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><defs><style>.fa-secondary{opacity:.4}</style></defs><path class="fa-primary" d="M223.5 107C238.2 92.31 262.1 92.31 276.8 107C291.5 121.8 291.5 145.6 276.8 160.4L261.9 175.3L208.6 121.1L223.5 107zM239.3 197.9L167.4 269.9C163.3 273.1 158.1 276.9 152.5 278.3L115.9 287.4C110.4 288.8 104.7 287.2 100.7 283.2C96.71 279.3 95.12 273.5 96.48 268L105.6 231.4C107 225.8 109.1 220.6 114.1 216.5L185.1 144.6L239.3 197.9z"/><path class="fa-secondary" d="M168.3 499.2C116.1 435 0 279.4 0 192C0 85.96 85.96 0 192 0C298 0 384 85.96 384 192C384 279.4 267 435 215.7 499.2C203.4 514.5 180.6 514.5 168.3 499.2H168.3zM276.8 107C262.1 92.31 238.2 92.31 223.5 107L208.6 121.1L261.9 175.3L276.8 160.4C291.5 145.6 291.5 121.8 276.8 107V107zM105.6 231.4L96.48 268C95.12 273.5 96.71 279.3 100.7 283.2C104.7 287.2 110.4 288.8 115.9 287.4L152.5 278.3C158.1 276.9 163.3 273.1 167.4 269.9L239.3 197.9L185.1 144.6L114.1 216.5C109.1 220.6 107 225.8 105.6 231.4H105.6z"/></svg> 300 Lorimer Street, Port Melbourne, VIC 3207'; 1649 $('.cc-pickup-location').html(cclocation); 1650 $('.cc-map').attr('src','https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3151.49112536495!2d144.90511081572137!3d-37.82538677975028!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f26.1!3m3!1m2!1s0x6ad64284ee9b8eff%3A0x4c3f30bc95ca215c!2sC.R.Kennedy+%26+Company!5e0!3m2!1sen!2sau!4v1508999257743'); 1651}); 1652 1653 /*$('.cta-cat-btns').on('click', function(e){ 1654 //debugger; 1655 if($('#collapseContact').hasClass('show')){ 1656 e.preventDefault(); 1657 //$('#collapseContact').removeClass('collapse'); 1658 }; 1659 });*/ 1660 1661// top level categories sticky top call-to-action btns 1662 $('.cta-cat-contact-close').on('click', function(){ 1663 $('#collapseContact').removeClass('show'); 1664 $('#collapseServiceEnquiry').removeClass('show'); 1665 $("#contact-us-btn").attr("href", "#collapseContact"); 1666 $("#request-demo-btn").attr("href", "#collapseContact"); 1667 $('#technical-support-btn').attr("href", "#collapseContact"); 1668 $('#request-technical-support-btn').attr("href", "#collapseServiceEnquiry"); 1669 $('#request-training-enquiry-btn').attr("href", "#collapseServiceEnquiry"); 1670 $('#request-service-enquiry').attr("href", "#collapseServiceEnquiry"); 1671 $("#contact-us-btn").removeClass('active'); 1672 $("#request-demo-btn").removeClass('active'); 1673 $('#technical-support-btn').removeClass('active'); 1674 }); 1675 $('#contact-us-btn').on('click', function(){ 1676 $(this).addClass('active'); 1677 $("#request-demo-btn").removeClass('active'); 1678 $('#technical-support-btn').removeClass('active'); 1679 $('.contact-type option[value=sales-enquiry]').prop('selected','selected'); 1680 $('.contact-type option[value=demo-enquiry]').removeProp('selected','selected'); 1681 $('.contact-type option[value=tech-enquiry]').removeProp('selected','selected'); 1682 //$('#collapseContact').removeClass('collapse') 1683 $("#request-demo-btn").attr("href", ""); 1684 $('#technical-support-btn').attr("href", ""); 1685 }); 1686 $('#request-demo-btn').on('click', function(){ 1687 $(this).addClass('active'); 1688 $("#technical-support-btn").removeClass('active'); 1689 $('#contact-us-btn').removeClass('active'); 1690 $('.contact-type option[value=demo-enquiry]').prop('selected','selected'); 1691 $('.contact-type option[value=sales-enquiry]').removeProp('selected','selected'); 1692 $('.contact-type option[value=tech-enquiry]').removeProp('selected','selected'); 1693 $("#contact-us-btn").attr("href", ""); 1694 $('#technical-support-btn').attr("href", ""); 1695 }); 1696 $('#technical-support-btn').on('click', function(){ 1697 $(this).addClass('active'); 1698 $(this).attr("href", ""); 1699 $("#request-demo-btn").removeClass('active'); 1700 $('#contact-us-btn').removeClass('active'); 1701 $('.contact-type option[value=tech-enquiry]').prop('selected','selected'); 1702 $('.contact-type option[value=demo-enquiry]').removeProp('selected','selected'); 1703 $('.contact-type option[value=sales-enquiry]').removeProp('selected','selected'); 1704 $("#request-demo-btn").attr("href", ""); 1705 $('#contact-us-btn').attr("href", ""); 1706 $('html, body').animate({ scrollTop: $('#collapseServiceEnquiry').offset().top - 20}, 'slow'); 1707 }); 1708 $('.collapseServiceWindow').on('click', function(){ 1709 $(this).attr("href", ""); 1710 $('.contact-type option[value=service-enquiry]').attr('selected','selected'); 1711 $('html, body').animate({ scrollTop: $('#collapseServiceEnquiry').offset().top - 20}, 'slow'); 1712 }); 1713 $('#training-enquiry-btn').on('click', function(){ 1714 $('.contact-type option[value=train-enquiry]').attr('selected','selected'); 1715 $('html, body').animate({ scrollTop: $('#collapseServiceEnquiry').offset().top - 20}, 'slow'); 1716 }); 1717 1718 $('#request-technical-support-btn').on('click', function(){ 1719 $(this).attr("href", ""); 1720 $('#request-training-enquiry-btn').attr("href", ""); 1721 $('.contact-type option[value=tech-enquiry]').prop('selected','selected'); 1722 $('.contact-type option[value=sales-enquiry]').removeProp('selected','selected'); 1723 $('html, body').animate({ scrollTop: $('#collapseServiceEnquiry').offset().top - 20}, 'slow'); 1724 }); 1725 1726 $('#request-training-enquiry-btn').on('click', function(){ 1727 $(this).attr("href", ""); 1728 $('#request-technical-support-btn').attr("href", ""); 1729 $('.contact-type option[value=train-enquiry]').prop('selected','selected'); 1730 $('.contact-type option[value=sales-enquiry]').removeProp('selected','selected'); 1731 $('html, body').animate({ scrollTop: $('#collapseServiceEnquiry').offset().top - 20}, 'slow'); 1732 }); 1733 1734 $('#request-service-enquiry-btn').on('click', function(){ 1735 $(this).attr("href", ""); 1736 $('#request-service-enquiry-btn').attr("href", ""); 1737 $('.contact-type option[value=service-enquiry]').prop('selected','selected'); 1738 $('.contact-type option[value=sales-enquiry]').removeProp('selected','selected'); 1739 $('.contact-type option[value=tech-enquiry]').removeProp('selected','selected'); 1740 $('.contact-type option[value=demo-enquiry]').removeProp('selected','selected'); 1741 $('html, body').animate({ scrollTop: $('#collapseServiceEnquiry').offset().top - 20}, 'slow'); 1742 }); 1743 1744 1745 1746 1747// grids & lists page 1748 /*$('.grid-show').mouseenter(function() { 1749 $(this).find('.slideUpCart').fadeIn('fast'); 1750});*/ 1751 1752 1753 1754 $('.cat-home-box-home').on('touchstart mouseenter', function() { 1755 $('.slideUpProduct').not(this).hide(); 1756 $(this).find('.slideUpProduct').fadeIn('fast'); 1757 setTimeout(function() {}, 10); 1758 }); 1759 $('.cat-home-box-home').on('mouseleave',function() { 1760 $(this).find('.slideUpProduct').fadeOut('fast'); 1761 }); 1762 1763 $('.brand-cat-wrap').on('touchstart mouseenter', function() { 1764 $('.slideUpBrand').not(this).hide(); 1765 $(this).find('.slideUpBrand').fadeIn('fast'); 1766 setTimeout(function() {}, 10); 1767 }); 1768 $('.brand-cat-wrap').on('mouseleave',function() { 1769 $(this).find('.slideUpBrand').fadeOut('fast'); 1770 }); 1771 1772 1773 1774 1775 // Event listener for window resize or load 1776window.addEventListener('load', function() { 1777 // Check window width 1778 var windowWidth = window.innerWidth; 1779 1780 // Check if window width is greater than 768 pixels 1781 if (windowWidth > 768) { 1782 1783 $('.grid-show').on('mouseenter', function() { 1784 $('.slideUpCart-lg').not(this).hide(); 1785 $(this).find('.slideUpCart-lg').fadeIn('fast'); 1786 setTimeout(function() {}, 10); 1787 }); 1788 $('.grid-show').on('mouseleave',function() { 1789 $(this).find('.slideUpCart-lg').fadeOut('fast'); 1790 }); 1791 1792 } 1793}); 1794 1795 1796 1797 1798 1799 1800 1801 1802 var currentSortVal = $('#search_order').val(); 1803 $('#search_order').val(currentSortVal).prop('checked',true); 1804 //console.log(currentSortVal); 1805
1806 if (currentSortVal == "score desc, sort_field desc, code asc"){ 1807 $('.currentSortValue').html(' best match'); 1808 } else if (currentSortVal == "code asc"){ 1809 $('.currentSortValue').html(' code a-z'); 1810 } else if (currentSortVal == "code desc"){ 1811 $('.currentSortValue').html(' code z-a'); 1812 } else if (currentSortVal == "public_title asc"){ 1813 $('.currentSortValue').html(' name a-z'); 1814 } else if (currentSortVal == "public_title desc"){ 1815 $('.currentSortValue').html(' name z-a'); 1816 } else if (currentSortVal == "price_ex_tax asc"){ 1817 $('.currentSortValue').html(' lowest price'); 1818 } else if (currentSortVal == "price_ex_tax desc"){ 1819 $('.currentSortValue').html(' highest price'); 1820 } else { 1821 $('.currentSortValue').html(' best match'); 1822 } 1823 1824 1825 $(".av-facet-slider").on('keyup', function() { 1826 $(".price-range-submit").fadeIn(); 1827 }); 1828 1829 // Get all of the videos 1830let videos = document.querySelectorAll('[data-youtube]'); 1831//console.log(videos); 1832// Progressively enhance them 1833for (let video of videos) { 1834console.log(video); 1835 // Get the video ID 1836 //let id = new URL(video.href).searchParams.get('v'); 1837 let id = video.getAttribute('data-youtube') 1838 1839 // Add the ID to the data-youtube attribute 1840 video.setAttribute('data-youtube', id); 1841 1842 // Add a role of button 1843 video.setAttribute('role', 'button'); 1844 1845 // Add a thumbnail 1846 video.innerHTML = 1847 `<img alt="Watch video on you tube" src="https://img.youtube.com/vi/${id}/maxresdefault.jpg" class="img-fluid lazy"><br><span class="yt-icon-overlay-wrapper"> 1848 <img src="https://sigmaphoto.com.au/ts1681284580/attachments/Page/1/yt-play.webp" class="img-fluid yt-icon-overlay" alt="Play Youtube Video"> 1849 </span> 1850 ${video.textContent}`; 1851} 1852 1853 1854 1855/** 1856 * Handle click events on the video thumbnails 1857 * @param {Event} event The event object 1858 */ 1859function clickYouTubeHandler (event) { 1860 1861 // Get the video link 1862 let link = event.target.closest('[data-youtube]'); 1863 if (!link) return; 1864 1865 // Prevent the URL from redirecting users 1866 event.preventDefault(); 1867 1868 // Get the video ID 1869 let id = link.getAttribute('data-youtube'); 1870 1871 // Create the player 1872 let player = document.createElement('div'); 1873 player.innerHTML = `<iframe class="embed-responsive-item" src="https://www.youtube-nocookie.com/embed/${id}?autoplay=1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>`; 1874 1875 // Inject the player into the UI 1876 link.replaceWith(player); 1877 1878} 1879 1880// Detect clicks on the video thumbnails 1881document.addEventListener('click', clickYouTubeHandler); 1882 1883 1884 </script>
1884 1885 1886 1887 1888 1889
1889<script> 1890 /*$(document).ready(function() { 1891 $('.av-img-placeholder-img').addClass('img-fluid'); 1892 });*/ 1893 document.addEventListener("DOMContentLoaded", function() { 1894 var lazyBackgrounds = [].slice.call(document.querySelectorAll(".lazy-bg")); 1895 1896 if ("IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype) { 1897 let lazyBackgroundObserver = new IntersectionObserver(function(entries, observer) { 1898 entries.forEach(function(entry) { 1899 if (entry.isIntersecting) { 1900 entry.target.classList.add("bg-visible"); 1901 lazyBackgroundObserver.unobserve(entry.target); 1902 } 1903 }); 1904 }); 1905 1906 lazyBackgrounds.forEach(function(lazyBackground) { 1907 lazyBackgroundObserver.observe(lazyBackground); 1908 }); 1909 } 1910 }); 1911 1912 // building construction - subscribe to mc & send pdf to user 1913 $('#mc-embedded-subscribe-form').on('submit', function(e) { 1914 e.preventDefault(); 1915 $('.mc-submit-spinner').fadeIn().css('display','inline-block'); 1916 $('.mc-submit').css('top','-8px'); 1917 var email = $('#mce-EMAIL').val(); 1918 /*$.ajax({ 1919 type: 'POST', 1920 url: "https://www.crkennedy.com.au/ext-site-widgets/bc-survey/bc-survey-send-pdf.php", 1921 data: {email: email}, 1922 dataType : 'json', 1923 contentType: "application/json; charset=utf-8", 1924 success: function (results) { 1925 alert('ajax success'); 1926 } 1927 });*/ 1928 $.ajax({ 1929 type: 'GET', 1930 url: 'https://crkennedy.us5.list-manage.com/subscribe/post-json?u=cd5ae63206382fd74401b57fe&id=ebe1d64659&f_id=005ac3e1f0&c=?', 1931 data: {email: email}, 1932 cache : false, 1933 dataType : 'json', 1934 contentType: "application/json; charset=utf-8", 1935 error : function(err) { alert("Could not connect to the registration server. Please try again later."); }, 1936 success : function(data) { 1937 if (data.result != "success") { 1938 //console.log(data.msg); 1939 $('.mc-submit-spinner').fadeOut(); 1940 $('.mc-submit').css('top','0px'); 1941 $('#mce-error-response').html(data.msg).slideDown(); 1942 } else { 1943 $('.mc-submit-spinner').fadeOut(); 1944 $('.mc-submit').css('top','0px'); 1945 $('#mce-success-response').html(data.msg).slideDown(); 1946 } 1947 } 1948 }); 1949 }); 1950 // case studies video - show image overlay 1951 $(document).ready(function() { 1952 $('.play-case-video').on('click', function(ev) { 1953 this.style.display = 'none'; 1954 thevid = document.getElementById('video'); 1955 thevid.style.display = 'block'; 1956 $("#video")[0].src += "?autoplay=1"; 1957 ev.preventDefault(); 1958 1959 }); 1960 }); 1961 // building construction - show book a call email form 1962 1963 1964 1965 1966 $(document).ready(function(){ 1967 $(".mm-wrap-cat").mouseenter(function(){ 1968 //$(this).find(".mm-cat-title").animate({left:"2px"}, 100); 1969 $(this).find(".mm-chev-right").css("opacity","1"); 1970 $(this).find(".mm-chev-right").css("display","inline-block"); 1971 }).mouseleave(function(){ 1972 $(".mm-cat-title").animate({left: "0px"}, 100); 1973 $(this).find(".mm-chev-right").css("display","none"); 1974 }); 1975 }); 1976 1977 1978 $(document).ready(function(){ 1979 //new address phone cart/delivery page 1980 $("#delivery_ship_phone").focus(function(){ 1981 $('.new-label-hide').css('display','none'); 1982 }); 1983 $("#contact_number").on('keyup', function(){ 1984 if(!$.trim(this.value).length) { 1985 //$('.new-label-hide').css('display','block'); 1986 } 1987 }); 1988 $("#delivery_ship_phone").focus(function(){ 1989 $('.new-label-hide').css('display','none'); 1990 }); 1991 $("#delivery_ship_phone").on('keyup', function(){ 1992 if(!$.trim(this.value).length) { 1993 $('.new-label-hide').css('display','block'); 1994 } 1995 }); 1996 $(":input").inputmask(); 1997 1998 1999 // uncomment the below when returning to work on the new survey site 2000 // this doesn't work on the old BS3 framework 2001 // but does work on BS5 2002 $("#contact_number").inputmask({ 2003 //mask: '9999 999 999', 2004 placeholder: '0___ ___ ___', 2005 showMaskOnHover: false, 2006 showMaskOnFocus: true, 2007 onBeforePaste: function (pastedValue, opts) { 2008 var processedValue = pastedValue; 2009 return processedValue; 2010 } 2011 }); 2012 2013 2014 //click collect phone cart/delivery page 2015 $("#cc_ship_phone").focus(function(){ 2016 $('.guest-label-hide').hide(); 2017 }); 2018 $("#cc_ship_phone").blur(function(){ 2019 if(!$.trim(this.value).length) { 2020 $('.guest-label-hide').show(); 2021 } 2022 }); 2023 $(":input").inputmask(); 2024 2025 /*$("#cc_ship_phone").inputmask({ 2026 mask: '9999 999 999', 2027 placeholder: 'XXXX XXX XXX', 2028 showMaskOnHover: false, 2029 showMaskOnFocus: true, 2030 onBeforePaste: function (pastedValue, opts) { 2031 var processedValue = pastedValue; 2032 return processedValue; 2033 } 2034 });*/ //end new address 2035 2036 /* $("#delivery_ship_phone").inputmask({ 2037 mask: '9999 999 999', 2038 placeholder: '____ ___ ___', 2039 showMaskOnHover: false, 2040 showMaskOnFocus: true, 2041 onBeforePaste: function (pastedValue, opts) { 2042 var processedValue = pastedValue; 2043 return processedValue; 2044 } 2045 });*/ //end new address 2046 2047 /*************************************************/ 2048 2049 $('#delivery_ship_phone').on('keyup',function() { 2050 //alert($(this).val()); 2051 let cNumber = $("#delivery_ship_phone").val(); 2052 let cnLength = $("#delivery_ship_phone").length; 2053 console.log(cNumber); 2054 2055 if($(this).val() == '02' || $(this).val() == '02__ ___ ___' || $(this).val() == '03' || $(this).val() == '04__ ___ ___' || $(this).val() == '07' || $(this).val() == '07__ ___ ___' || $(this).val() == '08' || $(this).val() == '08__ ___ ___') { 2056 //alert($(this).val()); 2057 //$(this).attr("data-placeholder", "XX XXXX XXXX"); 2058 //$(this).attr("pattern", "\d{2}\d{4}\d{4}"); 2059 2060 $("#delivery_ship_phone").inputmask({ 2061 mask: '99 9999 9999', 2062 placeholder: '0_ ____ ____', 2063 showMaskOnHover: false, 2064 showMaskOnFocus: true, 2065 onBeforePaste: function (pastedValue, opts) { 2066 var processedValue = pastedValue; 2067 return processedValue; 2068 } 2069 }); 2070 2071 } else if($(this).val() == '04' || $(this).val() == '04 ____ ____'){ 2072 //$(this).attr("data-placeholder", "XXXX XXX XXX"); 2073 //$(this).attr("pattern", "\d{4}\d{3}\d{3}"); 2074 2075 $("#delivery_ship_phone").inputmask({ 2076 mask: '9999 999 999', 2077 placeholder: '0___ ___ ___', 2078 showMaskOnHover: false, 2079 showMaskOnFocus: true, 2080 onBeforePaste: function (pastedValue, opts) { 2081 var processedValue = pastedValue; 2082 return processedValue; 2083 } 2084 }); 2085 } else if($(this).val() == '00' || $(this).val() == '00 ____ ____' || $(this).val() == '01' || $(this).val() == '01 ____ ____' || $(this).val() == '05' || $(this).val() == '05 ____ ____' || $(this).val() == '09' || $(this).val() == '09 ____ ____' ){ 2086 $('#contact_number').val(''); 2087 } 2088 if(!$.trim(this.value).length) { 2089 $('#contact_number-error').fadeIn(); 2090 } else { 2091 $('#contact_number-error').fadeOut(); 2092 } 2093 }); 2094 2095 /***********************************************/ 2096 2097 2098 /*************************************************/ 2099 2100 $('#cc_ship_phone').on('keyup',function() { 2101 //alert($(this).val()); 2102 let cNumber = $("#cc_ship_phone").val(); 2103 let cnLength = $("#cc_ship_phone").length; 2104 console.log(cNumber); 2105 2106 if($(this).val() == '02' || $(this).val() == '02__ ___ ___' || $(this).val() == '03' || $(this).val() == '04__ ___ ___' || $(this).val() == '07' || $(this).val() == '07__ ___ ___' || $(this).val() == '08' || $(this).val() == '08__ ___ ___') { 2107 //alert($(this).val()); 2108 //$(this).attr("data-placeholder", "XX XXXX XXXX"); 2109 //$(this).attr("pattern", "\d{2}\d{4}\d{4}"); 2110 2111 $("#cc_ship_phone").inputmask({ 2112 mask: '99 9999 9999', 2113 placeholder: '0_ ____ ____', 2114 showMaskOnHover: false, 2115 showMaskOnFocus: true, 2116 onBeforePaste: function (pastedValue, opts) { 2117 var processedValue = pastedValue; 2118 return processedValue; 2119 } 2120 }); 2121 2122 } else if($(this).val() == '04' || $(this).val() == '04 ____ ____'){ 2123 //$(this).attr("data-placeholder", "XXXX XXX XXX"); 2124 //$(this).attr("pattern", "\d{4}\d{3}\d{3}"); 2125 2126 $("#cc_ship_phone").inputmask({ 2127 mask: '9999 999 999', 2128 placeholder: '0___ ___ ___', 2129 showMaskOnHover: false, 2130 showMaskOnFocus: true, 2131 onBeforePaste: function (pastedValue, opts) { 2132 var processedValue = pastedValue; 2133 return processedValue; 2134 } 2135 }); 2136 } else if($(this).val() == '00' || $(this).val() == '00 ____ ____' || $(this).val() == '01' || $(this).val() == '01 ____ ____' || $(this).val() == '05' || $(this).val() == '05 ____ ____' || $(this).val() == '09' || $(this).val() == '09 ____ ____' ){ 2137 $('#contact_number').val(''); 2138 } 2139 if(!$.trim(this.value).length) { 2140 $('#contact_number-error').fadeIn(); 2141 } else { 2142 $('#contact_number-error').fadeOut(); 2143 } 2144 }); 2145 2146 /***********************************************/ 2147 2148 }); 2149 2150 /* (function() { 2151 'use strict'; 2152 window.addEventListener('load', function() { 2153 var forms = document.getElementsByClassName('needs-validation');
2154 var validation = Array.prototype.filter.call(forms, function(form) { 2155 form.addEventListener('submit', function(event) { 2156 if (form.checkValidity() === false) { 2157 event.preventDefault(); 2158 event.stopPropagation(); 2159 } 2160 form.classList.add('was-validated'); 2161 }, false); 2162 }); 2163 }, false); 2164})();*/ 2165// Example starter JavaScript for disabling form submissions if there are invalid fields 2166 /*(function () { 2167 'use strict' 2168 2169 // Fetch all the forms we want to apply custom Bootstrap validation styles to 2170 var forms = document.querySelectorAll('.needs-validation') 2171 2172 // Loop over them and prevent submission 2173 Array.prototype.slice.call(forms) 2174 .forEach(function (form) { 2175 form.addEventListener('submit', function (event) { 2176 if (!form.checkValidity()) { 2177 event.preventDefault() 2178 event.stopPropagation() 2179 } 2180 2181 form.classList.add('was-validated') 2182 }, false) 2183 }) 2184 })(); */ 2185</script>
2185 2186 2187 2188 2189 2190
2190<script> 2191 //toggle password visibility 2192 function togglePassword() { 2193 var x = document.getElementById("user_password"); 2194 if (x.type === "password") { 2195 x.type = "text"; 2196 $('.pass-eye').addClass('fa-eye-slash'); 2197 } else { 2198 x.type = "password"; 2199 $('.pass-eye').removeClass('fa-eye-slash'); 2200 } 2201 } 2202 2203 //toggle confirm password visibility 2204 function toggleConfirm() { 2205 var x = document.getElementById("user_password_confirmation"); 2206 if (x.type === "password") { 2207 x.type = "text"; 2208 $('.confirm-eye').addClass('fa-eye-slash'); 2209 } else { 2210 x.type = "password"; 2211 $('.confirm-eye').removeClass('fa-eye-slash'); 2212 } 2213 } 2214 2215 </script>
2215 2216 2217 2218 2219 2220 2221 2222
2223<script> 2224//toggle login password visibility 2225 function toggleLogin() { 2226 var x = document.getElementById("login_user_password"); 2227 if (x.type === "password") { 2228 x.type = "text"; 2229 $('.login-eye').addClass('fa-eye-slash'); 2230 } else { 2231 x.type = "password"; 2232 $('.login-eye').removeClass('fa-eye-slash'); 2233 } 2234 } 2235 $('.toggle-forgotten').on('click', function(){ 2236 $('.login-div').hide(); 2237 $('.forgotten-div').show(); 2238 }); 2239 $('.toggle-forgotten-cart').on('click', function(){ 2240 $('.cart-login-div').hide(); 2241 $('.guest-forgotten-password').show(); 2242 }); 2243</script>
2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258
2259<script> 2260 2261 2262 // wrap grids & lists product divs with an href its to product page 2263 // need to update this to recalc on change to grids&lists view more function 2264 sethrefs = function () { 2265 if (document.querySelectorAll) { 2266 var datahrefs = document.querySelectorAll('[data-href]'), 2267 dhcount = datahrefs.length; 2268 while (dhcount-- > 0) { 2269 var ele = datahrefs[dhcount], 2270 addevent = function (ele, event, func) { 2271 if(ele.addEventListener) ele.addEventListener(event, link, false); 2272 else ele.attachEvent('on' + event, link); 2273 }, 2274 link = function (event) { 2275 var target = event.target, 2276 url = this.getAttribute('data-href'); 2277 if (!target.href) { 2278 var newevent = document.createEvent("MouseEvents"); 2279 if (newevent.initMouseEvent) { 2280 var newlink = document.createElement("a"); 2281 newlink.setAttribute('href', url); 2282 newlink.innerHTML = 'link event'; 2283 newevent.initMouseEvent(event.type, true, false, window, event.detail, event.screenX, event.screenY, event.clientX, event.clientY, event.ctrlKey, event.altKey, event.shiftKey, event.metaKey, event.button, null); 2284 newlink.dispatchEvent(newevent); 2285 } 2286 else { 2287 var meta = (event.metaKey) ? '_self' : '_blank'; 2288 window.open(url, meta); 2289 } 2290 } 2291 }; 2292 addevent(ele, 'click', link); 2293 } 2294 } 2295 }; 2296 sethrefs(); 2297 2298 2299 2300$(".av-grid-load-more").on('click',function(){ 2301 sethrefs = function () { 2302 if (document.querySelectorAll) { 2303 var datahrefs = document.querySelectorAll('[data-href]'), 2304 dhcount = datahrefs.length; 2305 while (dhcount-- > 0) { 2306 var ele = datahrefs[dhcount], 2307 addevent = function (ele, event, func) { 2308 if(ele.addEventListener) ele.addEventListener(event, link, false); 2309 else ele.attachEvent('on' + event, link); 2310 }, 2311 link = function (event) { 2312 var target = event.target, 2313 url = this.getAttribute('data-href'); 2314 if (!target.href) { 2315 var newevent = document.createEvent("MouseEvents"); 2316 if (newevent.initMouseEvent) { 2317 var newlink = document.createElement("a"); 2318 newlink.setAttribute('href', url); 2319 newlink.innerHTML = 'link event'; 2320 newevent.initMouseEvent(event.type, true, false, window, event.detail, event.screenX, event.screenY, event.clientX, event.clientY, event.ctrlKey, event.altKey, event.shiftKey, event.metaKey, event.button, null); 2321 newlink.dispatchEvent(newevent); 2322 } 2323 else { 2324 var meta = (event.metaKey) ? '_self' : '_blank'; 2325 window.open(url, meta); 2326 } 2327 } 2328 }; 2329 addevent(ele, 'click', link); 2330 } 2331 } 2332 }; 2333 sethrefs(); 2334 //debugger; 2335 setTimeout(function() { }, 100); 2336 $('.grid-show').on('mouseenter', function() { 2337 console.log('enter'); 2338 $('.slideUpCart-lg').not(this).hide(); 2339 $(this).find('.slideUpCart-lg').fadeIn('fast'); 2340 setTimeout(function() {}, 10); 2341 }); 2342 $('.grid-show').on('mouseleave',function() { 2343 console.log('exit'); 2344 $(this).find('.slideUpCart-lg').fadeOut('fast'); 2345 }); 2346 2347}); 2348 2349 2350 /*(function () { 2351 'use strict' 2352 2353 document.querySelector('#navbarSideCollapse').addEventListener('click', function () { 2354 document.querySelector('.offcanvas-collapse').classList.toggle('open') 2355 }) 2356 })()*/ 2357 2358 2359 // comment out for development 2360 // shrinking header on scroll 2361 /* 2362 var lastScrollTop = 0; 2363 var navBarHeight = 100; 2364 $(window).on('scroll', function() { 2365 st = $(this).scrollTop(); 2366 if(st < lastScrollTop) { 2367 $('header').slideDown(); 2368 } 2369 else { 2370 $('header').slideUp(); 2371 } 2372 lastScrollTop = st; 2373 }); 2374 2375 2376 let items = document.querySelectorAll('.carousel .carousel-item')
2377 items.forEach((el) => { 2378 const minPerSlide = 4 2379 let next = el.nextElementSibling 2380 for (var i=1; i<minPerSlide; i++) { 2381 if (!next) { 2382 // wrap carousel by using first child 2383 next = items[0] 2384 } 2385 let cloneChild = next.cloneNode(true) 2386 el.appendChild(cloneChild.children[0]) 2387 next = next.nextElementSibling 2388 } 2389 }) 2390 2391 */ 2392 2393 2394 /* (function () { 2395 'use strict' 2396 2397 document.querySelector('#navbarSideCollapse').addEventListener('click', function () { 2398 document.querySelector('.offcanvas-collapse').classList.toggle('open') 2399 }) 2400 })() 2401 2402 // Example starter JavaScript for disabling form submissions if there are invalid fields 2403 (function () { 2404 'use strict' 2405 2406 // Fetch all the forms we want to apply custom Bootstrap validation styles to 2407 var forms = document.querySelectorAll('.needs-validation') 2408 2409 // Loop over them and prevent submission 2410 Array.prototype.slice.call(forms) 2411 .forEach(function (form) { 2412 form.addEventListener('submit', function (event) { 2413 if (!form.checkValidity()) { 2414 event.preventDefault() 2415 event.stopPropagation() 2416 } 2417 2418 form.classList.add('was-validated') 2419 }, false) 2420 }) 2421 })() */ 2422 </script>
2422 2423
2423<script type="text/javascript"> 2424 $(document).ready(function(){ 2425 var 2426 images = "#gallery > img" // image selector 2427 , interval = 4000 // milliseconds between transitions 2428 , index = 0 // starting index 2429 , count = $(images).length // image count 2430 // the transition loop 2431 , handle = setInterval(function() { 2432 // fade out the current image 2433 $(images + ":eq(" + index + ")").fadeOut('slow'); 2434 // get the next index, or cycle back to 0 2435 if (++index === count) index = 0; 2436 // fade in the next image 2437 $(images + ":eq(" + index + ")").fadeIn('slow'); 2438 } 2439 , interval 2440 ) 2441 , stop = function(){ 2442 clearInterval(handle); 2443 }; 2444 }); 2445 </script>
2445 2446
2446<script> 2447 2448 if ($(window).width() < 520) {} 2449 $(window).on('scroll', function() { 2450 $("#fixed-top").addClass("sticky-top"); 2451 /*$('.search-txt-span').fadeOut('fast'); 2452 $('.cart-txt-span').fadeOut('fast'); 2453 $('.menu-txt-span').fadeOut('fast'); 2454 $('.login-txt-span').fadeOut('fast'); 2455 $('.mobile-logo').css('width','31px');*/ 2456 2457 $("#sticky-header").addClass("shrink"); 2458 $('.hamburger').addClass("hamburger-shrink"); 2459 $('.av-header-symbol').addClass("logo-shrink"); 2460 $('.account-search-cart-mobile').addClass("search-shrink"); 2461 }); 2462 2463 2464 2465 /* function delay(callback, ms) { 2466 var timer = 0; 2467 return function() { 2468 var context = this, args = arguments; 2469 clearTimeout(timer); 2470 timer = setTimeout(function () { 2471 callback.apply(context, args); 2472 }, ms || 0); 2473 }; 2474 } 2475 2476 $(document).ready(function() { 2477 $('.av-search-toggle').click(function(){ 2478 setTimeout(function() { 2479 $('html,body').animate({ 2480 scrollTop: $("#megasearch-mobile").offset().top}, 2481 'slow'); 2482 }, 100); 2483 }); 2484 });*/ 2485 2486 2487 2488 // rev slider placeholder adjustment 2489 if ($(window).width() < 769) { 2490 $('.rev-slider-placeholder').css('height','600px'); 2491 } 2492 if ($(window).width() < 520) { 2493 $('.rev-slider-placeholder').css('height','512px'); 2494 $(".rev-slider-home").attr("height", "512px"); 2495 } 2496 </script>
2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508
2508<script> 2509 $(document).ready( function() { 2510 $('.nav-cart-icon').addClass('mobile-logged-out'); 2511 }); 2512 2513 </script>
2513 2514 2515 2516 2517 2518 2519</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.