summaryrefslogtreecommitdiff
path: root/share/frontend/imgrid/js
diff options
context:
space:
mode:
authorpepperpepperpepper <pepper@scannerjammer.com>2015-11-23 15:35:04 -0800
committerpepperpepperpepper <pepper@scannerjammer.com>2015-11-23 15:35:04 -0800
commit9daba204637fa525ab698877671c3853c29fc129 (patch)
treea378818a5bc3fcc1d5e1ca298440aea2b715bf5b /share/frontend/imgrid/js
parent3f681da1bb814fbad5f56489bc808e960d642a28 (diff)
writing upload
Diffstat (limited to 'share/frontend/imgrid/js')
-rw-r--r--share/frontend/imgrid/js/colors_iframe.js45
-rw-r--r--share/frontend/imgrid/js/intro.js5
2 files changed, 50 insertions, 0 deletions
diff --git a/share/frontend/imgrid/js/colors_iframe.js b/share/frontend/imgrid/js/colors_iframe.js
new file mode 100644
index 0000000..5e6d5b2
--- /dev/null
+++ b/share/frontend/imgrid/js/colors_iframe.js
@@ -0,0 +1,45 @@
+
+
+
+
+function launch_iframe(input_target){
+ $.fancybox.open({
+ href : '/im/colors/index.html',
+ width : 1100, // set the width
+ height : 710,
+ fitToView : true,
+ autoDimensions:false,
+ autoSize:false,
+ type : 'iframe',
+ closeBtn : false,
+ padding : 5,
+ beforeShow : function(){
+ $('.fancybox-iframe').contents().find('#submitvalue').click(function(){
+ $('.fancybox-iframe').contents().find('form').submit();
+ $.fancybox.close();
+ });
+ },
+ beforeClose : function(){
+ x = $('.fancybox-iframe').contents().find('#namespace').val();
+ },
+ afterClose: function(){
+ $(input_target).val(x);
+ }
+ });
+}
+$(document).ready(function(){
+ if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
+ return;
+ }
+ var element_list = [".bg-color", ".line-color", ".planebgcolor", ".skycolor"]
+ element_list.forEach(
+ function(l){
+ console.log("a"+l)
+ $("a"+l).click(function(event){
+ event.preventDefault();
+ launch_iframe("input"+l)
+ });
+ }
+ )
+
+})
diff --git a/share/frontend/imgrid/js/intro.js b/share/frontend/imgrid/js/intro.js
new file mode 100644
index 0000000..7165325
--- /dev/null
+++ b/share/frontend/imgrid/js/intro.js
@@ -0,0 +1,5 @@
+$(document).ready(function(){
+ $('#intro').fadeOut(1000,function(){
+ $('#intro').remove()
+ })
+});