Permalink
Browse files

added coupon request button

  • Loading branch information...
1 parent 78ce6c9 commit 53bee3ed01572f4cac25d71ffdd6ccb9c279d499 @chrismatthieu chrismatthieu committed Dec 15, 2011
Showing with 17 additions and 7 deletions.
  1. +17 −7 developer.html
View
@@ -53,14 +53,22 @@ <h1>Welcome Nodesters!</h1>
<p>Nodester is a free and open source Node.JS hosting PaaS. Our Web Admin Panel is coming soon. Until then, here are a few tricks to get you started.</p>
<br/>
<h2><img src="rocket-md-right.png" width="30"> Requesting a Coupon Code to Register</h2>
- <p>curl -X POST -d "email=your_address@gmail.com" http://nodester.com/coupon</p>
+ <p>curl -X POST -d "email=your_address@gmail.com" http://nodester.com/coupon<br/><br/>
+ <div id="reqbutton" class="btn">OR CHEAT</div>
+ <div id="reqform" style="display: none"><br/>
+ <form action="/coupon" method="post">
+ <p><label for="email">Email Adderss:</label>
+ <input type="text" name="email" id="email" value="" /><input type="submit" name="send" class="formbutton" value="Send" />
+ </form>
+ </div>
+ <br/><br/>
+ </p>
<br/>
<h2><img src="rocket-md-right.png" width="30"> Registering with Coupon Code</h2>
<p>
curl -X POST -d "coupon=mycoupon&user=testuser&password=123&email=chris@nodester.com&rsakey=ssh-rsa AAAAB3NzaC1yc..." http://nodester.com/user<br><br/>
- - OR - <br/><br/>
- <div id="regbutton" class="btn">Use this web form</div>
- <div id="regform" style="display: none">
+ <div id="regbutton" class="btn">OR CHEAT</div>
+ <div id="regform" style="display: none"><br/>
<form action="/user" method="post">
<p><label for="name">Coupon:</label>
<input type="password" name="coupon" id="coupon" value="" /><br />
@@ -97,14 +105,16 @@ <h2><img src="rocket-md-right.png" width="30"> Launch Your Node.JS Application!<
</div>
<script>
+ $('#reqbutton').click(function() {
+ $('#reqform').toggle('slow', function() {
+ // Animation complete.
+ });
+ });
$('#regbutton').click(function() {
$('#regform').toggle('slow', function() {
// Animation complete.
});
});
- // $("#regbutton").click(function () {
- // $("#regform").toggle();
- // });
</script>
<footer>

0 comments on commit 53bee3e

Please sign in to comment.