Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ jQuery(function ()
},
west: {
applyDefaultStyles: true,
minSize: 300
minSize: 300,
enableCursorHotkey: JSINFO.template_codowik_sidebarHotkey
}
});

Expand Down
55 changes: 0 additions & 55 deletions main.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,61 +31,6 @@
<?php tpl_includeFile('meta.html') ?>

<link href='https://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'>
<link href="<?php print DOKU_TPL; ?>css/ui.layout.css?v=2.1" rel="stylesheet">

<?php echo tpl_js('layout.js'); ?>

<script type="text/javascript">
jQuery(function ()
{
jQuery('#container').layout({
maskContents: true,
center: {
applyDefaultStyles: true
},
west: {
applyDefaultStyles: true,
minSize: 300,
enableCursorHotkey: JSINFO.template_codowik_sidebarHotkey
}
});

jQuery('.ui-layout-pane').each(function () {
var el = jQuery(this);
});

jQuery(".codo_side_content [href]").each(function () {
if (this.href == window.location.href) {
jQuery(this).addClass("codo_active");
}
});

function apply_space(elem, times) {

jQuery(elem).find(">li>div>a").each(function()
{
jQuery(this).html(times + jQuery(this).html())

});

//2017/09/20 Dirk Schnitzler: Apply spaces to the currently active page, too
jQuery(elem).find(">li>div>span>a").each(function()
{
jQuery(this).html(times + jQuery(this).html())
});

jQuery(elem).find(">li>ul").each(function()
{
apply_space(jQuery(this), times + '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
});

}

apply_space(jQuery('.codo_side_content >ul'), '&nbsp;');

});

</script>

</head>

Expand Down