BattleSim/client/templates/index.jade

54 lines
1.4 KiB
Plaintext
Raw Normal View History

2016-02-01 22:19:30 +00:00
extends layout
block content
#main-section.clearfix
#chat-section.window.chat_window.hidden
.chat
.main_buttons
.section
2016-02-10 02:10:17 +00:00
.button.big.find_battle_non_ranked
2016-02-01 22:19:30 +00:00
span.find-icon.icon-earth
| Find battle
2016-02-10 02:10:17 +00:00
p
.button.big.find_battle
span.find-icon.icon-earth
| Ranked battle
2016-02-01 22:19:30 +00:00
.find_battle_select_team
.section
.button.teambuilder_button
span.icon-pencil
| Teambuilder
.section
.button.display_credits Credits
#teambuilder-section.window.hidden
#battle-list-section.window.hidden
#messages.z2
block footer
.loading-container
.loading-message Loading...
script(src=asset_path('js/data.js'))
script(src=asset_path('js/vendor.js'))
script(src=asset_path('js/templates.js'))
script(src=asset_path('js/app.js'))
script.
// Autogenerated client version
PokeBattle.CLIENT_VERSION = "#{CLIENT_VERSION}";
// quicker click response on mobile devices
$(document).ready(function() {
FastClick.attach(document.body);
});
//- Authentication
(function() {
var TOKEN = "#{user.token}";
var ID = #{user.id};
var USERNAME = "#{user.name}"
PokeBattle.userId = ID;
PokeBattle.username = USERNAME;
PokeBattle.primus.on('open', function() {
PokeBattle.primus.send('login', ID, TOKEN);
});
}).call(this);