US-ASCII characters (even if I _don't_ advice you to store
files with these)
- clever use of the whole space of a typical browser window
+- cookie to remember the preferred size of thumbnails accross sub-albums
- subalbums support (images in any subdirectory depth)
frontend
type = images.include?(file) ? 'image' : videos.include?(file) ? 'video' : nil
if type
html_thumbnails += run_iterations(iterations)
- html_thumbnails.gsub!(/~~theme~~/, $theme)
- html_thumbnails.gsub!(/~~current_size~~/, sizeobj['name'])
if type == 'image'
index = images.index(file)
html_thumbnails.gsub!(/~~image_iteration~~/,
html_thumbnails += close_iterations(iterations)
for i in html
i.sub!(/~~thumbnails~~/, html_thumbnails)
+ i.gsub!(/~~theme~~/, $theme)
+ i.gsub!(/~~current_size~~/, sizeobj['name'])
end
ios = File.open("#{dest_dir}/thumbnails-#{sizeobj['name']}.html", "w")
ios.write(html)
function init() {
+ var expires = new Date(new Date().getTime() + (30 * 86400000)); // 30 days
+ document.cookie = 'booh-preferred-size-~~theme~~=~~current_size~~'
+ + '; expires=' + expires.toGMTString()
+ + '; path=/';
+
/* retrieve GET parameters */
all_params = location.href.split("?")
if (all_params.length > 1) {