summaryrefslogtreecommitdiff
path: root/gallery/js
diff options
context:
space:
mode:
Diffstat (limited to 'gallery/js')
-rw-r--r--gallery/js/main.js41
-rw-r--r--gallery/js/querystring.js13
-rw-r--r--gallery/js/title.js (renamed from gallery/js/titleScrambler.js)18
3 files changed, 52 insertions, 20 deletions
diff --git a/gallery/js/main.js b/gallery/js/main.js
index 953e346..d97fab0 100644
--- a/gallery/js/main.js
+++ b/gallery/js/main.js
@@ -1,10 +1,23 @@
-var title_choices = [
+$(function(){
+ $("b").addClass("pulsate_and_grow");
+ $(".sorting-options").click(function(){
+
+ $(".sorting-options").click(function(){
+ if ($(this).hasClass("pulsate_opacity")){
+ $(this).removeClass("pulsate_opacity");
+ }
+ $(this).addClass("pulsate_opacity");
+
+ });
+ });
+});
+
ZeroClipboard.setMoviePath( 'http://asdf.us/swf/ZeroClipboard10.swf' );
var clip = new ZeroClipboard.Client();
clip.glue( 'd_clip_button' );
-var Dump =
- {
+
+var Dump = {
pick: function ()
{
Dump.pickUrl( $(this).attr("src") )
@@ -47,7 +60,8 @@ var Dump =
{
window.location.href = '?"""+back_QS+"""'
}
- }
+}
+
function applyTag(tagname){
tag_regex = /&tag=[^&]*/;
if (document.URL.match(tag_regex)){
@@ -123,22 +137,9 @@ var Main =
Dump.clear()
}
}
- 'Keep on pickin\' on..',
- 'Pickolaus Pickleby by Charles Pickens!',
- 'You pick potato and I pick potahto...',
- 'Take your piq!',
- 'Show em what you got',
- 'I sure know how to pick \'em',
- 'Jus pick somethin already!',
- 'You can\'t pick your friends...',
- 'Select your image my liege',
- 'There\'s a time to choose...',
- 'gimme a choice! gimme lil\' choice-a-that...',
- 'You choose you lose',
- 'novels by James CHOICE...',
- 'Choose away, chooser-man...',
-]
-document.title = title_choices[Math.floor(Math.random() * title_choices.length)]
+
+
+
$(function(){
var imagedata = [ """ //needs a synchronous call here
for (var i=0; i< (imagedata.length - 1); i++){
diff --git a/gallery/js/querystring.js b/gallery/js/querystring.js
new file mode 100644
index 0000000..79c2a4d
--- /dev/null
+++ b/gallery/js/querystring.js
@@ -0,0 +1,13 @@
+(function($) {
+ $.QueryString = (function(a) {
+ if (a == "") return {};
+ var b = {};
+ for (var i = 0; i < a.length; ++i)
+ {
+ var p=a[i].split('=');
+ if (p.length != 2) continue;
+ b[p[0]] = decodeURIComponent(p[1].replace(/\+/g, " "));
+ }
+ return b;
+ })(window.location.search.substr(1).split('&'))
+})(jQuery);
diff --git a/gallery/js/titleScrambler.js b/gallery/js/title.js
index 6948cbf..a9ac584 100644
--- a/gallery/js/titleScrambler.js
+++ b/gallery/js/title.js
@@ -1,3 +1,21 @@
+var title_choices = [
+ 'Keep on pickin\' on..',
+ 'Pickolaus Pickleby by Charles Pickens!',
+ 'You pick potato and I pick potahto...',
+ 'Take your piq!',
+ 'Show em what you got',
+ 'I sure know how to pick \'em',
+ 'Jus pick somethin already!',
+ 'You can\'t pick your friends...',
+ 'Select your image my liege',
+ 'There\'s a time to choose...',
+ 'gimme a choice! gimme lil\' choice-a-that...',
+ 'You choose you lose',
+ 'novels by James CHOICE...',
+ 'Choose away, chooser-man...'
+]
+document.title = title_choices[Math.floor(Math.random() * title_choices.length)]
+
var titleSwitch = true;
var FillerChars = [ "(",")","|","1","4","\\", "9","_" ];
var titleArray = document.title.split("");