1. Shlomi Fish
  2. shlomi-fish-homepage

Commits

Shlomi Fish  committed 0f80b7d

Placed the jqTree on all pages.

  • Participants
  • Parent commits ef7a243
  • Branches convert-from-jquery-treeview-to-jqtree-plugin

Comments (0)

Files changed (3)

File TODO

View file
  • Ignore whitespace
 
 * Extract the jQtree functionality from t2/humour/bits/index.html into
 a common place.
+    - DONE.
 
 * Find a way to minify/compress common/js/tree.jquery.js - it is too large.
 

File lib/rest-of-template.wml

View file
  • Ignore whitespace
 <define-tag my_extra_head_elements>
 <link rel="alternate stylesheet" type="text/css" href="$(ROOT)/style-2008.css" media="screen, projection" title="Old 2008 Style" />
 <link rel="stylesheet" type="text/css" href="$(ROOT)/js/treeview/jquery.treeview.css" />
+<link rel="stylesheet" href="$(ROOT)/jqtree.css" type="text/css" media="screen, projection" title="Normal" />
 <script type="text/javascript" src="$(ROOT)/js/jq.js"></script>
 <script type="text/javascript" src="$(ROOT)/js/main_nav_menu.js"></script>
 <script type="text/javascript" src="$(ROOT)/js/jquery.treeview.min.js"></script>
 <script type="text/javascript" src="$(ROOT)/js/toggle_sect.js"></script>
+<script src="$(ROOT)/js/tree.jquery.js" type="text/javascript"></script>
+<script src="$(ROOT)/js/to-jqtree.js" type="text/javascript"></script>
+<script src="$(ROOT)/js/to-jqtree-2.js" type="text/javascript"></script>
 <link rel="alternate" type="application/rss+xml" title="Shlomi Fish’s Homepage RSS Feed" href="http://www.livejournal.com/community/shlomif_hsite/data/rss" />
 <link rel="alternate" type="application/atom+xml" title="Shlomi Fish’s Atom Feed" href="http://www.livejournal.com/community/shlomif_hsite/data/atom" />
 {#PAGE_EXTRA_HEAD_ELEMENTS#}
 </latemp_before_main_title>
 
 <latemp_after_body>
+# For loading the jqTree contents from dest/t2-homepage/_data/nav.json
+# using AJAX and processing it into something acceptable by it and replacing
+# the existing tree.
+<script type="text/javascript">
+shlomif_load_nav("<: print get_page_path(); :>");
+</script>
 <if "<should_display_disqus />" "<disqus_thread />" />
 <share_this_button />
 # <google_adsense_code_after_text />

File t2/humour/bits/index.html.wml

View file
  • Ignore whitespace
 
 
 <latemp_subject "Shlomi Fish’s Funny Bits" />
-<page_extra_head_elements>
-<link rel="stylesheet" href="$(ROOT)/jqtree.css" type="text/css" media="screen, projection" title="Normal" />
-<script src="$(ROOT)/js/tree.jquery.js" type="text/javascript"></script>
-<script src="$(ROOT)/js/to-jqtree.js" type="text/javascript"></script>
-<script src="$(ROOT)/js/to-jqtree-2.js" type="text/javascript"></script>
-</page_extra_head_elements>
-
-<script type="text/javascript">
-shlomif_load_nav("<: print get_page_path(); :>");
-</script>
 
 <p>
 Funny short scale stories I wrote - often just a pageful or two.