Jump to content

Advanced Webserver Button input and display state


Recommended Posts

I'm looking for a way to use a slider button, similar to an iphone toggle switch, to toggle input to an operand and display the current state (ON/OFF). I'm using css for the slider and it resets on every refresh. Is there a way with javascript or jquery to set the refresh rate to make it closer to realtime  and to use GET to have the slider always display the current value? 

 

I've attached my start.htm and the css for the switch

 

Thanks for any help! I know I can use html and the info in the example file to accomplish these tasks, but I'd like something more concise and neater looking. 

Start.htm

Toggle.css

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...