Status
Not open for further replies.

Exel

Active Member
2,074
2008
543
100
17:35 Exel Dafuq is wrong with you guys?
17:35 Exel That quiz night shit is annoying and apparently you guys can't code a toggle remember state.
17:35 Exel /slap
17:35 Exel jQuery cookies ftw.
17:35 Exel Now (finger) you all


<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.3.1/jquery.cookie.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#hide").click(function(){
$(".shww").hide();
$.cookie('hidetimer', true);
});
$("#show").click(function(){
$(".shww").show();
$.cookie('hidetimer', false);
});

if($.cookie('hidetimer') == 'true'){
$('#hide').click();
}
});
</script>
 
Last edited:
6 comments
17:35 Exel Dafuq is wrong with you guys?
17:35 Exel That quiz night shit is annoying and apparently you guys can't code a toggle remember state.
17:35 Exel /slap
17:35 Exel jQuery cookies ftw.
17:35 Exel Now (finger) you all


<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.3.1/jquery.cookie.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#hide").click(function(){
$(".shww").hide();
$.cookie('hidetimer', true);
});
$("#show").click(function(){
$(".shww").show();
$.cookie('hidetimer', false);
});

if($.cookie('hidetimer') == 'true'){
$('#hide').click();
}
});
</script>

Don't cry.

Stop your pouting, you guys could've just PM'd a mod and waited at least 24 hours, instead a whole thread had to be made, smh.
 
Last edited:
What's the point of this thread? You already posted the code in another thread and it was a very good idea.
The thread about a countdown clock was made a month and a half before it was implanted, why didn't you suggest the cookie based show / hide option back then, in fact almost no one took the time to suggest ways / methods to make it better.
 
Don't make it show on small screens as it doesn't resize. eg a small tablet or someone having to use the desktop version of the site version on a mobile to see the shoutbox.
 
Status
Not open for further replies.
Back
Top