CINXE.COM
About - SWTCH
<!DOCTYPE html> <!--[if lt IE 7]> <html lang="en" class="no-js oldie ie6"> <![endif]--> <!--[if IE 7 ]> <html lang="en" class="no-js oldie ie7"> <![endif]--> <!--[if IE 8 ]> <html lang="en" class="no-js oldie ie8"> <![endif]--> <!--[if (gt IE 8)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]--> <head> <meta charset='utf-8'> <style> @import url(//fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700&subset=latin-ext); </style> <meta content='width=device-width, initial-scale=1.0, user-scalable=yes, maximum-scale=2.0' name='viewport'> <meta content='website' property='og:type'> <meta content='en' http-equiv='content-language'> <meta content='summary' name='twitter:card'> <meta content='huwWEiqxHFwSWluNNtU2cUt1T6B75kJ6' name='auth0_client_id'> <meta content='login.swtchenergy.com' name='auth0_custom_domain'> <meta content='swtch-prod.auth0.com' name='auth0_domain'> <meta content='https://charge.swtchenergy.com/auth0/callback' name='auth0_callback_url'> <meta content='https://cdn.auth0.com' name='auth0_cdn'> <meta content='https://swtch-garden-bucket.s3.amazonaws.com/public/SWTCH_vertical1.png' name='auth0_logo_image'> <meta content='#000' name='primary_color'> <link rel="stylesheet" media="all" href="/assets/redesign-swtch-500cf1ab37e09c46b523f352e052f138712c17397aafb6920ba047ccbe1524b9.css" /> <meta content='app-id=1262961340' name='apple-itunes-app'> <meta content='^.*(Version).*Safari' name='smartbanner:exclude-user-agent-regex'> <meta content='SWTCH' name='smartbanner:title'> <meta content='SWTCH Energy Inc' name='smartbanner:author'> <meta content='FREE' name='smartbanner:price'> <meta content=' - On the App Store' name='smartbanner:price-suffix-apple'> <meta content=' - In Google Play' name='smartbanner:price-suffix-google'> <meta content='https://is3-ssl.mzstatic.com/image/thumb/Purple116/v4/64/b6/51/64b65150-0876-b199-7a6b-384a18858988/AppIcon-0-0-1x_U007emarketing-0-0-0-10-0-0-sRGB-0-0-0-GLES2_U002c0-512MB-85-220-0-0.png/230x0w.webp' name='smartbanner:icon-apple'> <meta content='https://play-lh.googleusercontent.com/BoRG-rXpzFMOFZSP07NDkEh3Kk2ISzb8SqBzUj1uPRtoxKb0LlqlyLWr2bxJ0bqvB4g=w240-h480-rw' name='smartbanner:icon-google'> <meta content='Install' name='smartbanner:button'> <meta content='https://play.google.com/store/apps/details?id=com.swtch.swtchcommercial' name='smartbanner:button-url-google'> <meta content='android' name='smartbanner:enabled-platforms'> <meta content='Close' name='smartbanner:close-label'> <link rel="stylesheet" media="screen" href="/assets/smartbanner-e833894743773e6f889aace3a16c97979015daf57b51da5b8785960d9ab22e34.css" /> <script src="/assets/smartbanner-619aa3396b3f7b891c0f34b2a6c87b97f2853e7cb5e296c241227e30d98fce9b.js"></script> <!-- Additional meta tags for SEO, etc. --> <title>About - SWTCH</title> <meta content='About - SWTCH' property='og:title'> <meta content='About - SWTCH' name='twitter:title'> <meta content='SWTCH' name='author'> <meta content='about, swtch, provides, innovative, solutions, electric, vehicle, charging, energy, management' name='keywords'> <meta content='https://charge.swtchenergy.com//en/infos/about' property='og:url'> <meta content='https://charge.swtchenergy.com/' name='identifier-url'> <meta content='SWTCH' name='copyright'> <meta content='https://charge.swtchenergy.com//en/infos/about' name='twitter:url'> <meta content='SWTCH' property='og:site_name'> <meta content='About SWTCH provides innovative solutions for electric vehicle (EV) charging and energy management, designed uniquely' name='description'> <meta content='About SWTCH provides innovative solutions for electric vehicle (EV) charging and energy management, designed uniquely' property='og:description'> <meta content='About SWTCH provides innovative solutions for electric vehicle (EV) charging and energy management, designed uniquely' name='twitter:description'> <meta content='https://s3.amazonaws.com/swtch-garden-bucket/communities/logos/000/000/001/original/SWTCH_Sherbourne-05_0199_1_optimised.png?1692304858' property='og:image'> <meta content='https://s3.amazonaws.com/swtch-garden-bucket/communities/logos/000/000/001/original/SWTCH_Sherbourne-05_0199_1_optimised.png?1692304858' name='twitter:image'> <link href='https://charge.swtchenergy.com//en/infos/about' rel='canonical'> <meta content='en_US' property='og:locale'> <meta content='@swtchenergy' name='twitter:site'> <!-- CSS --> <link rel="stylesheet" media="screen" href="/assets/application-5ba30a951f73b419b376654ce3b24a6f1a10ac5e34cb979bdbc704838dab13ff.css" /> <style> button.button-outline, a.button-outline { background: white; color: #30d7ba !important; border: 1px solid #30d7ba; } button,.button,.big-button,.inline-big-button,.tribe-actions,.conversation-status .status-link,.marketplace-lander button.action-button,.noUi-connect,.pagination .current,.toggle-menu a:hover,.toggle-menu .toggle-menu-link:hover,.badge,.enabled-book-button,.disabled-book-button,.message-book-button,.listing-shape-delete-button,.listing-author-contact-button.send_button.reservation-button,.listing-author-contact-button { background: #30d7ba; } button:hover,.button:hover,.big-button:hover,.inline-big-button:hover,.tribe-actions a:hover,.conversation-status .status-link:hover,.marketplace-lander button.action-button:hover,.home-toolbar-button-group-button:hover,.home-toolbar-show-filters-button:hover,.enabled-book-button:hover,.disabled-book-button:hover,.message-book-button:hover,.listing-shape-delete-button:hover.listing-author-contact-button.send_button.reservation-button:hover,.listing-author-contact-button:hover { background: #26c7ab; } button.button-outline:hover, a.button-outline:hover { color: white !important; } button.button-outline:active, a.button-outline:active { color: white !important; } button:active,.button:active,.big-button:active,.inline-big-button:active,.conversation-status .status-link:active,.home-toolbar-button-group-button:active,.home-toolbar-show-filters-button:active,.enabled-book-button:active,.disabled-book-button:active,.message-book-button:active,.listing-shape-delete-button:active,.listing-author-contact-button.send_button.reservation-button:active,.listing-author-contact-button:active { background: #22b299; } .feed-actions .request-link,.view-item .listing-icons a:hover,.pagination a,a,.checkbox-option-checkmark { color: #30d7ba !important; } .feed-actions .request-link:hover,a:hover { color: #1e9c86; } .marketplace-lander figure.marketplace-cover { background-image: url("https://s3.amazonaws.com/swtch-garden-bucket/communities/cover_photos/000/000/001/hd_header/SWTCH_chargeHome.jpg?1686767185"); } .marketplace-lander figure.marketplace-cover-small { background-image: url("https://s3.amazonaws.com/swtch-garden-bucket/communities/small_cover_photos/000/000/001/hd_header/SWTCH_Sherbourne-05_0199_1_optimised.png?1692304968"); } .datepicker table tr td.active:hover,.datepicker table tr td.active:hover:hover,.datepicker table tr td.active.disabled:hover,.datepicker table tr td.active.disabled:hover:hover,.datepicker table tr td.active:focus,.datepicker table tr td.active:hover:focus,.datepicker table tr td.active.disabled:focus,.datepicker table tr td.active.disabled:hover:focus,.datepicker table tr td.active:active,.datepicker table tr td.active:hover:active,.datepicker table tr td.active.disabled:active,.datepicker table tr td.active.disabled:hover:active,.datepicker table tr td.active.active,.datepicker table tr td.active:hover.active,.datepicker table tr td.active.disabled.active,.datepicker table tr td.active.disabled:hover.active,.open .dropdown-toggle.datepicker table tr td.active,.open .dropdown-toggle.datepicker table tr td.active:hover,.open .dropdown-toggle.datepicker table tr td.active.disabled,.open .dropdown-toggle.datepicker table tr td.active.disabled:hover,.datepicker table tr td.day.range,.datepicker table tr td.day.selected { background-color: #30d7ba; } .datepicker table tr td.day:hover,.datepicker table tr td.day.range:hover,.datepicker table tr td.day.range:hover:hover,.datepicker table tr td.day.selected:hover,.datepicker table tr td.day.selected:hover:hover { background-color: #26c7ab; } a:active { color: #167262; } .toggle-menu a.login-form:hover,.toggle-menu .toggle-menu-item.login-form:hover,.toggle-menu .login-form.toggle-menu-title:hover { color: #85e8d6; } .new-listing-link { background: #1372cc; } .btn-mint{background-color: #1372cc;} .new-listing-link:hover { background: #25a35a; } .new-listing-link:active { background: #218e4e; } .header-wide-logo { background-image: url("https://s3.amazonaws.com/swtch-garden-bucket/communities/wide_logos/000/000/001/header/SWTCH_Horizontal_Black_RGB.png?1692301868"); } .header-square-logo { background-image: url("https://s3.amazonaws.com/swtch-garden-bucket/communities/logos/000/000/001/header_icon/SWTCH_Sherbourne-05_0199_1_optimised.png?1692304858"); } .home-toolbar-button-group-button.selected,.home-toolbar-show-filters-button.selected, .nearest-btn, .images-button { background-color: #30d7ba; border-color: #22b299; } .welcome-homepage-text{ color: #30d7ba; } @media (min-width: 48em) { .feed-actions .request-link,.view-item .button,.view-profile .button,.view-profile .add-profile-picture-link { background: #30d7ba; } .feed-actions .request-link:hover,.view-item .button:hover,.view-profile .button:hover, .nearest-btn:hover, .images-button:hover { background: #26c7ab; } .feed-actions .request-link:active,.view-item .button:active,.view-profile .button:active,.view-profile .add-profile-picture-link:hover { background: #22b299; } .feed-map-link a.map-link:hover { color: #30d7ba; } } @media (-webkit-min-device-pixel-ratio: 1.5) { .header-wide-logo { background-image: url("https://s3.amazonaws.com/swtch-garden-bucket/communities/wide_logos/000/000/001/header_highres/SWTCH_Horizontal_Black_RGB.png?1692301868"); } .header-square-logo { background-image: url("https://s3.amazonaws.com/swtch-garden-bucket/communities/logos/000/000/001/header_icon_highres/SWTCH_Sherbourne-05_0199_1_optimised.png?1692304858"); } } @media (min-resolution: 144dpi) { .header-wide-logo { background-image: url("https://s3.amazonaws.com/swtch-garden-bucket/communities/wide_logos/000/000/001/header_highres/SWTCH_Horizontal_Black_RGB.png?1692301868"); } .header-square-logo { background-image: url("https://s3.amazonaws.com/swtch-garden-bucket/communities/logos/000/000/001/header_icon_highres/SWTCH_Sherbourne-05_0199_1_optimised.png?1692304858"); } } </style> <link rel="stylesheet" media="screen" href="/assets/app-bundle-aaefe3b5482aa7f9ff91a40c7a0d7b1e78ccc06a577f63289dcfaff5a63a35f3.css" /> <!-- Modernizr, in the head tag, right after stylesheets, for best performance: --> <script src="/assets/modernizr.min-d37c074a67e80ccdc070c470e7679a75e753220e0237f670af2348d7ba88225b.js"></script> <!-- Detect if JS is enabled. duplicate of what Modernizr is doing, but we plan to get rid of Modernizr at some point. --> <script> document.documentElement.className += ' js-enabled'; </script> <!-- Android pre Jellybean has an ugly bug, which prevents font-size 0 technique from --> <!-- removing the spaces between inline-blocks. Remove this piece of code when pre Jellybean becomes unsupported --> <script> Modernizr.addTest('androidPreJellybean', function(){ var ua = navigator.userAgent; if( ua.indexOf("Android") >= 0 ) { var androidversion = parseFloat(ua.slice(ua.indexOf("Android")+8)); return androidversion < 4.1 } }); </script> <meta name="csrf-param" content="authenticity_token" /> <meta name="csrf-token" content="9hyxDEr1p6ZbsXXz/QUVhByd+23wMfhBWiBfHozrjFjkpoftnINREi+/M6Lf69aEDSji9TMxV153RbQh0+d7GQ==" /> <!-- %script{type: "text/javascript", src: '/iban.js'} --> <!-- %script{type: "text/javascript", src: '/validate_account.js'} --> <link href='https://s3.amazonaws.com/swtch-garden-bucket/communities/logos/000/000/001/original/SWTCH_Sherbourne-05_0199_1_optimised.png?1692304858' rel='image_src'> <link href='https://s3.amazonaws.com/swtch-garden-bucket/communities/favicons/000/000/001/favicon/favicon.ico?1697556920' rel='shortcut icon'> <link href='https://s3.amazonaws.com/swtch-garden-bucket/communities/logos/000/000/001/apple_touch/SWTCH_Sherbourne-05_0199_1_optimised.png?1692304858' rel='apple-touch-icon-precomposed'> <link rel="alternate" type="application/atom+xml" title="ATOM" href="https://charge.swtchenergy.com/listings.atom?locale=en" /> <meta content='JUqB3tYmezYEJNAkw8MUdmIocAGztY85eaoNKBD5j0Q' name='google-site-verification'> <!-- %link{:rel => :stylesheet, :type => :"text/css", :href => "/assets/nifty.min.css"} --> <!-- %link{:rel => :stylesheet, :type => :"text/css", :href => "/assets/temporary.css"} --> <link rel="stylesheet" media="screen" href="/assets/bootstrap.min-72baaf35651bdad0b4472abdb4d84e3a9db116f9207d7bd60683f744c5d09f7f.css" /> <link rel="stylesheet" media="screen" href="https://d1qdhko150dv52.cloudfront.net/stylesheets/AkkuratLL.css" /> <link href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css' rel='stylesheet'> <script src='https://cdn.auth0.com/js/lock/11.35.1/lock.min.js' type='text/javascript'></script> </head> <body> <div id='overlay'></div> <div id='sidewinder-wrapper' style='height: 100vh;'> <script type="application/json" id="js-react-on-rails-context">{"inMailer":false,"i18nLocale":"en","i18nDefaultLocale":"en","href":"https://charge.swtchenergy.com/en/infos/about","location":"/en/infos/about","scheme":"https","host":"charge.swtchenergy.com","port":null,"pathname":"/en/infos/about","search":null,"httpAcceptLanguage":null,"marketplaceId":1,"loggedInUsername":null,"marketplace_color1":"#30D7BA","marketplace_color2":"#2ab865","serverSide":false}</script> <noscript> <div class='noscript-padding'> </div> </noscript> <div class='header-wrapper'> <div class='header-left header-logo-container'> <a class="header-logo" id="header-logo" aria-label="Home" href="/"><span aria-hidden='true' class='header-square-logo-text hidden-tablet'> S </span> <i class='header-wide-logo' style='background-image: url(https://s3.amazonaws.com/swtch-garden-bucket/communities/wide_logos/000/000/001/original/SWTCH_Horizontal_Black_RGB.png?1692301868); width: 110px !important; margin-top: 5px;'></i> </a></div> <div class='header-searchbar'> </div> <div class='right-side-header'> <div class='header-right hidden-tablet margin-right-6'> </div> <div class='header-right sign-up'> <a class="header-text-link header-hover" id="header-signup-link" href="javascript:void(0)">Sign up </a></div> <div class='header-right log-in'> <a class="header-text-link header-hover" id="header-login-link" href="javascript:void(0)">Log in </a></div> </div> <div class='toggle-menu header-toggle-menu-menu hidden' id='header-menu-toggle-menu'> <div class='display-none'> <a class="header-text-link header-hover marg-top1" id="header-login-link-mobile" href="javascript:void(0)"><i class="icon-signout icon-with-text"></i> Log in </a><a class="header-text-link header-hover pad-tp marg-top1" id="header-signup-link-mobile" href="javascript:void(0)"><i class="icon-user icon-with-text"></i> Sign up </a></div> <a href="/en/infos/about"><i class="icon-info-sign icon-with-text"></i> About </a><div class='hidden-desktop'> </div> </div> </div> <article class='page-content'> <div class='wrapper'> <div class='left-navi'> <a aria-label='About' class='selected left-navi-link' href='/en/infos/about' id='' title='About'> <i class='left-navi-link-icon icon-info-sign'></i> <div class='left-navi-link-text'>About</div> </a> <a aria-label='How it works' class='left-navi-link' href='/en/infos/how_to_use' id='' title='How it works'> <i class='left-navi-link-icon icon-book'></i> <div class='left-navi-link-text'>How it works</div> </a> <a aria-label='Privacy' class='left-navi-link' href='/en/infos/privacy' id='' title='Privacy'> <i class='left-navi-link-icon icon-lock'></i> <div class='left-navi-link-text'>Privacy</div> </a> <a aria-label='Driver Terms of Service' class='left-navi-link' href='/en/infos/terms' id='' title='Driver Terms of Service'> <i class='left-navi-link-icon icon-file-alt'></i> <div class='left-navi-link-text'>Driver Terms of Service</div> </a> <a aria-label='Property Terms of Service' class='left-navi-link' href='/en/infos/property_terms' id='' title='Property Terms of Service'> <i class='left-navi-link-icon icon-file-alt'></i> <div class='left-navi-link-text'>Property Terms of Service</div> </a> </div> <a href='/en/infos/about' id='about_left_navi_link' title='About'> <div class='hidden-tablet settings-link-first settings-link-selected' data-toggle='.left-navi-menu'> <i class='icon-with-text icon-info-sign'></i> <div class='text-with-icon'>About</div> </div> </a> <a href='/en/infos/how_to_use' id='how_to_use_left_navi_link' title='How it works'> <div class='hidden-tablet settings-link' data-toggle='.left-navi-menu'> <i class='icon-with-text icon-book'></i> <div class='text-with-icon'>How it works</div> </div> </a> <a href='/en/infos/privacy' id='privacy_left_navi_link' title='Privacy'> <div class='hidden-tablet settings-link' data-toggle='.left-navi-menu'> <i class='icon-with-text icon-lock'></i> <div class='text-with-icon'>Privacy</div> </div> </a> <a href='/en/infos/terms' id='terms_left_navi_link' title='Driver Terms of Service'> <div class='hidden-tablet settings-link' data-toggle='.left-navi-menu'> <i class='icon-with-text icon-file-alt'></i> <div class='text-with-icon'>Driver Terms of Service</div> </div> </a> <a href='/en/infos/property_terms' id='property_terms_left_navi_link' title='Property Terms of Service'> <div class='hidden-tablet settings-link-last' data-toggle='.left-navi-menu'> <i class='icon-with-text icon-file-alt'></i> <div class='text-with-icon'>Property Terms of Service</div> </div> </a> <div class='left-navi-menu toggle-menu hidden'> <a href='/en/infos/about' id='about_left_navi_link' title='About'> <i class='icon-with-text icon-info-sign'></i> <div class='text-with-icon'>About</div> </a> <a href='/en/infos/how_to_use' id='how_to_use_left_navi_link' title='How it works'> <i class='icon-with-text icon-book'></i> <div class='text-with-icon'>How it works</div> </a> <a href='/en/infos/privacy' id='privacy_left_navi_link' title='Privacy'> <i class='icon-with-text icon-lock'></i> <div class='text-with-icon'>Privacy</div> </a> <a href='/en/infos/terms' id='terms_left_navi_link' title='Driver Terms of Service'> <i class='icon-with-text icon-file-alt'></i> <div class='text-with-icon'>Driver Terms of Service</div> </a> <a href='/en/infos/property_terms' id='property_terms_left_navi_link' title='Property Terms of Service'> <i class='icon-with-text icon-file-alt'></i> <div class='text-with-icon'>Property Terms of Service</div> </a> </div> <div class='left-navi-section about-section'> <div data-mercury='full' id='about_page_content'> <h2 id="info-head">About</h2> <p>SWTCH provides innovative solutions for electric vehicle (EV) charging and energy management, designed uniquely for multi-tenant settings. Our smart EV charging platform streamlines the charging experience for drivers while optimizing usage and revenue for building owners. Importantly, all our technology is based on open communication standards to ensure scalable, future-proof solutions. Ultimately, our mission at SWTCH is to improve EV charging accessibility in urban multi-tenant settings and ensure effective integration of EVs in our clean energy future.<br></p><p>SWTCH is a proud member of Open Charge Alliance (OCA), a global consortium of public and private electric vehicle infrastructure leaders.</p><p>To learn more, visit swtchenergy.com.</p> </div> </div> </div> </article> <script> window.I18n = {}; </script> <script src="/assets/i18n/en-9f840d7ba0871906df6be8681c5dc0512e8be2a67ea4c3bdba970b782c6f5cc9.js"></script> </div> <script id='ze-snippet' src='https://static.zdassets.com/ekr/snippet.js?key=fc9498d6-ff00-42cb-9114-a36daec75206'>:cdata</script> <script src="/assets/application-99d126d09748dd67eb922173613077f1d3ac8a8b24cbbe90c4429f3a6513065d.js"></script> <script> window.ST.jsonTranslations = { "please_wait": "Please wait...", "validation_messages": { "accept": "The image file must be either in GIF, JPG or PNG format.", "creditcard": "Please enter a valid credit card number.", "date": "Please enter a valid date.", "dateISO": "Please enter a valid date (ISO).", "digits": "Please enter only digits.", "email": "Please enter a valid email address.", "equalTo": "Please enter the same value again.", "max": "Please enter a value less than or equal to {0}.", "maxlength": "Please enter no more than {0} characters.", "min": "Please enter a value greater than or equal to {0}.", "minlength": "Please enter at least {0} characters.", "number": "Please enter a valid number.", "range": "Please enter a value between {0} and {1}.", "rangelength": "Please enter a value between {0} and {1} characters long.", "remote": "Please fix this field.", "required": "This field is required.", "url": "Please enter a valid URL.", "address_validator": "The location was not found.", "money": "You need to insert a valid monetary value.", "night_selected": "You need to select at least one night", "availability_range": "The selected range includes dates that are not available", "min_bound": "Please enter a value less than max value ({0})", "max_bound": "Please enter a value more than min value ({0})", "number_no_decimals": "Please enter a whole number", "number_decimals": "Please enter a valid number with either dot (.) or comma (,) as a decimal separator" } } </script> <script> $(function() { if ('touchAction' in document.body.style) { document.body.style.touchAction = 'manipulation'; } else { window.FastClick.attach(document.body, { excludeNode: '^pac-'} ); } }); </script> <script> const community = "swtch" $('body').addClass(community); $('#header-user-mobile-anchor, .header-menu-container').click(function(){ setTimeout(function(){ resize(); }, 50) }); function resize(){ if ($( document ).width() <= 736){ $('#header-user-toggle-menu').css('left', ''); $('#header-user-toggle-menu').css('right', 0); $('#header-menu-toggle-menu').css('left', ''); $('#header-menu-toggle-menu').css('right', 0); } } $('.header-wide-logo').attr('aria-hidden', 'true'); //For accessibility $('#header-menu-desktop-anchor, #need-help, #need-help-arrow, #close-help, #header-user-desktop-anchor').keydown(function(e) { // Check if the Enter key was pressed if (e.key === 'Enter' || e.keyCode === 13) { // Trigger the click event for the toggle functionality $(this).click(); } }); </script> <script> $(document).ready(function() { initialize_defaults("en"); }); </script> <script> $(document).ready(function () { document.body.addEventListener('keydown', function(event) { // Check if the key pressed is the Tab key if (event.key === 'Tab') { // Add a class to the body if the user is using the keyboard document.body.classList.add('user-is-tabbing'); } }); document.body.addEventListener('mousedown', function() { // Remove the class from the body if the user clicks with the mouse document.body.classList.remove('user-is-tabbing'); }); var timeArray = []; var timeFrom = null; var timeTo = null; $('#TimeFrom').datetimepicker({ pickDate: false, minuteStepping: 15, useCurrent: false }); $('#TimeTo').datetimepicker({ pickDate: false, minuteStepping: 15, useCurrent: false }); //checking that From i less than To $("#TimeFrom").on("change.dp", function (e) { //$('#TimeTo').data("DateTimePicker").minDate(e.date); findFrom(ConvertTimeformat("24", $("#tf").val())); }); $("#TimeTo").on("change.dp", function (e) { //$('#TimeFrom').data("DateTimePicker").maxDate(e.date); timeTo = findTo(ConvertTimeformat("24", $("#tt").val())); timeFrom =findFrom(ConvertTimeformat("24",$("#tf").val())); checkRange(timeFrom,timeTo); }); //collecting input ID's for time entries function ConvertTimeformat(format, str) { var time = str; var hours = Number(str.match(/^(\d+)/)[1]); var minutes = Number(str.match(/:(\d+)/)[1]); var AMPM = str.match(/\s(.*)$/)[1]; if (AMPM == "PM" && hours < 12) hours = hours + 12; if (AMPM == "AM" && hours == 12) hours = hours - 12; var sHours = hours.toString(); var sMinutes = minutes.toString(); if (hours < 10) sHours = "0" + sHours; if (minutes < 10) sMinutes = "0" + sMinutes; var timestring = sHours+sMinutes; return timestring; } function findTime(timestring){ var retval; $.each(timeArray, function( index, value ) { if(value.timeText == timestring){ retval = value.id; return value.id; } }); return retval; } function findTo(timestring){ timeTo = findTime(timestring); return timeTo; } function findFrom(timestring){ timeFrom = findTime(timestring); return timeFrom; } function checkRange(from,to){ console.log(from) console.log(to) var list = []; for (var i = from; i <= to; i++) { list.push(i); } $.each(timeArray, function( index, value ) { if($.inArray( value.id, list ) >= 0){ $("#"+value.timeInputID).prop('checked', true); } }); } $('#first_time_message_popup').lightbox_me({ modalCSS: {top: '0'}, centered: true, zIndex: 1000000, closeEsc: false, closeClick: false, onClose: function() { } }); $( "#filter-available-for-service .custom-filter-checkbox-label-text" ).each(function( index ) { var timeUID = index; var timetext = $.trim($(this).text()); var time_id = $(this).parent().find("input").attr("id"); var timeEntry = {"id":timeUID, "timeText":timetext,"timeInputID":time_id}; timeArray.push(timeEntry); }); }); </script> <script> document.getElementById('partner-back-button')?.addEventListener('click', function() { window.history.back(); }); </script> <noscript> <div class='noscript'> <div class='wrapper'> <h2>Javascript is disabled in your browser</h2> <p>SWTCH does not work properly without javascript. Try to enable javascript from your browser's preferences and then reload this page again.</p> </div> </div> </noscript> </body> <script type="text/javascript"> $(function(){ showToast([]); }); </script>