You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
461 B
JavaScript

$(function(){
var overlay = $('<div id="overlay"></div>');
overlay.show();
overlay.appendTo(document.body);
5 years ago
$('html, body').css('position', 'fixed');
$('.popup').show();
$('.popupclose').click(function(){
$('.popup').hide();
overlay.appendTo(document.body).remove();
5 years ago
$('html, body').css("position", "relative");
return false;
});
$('.x').click(function(){
$('.popup').hide();
overlay.appendTo(document.body).remove();
5 years ago
return false;
});
});