summaryrefslogtreecommitdiff
path: root/templates/classic/scripts-general.js
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2015-02-01 16:51:35 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2015-02-01 16:51:35 +0100
commitcc4f17e0d8b9c027448a75dafa8194a36d283acd (patch)
treecd981250e9b468b08bfa319ad0dfdf465223d7ff /templates/classic/scripts-general.js
parentb2d0c4ea27c3885d69c9067b579a075a65ff3834 (diff)
downloadcataract-cc4f17e0d8b9c027448a75dafa8194a36d283acd.tar.xz
Move the current design templates in the "classic" subdir
Let's call this design a "classic" one.
Diffstat (limited to 'templates/classic/scripts-general.js')
-rw-r--r--templates/classic/scripts-general.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/templates/classic/scripts-general.js b/templates/classic/scripts-general.js
new file mode 100644
index 0000000..c371bfa
--- /dev/null
+++ b/templates/classic/scripts-general.js
@@ -0,0 +1,21 @@
+function read_exif_table_cookie () {
+ var exif_table_cookie = document.cookie;
+ exif_table_cookie = exif_table_cookie.split ("=");
+ set_exif_table_visibility (exif_table_cookie[1]);
+}
+
+function write_exif_table_cookie (visible) {
+ var exif_table_cookie = "exif_table_visible=" + visible;
+ document.cookie = exif_table_cookie;
+}
+
+function set_exif_table_visibility (visible) {
+ document.getElementById('exif_table').style.display = visible == "yes" ? 'block' : 'none';
+ document.getElementById('exif_line').style.display = visible == "yes" ? 'none' : 'block';
+}
+
+function preload_image (src) {
+ img = new Image();
+ img.src = src;
+}
+