Sha256: e04f700f5c3bb62084206a257a3a03fbddb9e77e7d14098d8a97cc97aff06f46

Contents?: true

Size: 399 Bytes

Versions: 52

Compression:

Stored size: 399 Bytes

Contents

#
# day2section.rb - tDiary plugin
#
# When a visitor accesses to day page without section anchor, navigate to first section.
#
# Copyright (c) MATSUOKA Kohei <http://www.machu.jp/>
# Distributed under the GPL
#
add_footer_proc do
	if @mode == 'day'
		<<-SCRIPT
		<script type="text/javascript">
		if(!location.hash) {
			location.replace(location.hash + "#p01");
		}
		</script>
		SCRIPT
	end
end

Version data entries

52 entries across 46 versions & 2 rubygems

Version Path
tdiary-contrib-5.0.10 plugin/day2section.rb
tdiary-contrib-5.0.9 plugin/day2section.rb
tdiary-contrib-5.0.8 plugin/day2section.rb
tdiary-contrib-5.0.7 plugin/day2section.rb
tdiary-contrib-5.0.6 plugin/day2section.rb
tdiary-contrib-5.0.5 plugin/day2section.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/bundler/gems/tdiary-contrib-8299b30cbf3f/plugin/day2section.rb
tdiary-5.0.5 vendor/bundle/bundler/gems/tdiary-contrib-fa9c20aa0d97/plugin/day2section.rb
tdiary-5.0.5 vendor/bundle/bundler/gems/tdiary-contrib-f08988dfa0f6/plugin/day2section.rb
tdiary-5.0.5 vendor/bundle/bundler/gems/tdiary-contrib-a3c5f37278c4/plugin/day2section.rb
tdiary-5.0.5 vendor/bundle/bundler/gems/tdiary-contrib-8299b30cbf3f/plugin/day2section.rb
tdiary-contrib-5.0.4 plugin/day2section.rb
tdiary-5.0.4 vendor/bundle/bundler/gems/tdiary-contrib-8299b30cbf3f/plugin/day2section.rb
tdiary-contrib-5.0.3 plugin/day2section.rb
tdiary-contrib-5.0.2 plugin/day2section.rb
tdiary-contrib-5.0.1 plugin/day2section.rb
tdiary-contrib-5.0.0 plugin/day2section.rb
tdiary-contrib-4.2.1 plugin/day2section.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/bundler/gems/tdiary-contrib-2ab36447ae2a/plugin/day2section.rb
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/bundler/gems/tdiary-contrib-d189eb6688f1/plugin/day2section.rb