Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- var click = false;
- function changeSnowStateOnClick()
- {
- if(click==true)
- {
- snowStorm.stop();
- click = false;
- }
- else
- {
- snowStorm.resume();
- click = true;
- }
- }
- function changeText() {
- var button_snow = document.getElementById('button_snow');
- if (button_snow.innerText.match("Wlacz snieg")) {
- document.getElementById('button_snow').innerText = 'Wylacz snieg';
- snieg=1;
- } else {
- document.getElementById('button_snow').innerText = 'Wlacz snieg';
- snieg=0;
- }
- }
- </script>
- <a href="#" class="register bradius" id="button_snow" style="background-color:#3399FF;" onclick="changeText()"><i class="fa fa-cloud fa_xtra" aria-hidden="true"></i>Wylacz snieg</a>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement