aboutsummaryrefslogtreecommitdiffstats
path: root/library/colorpicker/js/eye.js
diff options
context:
space:
mode:
authorStanislav Lechev [0xAF] <af@0xAF.org>2013-09-28 12:09:26 +0300
committerStanislav Lechev [0xAF] <af@0xAF.org>2013-09-28 12:23:55 +0300
commit24128a4e1f7074a50dc1f75585578830ea532b21 (patch)
tree67dc27f7da2322857e61d57f3cfc7bac9d83c439 /library/colorpicker/js/eye.js
parent4b3c56517446aa4f04c78887794cb49bda20c086 (diff)
downloadvolse-hubzilla-24128a4e1f7074a50dc1f75585578830ea532b21.tar.gz
volse-hubzilla-24128a4e1f7074a50dc1f75585578830ea532b21.tar.bz2
volse-hubzilla-24128a4e1f7074a50dc1f75585578830ea532b21.zip
Add colorpicker jquery plugin for themes
Diffstat (limited to 'library/colorpicker/js/eye.js')
-rw-r--r--library/colorpicker/js/eye.js34
1 files changed, 34 insertions, 0 deletions
diff --git a/library/colorpicker/js/eye.js b/library/colorpicker/js/eye.js
new file mode 100644
index 000000000..ea70e643f
--- /dev/null
+++ b/library/colorpicker/js/eye.js
@@ -0,0 +1,34 @@
+/**
+ *
+ * Zoomimage
+ * Author: Stefan Petre www.eyecon.ro
+ *
+ */
+(function($){
+ var EYE = window.EYE = function() {
+ var _registered = {
+ init: []
+ };
+ return {
+ init: function() {
+ $.each(_registered.init, function(nr, fn){
+ fn.call();
+ });
+ },
+ extend: function(prop) {
+ for (var i in prop) {
+ if (prop[i] != undefined) {
+ this[i] = prop[i];
+ }
+ }
+ },
+ register: function(fn, type) {
+ if (!_registered[type]) {
+ _registered[type] = [];
+ }
+ _registered[type].push(fn);
+ }
+ };
+ }();
+ $(EYE.init);
+})(jQuery);