(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-P8ZVZQ3'); (function(config) { // https://stackoverflow.com/a/8498668 function url_domain(data) { var a = document.createElement('a'); a.href = data; return a.hostname; } var send = XMLHttpRequest.prototype.send; XMLHttpRequest.prototype.send = function(data) { var csrf_token_header = this.getCsrfTokenHeader(); var csrf_token_value = this.getCsrfTokenValue(); if (!this.tokenAdded && this.addCsrfTokenHeader) { this.setRequestHeader(csrf_token_header, csrf_token_value); this.tokenAdded = true; } return send.apply(this, arguments); }; var open = XMLHttpRequest.prototype.open; XMLHttpRequest.prototype.open = function(method, url, async, user, password) { var location_hostname = window.location.hostname; var url_hostname = url_domain(url); var sameDomain = location_hostname == url_hostname; // this fixes for the 405 error from the preflight CORS HTTP OPTIONS request // currently we determine whether to add the header based on whether the domain is the same... however it might // be necessary to detect mimetypes or extensions and not add the csrf token to css; js; and fonts. Or it might // be required to allow all of the valid domains for the site this.addCsrfTokenHeader = sameDomain; return open.apply(this, arguments); }; XMLHttpRequest.prototype.getCsrfTokenHeader = function() { return this.csrf_token_header; }; XMLHttpRequest.prototype.getCsrfTokenValue = function() { return this.csrf_token_value; }; XMLHttpRequest.prototype.setCsrfTokenHeader = function(csrf_token_header) { this.csrf_token_header = csrf_token_header; }; XMLHttpRequest.prototype.setCsrfTokenValue = function(csrf_token_value) { this.csrf_token_value = csrf_token_value; }; XMLHttpRequest.prototype.csrf_token_header = config.csrf_token_header; XMLHttpRequest.prototype.csrf_token_value = config.csrf_token_value; })({"csrf_token_header":"X-CSRF-TOKEN","csrf_token_value":"4a788a5cb5089eefcc677f64319d5287d6836233dcc0045ec3d443d9eb86d67e"}); // See HTML::configureJS Shout.configure({"location":"\/\/www.wintonhomes.ca\/content.php","action":150,"libroot":"\/shout\/web\/v6.46.5.R20241104","absRoot":"","module":{"admin":{"dialog":{"default_width":"SHOUTCMS_ADMIN_DIALOG_WIDTH"}}}}); // See HTML::configureJS Shout.configure({"module":{"list":{"list_css":"list","filter_css":{"base":"filter","applied":"filter-applied","posted":"filter-posted"},"list_url":"content.php?module=16\u0026mode=5\u0026pnid=6899\u0026pmid=0","use_ajax":true}}}); // See HTML::configureJS Shout.configure({"module":{"list":{"sort_css":{"base":"sort","applied":"sort-applied","posted":"sort-posted"}}}}); // See HTML::configureJS Shout.configure({"module":{"list":{"layout_change_css":{"base":"layout_change","applied":"layout_change-applied","posted":"layout_change-posted"}}}}); // See HTML::configureJS Shout.configure({"module":{"list":{"list_css":"list","filter_css":{"base":"filter","applied":"filter-applied","posted":"filter-posted"},"list_url":"content.php?module=16\u0026mode=5\u0026pnid=6899\u0026pmid=0","use_ajax":true}}}); // See HTML::configureJS Shout.configure({"module":{"list":{"sort_css":{"base":"sort","applied":"sort-applied","posted":"sort-posted"}}}}); // See HTML::configureJS Shout.configure({"module":{"list":{"layout_change_css":{"base":"layout_change","applied":"layout_change-applied","posted":"layout_change-posted"}}}}); // See HTML::configureJS Shout.configure({"module":{"store":{"cart":{"mini":{"cell":"\u0027\u003Ctable cellspacing=\u00220\u0022 cellpadding=\u00220\u0022\u003E\u003Ctr valign = \u0022top\u0022 class=\u0022top\u0022\u003E\u003Ctd class=\u0022top left top-left\u0022\u003E\u003C\/td\u003E\u003Ctd class=\u0022top center top-center\u0022\u003E\u003C\/td\u003E\u003Ctd class=\u0022top right top-right\u0022\u003E\u003C\/td\u003E\u003C\/tr\u003E\u003Ctr valign = \u0022top\u0022 class=\u0022center\u0022\u003E\u003Ctd class=\u0022center left center-left\u0022\u003E\u003C\/td\u003E\u003Ctd class=\u0022center center center-center\u0022\u003E\u003C\/td\u003E\u003Ctd class=\u0022center right center-right\u0022\u003E\u003C\/td\u003E\u003C\/tr\u003E\u003Ctr valign = \u0022top\u0022 class=\u0022bottom\u0022\u003E\u003Ctd class=\u0022bottom left bottom-left\u0022\u003E\u003C\/td\u003E\u003Ctd class=\u0022bottom center bottom-center\u0022\u003E\u003C\/td\u003E\u003Ctd class=\u0022bottom right bottom-right\u0022\u003E\u003C\/td\u003E\u003C\/tr\u003E\u003Ctr valign = \u0022top\u0022 class=\u0022middle\u0022\u003E\u003Ctd class=\u0022middle left middle-left\u0022\u003E\u003Cdiv class=\u0022minicart-image\u0022\u003E\u0027 + pic + \u0027\u003C\/div\u003E\u003C\/td\u003E\u003Ctd class=\u0022middle center middle-center\u0022\u003E\u003Cdiv class=\u0022minicart-productname\u0022\u003E\u0027 + product.title + \u0027\u003C\/div\u003E\u003C\/td\u003E\u003Ctd class=\u0022middle right middle-right\u0022\u003E\u003Cdiv class=\u0022minicart-quantity\u0022\u003E\u0027 + qty + \u0027\u003C\/div\u003E\u003C\/td\u003E\u003C\/tr\u003E\u003C\/table\u003E\u0027","sep":"\u001e","store_mode_checkout":false,"product_option_types":{"browse_product":12,"listbox":3,"checkbox":2,"radio":14,"content":15,"buttonlist":16,"price":10,"quantity":13,"square":101,"circle":102,"rectangle":103,"sphere":202,"cube":201,"rectangular_prism":204,"cylinder":203,"email":21}}}}}}); // See HTML::configureJS Shout.configure({"module":{"store":{"microcart":{"config":{"productCount":0,"prefix":"\u003Cspan class=\u0022sui-microcart-widget__label\u0022\u003ECart\u003C\/span\u003E\u003Cspan class=\u0022sui-microcart-widget__count\u0022\u003E","suffix":"\u003C\/span\u003E"}}}}}); // See HTML::configureJS Shout.configure({"module":{"list":{"compare_list":{"ajax_url":"https:\/\/www.wintonhomes.ca\/?module=list","compare_url":"https:\/\/www.wintonhomes.ca\/?module=list\u0026mode=1000","mode":{"MODE_ADD_TO_COMPARE_LIST":10,"MODE_REMOVE_FROM_COMPARE_LIST":11,"MODE_DRAW_COMPARE_LIST_ITEMS":12}}}}}); Shout.helpers.CompareListService.initialize() // See HTML::configureJS Shout.configure({"module":{"core":{"notifications":{"states":{"4":"ui-state-default","0":"ui-state-info","3":"ui-state-error","1":"ui-state-info","2":"ui-state-success"},"icons":{"4":"ui-icon-info","0":"ui-icon-notice","3":"ui-icon-alert","1":"ui-icon-notice","2":"ui-icon-check"},"types":{"4":"info","0":"warning","3":"error","1":"notice","2":"success"}}}}}); (function($){$(document).ready(function(){$('').prependTo('head');customHeader();backtoTop();function customHeader(){$('.navbar .navbar-btn, .close-overlay').attr('href','javascript:void(0);');$('
').insertBefore('.primary-nav .navbar-nav');stickyHeader();$(window).resize(function(){stickyHeader()});$('.navbar-btn').addClass('sui-navbar-closed');$('html').addClass('sui-nav-closed');$('.close-overlay').click(function(e){e.preventDefault();$(this).closest('.navbar-collapse').removeClass('in');$('.navbar-btn').toggleClass('sui-navbar-open sui-navbar-closed');$('html').toggleClass('sui-nav-open sui-nav-closed')});$('.primary-nav .navbar-btn').click(function(e){e.preventDefault();$('.navbar-btn').toggleClass('sui-navbar-open sui-navbar-closed');$('body').toggleClass('sui-nav-open sui-nav-closed')});$('.primary-nav .dropdown > ul').addClass('sui-dropdown-closed');function stickyHeader(){var headWrap=$('.page-header-wrapper'),headerHeight=$(headWrap).height(),adminHeight=0,initialPadding='500',carouselHeight=$('.page-wrapper.has-fullscreen-gallery .shout-gallery-carousel_gallery_with_button_fullscreen').height();if($('.page-wrapper.has-fullscreen-gallery').length){var carouselTop=adminHeight+headerHeight;$('.carousel').css('top',carouselTop+'px')} $(document).scroll(function(){if($(document).scrollTop()>=450){$(headWrap).addClass('sticky-header');$('.page-wrapper.has-fullscreen-gallery .page-content-wrapper').css('padding-top',carouselHeight+carouselTop+'px')}else if($(document).scrollTop()==0){$(headWrap).removeClass('sticky-header');$('.page-wrapper.has-fullscreen-gallery .page-content-wrapper').css('padding-top',initialPadding+'px')}});if($(window).width()<=767){var navTop=adminHeight+headerHeight;$('.navbar-nav').css('top',navTop+'px');$('.close-overlay').css('top',navTop+'px');$('.primary-nav .dropdown-toggle').click(function(e){$(this).parent().find('> ul').toggleClass('open closed');e.preventDefault()})}}} function backtoTop(){$(window).scroll(function(){if($(this).scrollTop()){$('#toTop').fadeIn()}else{$('#toTop').fadeOut()}});$('
').appendTo('.page-wrapper');$('#toTop').on("click",function(){$('html,body').animate({scrollTop:0},1000)})}})})(jQuery) /* ]]> */ -->

More Blogs