mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-12 09:55:24 +00:00
36 lines
844 B
JavaScript
Executable file
36 lines
844 B
JavaScript
Executable file
$(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");
|
|
}
|
|
else {
|
|
$.cookie("listmode", 1, {expires: 365});
|
|
|
|
$(".entrie").css("width", "100%");
|
|
$(".entrie").css("margin-left", "0");
|
|
$("#listmode").removeClass("listmode");
|
|
$("#listmode").addClass("tablemode");
|
|
}
|
|
|
|
});
|
|
|
|
if ( $.cookie("listmode") == 1 ) {
|
|
$(".entrie").css("width", "100%");
|
|
$(".entrie").css("margin-left", "0");
|
|
$("#listmode").removeClass("listmode");
|
|
$("#listmode").addClass("tablemode");
|
|
}
|
|
|
|
|
|
});
|