Commit d8efeff3 by Galen Frechette

hooks up links from login modal to signup modal and signup modal to login modal

parent b6ebcfdd
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
$(this).click(function(e) { $(this).click(function(e) {
$(".modal").hide();
var modal_id = $(this).attr("href"); var modal_id = $(this).attr("href");
$("#lean_overlay").click(function() { $("#lean_overlay").click(function() {
......
...@@ -2482,6 +2482,13 @@ header.global { ...@@ -2482,6 +2482,13 @@ header.global {
text-align: center; text-align: center;
text-shadow: 0 1px rgba(255, 255, 255, 0.4); text-shadow: 0 1px rgba(255, 255, 255, 0.4);
z-index: 2; } z-index: 2; }
.modal .inner-wrapper #enroll_error, .modal .inner-wrapper #login_error {
background: #fd5757;
border: 1px solid #ca1111;
color: #8f0e0e;
display: none;
margin-bottom: 20px;
padding: 12px; }
.modal .inner-wrapper form { .modal .inner-wrapper form {
margin-bottom: 12px; margin-bottom: 12px;
padding: 0px 40px; padding: 0px 40px;
......
...@@ -106,13 +106,14 @@ ...@@ -106,13 +106,14 @@
} }
} }
//#enroll_error { #enroll_error, #login_error {
//background: rgb(253, 87, 87); background: rgb(253, 87, 87);
//border: 1px solid rgb(202, 17, 17); border: 1px solid rgb(202, 17, 17);
//color: rgb(143, 14, 14); color: rgb(143, 14, 14);
//margin-bottom: 20px; display: none;
//padding: 12px; margin-bottom: 20px;
//} padding: 12px;
}
//#enroll { //#enroll {
//padding: 0 40px; //padding: 0 40px;
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<section class="login-extra"> <section class="login-extra">
<p> <p>
<span>Not enrolled? <a href="#">Sign up.</a></span> <span>Not enrolled? <a href="#signup-modal" class="close-login" rel="leanModal">Sign up.</a></span>
<a href="#" class="pwd-reset">Forgot password?</a> <a href="#" class="pwd-reset">Forgot password?</a>
</p> </p>
</section> </section>
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
} else if($('#login_error').length == 0) { } else if($('#login_error').length == 0) {
$('#login_form').prepend('<div id="login_error">Email or password is incorrect.</div>'); $('#login_form').prepend('<div id="login_error">Email or password is incorrect.</div>');
} else { } else {
$('#login_error').stop().css("background-color", "#933").animate({ backgroundColor: "#333"}, 2000); $('#login_error').stop().css("display", "block");
} }
} }
); );
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<label class="honor-code"> <label class="honor-code">
<input name="honor_code" type="checkbox" value="true"> <input name="honor_code" type="checkbox" value="true">
I agree to the I agree to the
<a href="#">Honor Code</a> <a href="/t/honor.html" target="blank">Honor Code</a>
, sumarized below as: , sumarized below as:
</label> </label>
...@@ -53,7 +53,6 @@ ...@@ -53,7 +53,6 @@
<hr> <hr>
</div> </div>
<div class="submit"> <div class="submit">
<input name="submit" type="submit" value="Create My Account"> <input name="submit" type="submit" value="Create My Account">
</div> </div>
...@@ -61,7 +60,7 @@ ...@@ -61,7 +60,7 @@
<section class="login-extra"> <section class="login-extra">
<p> <p>
<span>Already have an account? <a href="#">Login.</a></span> <span>Already have an account? <a href="#login-modal" class="close-signup" rel="leanModal">Login.</a></span>
</p> </p>
</section> </section>
...@@ -101,7 +100,7 @@ ...@@ -101,7 +100,7 @@
if(json.success) { if(json.success) {
$('#enroll').html(json.value); $('#enroll').html(json.value);
} else { } else {
$('#enroll_error').html(json.value).stop().css("background-color", "#933").animate({ backgroundColor: "#333"}, 2000); $('#enroll_error').html(json.value).stop().css("display", "block");
} }
} }
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment