From 236fd1d9f2009083fbbfce7190c27fbf1d7c88b8 Mon Sep 17 00:00:00 2001 From: yo mama Date: Fri, 7 Aug 2015 18:33:30 -0700 Subject: getting ready --- frontend/impattern/js/overlay.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 frontend/impattern/js/overlay.js (limited to 'frontend/impattern/js/overlay.js') diff --git a/frontend/impattern/js/overlay.js b/frontend/impattern/js/overlay.js new file mode 100644 index 0000000..49a70d1 --- /dev/null +++ b/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