Tuesday, April 23, 2024
spot_imgspot_img
HomeFranchise opportunitiesStudio Locations | HOTWORX

Studio Locations | HOTWORX

[]
Studio Locations | HOTWORX Skip to Content = 100){ $(‘.header-navbar .menu-bg-on-scroll’).addClass(‘visible’); $(‘.mobile-cta-bottom’).addClass(‘visible’); }else{ $(‘.header-navbar .menu-bg-on-scroll’).removeClass(‘visible’); $(‘.mobile-cta-bottom’).removeClass(‘visible’); } $(window).scroll(function(){ scrollTop = $(window).scrollTop(); //console.log(scrollTop); if(scrollTop >= 100){ //$(‘.header-navbar .menu-bg-on-scroll’).addClass(‘visible’); $(‘.trans-menu .menu-container.no-gradient’).addClass(‘visible’); $(‘.mobile-cta-bottom’).addClass(‘visible’); }else{ //$(‘.header-navbar .menu-bg-on-scroll’).removeClass(‘visible’); $(‘.trans-menu .menu-container.no-gradient’).removeClass(‘visible’); $(‘.mobile-cta-bottom’).removeClass(‘visible’); } }); // Manipulating Contact form to be dynamic //contact states dropdows/scripts is moved to codepen //Location search pages scripts //US Phone Format function phoneFormatUsa(phone) { phone = phone.replace(/[^0-9]/g, ”); phone = phone.replace(/(d{3})(d{3})(d{4})/, “($1) $2-$3″); return phone; } //Australia Phone Format function phoneFormatAus(phone) { phone = phone.replace(/[^0-9]/g, ”); phone = phone.replace(/(d{2})(d{4})(d{4})/, “($1) $2 $3″); return phone; } //Ireland Phone Format function phoneFormatIre(phone) { phone = phone.replace(/[^0-9]/g, ”); //phone = phone.replace(/(d{2})(d{3)(d{4})/, “($1) $2 $3″); return phone; } function formatPhoneNumber(phoneNumberString) { var cleaned = (phoneNumberString).replace(/D/g, ”) var match = cleaned.match(/^(d{2})(d{3})(d{4})$/) if (match) { return ‘(‘ + match[1] + ‘) ‘ + match[2]+’ ‘+ match[3] } return null } $(‘.us-locations .w-dyn-list .w-dyn-item’).each(function(i, item){ let name = $(this).find(‘.name’).text(); let address = $(this).find(‘.address’).text(); let country = $(this).find(‘.country’).text(); let phone = $(this).find(‘.phone’).text(); if(country == ‘US’ || country == ‘AU’){ phone = phoneFormatUsa(phone); }else if(country == ‘IR’){ phone = phoneFormatIre(phone); }else if(country == ‘AU’){ phone = phoneFormatAus(phone); } let status = $(this).find(‘.status’).text(); let state = $(this).find(‘.state’).text(); let link = $(this).find(‘.link’).attr(‘href’); let city = $(this).find(‘.city’).text(); $(‘#collection-table tbody’).append(‘

‘+ city +’‘+ name +’

‘+ address +’‘+phone+’

‘+ status +”); }) $(‘.au-locations .w-dyn-list .w-dyn-item’).each(function(i, item){ let name = $(this).find(‘.name’).text(); let address = $(this).find(‘.address’).text(); let phone = $(this).find(‘.phone’).text(); phone = phoneFormatAus(phone); let status = $(this).find(‘.status’).text(); let state = $(this).find(‘.state’).text(); let link = $(this).find(‘.link’).attr(‘href’); $(‘#collection-table tbody’).append(‘

‘+ name +’

‘+ address +’
‘+phone+’

‘+ status +”); }) $(‘.ir-locations .w-dyn-list .w-dyn-item’).each(function(i, item){ let name = $(this).find(‘.name’).text(); let address = $(this).find(‘.address’).text(); let phone = $(this).find(‘.phone’).text(); phone = phoneFormatIre(phone); let status = $(this).find(‘.status’).text(); let state = $(this).find(‘.state’).text(); let link = $(this).find(‘.link’).attr(‘href’); $(‘#collection-table tbody’).append(‘

‘+ name +’

‘+ address +’
‘+phone+’

‘+ status +”); }); $(‘.authorized-locations .w-dyn-list .w-dyn-item’).each(function(i, item){ let name = $(this).find(‘.name’).text(); let address = $(this).find(‘.address’).text(); let phone = $(this).find(‘.phone’).text(); let city = $(this).find(‘.city’).text(); phone = phoneFormatIre(phone); let status = $(this).find(‘.status’).text(); let state = $(this).find(‘.state’).text(); //console.log(state); let link = $(this).find(‘.link’).attr(‘href’); $(‘#collection-table tbody’).append(‘

‘+ name +’

‘+ address +’
‘+phone+’

‘+ city +’‘+ state +”); }); // Location search states has been moved from here to codepen var $loc_supCat = $(‘#location-search-country’), $loc_cat = $(“#location-search-state”), $loc_subcat = $(“#collection-table tbody”); $loc_cat.prop(“disabled”, true); $loc_subcat.find(“tr”).hide(); $loc_supCat.on(“change”,function(){ $(‘.location-result-section’).hide(); $loc_cat.prop(“disabled”,true); var _rel = $(this).val(); if(_rel == “AU”){ $loc_subcat.find(“tr”).hide(); $loc_cat.find(“option”).hide(); $loc_cat.find(“[rel~='”+_rel+”‘]”).show(); $loc_cat.prop(‘selectedIndex’,51); $loc_cat.prop(“disabled”,false); $loc_subcat.find(“tr”).hide(); var rel_cat = “VIC”; $loc_subcat.find(“tr.table_head”).show(); $loc_subcat.find(“[rel~='”+rel_cat+”‘]”).show(); }else if(_rel == “IR”){ $loc_subcat.find(“tr”).hide(); $loc_cat.find(“option”).hide(); $loc_cat.find(“[rel~='”+_rel+”‘]”).show(); $loc_cat.prop(‘selectedIndex’,52); $loc_cat.prop(“disabled”,false); $loc_subcat.find(“tr”).hide(); var rel_cat = “GY”; $loc_subcat.find(“tr.table_head”).show(); $loc_subcat.find(“[rel~='”+rel_cat+”‘]”).show(); }else if(_rel == “”){ $loc_subcat.find(“tr”).hide(); $loc_cat.prop(‘selectedIndex’,0); $loc_cat.prop(“disabled”,true); }else{ $loc_subcat.find(“tr”).hide(); $loc_subcat.find(“option”).hide(); $loc_cat.prop(‘selectedIndex’,0); $loc_cat.prop(“disabled”,true); $loc_cat.find(“option”).hide(); $loc_cat.prop(‘selectedIndex’,0); $loc_cat.prop(“disabled”,false); var _rel = $(this).val(); $loc_cat.find(“[rel~='”+_rel+”‘]”).show(); } }); //Some post was cut from here and pasted on Location list and authorized location page’s settings custom code area. $(‘.location-result-section’).hide(); $(‘#location-search-submit’).click(function(e){ e.preventDefault(); //$(‘.location-result-section #collection-table tr[style*=”display: none”]’).remove(); //sortTable(); setTimeout(function(){ },2000); $(‘#’ + uniq_table).DataTable({ “order” : [[ 0, “asc” ]], //”ordering” : false, “paging”: false, “searching”: false, }); //$(‘#’ + uniq_table).stupidtable(); $(‘.location_result tbody tr’).removeClass(‘even’); $(‘.location_result tbody tr’).removeClass(‘odd’); $(‘.location_result tbody tr:not(.authorized_locations_items):even’).addClass(‘even’); $(‘.location-result-section’).show(); }); /* let loc_address = $(‘.single-loc-address’).text(); let zip_code = $(‘.zip-code’).text(); let complete_address = loc_address + ‘ ‘ + zip_code; complete_address = complete_address.replace(“,”, “”) $(‘.single-loc-address’).text(complete_address); */ //To show authorized locations on search result… $(‘#au_locations’).click(function(){ if($(‘tr.authorized_locations_items.visible_items’).hasClass(‘visible’)){ $(‘tr.authorized_locations_items.visible_items’).removeClass(‘visible’); }else{ $(‘tr.authorized_locations_items.visible_items’).addClass(‘visible’); $(‘.location_result tbody tr’).removeClass(‘even’); $(‘.location_result tbody tr’).removeClass(‘odd’); $(‘.location_result tbody tr:even’).addClass(‘even’); } }); //End search sort //Search Result Count let search_count = $(‘.search-result-items > div’).length; $(‘.search-count’).text(search_count) //console.log(search_count); //Fixed footer with less content body let body_height = $(‘body’).height(); //console.log(body_height); if(body_height < 700){ $('body').addClass('less_height'); } // Cookie for top bar let expiry_date = $('.expire-time').text(); //console.log(expiry_date); jQuery('.bar-close').click(function(){ setCookie("top_bar", "clicked_once", expiry_date); }) function setCookie(cname,cvalue,exdays) { var d = new Date(); d.setTime(d.getTime() + (exdays*24*60*60*1000)); var expires = "expires=" + d.toGMTString(); document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; } function getCookie(cname) { var name = cname + "="; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(';'); for(var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } return ""; } function checkCookie() { var has_cookie=getCookie("top_bar"); if (has_cookie) { $('.top-bar').remove(); } else { } } checkCookie(); //Cookie Ends $('.w-form .w-condition-invisible').remove(); //Location Header CTA let studio_type = $('.location-type-indicator').text(); //alert(studio_type); if(studio_type == 'Open Location'){ $('.single-location-template .highlighted-link.loc-open').addClass('header_btn_visible'); }else if(studio_type == 'Pre-Marketing'){ $('.single-location-template .highlighted-link.loc-onboarding').addClass('header_btn_visible'); }else if(studio_type == 'Presale'){ $('.single-location-template .highlighted-link.loc-presale').addClass('header_btn_visible'); } /* //Date Picker at Contact Form if($('#datepicker')){ $('#datepicker').datepicker({ changeYear: true, changeMonth: true, yearRange: "1950:2020" }); } */ //Home Hero Slick Slider Activation $('.home-slide-container').slick({ dots: true, arrows:false, autoplay: true, autoplaySpeed: 6000, fade: true, speed: 1000, pauseOnHover:false, customPaging: function (slider, i) { //FYI just have a look at the object to find aviable information //console.log(slider); var slideNumber = (i + 1), totalSlides = slider.slideCount; var text; if(slideNumber == 1){ text = "Earn the burn"; }else if(slideNumber == 2){ text = "Namaslay it"; }else if(slideNumber == 3){ text = "Torch the calories"; } return '
‘; } }); $(‘body’).on(‘click’,’.control-button’, function() { //alert(‘clicked’); if($(‘.control-button’).hasClass(‘pause’)){ $(‘.control-button’).removeClass(‘pause’); $(‘.home-slide-container’).slick(‘slickPlay’); $(‘.reader-notice’).append(‘Slide Play’); }else{ $(‘.control-button’).addClass(‘pause’); $(‘.home-slide-container’).slick(‘slickPause’); $(‘.reader-notice’).append(‘Slide Paused’) } }) // Slick animations $(“.slick-current .hero-text-border”).addClass(‘hero-text-border-animation’); setTimeout(function(){$(“.slick-current .home-hero-title”).addClass(‘title-animation’);},00); setTimeout(function(){$(“.slick-current .small-title”).addClass(‘small-title-animation’);},400); setTimeout(function(){$(“.slick-current .big-title”).addClass(‘big-title-animation’);},800); setTimeout(function(){$(“.slick-current .home-hero-btn”).addClass(‘home-hero-btn-animation’);},1200); $(‘.home-slide-container’).on(‘afterChange’, function(event, slick, currentSlide, nextSlide){ $(“.slick-slide .hero-text-border”).removeClass(‘hero-text-border-animation’); $(“.slick-slide .home-hero-title”).removeClass(‘title-animation’); $(“.slick-slide .small-title”).removeClass(‘small-title-animation’); $(“.slick-slide .big-title”).removeClass(‘big-title-animation’); $(“.slick-slide .home-hero-btn”).removeClass(‘home-hero-btn-animation’); setTimeout(function(){$(“.slick-current .hero-text-border”).addClass(‘hero-text-border-animation’);},100); setTimeout(function(){$(“.slick-current .home-hero-title”).addClass(‘title-animation’);},400); setTimeout(function(){$(“.slick-current .small-title”).addClass(‘small-title-animation’);},800); setTimeout(function(){$(“.slick-current .big-title”).addClass(‘big-title-animation’);},1200); setTimeout(function(){$(“.slick-current .home-hero-btn”).addClass(‘home-hero-btn-animation’);},1600); }); //Single studio page animation: setTimeout(function(){$(‘.single-location-template .skew-right’ ).addClass(‘visible’);},1000); setTimeout(function(){$(‘.single-location-template .single-log-desc-wrpr’ ).addClass(‘visible’);},1400); // Home Testimonial Carousel $(‘.home-testimonial-section .slider-container’).slick({ dots: true, arrows:false, autoplay: true, autoplaySpeed: 6000, //fade: true, //speed: 1000, pauseOnHover:false, adaptiveHeight: false, }); // Franchise Testimonial Carousel $(‘.franchise-testimonial-section .slider-container .testimonial-items’).slick({ dots: true, arrows:false, autoplay: true, autoplaySpeed: 6000, //fade: true, //speed: 1000, pauseOnHover:false, adaptiveHeight: true, }); $(‘.slick-dots’).prepend(‘‘); //Landscpe css for mobile if(screen.availHeight < screen.availWidth){ //alert("In Landscape mode"); //alert(screen.availHeight + ' ' + screen.availWidth ); if(screen.availHeight

{e.setMap(null)}),markers=[],e.forEach(e=>{if(e.latitude&&e.longitude){const o=new google.maps.Marker({position:{lat:+e.latitude,lng:+e.longitude},map:t,title:e.name,icon:”https://global-uploads.webflow.com/5ea4822fd3a80f6c9cc4fdd9/5f81e4e7374a417200dc2551_Geo_Tag.svg”});o.addListener(“click”,()=>{document.querySelector(“#search_field input”).value=e.name,search(e.name,[“name”,”fromMarkerSelect”])}),markers.push(o),bounds.extend(new google.maps.LatLng(+e.latitude,+e.longitude))}}),t.fitBounds(bounds,{left:mapLeftMargin,bottom:0,top:0,right:0}),cluster&&(cluster.clearMarkers(),cluster.setMap(null)),cluster=new MarkerClusterer(t,markers,{styles:[{textColor:”white”,textSize:16,anchorIcon:[40,0],fontFamily:”Helvetica Neue, sans-serif”,height:52,fontWeight:”500″,anchorText:[10,-5],width:54,url:”https://firebasestorage.googleapis.com/v0/b/cosm-870d4.appspot.com/o/cluster%2Fm1.svg?alt=media&token=2f77f4ce-3db1-41e8-ad5b-0e90eacfc3a3″}]})}function requestData(e=0){return $.ajax({async:!0,crossDomain:!0,cache:!0,url:`https://cors-anywhere.herokuapp.com/api.webflow.com/collections/5fb1c7dafe82bc064dd10ee3/items?offset=${e}`,method:”GET”,headers:{authorization:”Bearer bdb47ad338896ff91f7d7a64236a91640ecf45826e9cb24f604d69b11ed9eb87″,”accept-version”:”1.0.0″,”cache-control”:”public”}})}function requestLocationData(e=0){return new Promise((t,o)=>{$.ajax({async:!0,crossDomain:!0,cache:!0,url:`https://cors-anywhere.herokuapp.com/api.webflow.com/collections/5fb1c7dafe82bc064dd10ee3/items?offset=${e}`,method:”GET”,headers:{authorization:”Bearer bdb47ad338896ff91f7d7a64236a91640ecf45826e9cb24f604d69b11ed9eb87″,”accept-version”:”1.0.0″,”cache-control”:”public”},success:function(e){t(e)},error:function(e){o(e)}})})}function geocodeAddress(e,t){if(infowindow=new google.maps.InfoWindow,””===e)return localStorage.setItem(“searchedAddress”,””),renderSearchResults(entries),void renderMarkers(entries,map);geocoder.geocode({address:e},(o,n)=>{if(“OK”===n){map.setCenter(o[0].geometry.location),calcDistances({lat:o[0].geometry.location.lat(),lng:o[0].geometry.location.lng()},t).then(e=>{renderClosestLocations(10)}),place=o[0],place.geometry.viewport?map.fitBounds(place.geometry.viewport):(map.setCenter(place.geometry.location),map.setZoom(17)),place.address_components&&(e=[place.address_components[0]&&place.address_components[0].short_name||””,place.address_components[1]&&place.address_components[1].short_name||””,place.address_components[2]&&place.address_components[2].short_name||””].join(” “));const n=document.querySelector(“#search_field input”).value;localStorage.setItem(“searchedAddress”,n)}else localStorage.setItem(“searchedAddress”,””),renderSearchResults([]),renderMarkers(entries,map),console.log(“Geocode was not successful for the following reason: “+n)})}function search(e,t){if(t.filter(e=>”fromMarkerSelect”===e).length>0){const o=entries.filter(o=>{let n=!1;return t.forEach(t=>{o[t]&&o[t].toLowerCase().includes(e.toLowerCase())&&(n=!0),”state”===t&&o[t]&&states[o[t]]&&states[o[t]].toLowerCase().includes(e.toLowerCase())&&(n=!0)}),n}).sort(getComparatorByProp(“name”,”asc”));renderSearchResults(o),renderMarkers(o,map);const n=document.querySelector(“#search_field input”).value;localStorage.setItem(“searchedAddress”,n)}else geocodeAddress(e,entries)}function initMap(){localStorage.removeItem(“searchedAddress”),map=new google.maps.Map(document.getElementById(“map”),{center:{lat:0,lng:0},zoom:8,maxZoom:17,disableDefaultUI:!0,styles:[{featureType:”administrative”,elementType:”labels.text.fill”,stylers:[{color:”#444444″}]},{featureType:”landscape”,elementType:”all”,stylers:[{color:”#f2f2f2″}]},{featureType:”poi”,elementType:”all”,stylers:[{visibility:”off”}]},{featureType:”road”,elementType:”all”,stylers:[{saturation:-100},{lightness:45}]},{featureType:”road.highway”,elementType:”all”,stylers:[{visibility:”simplified”}]},{featureType:”road.arterial”,elementType:”labels.icon”,stylers:[{visibility:”off”}]},{featureType:”transit”,elementType:”all”,stylers:[{visibility:”off”}]},{featureType:”water”,elementType:”all”,stylers:[{color:”#c0e4f3″},{visibility:”on”}]}]}),geocoder=new google.maps.Geocoder,infoWindow=new google.maps.InfoWindow,autoComplete(),entries&&(entries.map(e=>{e.distanceToCurrentPos&&delete e.distanceToCurrentPos}),renderMarkers(entries,map),renderSearchResults(entries)),initLocationRequest({},”notAllowed”),handleLocationError(!1,infoWindow,map.getCenter()),navigator.geolocation&&navigator.geolocation.getCurrentPosition(e=>{const t={lat:e.coords.latitude,lng:e.coords.longitude};map.setCenter(t),map.setZoom(14),entries&&geolocate(t,entries),initLocationRequest(t,”allowed”)},()=>{entries&&(entries.map(e=>{e.distanceToCurrentPos&&delete e.distanceToCurrentPos}),renderMarkers(entries,map),renderSearchResults(entries)),renderMarkers(entries,map),initLocationRequest({},”notAllowed”)})}function initLocationRequest(e,t){requestLocationData().then(o=>{if(entries=[…o.items].sort(getComparatorByProp(“name”,”asc”)),o.count{document.querySelector(“#search_field input”).value=”Current Location”,localStorage.setItem(“entries”,JSON.stringify(entries)),renderClosestLocations(10,”based on localstorage data”)})}function handleLocationError(e,t,o){t.setPosition(o),t.setContent(e?”Error: The Geolocation service failed.”:”Error: Your browser doesn’t support geolocation.”),t.open(map)}function calcDistances(e,t){return new Promise((o,a)=>{if(n=t.length,0!==n)for(let a=0;a{localStorage.setItem(“entries”,JSON.stringify(t)),entries=t,o()},500)}else o()})}function renderClosestLocations(e,t=”none”){const o=entries.filter(e=>!isNaN(e.distanceToCurrentPos)).sort(getComparatorByProp(“distanceToCurrentPos”,”asc”)).slice(0,e);renderSearchResults(o),renderMarkers(o,map)}function renderSearchResults(e){const t=document.getElementsByClassName(“results”).item(0);t.innerHTML=””,e.forEach((e,o)=>{t.innerHTML+=`n

  • n n ${e.name}${e[“location-tag”]?” “+e[“location-tag”]:””}n n ${e.distanceToCurrentPos?nFormatter((e.distanceToCurrentPos/1609).toFixed(1),1)+” mi”:””}n n n n n ${e[“address-1”]} ${e[“address-2″]||” “}
    n ${e.city}, ${e.state} ${e[“zip-code”]}n n n n n `}),0===e.length&&(t.innerHTML+=’n n

    Sorry, we couldn’t find any results.n

    Check your spelling and try again.n n ‘)}function getComparatorByProp(e,t){const o=”asc”===t?1:”desc”===t?-1:1;return function(t,n){return t[e]n[e]?o:0}}function nFormatter(e,t){const o=[{value:1,symbol:””},{value:1e3,symbol:”k”},{value:1e6,symbol:”M”},{value:1e9,symbol:”G”},{value:1e12,symbol:”T”},{value:1e15,symbol:”P”},{value:1e18,symbol:”E”}];let n;for(n=o.length-1;n>0&&!(e>=o[n].value);n–);return(e/o[n].value).toFixed(t).replace(/.0+$|(.[0-9]*[1-9])0+$/,”$1″)+o[n].symbol}function autoComplete(){const e=document.getElementById(“pac-input”),t=new google.maps.places.Autocomplete(e);t.setComponentRestrictions({country:[“us”,”ie”,”au”,”at”,”pr”,”vi”,”gu”,”mp”]}),t.bindTo(“bounds”,map),t.setFields([“address_components”,”geometry”,”icon”,”name”])} ]]>

  • Most Popular