Skip to content

Commit

Permalink
Replaced alert box [Splash 2]
Browse files Browse the repository at this point in the history
  • Loading branch information
heyqule authored and heyqule committed Nov 26, 2012
1 parent c925890 commit cd42359
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion splash2/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ h3:hover {
color: #333;
}

#thank-you, #email-check {
#thank-you-consumer, #email-check-consumer {
position: absolute;
top: 375px;
left: 295px;
Expand Down
4 changes: 2 additions & 2 deletions splash2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ <h2>Remember that time you were sitting on the toilet and you ran out of toilet
<input type="text" name="consumer-email" placeholder="Enter your email" required>
</form>
<button value="consumer-confirm">Keep me informed!</button>
<h2 id="email-check">Please enter a valid email</h2>
<h2 id="thank-you">Thanks for your interest!</h2>
<h2 id="email-check-consumer">Please enter a valid email</h2>
<h2 id="thank-you-consumer">Thanks for your interest!</h2>
</section>

<h3 id="consumer-toggle">Are you a retailer?</h3>
Expand Down
7 changes: 4 additions & 3 deletions splash2/js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,13 @@ $(document).ready(function(){
$.post('email.php',{"email":email,"store":store},
function(data) {
if(data == 'done')
{
alert($("#thank-you").html());
{
$("#thank-you-"+attrName).show();
$("#email-check-"+attrName).hide();
}
else
{
alert("We have encounter an error. Give us a minute");
$("#email-check-"+attrName).show();
}
});

Expand Down

0 comments on commit cd42359

Please sign in to comment.