This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/ext/blotter/script.js

18 lines
561 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 */
2020-03-02 17:12:43 +00:00
document.addEventListener('DOMContentLoaded', () => {
2012-08-15 10:13:25 +00:00
$(".shm-blotter2-toggle").click(function() {
$(".shm-blotter2").slideToggle("slow", function() {
if($(".shm-blotter2").is(":hidden")) {
shm_cookie_set("ui-blotter2-hidden", 'true');
2012-03-09 21:10:26 +00:00
}
else {
shm_cookie_set("ui-blotter2-hidden", 'false');
2012-03-09 21:10:26 +00:00
}
});
});
if(shm_cookie_get("ui-blotter2-hidden") === 'true') {
2012-08-15 10:13:25 +00:00
$(".shm-blotter2").hide();
2012-03-09 21:10:26 +00:00
}
});