on a suggestion by pixel, display a hint that images are clickable on first launch...
authorgc <gc>
Sun, 29 Jan 2006 15:19:15 +0000 (15:19 +0000)
committergc <gc>
Sun, 29 Jan 2006 15:19:15 +0000 (15:19 +0000)
data/booh/themes/dark/skeleton_index.html
data/booh/themes/sbs/skeleton_index.html
data/booh/themes/simple/skeleton_index.html
lib/booh/html-merges.rb

index f1d9ebd..59fad44 100644 (file)
@@ -5,6 +5,7 @@
     <title>~~title~~</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
     <meta name="author" content="'Dark' theme - Guillaume Cottenceau"/>
+    ~~~index_head_code~~~
     <style type="text/css" media="screen">
     <!--
 body {
@@ -43,11 +44,11 @@ input {
     </style>
 </head>
 
-<body bgcolor="#FFFFFF">
+<body bgcolor="#FFFFFF" ~~~body_additions~~~>
 
 ~~ifnavigation?~~<p>~~navigation~~</p>~~fi~~
 
-<p align="center"><font size="+3">~~title~~</font></p>
+<p align="center" id="title"><font size="+3">~~title~~</font></p>
 
 <table width="100%" cellpadding="10" border="0">
 ~~iterate1_open~~
index c9f5c4b..2a2948e 100644 (file)
@@ -4,7 +4,8 @@
 <head>
     <title>~~title~~</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
-    <meta name="author" content="sbs theme, by Erik Ramseth -- based heavily on `Simple' theme by Guillaume Cottenceau">
+    <meta name="author" content="sbs theme, by Erik Ramseth -- based heavily on 'Simple' theme by Guillaume Cottenceau">
+    ~~~index_head_code~~~
     <style type="text/css" media="screen">
     <!--
 body {
@@ -52,11 +53,11 @@ input {
     </style>
 </head>
 
-<body bgcolor="#FFFFFF">
+<body bgcolor="#FFFFFF" ~~~body_additions~~~>
 
 ~~ifnavigation?~~<p>~~navigation~~</p>~~fi~~
 
-<p align="center"><font size="+3">~~title~~</font></p>
+<p align="center" id="title"><font size="+3">~~title~~</font></p>
 
 <table width="100%" cellpadding="10" border="0">
 ~~iterate1_open~~
index 37b1972..38fc6d7 100644 (file)
@@ -5,6 +5,7 @@
     <title>~~title~~</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
     <meta name="author" content="'Simple' theme - Guillaume Cottenceau"/>
+    ~~~index_head_code~~~
     <style type="text/css" media="screen">
     <!--
 body {
@@ -40,11 +41,11 @@ input {
     </style>
 </head>
 
-<body bgcolor="#FFFFFF">
+<body bgcolor="#FFFFFF" ~~~body_additions~~~>
 
 ~~ifnavigation?~~<p>~~navigation~~</p>~~fi~~
 
-<p align="center"><font size="+3">~~title~~</font></p>
+<p align="center" id="title"><font size="+3">~~title~~</font></p>
 
 <table width="100%" cellpadding="10" border="0">
 ~~iterate1_open~~
index 8ae5343..c1d954f 100644 (file)
@@ -519,3 +519,17 @@ window.location.href = getPreferredSize();
     </head>
 </html>
 EOF
+
+
+$index_head_code = '<meta name="generator" content="Booh-' + $VERSION + ' http://zarb.org/~gc/html/booh.html"/>
+<script language="JavaScript1.1" type="text/JavaScript">
+function init() {
+    if (!document.cookie || document.cookie.indexOf("booh-not-a-newbie") == -1) {
+        document.getElementById("title").innerHTML += "<br/><br/>' + utf8(_("<i>Hint: you can click on the images to open the albums!</i>")) + '";
+    }
+    var expires = new Date(new Date().getTime() + (10 * 86400000));  // 10 days
+    document.cookie = "booh-not-a-newbie=true"
+                      + "; expires=" + expires.toGMTString()
+                      + "; path=/";
+}
+</script>'