Hi I use the code for Wordpress and the theme builder DIVI. I am a really noob beginner with JS and jQuery. The code provide a features to have Night Mode when pushing on a button. I find a custom toggle switch button on Codepen and I like it, and I would love to use it for the code bellow. This JQuery code it's make for button action "click" but I would love to custom it to react to a "Checkbox". Is it possible to make a toggleclass with checkbox?
here is the link : Link off the website
<script type="text/javascript">
jQuery(document).ready(function() {
// Hide the div
jQuery('#rv_button').click(function(e){
e.preventDefault();jQuery(".reveal").toggleClass('light dark', 1000);
jQuery('#rv_button').toggleClass('opened closed');
});
});
</script>
Did you know there is a 12 word sentence you can say to your partner... that will induce intense feelings of love and instinctual attraction to you buried within his heart?
RépondreSupprimerBecause hidden in these 12 words is a "secret signal" that triggers a man's impulse to love, worship and care for you with his entire heart...
=====> 12 Words Who Fuel A Man's Love Instinct
This impulse is so hardwired into a man's brain that it will drive him to try better than before to make your relationship as strong as it can be.
As a matter of fact, fueling this powerful impulse is absolutely binding to getting the best possible relationship with your man that the moment you send your man a "Secret Signal"...
...You will instantly notice him expose his mind and heart for you in a way he haven't experienced before and he'll perceive you as the one and only woman in the universe who has ever truly appealed to him.