Skip to content

Instantly share code, notes, and snippets.

@tankbusta
Created September 11, 2013 17:52
Show Gist options
  • Save tankbusta/6527242 to your computer and use it in GitHub Desktop.
Save tankbusta/6527242 to your computer and use it in GitHub Desktop.
Hehe
doctype 5
html(lang='en')
head
meta(charset='utf-8')
meta(name='viewport', content='width=device-width, initial-scale=1.0')
meta(name='description', content='')
title Snowman » Login
link(href='/stylesheets/bootstrap.css', rel='stylesheet')
link(href='/stylesheets/signin.css', rel='stylesheet')
link(href='/stylesheets/clippy.css', rel='stylesheet')
script(src='/javascripts/jquery.js')
script(src='/javascripts/clippy.min.js')
script(type='text/javascript').
var clip_agent = null;
function load_clippy() {
clippy.load('Clippy', function(agent) {
agent.show();
clip_agent = agent;
if (window.location.search.substring(1)) {
var pair = window.location.search.substring(1).split("=");
if(pair[0] === 'error') {
agent.speak('#{error}');
agent.play('Alert');
}
}
});
}
setTimeout(load_clippy, 3000);
body
div.container
form.form-signin(action='/user/login', method='POST')
h2.form-signin-heading.snowman ☃
if error
div.alert.alert-danger
p= error
input.form-control(type='text', placeholder='Username', name='username', autofocus)
input.form-control(type='password', placeholder='Password', name='password')
button.btn.btn-lg.btn-primary.btn-block(type='submit') Sign in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment