Home Work
SaaS developmentAI developmentAPI developmentMobile app developmentGoogle Ads managementHeadless ShopifyLaravel developmentNext.js developmentReact developmentTypeScript engineeringUI/UX designSEO & AEOEcommerce development
AI solutionsB2B platformsE-commerceHospitalityLead generationLogisticsEducationProcess automationSaaS platformsStartup MVPReal estateHealthcare
LegalHealthcareReal estateFinanceHospitality
The HagueRotterdamAmsterdamUtrechtEindhovenAlmereBredaArnhemNijmegenTilburgEnschedeGroningenLeidenDelftZoetermeerDen Bosch
Studio
AboutProcessLabBlogContact

Draaiknop voor de thermostaat New

Rotary knob like a thermostat: drag around the knob or use arrows, Page Up/Down, Home and End; the arc fills along and the setting moves in half degrees. With Home, Away and Night presets and a status line saying what the boiler will do. Built as role=slider with aria-valuetext, so it also works with screen readers. For installers, energy apps and smart home demos; with another scale also for budget or volume.

Woonkamer, nu 18,9 °C

Verwarmen tot 20,5 °C, klaar rond 19:40

How to use it

  1. Paste the HTML where the forms & inputs should appear.
  2. Add the CSS to your stylesheet. All classes are prefixed, so nothing clashes with your own styles.
  3. Add the JavaScript and call init() with the element that contains the HTML.
<!-- Draaiknop voor de thermostaat · NedDev · eigen werk. -->
<div class="jouw-container">
<div class="dkt"><div class="dkt__in">
<div class="dkt__dial">
<svg class="dkt__svg" viewBox="0 0 160 160" aria-hidden="true"><path class="dkt__trk" d="M33.9 126.1A65 65 0 1 1 126.1 126.1"/><path class="dkt__arc" d="M33.9 126.1A65 65 0 1 1 126.1 126.1"/><g class="dkt__ticks"></g></svg>
<div class="dkt__knob" role="slider" tabindex="0" aria-label="Gewenste temperatuur woonkamer" aria-valuemin="12" aria-valuemax="28" aria-valuenow="20.5" aria-valuetext="20,5 graden">
<span class="dkt__ind" aria-hidden="true"></span>
<span class="dkt__val" aria-hidden="true"><b>20,5</b><small>&deg;C</small></span>
</div>
</div>
<div class="dkt__side">
<p class="dkt__room">Woonkamer, nu 18,9 &deg;C</p>
<div class="dkt__pre" role="group" aria-label="Snelkeuze">
<button type="button" data-v="20.5" aria-pressed="true">Thuis</button><button type="button" data-v="17" aria-pressed="false">Weg</button><button type="button" data-v="16" aria-pressed="false">Nacht</button>
</div>
<p class="dkt__st" aria-live="polite">Verwarmen tot 20,5 &deg;C, klaar rond 19:40</p>
</div>
</div></div>
</div>

More forms & inputs

Seen something you like?

Add it to your selection and send it over. We build your site around it, in your brand.

Get in touch →