summaryrefslogtreecommitdiff
path: root/js/gallery.js
diff options
context:
space:
mode:
authorjules <jules@okfoc.us>2014-01-25 23:24:36 -0500
committerjules <jules@okfoc.us>2014-01-25 23:24:36 -0500
commit9433b20670a1eada77e1a4372a8f8ccad6f499c3 (patch)
treec01c78b3c724d23d23ee4fc044b2d864fc60d382 /js/gallery.js
parente35a55d8dbc8696b0c5ab2f26cc4801957324394 (diff)
split out help and whatever else
Diffstat (limited to 'js/gallery.js')
-rw-r--r--js/gallery.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/js/gallery.js b/js/gallery.js
index 16ecdd8..d114ec6 100644
--- a/js/gallery.js
+++ b/js/gallery.js
@@ -3,7 +3,10 @@
var gallery = {}
-gallery.init = function(){
+gallery.init = function(choose){
+ if (choose) {
+ galler.choose = choose;
+ }
gallery.bind()
}
@@ -52,3 +55,10 @@ gallery.image = function(im){
gallery.click = function(){
gallery.choose()
}
+
+// template for choose function.. bound to an image object
+gallery.choose = function(){
+ var img = this
+ var imageURL = this.src
+}
+