From d3e7b5708deffbed864c916de22663f48333c58b Mon Sep 17 00:00:00 2001 From: yo mama Date: Tue, 22 Sep 2015 00:51:40 -0700 Subject: finishing server --- share/frontend/impattern/js/overlay.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 share/frontend/impattern/js/overlay.js (limited to 'share/frontend/impattern/js/overlay.js') 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(); +} + -- cgit v1.2.3-70-g09d2