Skip to content

Commit

Permalink
put some niceties on the register page
Browse files Browse the repository at this point in the history
  • Loading branch information
hydrogen18 committed Aug 13, 2013
1 parent b762436 commit 02ae290
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
8 changes: 8 additions & 0 deletions html/invite.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@

<link rel="stylesheet" type="text/css" href="torrents.css">


<div class="contentBox" id="success" style="display:none;border:1px solid black;height:9em;width:14em;z-index:1;position:relative;" >
<p style="text-align:center;">Congratulations, you're account has been created!</p>

<p style="text-align:center;"><a href="index.html" >Proceed to the login page</a></p>

</div>

<div id="main" align="center">

<div id="message" style="color:red;" > </div>
Expand Down
12 changes: 11 additions & 1 deletion html/js/invite.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ $(document).ready(function(){

});


Fairywren.register = function()
{
var errDisplay = $("#message");
Expand Down Expand Up @@ -75,7 +76,7 @@ Fairywren.register = function()
done(
function(data)
{
window.location = 'index.html';
Fairywren.register.showSuccess();
}
).fail(function(jqXhr,textStatus,errorThrown)
{
Expand All @@ -86,3 +87,12 @@ Fairywren.register = function()
}


Fairywren.register.showSuccess = function()
{
$("div").hide();
var div = $("div#success");
div.show();
div.css("position","absolute");
div.css("top", ( $(window).height() - div.height() ) / 2+$(window).scrollTop() + "px");
div.css("left", ( $(window).width() - div.width() ) / 2+$(window).scrollLeft() + "px");
};

0 comments on commit 02ae290

Please sign in to comment.