root/platform/tdiary/plugin/day2section.rb
| Revision 14181, 399 bytes (checked in by hsbt, 6 months ago) |
|---|
| Line | |
|---|---|
| 1 | # |
| 2 | # day2section.rb - tDiary plugin |
| 3 | # |
| 4 | # When a visitor accesses to day page without section anchor, navigate to first section. |
| 5 | # |
| 6 | # Copyright (c) MATSUOKA Kohei <http://www.machu.jp/> |
| 7 | # Distributed under the GPL |
| 8 | # |
| 9 | add_footer_proc do |
| 10 | if @mode == 'day' |
| 11 | <<-SCRIPT |
| 12 | <script type="text/javascript"> |
| 13 | if(!location.hash) { |
| 14 | location.replace(location.hash + "#p01"); |
| 15 | } |
| 16 | </script> |
| 17 | SCRIPT |
| 18 | end |
| 19 | end |
| 20 |
Note: See TracBrowser
for help on using the browser.
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)