fembooru/ext/blotter/script.js

18 lines
546 B
JavaScript
Raw Normal View History

/*jshint bitwise:true, curly:true, forin:false, noarg:true, noempty:true, nonew:true, undef:true, strict:false, browser:true, jquery:true */
2012-03-09 21:10:26 +00:00
$(document).ready(function() {
2012-08-15 11:13:25 +01:00
$(".shm-blotter2-toggle").click(function() {
$(".shm-blotter2").slideToggle("slow", function() {
if($(".shm-blotter2").is(":hidden")) {
$.cookie("ui-blotter2-hidden", 'true', {path: '/'});
2012-03-09 21:10:26 +00:00
}
else {
2012-08-15 11:13:25 +01:00
$.cookie("ui-blotter2-hidden", 'false', {path: '/'});
2012-03-09 21:10:26 +00:00
}
});
});
2014-04-23 23:39:09 -04:00
if($.cookie("ui-blotter2-hidden") === 'true') {
2012-08-15 11:13:25 +01:00
$(".shm-blotter2").hide();
2012-03-09 21:10:26 +00:00
}
});