Skip to content

Commit

Permalink
Merge pull request #1 from alex-charos/master
Browse files Browse the repository at this point in the history
set position of access denied and granted to fixed (scrolls with page)
  • Loading branch information
rmvgaines authored Jul 16, 2016
2 parents 12f6c6b + 76c7352 commit 10d3e71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var Typer={
return false;
},

makeAccess:function(){//create Access Granted popUp FIXME: popup is on top of the page and doesn't show is the page is scrolled
makeAccess:function(){//create Access Granted popUp
Typer.hidepop(); // hide all popups
Typer.accessCount=0; //reset count
var ddiv=$("<div id='gran'>").html(""); // create new blank div and id "gran"
Expand All @@ -46,7 +46,7 @@ var Typer={
$(document.body).prepend(ddiv); // prepend div to body
return false;
},
makeDenied:function(){//create Access Denied popUp FIXME: popup is on top of the page and doesn't show is the page is scrolled
makeDenied:function(){//create Access Denied popUp
Typer.hidepop(); // hide all popups
Typer.deniedCount=0; //reset count
var ddiv=$("<div id='deni'>").html(""); // create new blank div and id "deni"
Expand Down
4 changes: 2 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ body{
}

.accessGranted{
position:absolute;
position:fixed;
top:200px;
background:#333;
padding:20px;
Expand All @@ -17,7 +17,7 @@ body{
}

.accessDenied{
position:absolute;
position:fixed;
top:200px;
color:#F00;
background:#511;
Expand Down

0 comments on commit 10d3e71

Please sign in to comment.