diff options
| author | hukl <contact@smyck.org> | 2009-10-08 22:24:51 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-10-08 22:24:51 +0200 |
| commit | 2fd33c36428ae7684badc43dbe2142152f058b4e (patch) | |
| tree | c1025efc497973e268baa1b531120e726478d992 /public/javascripts | |
| parent | 0db008d0bfb0803e5b000fcf08058e7d01f588eb (diff) | |
enabled shadowbox for headline images on public pages. if js is disabled the regular html version is rendered
Diffstat (limited to 'public/javascripts')
| -rw-r--r-- | public/javascripts/public.js | 16 | ||||
| -rw-r--r-- | public/javascripts/shadowbox/resources/close.png | bin | 255 -> 0 bytes | |||
| -rw-r--r-- | public/javascripts/shadowbox/resources/next.png | bin | 248 -> 0 bytes | |||
| -rw-r--r-- | public/javascripts/shadowbox/resources/pause.png | bin | 155 -> 0 bytes | |||
| -rw-r--r-- | public/javascripts/shadowbox/resources/play.png | bin | 211 -> 0 bytes | |||
| -rw-r--r-- | public/javascripts/shadowbox/resources/previous.png | bin | 237 -> 0 bytes |
6 files changed, 16 insertions, 0 deletions
diff --git a/public/javascripts/public.js b/public/javascripts/public.js index f4619e7..0919360 100644 --- a/public/javascripts/public.js +++ b/public/javascripts/public.js | |||
| @@ -1,7 +1,23 @@ | |||
| 1 | Shadowbox.init({ | ||
| 2 | skipSetup : true | ||
| 3 | }); | ||
| 4 | |||
| 5 | |||
| 1 | $(document).ready(function(){ | 6 | $(document).ready(function(){ |
| 7 | |||
| 8 | Shadowbox.setup(".shadowbox_image", {gallery : "fofo"}) | ||
| 9 | |||
| 2 | if ($("#headline_image img").length != 0) { | 10 | if ($("#headline_image img").length != 0) { |
| 3 | image_handler.initialize(); | 11 | image_handler.initialize(); |
| 4 | } | 12 | } |
| 13 | |||
| 14 | $("div#headline_image a").bind("click", function() { | ||
| 15 | return false; | ||
| 16 | }); | ||
| 17 | |||
| 18 | $("div#headline_image a img").bind("click", function(){ | ||
| 19 | $(".shadowbox_image:first").trigger("click"); | ||
| 20 | }); | ||
| 5 | }); | 21 | }); |
| 6 | 22 | ||
| 7 | 23 | ||
diff --git a/public/javascripts/shadowbox/resources/close.png b/public/javascripts/shadowbox/resources/close.png deleted file mode 100644 index 33c1aab..0000000 --- a/public/javascripts/shadowbox/resources/close.png +++ /dev/null | |||
| Binary files differ | |||
diff --git a/public/javascripts/shadowbox/resources/next.png b/public/javascripts/shadowbox/resources/next.png deleted file mode 100644 index 0c950d6..0000000 --- a/public/javascripts/shadowbox/resources/next.png +++ /dev/null | |||
| Binary files differ | |||
diff --git a/public/javascripts/shadowbox/resources/pause.png b/public/javascripts/shadowbox/resources/pause.png deleted file mode 100644 index 0b5f804..0000000 --- a/public/javascripts/shadowbox/resources/pause.png +++ /dev/null | |||
| Binary files differ | |||
diff --git a/public/javascripts/shadowbox/resources/play.png b/public/javascripts/shadowbox/resources/play.png deleted file mode 100644 index d26c933..0000000 --- a/public/javascripts/shadowbox/resources/play.png +++ /dev/null | |||
| Binary files differ | |||
diff --git a/public/javascripts/shadowbox/resources/previous.png b/public/javascripts/shadowbox/resources/previous.png deleted file mode 100644 index f39220d..0000000 --- a/public/javascripts/shadowbox/resources/previous.png +++ /dev/null | |||
| Binary files differ | |||
