歡迎下載 Archive Pages
歡迎各位下載 archive pages 留念 :P。改版過程中,我一直朝著「讓 archive pages 自給自足」的目標修改,所以 archive pages 的意見直接放在各篇之下,sidebar 基本上不會隨時間更動,且 sidebar 的連結都指向那一頁 archive page 的 bookmarks。下載後有一個地方可能要修改:我用 Firefox(不知 Windows Firefox 有沒有同樣問題)以「完整封裝」模式下載,"Monthly Statistics" 的內容重複了兩次。解決方法是打開文字編輯器,搜尋第二個 "Monthly Statistics",然後刪去 <ul style="margin: 0.5em 0pt 0pt;"> 之後的
1: <script>
2:
3: n_days = last_day.getDate();
4:
5: document.write('<li><font color="#258">' + n_days...
6: document.write('<li>每日平均張貼...
7: document.write('<li>每日平均回應...
8: document.write('<li>每篇平均回應...
9: if (commenters.length > 0) {
10: document.write('<li><p>回應次數排名:</p>');
11: commenters.sort(function (a, b) {...
12: var current_rank = 0;
13: var prev = 65536;
14: for(i = 0; i < commenters.length; ++i) {
15: if (commenters[i][1].length < prev) {
16: ++current_rank;
17: prev = commenters[i][1].length;
18: }
19: document.write('<p>' + (current_rank == 1 ?...
20: document.write('<span class="hiddensection"...
21: commenters[i][1].sort(function (a, b) {...
22: for(var j = 0; j < commenters[i][1].length; ++j) {
23: document.write('<li><a href='...
24: }
25: document.write('<li><a href="javascript:toggle...
26: document.write('</ul></span></p>');
27: }
28: document.write('</li>');
29: }
30: </script>和後面的
1: <noscript> 2: <li>這個部份必須啟用 JavaScript 方能瀏覽 :)。</li> 3: </noscript>
這兩段即可。想下載其他頁面當然也歡迎,不過 main page 和 item pages 都是設計為反映現狀(尤其是 main page),沒像 archive pages 經特別設計為自給自足。
--
這主要當然也是為了自己方便 :P。


沒寫過Java Script 果然看不太懂
正在猜其中的意思中
ps.這種功能適合大的blog
沒用到什麼功能呀,只有變數(dynamically-typed)、迴圈、Array、Date、還有 "document.write" 而已。
> 讓 archive pages 自給自足
嗯? 什麼時候的事??
有學我的嫌疑喔!
(我來亂的 XDD)
<< 回到主頁