From f952040dd44b914b2d5e405567eb655757dfc85d Mon Sep 17 00:00:00 2001 From: hukl Date: Thu, 17 Sep 2009 11:03:35 +0200 Subject: added shadowbody, first js gallery initializer and template modifications --- public/javascripts/public.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 public/javascripts/public.js (limited to 'public/javascripts/public.js') diff --git a/public/javascripts/public.js b/public/javascripts/public.js new file mode 100644 index 0000000..f4619e7 --- /dev/null +++ b/public/javascripts/public.js @@ -0,0 +1,25 @@ +$(document).ready(function(){ + if ($("#headline_image img").length != 0) { + image_handler.initialize(); + } +}); + + +var image_handler = { + initialize : function() { + + path_name = window.location.pathname; + locale_rexexp = /^\/(en|de)\\/; + locale_match = locale_rexexp.exec(path_name); + + if (locale_match) { + locale = locale_match[0]; + } + else { + locale = "/de/"; + } + + path = path_name.replace(/\/(de|en)*\/*/, ""); + gallery_path = ""; + } +}; \ No newline at end of file -- cgit v1.3