summaryrefslogtreecommitdiff
path: root/templates/classic/scripts-general.js
blob: c371bfa29f0c9e8a6d762b6ccaefe3ae81307e51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
}