mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-24 01:52:15 -05:00
37 lines
844 B
JavaScript
Executable File
37 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");
|
|
}
|
|
|
|
|
|
});
|