|
|
|
@ -1,7 +1,6 @@
|
|
|
|
|
<!-- START Register Template -->
|
|
|
|
|
|
|
|
|
|
<h1>Register</h1>
|
|
|
|
|
<div class="well">
|
|
|
|
|
<div class="row-fluid">
|
|
|
|
|
<div class="well {register_window:spansize}">
|
|
|
|
|
<form method="post" action="/register">
|
|
|
|
|
<label for="email">Email Address</label><input type="email" name="email" placeholder="Enter Email Address" id="email" /> <span id="email-notify" class="label label-important"></span> <br />
|
|
|
|
|
<label for="username">Username</label><input type="text" name="username" placeholder="Enter Username" id="username" /> <span id="username-notify" class="label label-success"></span> <br />
|
|
|
|
@ -9,6 +8,15 @@
|
|
|
|
|
<button class="btn btn-primary" id="register" type="submit">Register Now</button>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="well span6 {alternate_logins:display}">
|
|
|
|
|
<h4>Alternative Logins</h4>
|
|
|
|
|
<ul class="alt-logins">
|
|
|
|
|
<li data-url="/auth/twitter" class="twitter {twitter:display}"></li>
|
|
|
|
|
<li data-url="/auth/google" class="google {google:display}"></li>
|
|
|
|
|
<li data-url="/auth/facebook" class="facebook {facebook:display}"></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
(function() {
|
|
|
|
|
var username = document.getElementById('username'),
|
|
|
|
@ -47,5 +55,13 @@
|
|
|
|
|
email_notify.innerHTML = '';
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Alternate Logins
|
|
|
|
|
var altLoginEl = document.querySelector('.alt-logins');
|
|
|
|
|
altLoginEl.addEventListener('click', function(e) {
|
|
|
|
|
if (e.target.nodeName === 'LI') {
|
|
|
|
|
document.location.href = e.target.getAttribute('data-url');
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}());
|
|
|
|
|
</script>
|