summaryrefslogtreecommitdiff
path: root/share/frontend/impattern/js/overlay.js
blob: 49a70d197a2474d6e9ce23c70bcdcf0d36dd78e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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();
}