1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-11-24 01:52:15 -05:00
wallabag/themes/baggy/js/init.js

37 lines
844 B
JavaScript
Raw Normal View History

$(document).ready(function() {
$("#menu").click(function(){
$("#links").toggle();
});
$("#listmode").click(function(){
if ( $.cookie("listmode") == 1 ) {
$(".entrie").css("width", "");
$(".entrie").css("margin-left", "");
$.removeCookie("listmode");
$("#listmode").removeClass("tablemode");
$("#listmode").addClass("listmode");
2014-02-12 15:58:40 -05:00
}
else {
$.cookie("listmode", 1, {expires: 365});
$(".entrie").css("width", "100%");
$(".entrie").css("margin-left", "0");
$("#listmode").removeClass("listmode");
$("#listmode").addClass("tablemode");
}
2014-02-12 15:58:40 -05:00
});
if ( $.cookie("listmode") == 1 ) {
$(".entrie").css("width", "100%");
$(".entrie").css("margin-left", "0");
$("#listmode").removeClass("listmode");
$("#listmode").addClass("tablemode");
}
});