2013-09-05 19:53:23 -04:00
|
|
|
extends layout
|
|
|
|
|
|
|
|
block content
|
2013-09-18 13:45:40 -04:00
|
|
|
section#loginbox.content.box
|
|
|
|
.head
|
2015-02-09 08:56:02 -05:00
|
|
|
h2
|
2013-09-18 13:45:40 -04:00
|
|
|
| Log in
|
2013-09-05 19:53:23 -04:00
|
|
|
|
2013-09-18 13:45:40 -04:00
|
|
|
.content
|
2013-09-18 13:40:00 -04:00
|
|
|
|
2013-09-18 13:45:40 -04:00
|
|
|
form
|
|
|
|
.fieldContainer
|
2015-02-09 08:56:02 -05:00
|
|
|
label(for='username') Username
|
|
|
|
input(type='text', id='jid', name='jid', placeholder='you', tabindex='1', autofocus)
|
2013-09-18 13:45:40 -04:00
|
|
|
.fieldContainer
|
|
|
|
label(for='password') Password
|
|
|
|
input(type='password', id='password', name='password', placeholder='•••••••••••••', tabindex='2')
|
2014-11-21 14:11:23 -05:00
|
|
|
.fieldContainer.fieldContainerWSS
|
|
|
|
label(for='wsURL') WebSocket or BOSH URL
|
|
|
|
input(type='text', id='connURL', name='connURL', placeholder='wss://aweso.me:5281/xmpp-websocket', tabindex='3')
|
2013-09-18 13:45:40 -04:00
|
|
|
|
2013-10-24 17:32:20 -04:00
|
|
|
button(type='submit', tabindex='3', class="primary") Go!
|
2013-09-05 19:53:23 -04:00
|
|
|
|
|
|
|
block scripts
|
2015-02-09 08:56:02 -05:00
|
|
|
script(src="/config.js")
|
2013-09-16 05:19:07 -04:00
|
|
|
script(src="/js/login.js")
|
2014-11-21 14:11:23 -05:00
|
|
|
script.
|
|
|
|
if ("#{config.wss}".length == 0)
|
|
|
|
$('.fieldContainerWSS').show();
|