fix themes due to sharing js/css changes
authorgc <gc>
Sun, 2 Mar 2008 22:54:37 +0000 (22:54 +0000)
committergc <gc>
Sun, 2 Mar 2008 22:54:37 +0000 (22:54 +0000)
data/booh/themes/dark/root/back.gif [moved from data/booh/themes/dark/back.gif with 100% similarity]
data/booh/themes/dark/root/booh.js [new file with mode: 0644]
data/booh/themes/dark/root/video.png [moved from data/booh/themes/dark/video.png with 100% similarity]
data/booh/themes/dark/skeleton_image.html
data/booh/themes/dark/skeleton_index.html
data/booh/themes/dark/skeleton_thumbnails.html
data/booh/themes/sbs/root/booh.js [new file with mode: 0644]
data/booh/themes/sbs/root/video.png [moved from data/booh/themes/sbs/video.png with 100% similarity]
data/booh/themes/sbs/skeleton_image.html
data/booh/themes/sbs/skeleton_thumbnails.html
data/booh/themes/simple/skeleton_image.html

diff --git a/data/booh/themes/dark/root/booh.js b/data/booh/themes/dark/root/booh.js
new file mode 100644 (file)
index 0000000..c9fdef6
--- /dev/null
@@ -0,0 +1,392 @@
+var images_ary = new Array();
+var images_loaded = new Array();
+var current = 0;
+var slideshow = 0;
+var slideshow_pause = null;
+var slideshow_timer = null;
+
+for (i = 0; i < images.length; i++) { 
+    /* this array will contain 0 if image not yet loaded, 1 when loading,
+     * 2 when complete */
+    images_loaded[i] = 0;
+}
+
+function dbg(t) {
+    document.getElementById('dbg_text').innerHTML += t + "\n";
+}
+
+/* load image, return 1 if image is finished loading */
+function load(i) {
+    if (images_loaded[i] == 0) {
+        images_ary[i] = new Image();
+        images_ary[i].src = images[i];
+        images_loaded[i] = 1;
+    }
+    if (images_loaded[i] == 1) {
+        if (images_ary[i].complete) {
+            images_loaded[i] = 2;
+        } else {
+            return 0;
+        }
+    }
+    return 1;
+}
+
+function getparam(key) {
+    all_params = location.href.split("#")
+    if (all_params.length > 1) {
+        params = all_params[1].split("&");
+        for (i = 0; i < params.length; i++) {
+            keyvalue = params[i].split("=");
+            if (keyvalue[0] == key) {
+                return keyvalue[1];
+            }
+        }
+    }
+    return null;
+}
+
+function loadcurrent(img) {
+    for (i = 0; i < images.length; i++) {
+        if (images[i] == img) {
+            current = i;
+            display_current();
+            return;
+        }
+    }
+    current = 0;
+    display_current();
+}
+
+function browser_href() {
+    all = location.href.split("/");
+    return all[all.length - 1];
+}
+
+/* check URL for changes; allows the URL to reflect currently showed image */
+var currentURL = '';
+function checkURL() {
+    if (currentURL == 'ignore1') {
+        // do nothing
+    } else if (currentURL == 'ignore2') {
+        currentURL = browser_href();
+    } else {
+        href = browser_href();
+        if (href != currentURL) {
+            currentURL = href;
+            img = getparam('current');
+            loadcurrent(img);
+        }
+    }
+    setTimeout("checkURL()", 50);
+}
+
+function preload() { 
+
+    /* favor current image, if user clicked on `last' or something */
+    load(current);
+
+    /* don't blindly preload all images at the beginning,
+     * but rather load them one by one, in order to get
+     * next ones faster, beginning with next to current
+     */
+    if (current + 1 < images.length && load(current + 1) == 0) {
+        setTimeout("preload()", 50);
+        return;
+    }
+    if (current - 1 >= 0 && load(current - 1) == 0) {
+        setTimeout("preload()", 50);
+        return;
+    }
+
+    for (i = current + 2; i < images.length && i <= current + 5; i++) { 
+        if (load(i) == 0) {
+            setTimeout("preload()", 50);
+            return;
+        }
+    }
+    for (i = current - 2; i >= current - 3; i--) { 
+        if (i >= 0) {
+            if (load(i) == 0) {
+                setTimeout("preload()", 50);
+                return;
+            }
+        }
+    }
+
+    setTimeout("preload()", 50);
+}
+
+function add_cookie(val) {
+    var expires = new Date(new Date().getTime() + (30 * 86400000));  // 30 days
+    document.cookie = val
+                      + '; expires=' + expires.toGMTString()
+                      + '; path=/';
+}
+
+function get_cookie(key) {
+    if (document.cookie) {
+        var index = document.cookie.indexOf(key);
+        if (index != -1) {
+            var oleft = (document.cookie.indexOf('=', index) + 1);
+            var oright = document.cookie.indexOf(';', index);
+            if (oright == -1) {
+                oright = document.cookie.length;
+            }
+            return document.cookie.substring(oleft, oright);
+        }
+    }
+    return null;
+}
+
+function init() {
+
+
+    preferred_pause = get_cookie('booh-slideshow-pause-' + dbltilda_theme);
+    if (preferred_pause != null) {
+        document.getElementById('secs').value = preferred_pause;
+    }
+
+    if (getparam('run_slideshow')) {
+        toggle_slideshow();
+    }
+
+    checkURL();
+
+    preload();
+
+    if (images.length == 1) {
+        document.getElementById("b_slideshow").disabled = true;
+        document.getElementById("b_slideshow").setAttribute("class", "disabled");
+    }
+
+    if (navigator.userAgent.indexOf('Opera') == -1) {
+        document.onkeydown = keyDownEvent;
+    }
+}
+
+function update_sensibilities() {
+    if (current == 0) {
+        document.getElementById("b_first").disabled = true;
+        document.getElementById("b_previous").disabled = true;
+        document.getElementById("b_first").setAttribute("class", "disabled");
+        document.getElementById("b_previous").setAttribute("class", "disabled");
+    } else {
+        document.getElementById("b_first").disabled = false;
+        document.getElementById("b_previous").disabled = false;
+        document.getElementById("b_first").removeAttribute("class");
+        document.getElementById("b_previous").removeAttribute("class");
+    }
+
+    if (current == images.length - 1) {
+        document.getElementById("b_next").disabled = true;
+        document.getElementById("b_last").disabled = true;
+        document.getElementById("b_next").setAttribute("class", "disabled");
+        document.getElementById("b_last").setAttribute("class", "disabled");
+    } else {
+        document.getElementById("b_next").disabled = false;
+        document.getElementById("b_last").disabled = false;
+        document.getElementById("b_next").removeAttribute("class");
+        document.getElementById("b_last").removeAttribute("class");
+    }
+}
+
+function set_cursor_(value, element) {
+
+    if (!element || !element.style) {
+        return;
+    }
+
+    element.style.cursor = value;
+
+    children = element.childNodes;
+    for (i = 0; i < children.length; i++) {
+        set_cursor_(value, children.item[i]);
+    }
+}
+
+function set_cursor(value) {
+    set_cursor_(value, document.getElementById('body'));
+    set_cursor_(value, document.getElementById('b_first'));
+    set_cursor_(value, document.getElementById('b_previous'));
+    set_cursor_(value, document.getElementById('b_next'));
+    set_cursor_(value, document.getElementById('b_last'));
+}
+
+function show_current_text() {
+    /* don't show text if image not yet loaded because navigator
+     * won't refresh it during load */
+    if (images_loaded[current] == 2) {
+        document.getElementById('image_counter').innerHTML = ( current + 1 ) + "/" + images.length;
+        document.getElementById('main_text').innerHTML = captions[current];
+        for (i = 0; i < other_sizes.length; i++) { 
+            if (other_sizes[i] == "original") {
+                document.getElementById('link' + other_sizes[i]).href = eval("images_" + other_sizes[i] + "[current]");
+            } else {
+                document.getElementById('link' + other_sizes[i]).href = 'image-' + other_sizes[i] + dbltilda_htmlsuffix + '#current=' + eval("images_" + other_sizes[i] + "[current]");
+            }
+        }
+        document.getElementById('thumbnails').href = 'thumbnails-' + dbltilda_current_size + '-' + thumbnailspages[current] + dbltilda_htmlsuffix + '#' + images[current];
+        set_cursor("default");
+    } else {
+        setTimeout("show_current_text()", 50);
+        set_cursor("wait");
+    }
+}
+
+function display_current() {
+    document.main_img.src = images[current];
+    oldhref = browser_href();
+    newhref = 'image-' + dbltilda_current_size + dbltilda_htmlsuffix + '#current=' + images[current];
+    if (oldhref != newhref) {
+        currentURL = 'ignore1';
+        location.href = newhref;
+        currentURL = 'ignore2';
+    }
+    show_current_text();
+    update_sensibilities();
+}
+
+function first() {
+    if (slideshow == 1) {
+        toggle_slideshow(true);
+    }
+    
+    current = 0;
+    display_current();
+}
+
+function next() {
+    if (slideshow == 1) {
+        toggle_slideshow(true);
+    }
+
+    if (current < images.length - 1) {
+        current++;
+        display_current();
+    }
+}
+
+function next10() {
+    if (slideshow == 1) {
+        toggle_slideshow(true);
+    }
+
+    if (current < images.length - 11) {
+        current += 10;
+    } else {
+        current = images.length - 1;
+    }
+    display_current();
+}
+
+function previous() {
+    if (slideshow == 1) {
+        toggle_slideshow(true);
+    }
+
+    if (current > 0) {
+        current--;
+        display_current();
+    }
+}
+
+function previous10() {
+    if (slideshow == 1) {
+        toggle_slideshow(true);
+    }
+
+    if (current > 10) {
+        current -= 10;
+    } else {
+        current = 0;
+    }
+    display_current();
+}
+
+function last() {
+    if (slideshow == 1) {
+        toggle_slideshow(true);
+    }
+
+    current = images.length - 1;
+    display_current();
+}
+
+function keyDownEvent(key) {
+    if (!key) {
+        key = event;
+        key.which = key.keyCode;
+    }
+    if (key.altKey || key.ctrlKey || key.shiftKey) {
+        return;
+    }
+    switch (key.which) {
+      case 36: // home
+        first();
+        break;
+      case 35: // end
+        last();
+        break;
+      case 37: // left
+        previous();
+        break;
+      case 39: // right
+        next();
+        break;
+      case 38: // up
+        previous10();
+        break;
+      case 40: // down
+        next10();
+        break;
+    }
+}
+
+function toggle_slideshow(now) {
+    if (slideshow == 0) {
+        slideshow_pause = document.getElementById('secs').value;
+        add_cookie('booh-slideshow-pause-' + dbltilda_theme + '=' + slideshow_pause)
+        document.getElementById("b_slideshow").value = dbltilda_stop_slideshow;
+        slideshow = 1;
+        if (current == images.length - 1) {
+            current = -1;
+        }
+        if (now) {
+            run_slideshow();
+        } else {
+            setTimeout("run_slideshow()", slideshow_pause * 1000);
+        }
+    } else {
+        clearTimeout(slideshow_timer);
+        document.getElementById("b_slideshow").value = dbltilda_run_slideshow;
+        slideshow = 0;
+    }
+}
+
+function run_slideshow() {
+    if (slideshow == 0) {
+        return;
+    }
+
+    if (images_loaded[current + 1] == 2) {
+        current++;
+        display_current();
+        slideshow_timer = setTimeout("run_slideshow()", slideshow_pause * 1000);
+    } else {
+        slideshow_timer = setTimeout("run_slideshow()", 50);
+    }
+
+    if (current == images.length - 1) {
+        toggle_slideshow(true);
+    }
+}
+
+function set_preferred_size(val) {
+    var expires = new Date(new Date().getTime() + (30 * 86400000));  // 30 days
+    document.cookie = 'booh-preferred-size-' + dbltilda_theme + '='
+                      + val
+                      + '; expires=' + expires.toGMTString()
+                      + '; path=/';
+}
+
index 0c69e2a..56260af 100644 (file)
@@ -6,11 +6,12 @@
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
     <meta name="author" content="'Dark' theme - Guillaume Cottenceau"/>
     ~~~image_head_code~~~
+    <script type="text/javascript" src="~~pathtobase~~booh.js"/>
     <style type="text/css" media="screen">
     <!--
 body {
         background-color: #000000;
-        background-image: url(back.gif);
+        background-image: url(~~pathtobase~~back.gif);
         background-repeat: repeat;
         background-attachment: fixed;
         color: #AEAEAE;
index 1e99cd6..cacd564 100644 (file)
@@ -10,7 +10,7 @@
     <!--
 body {
         background-color: #000000;
-        background-image: url(back.gif);
+        background-image: url(~~pathtobase~~back.gif);
         background-repeat: repeat;
         background-attachment: fixed;
         color: #AEAEAE;
index ef37b3a..13ad283 100644 (file)
@@ -10,7 +10,7 @@
     <!--
 body {
         background-color: #000000;
-        background-image: url(back.gif);
+        background-image: url(~~pathtobase~~back.gif);
         background-repeat: repeat;
         background-attachment: fixed;
         color: #AEAEAE;
@@ -66,7 +66,7 @@ img {
     ~~iterate2_open_maxN~~
     <td align="center" valign="top" ~~colspan~~>
        ~~image_iteration~~
-       <p>~~ifvideo?~~<img src="video.png" alt="video" class="nothing"/>~~fi~~ ~~caption_iteration~~</p>
+       <p>~~ifvideo?~~<img src="~~pathtobase~~video.png" alt="video" class="nothing"/>~~fi~~ ~~caption_iteration~~</p>
     </td>
     ~~iterate2_close~~
 </tr>
diff --git a/data/booh/themes/sbs/root/booh.js b/data/booh/themes/sbs/root/booh.js
new file mode 100644 (file)
index 0000000..c9fdef6
--- /dev/null
@@ -0,0 +1,392 @@
+var images_ary = new Array();
+var images_loaded = new Array();
+var current = 0;
+var slideshow = 0;
+var slideshow_pause = null;
+var slideshow_timer = null;
+
+for (i = 0; i < images.length; i++) { 
+    /* this array will contain 0 if image not yet loaded, 1 when loading,
+     * 2 when complete */
+    images_loaded[i] = 0;
+}
+
+function dbg(t) {
+    document.getElementById('dbg_text').innerHTML += t + "\n";
+}
+
+/* load image, return 1 if image is finished loading */
+function load(i) {
+    if (images_loaded[i] == 0) {
+        images_ary[i] = new Image();
+        images_ary[i].src = images[i];
+        images_loaded[i] = 1;
+    }
+    if (images_loaded[i] == 1) {
+        if (images_ary[i].complete) {
+            images_loaded[i] = 2;
+        } else {
+            return 0;
+        }
+    }
+    return 1;
+}
+
+function getparam(key) {
+    all_params = location.href.split("#")
+    if (all_params.length > 1) {
+        params = all_params[1].split("&");
+        for (i = 0; i < params.length; i++) {
+            keyvalue = params[i].split("=");
+            if (keyvalue[0] == key) {
+                return keyvalue[1];
+            }
+        }
+    }
+    return null;
+}
+
+function loadcurrent(img) {
+    for (i = 0; i < images.length; i++) {
+        if (images[i] == img) {
+            current = i;
+            display_current();
+            return;
+        }
+    }
+    current = 0;
+    display_current();
+}
+
+function browser_href() {
+    all = location.href.split("/");
+    return all[all.length - 1];
+}
+
+/* check URL for changes; allows the URL to reflect currently showed image */
+var currentURL = '';
+function checkURL() {
+    if (currentURL == 'ignore1') {
+        // do nothing
+    } else if (currentURL == 'ignore2') {
+        currentURL = browser_href();
+    } else {
+        href = browser_href();
+        if (href != currentURL) {
+            currentURL = href;
+            img = getparam('current');
+            loadcurrent(img);
+        }
+    }
+    setTimeout("checkURL()", 50);
+}
+
+function preload() { 
+
+    /* favor current image, if user clicked on `last' or something */
+    load(current);
+
+    /* don't blindly preload all images at the beginning,
+     * but rather load them one by one, in order to get
+     * next ones faster, beginning with next to current
+     */
+    if (current + 1 < images.length && load(current + 1) == 0) {
+        setTimeout("preload()", 50);
+        return;
+    }
+    if (current - 1 >= 0 && load(current - 1) == 0) {
+        setTimeout("preload()", 50);
+        return;
+    }
+
+    for (i = current + 2; i < images.length && i <= current + 5; i++) { 
+        if (load(i) == 0) {
+            setTimeout("preload()", 50);
+            return;
+        }
+    }
+    for (i = current - 2; i >= current - 3; i--) { 
+        if (i >= 0) {
+            if (load(i) == 0) {
+                setTimeout("preload()", 50);
+                return;
+            }
+        }
+    }
+
+    setTimeout("preload()", 50);
+}
+
+function add_cookie(val) {
+    var expires = new Date(new Date().getTime() + (30 * 86400000));  // 30 days
+    document.cookie = val
+                      + '; expires=' + expires.toGMTString()
+                      + '; path=/';
+}
+
+function get_cookie(key) {
+    if (document.cookie) {
+        var index = document.cookie.indexOf(key);
+        if (index != -1) {
+            var oleft = (document.cookie.indexOf('=', index) + 1);
+            var oright = document.cookie.indexOf(';', index);
+            if (oright == -1) {
+                oright = document.cookie.length;
+            }
+            return document.cookie.substring(oleft, oright);
+        }
+    }
+    return null;
+}
+
+function init() {
+
+
+    preferred_pause = get_cookie('booh-slideshow-pause-' + dbltilda_theme);
+    if (preferred_pause != null) {
+        document.getElementById('secs').value = preferred_pause;
+    }
+
+    if (getparam('run_slideshow')) {
+        toggle_slideshow();
+    }
+
+    checkURL();
+
+    preload();
+
+    if (images.length == 1) {
+        document.getElementById("b_slideshow").disabled = true;
+        document.getElementById("b_slideshow").setAttribute("class", "disabled");
+    }
+
+    if (navigator.userAgent.indexOf('Opera') == -1) {
+        document.onkeydown = keyDownEvent;
+    }
+}
+
+function update_sensibilities() {
+    if (current == 0) {
+        document.getElementById("b_first").disabled = true;
+        document.getElementById("b_previous").disabled = true;
+        document.getElementById("b_first").setAttribute("class", "disabled");
+        document.getElementById("b_previous").setAttribute("class", "disabled");
+    } else {
+        document.getElementById("b_first").disabled = false;
+        document.getElementById("b_previous").disabled = false;
+        document.getElementById("b_first").removeAttribute("class");
+        document.getElementById("b_previous").removeAttribute("class");
+    }
+
+    if (current == images.length - 1) {
+        document.getElementById("b_next").disabled = true;
+        document.getElementById("b_last").disabled = true;
+        document.getElementById("b_next").setAttribute("class", "disabled");
+        document.getElementById("b_last").setAttribute("class", "disabled");
+    } else {
+        document.getElementById("b_next").disabled = false;
+        document.getElementById("b_last").disabled = false;
+        document.getElementById("b_next").removeAttribute("class");
+        document.getElementById("b_last").removeAttribute("class");
+    }
+}
+
+function set_cursor_(value, element) {
+
+    if (!element || !element.style) {
+        return;
+    }
+
+    element.style.cursor = value;
+
+    children = element.childNodes;
+    for (i = 0; i < children.length; i++) {
+        set_cursor_(value, children.item[i]);
+    }
+}
+
+function set_cursor(value) {
+    set_cursor_(value, document.getElementById('body'));
+    set_cursor_(value, document.getElementById('b_first'));
+    set_cursor_(value, document.getElementById('b_previous'));
+    set_cursor_(value, document.getElementById('b_next'));
+    set_cursor_(value, document.getElementById('b_last'));
+}
+
+function show_current_text() {
+    /* don't show text if image not yet loaded because navigator
+     * won't refresh it during load */
+    if (images_loaded[current] == 2) {
+        document.getElementById('image_counter').innerHTML = ( current + 1 ) + "/" + images.length;
+        document.getElementById('main_text').innerHTML = captions[current];
+        for (i = 0; i < other_sizes.length; i++) { 
+            if (other_sizes[i] == "original") {
+                document.getElementById('link' + other_sizes[i]).href = eval("images_" + other_sizes[i] + "[current]");
+            } else {
+                document.getElementById('link' + other_sizes[i]).href = 'image-' + other_sizes[i] + dbltilda_htmlsuffix + '#current=' + eval("images_" + other_sizes[i] + "[current]");
+            }
+        }
+        document.getElementById('thumbnails').href = 'thumbnails-' + dbltilda_current_size + '-' + thumbnailspages[current] + dbltilda_htmlsuffix + '#' + images[current];
+        set_cursor("default");
+    } else {
+        setTimeout("show_current_text()", 50);
+        set_cursor("wait");
+    }
+}
+
+function display_current() {
+    document.main_img.src = images[current];
+    oldhref = browser_href();
+    newhref = 'image-' + dbltilda_current_size + dbltilda_htmlsuffix + '#current=' + images[current];
+    if (oldhref != newhref) {
+        currentURL = 'ignore1';
+        location.href = newhref;
+        currentURL = 'ignore2';
+    }
+    show_current_text();
+    update_sensibilities();
+}
+
+function first() {
+    if (slideshow == 1) {
+        toggle_slideshow(true);
+    }
+    
+    current = 0;
+    display_current();
+}
+
+function next() {
+    if (slideshow == 1) {
+        toggle_slideshow(true);
+    }
+
+    if (current < images.length - 1) {
+        current++;
+        display_current();
+    }
+}
+
+function next10() {
+    if (slideshow == 1) {
+        toggle_slideshow(true);
+    }
+
+    if (current < images.length - 11) {
+        current += 10;
+    } else {
+        current = images.length - 1;
+    }
+    display_current();
+}
+
+function previous() {
+    if (slideshow == 1) {
+        toggle_slideshow(true);
+    }
+
+    if (current > 0) {
+        current--;
+        display_current();
+    }
+}
+
+function previous10() {
+    if (slideshow == 1) {
+        toggle_slideshow(true);
+    }
+
+    if (current > 10) {
+        current -= 10;
+    } else {
+        current = 0;
+    }
+    display_current();
+}
+
+function last() {
+    if (slideshow == 1) {
+        toggle_slideshow(true);
+    }
+
+    current = images.length - 1;
+    display_current();
+}
+
+function keyDownEvent(key) {
+    if (!key) {
+        key = event;
+        key.which = key.keyCode;
+    }
+    if (key.altKey || key.ctrlKey || key.shiftKey) {
+        return;
+    }
+    switch (key.which) {
+      case 36: // home
+        first();
+        break;
+      case 35: // end
+        last();
+        break;
+      case 37: // left
+        previous();
+        break;
+      case 39: // right
+        next();
+        break;
+      case 38: // up
+        previous10();
+        break;
+      case 40: // down
+        next10();
+        break;
+    }
+}
+
+function toggle_slideshow(now) {
+    if (slideshow == 0) {
+        slideshow_pause = document.getElementById('secs').value;
+        add_cookie('booh-slideshow-pause-' + dbltilda_theme + '=' + slideshow_pause)
+        document.getElementById("b_slideshow").value = dbltilda_stop_slideshow;
+        slideshow = 1;
+        if (current == images.length - 1) {
+            current = -1;
+        }
+        if (now) {
+            run_slideshow();
+        } else {
+            setTimeout("run_slideshow()", slideshow_pause * 1000);
+        }
+    } else {
+        clearTimeout(slideshow_timer);
+        document.getElementById("b_slideshow").value = dbltilda_run_slideshow;
+        slideshow = 0;
+    }
+}
+
+function run_slideshow() {
+    if (slideshow == 0) {
+        return;
+    }
+
+    if (images_loaded[current + 1] == 2) {
+        current++;
+        display_current();
+        slideshow_timer = setTimeout("run_slideshow()", slideshow_pause * 1000);
+    } else {
+        slideshow_timer = setTimeout("run_slideshow()", 50);
+    }
+
+    if (current == images.length - 1) {
+        toggle_slideshow(true);
+    }
+}
+
+function set_preferred_size(val) {
+    var expires = new Date(new Date().getTime() + (30 * 86400000));  // 30 days
+    document.cookie = 'booh-preferred-size-' + dbltilda_theme + '='
+                      + val
+                      + '; expires=' + expires.toGMTString()
+                      + '; path=/';
+}
+
index 9079674..fa4be98 100644 (file)
@@ -6,6 +6,7 @@
     <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">
     ~~~image_head_code~~~
+    <script type="text/javascript" src="~~pathtobase~~booh.js"/>
     <style type="text/css" media="screen">
     <!--
 body {
index 50b24b8..2bd06fc 100644 (file)
@@ -75,7 +75,7 @@ img {
     ~~iterate2_open_maxN~~
     <td align="center" valign="top" ~~colspan~~>
        <div class="imager">~~image_iteration~~</div>
-       ~~ifvideo?~~<img src="video.png" alt="video" class="nothing"/>~~fi~~ ~~caption_iteration~~
+       ~~ifvideo?~~<img src="~~pathtobase~~video.png" alt="video" class="nothing"/>~~fi~~ ~~caption_iteration~~
     </td>
     ~~iterate2_close~~
 </tr>
index 9b67d91..3280699 100644 (file)
@@ -6,7 +6,7 @@
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
     <meta name="author" content="'Simple' theme - Guillaume Cottenceau"/>
     ~~~image_head_code~~~
-    <script type="text/javascript" src="~~pathtobase~~booh.js"></script>
+    <script type="text/javascript" src="~~pathtobase~~booh.js"/>
     <link rel="stylesheet" type="text/css" href="~~pathtobase~~booh.css" media="screen" />
 </head>