mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
20 lines
498 B
JavaScript
20 lines
498 B
JavaScript
var TOC = {
|
|
load: function () {
|
|
$('#toc_button').click(TOC.toggle);
|
|
},
|
|
|
|
toggle: function () {
|
|
if ($('#sphinxsidebar').toggle().is(':hidden')) {
|
|
$('div.document').css('left', "0px");
|
|
$('toc_button').removeClass("open");
|
|
} else {
|
|
$('div.document').css('left', "230px");
|
|
$('#toc_button').addClass("open");
|
|
}
|
|
return $('#sphinxsidebar');
|
|
}
|
|
};
|
|
|
|
$(document).ready(function () {
|
|
TOC.load();
|
|
}); |