|
|
@@ -6,38 +6,21 @@ header('Content-Type: text/html; charset=UTF-8');
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
|
<head>
|
|
|
|
|
|
- <script src="/jquery-1.10.2.js">
|
|
|
+ <script src="js/jquery-1.10.2.js">
|
|
|
</script>
|
|
|
<script type="text/javascript">
|
|
|
$(document).ready(function () {
|
|
|
-
|
|
|
- $('.basic-grey, #overlay-contact').hide();
|
|
|
- var clickExit=false;
|
|
|
- var clickOutside=false;
|
|
|
-
|
|
|
+ $("#overlay-contact").css("height",$(document).height()+"px");
|
|
|
$('.contact').click(function(event){
|
|
|
- var tempScrollTop = $(window).scrollTop();
|
|
|
event.preventDefault();
|
|
|
$('.basic-grey, #overlay-contact').toggle();
|
|
|
-
|
|
|
-
|
|
|
- if($('.basic-grey').is(':visible')){
|
|
|
-
|
|
|
+ if($('.basic-grey').is(':visible')){
|
|
|
$('#overlay-contact').click(function(){
|
|
|
$('.basic-grey, #overlay-contact').hide();
|
|
|
- $(window).scrollTop(tempScrollTop);
|
|
|
- //clickOutside=true;
|
|
|
});
|
|
|
$('#exit').click(function(){
|
|
|
$('.basic-grey, #overlay-contact').hide();
|
|
|
- $(window).scrollTop(tempScrollTop);
|
|
|
- //clickExit=true;
|
|
|
});
|
|
|
-
|
|
|
- //if( clickOutside==true ){
|
|
|
- // $('.basic-grey, #overlay-contact').hide(); TODO: SIMPLIFICAR
|
|
|
- // $(window).scrollTop(tempScrollTop);
|
|
|
- // }
|
|
|
}
|
|
|
});
|
|
|
|