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.3.0 plugin/day2section.rb
tdiary-contrib-5.2.4 plugin/day2section.rb
tdiary-contrib-5.2.3 plugin/day2section.rb
tdiary-contrib-5.2.2 plugin/day2section.rb
tdiary-contrib-5.2.1 plugin/day2section.rb
tdiary-contrib-5.2.0 plugin/day2section.rb
tdiary-contrib-5.1.7 plugin/day2section.rb
tdiary-contrib-5.1.6 plugin/day2section.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-contrib-5.1.4/plugin/day2section.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/bundler/gems/tdiary-contrib-d1e41204db13/plugin/day2section.rb
tdiary-contrib-5.1.5 plugin/day2section.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-contrib-5.1.4/plugin/day2section.rb
tdiary-contrib-5.1.4 plugin/day2section.rb
tdiary-contrib-5.1.3 plugin/day2section.rb
tdiary-contrib-5.1.2 plugin/day2section.rb
tdiary-contrib-5.1.1 plugin/day2section.rb
tdiary-contrib-5.1.0 plugin/day2section.rb
tdiary-contrib-5.0.13 plugin/day2section.rb
tdiary-contrib-5.0.12 plugin/day2section.rb
tdiary-contrib-5.0.11 plugin/day2section.rb