2 This program is free software. It comes without any warranty, to
3 the extent permitted by applicable law. You can redistribute it
4 and/or modify it under the terms of the Do What The Fuck You Want
5 To Public License, Version 2, as published by Sam Hocevar. See
6 http://sam.zoy.org/wtfpl/COPYING for more details.
10 <meta http-equiv="Cache-Control" content="Public">
11 <meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
12 <link rel='stylesheet' type='text/css' href='/data/css/main.css'>
13 <title>as above, so below</title>
20 function showBookmark(node_id) {ldelim}
21 var bookmark=document.getElementById(node_id);
22 bookmark.style.visibility="visible";
26 function setInvisible(id) {ldelim}
27 for (node in categories[id]) {ldelim}
28 document.getElementById(node).style.visibility="hidden";
32 function showBookmarks(id) {ldelim}
33 setInvisible(current_category);
34 for (node in categories[id]) {ldelim}
43 categories=new Object();
44 categories["0"]=new Object();
47 {foreach from=$get_bookmarks item=bookmark_category}
48 categories["{$bookmark_category.node_id}"]=new Object();
50 {foreach from=$bookmark_category.children item=bookmark}
51 categories["{$bookmark_category.node_id}"]["{$bookmark.node_id}"]=true;
59 {foreach from=$get_bookmarks item=category name=categoryname}
60 {circle_coordinates amount=$smarty.foreach.categoryname.total iteration=$smarty.foreach.categoryname.iteration}
61 <div id='category{$smarty.foreach.categoryname.iteration}' style='position: absolute; left:{$x_coordinate}px; top:{$y_coordinate}px;'>
62 <a onmouseover="category{$smarty.foreach.categoryname.iteration}.innerHtml='{$category.node_name}';showBookmarks('{$category.node_id}');" href='/{$category.node_id}/'>{$category.node_name}</a>
64 {foreach from=$category.children item=bookmarks name=bookmarks}
65 <div id='{$bookmarks.node_id}' style='visibility: hidden; left; position: relative;'>
66 <a href='/{$bookmarks.node_name}'>{$bookmarks.node_name}</a>
67 {if $bookmarks.lastdescendant_created > $bookmarks.last_visit}
68 :: <span class='most_important'>!!NEW!!</span>