From c51f35b3d5fe9ae33a0409563257a9fd343c3ec5 Mon Sep 17 00:00:00 2001 From: shish Date: Fri, 11 Apr 2008 05:40:20 +0000 Subject: [PATCH] core_scripts didn't really do much, and what it did was really theme stuff git-svn-id: file:///home/shish/svn/shimmie2/trunk@805 7f39781d-f577-437e-ae19-be835c7a54ca --- themes/danbooru/layout.class.php | 1 + .../danbooru}/script.js | 0 themes/default/layout.class.php | 1 + themes/default/script.js | 136 ++++++++++++++++++ 4 files changed, 138 insertions(+) rename {ext/core_scripts => themes/danbooru}/script.js (100%) create mode 100644 themes/default/script.js diff --git a/themes/danbooru/layout.class.php b/themes/danbooru/layout.class.php index 73a9146c..8d858d32 100644 --- a/themes/danbooru/layout.class.php +++ b/themes/danbooru/layout.class.php @@ -126,6 +126,7 @@ class Layout { $header_html + diff --git a/ext/core_scripts/script.js b/themes/danbooru/script.js similarity index 100% rename from ext/core_scripts/script.js rename to themes/danbooru/script.js diff --git a/themes/default/layout.class.php b/themes/default/layout.class.php index a3aa4689..a8d7c2b3 100644 --- a/themes/default/layout.class.php +++ b/themes/default/layout.class.php @@ -50,6 +50,7 @@ class Layout { $header_html + diff --git a/themes/default/script.js b/themes/default/script.js new file mode 100644 index 00000000..3b26466e --- /dev/null +++ b/themes/default/script.js @@ -0,0 +1,136 @@ +var defaultTexts = new Array(); + +window.onload = function(e) { + var sections=get_sections(); + for(var i=0;i