summaryrefslogtreecommitdiff
path: root/share/frontend/impattern/js/overlay.js
diff options
context:
space:
mode:
Diffstat (limited to 'share/frontend/impattern/js/overlay.js')
-rw-r--r--share/frontend/impattern/js/overlay.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/share/frontend/impattern/js/overlay.js b/share/frontend/impattern/js/overlay.js
new file mode 100644
index 0000000..49a70d1
--- /dev/null
+++ b/share/frontend/impattern/js/overlay.js
@@ -0,0 +1,19 @@
+$("#overlay > .close").click(function(){
+ $("#overlay").hide();
+});
+$('document').ready(function(){
+ $("#overlay").click( function(){
+ if( event.target == this ){
+ $("#overlay").hide();
+ return false;
+ }
+ });
+})
+function show_finished_image(image_url){
+ $("#overlay").show();
+ $("#draw_protector").hide();
+ $('#final_image > img').attr("src", image_url);
+ $('#links > input').attr("value", image_url);
+ $("#final_image").show();
+}
+