X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=pr0n-fullscreen.js;h=4092ea235ac69f50e1072950e436f0d5118d94ca;hb=ef46d408f973eb86d59b38edb86232f2998efa5b;hp=31b51ec3d4470b4ff3c9ed5ff16fbd4290016ff4;hpb=57eab1fc20fd2c7f972a12631b2cca978fb9f8cb;p=pr0n diff --git a/pr0n-fullscreen.js b/pr0n-fullscreen.js index 31b51ec..4092ea2 100644 --- a/pr0n-fullscreen.js +++ b/pr0n-fullscreen.js @@ -98,6 +98,7 @@ function relayout() set_opacity("previous", can_go_previous() ? 0.7 : 0.1); set_opacity("next", can_go_next() ? 0.7 : 0.1); + set_opacity("close", 0.7); } function set_opacity(id, amount) @@ -204,6 +205,11 @@ function key_up(which) { } } +function do_close() +{ + window.location = global_return_url; +} + // enable the horrible horrible IE PNG hack function ie_png_hack() {