silvrgit/views/pages/slackV2.ejs
2017-09-28 00:17:07 +01:00

75 lines
2.3 KiB
Plaintext

<% include ../partials/head %>
<!-- Slack - I have plenty of talent and vision I just don't give a damn -->
<header id="header">
<div class="mui-appbar mui--appbar-line-height">
<div class="mui-container-fluid">
Slack
</div>
</div>
</header>
<div class="mui-container">
<div class="mui--appbar-height">
</div>
<div id="container" class="mui-panel">
<div class="mui-row" id="events">
</div>
</div>
<% include ../partials/links %>
<div id='weather'></div>
</div>
<script type="text/template" id="password-template">
<div>Long: {{=long }}</div><div>Short: {{=short }}</div>
</script>
</body>
<script src="libs/ejs.js"></script>
<script src="libs/moment.js"></script>
<script src="libs/underscore.js"></script>
<script src="libs/backbone.js"></script>
<script src="js/websocket.js"></script>
<script src="js/slackSocket.js"></script>
<script src="js/modules/events.js"></script>
<script src="js/modules/bitcoin.js"></script>
<script src="js/modules/fx.js"></script>
<script src="js/modules/train.js"></script>
<script src="js/modules/weatherV2.js"></script>
<script src="js/modules/password.js"></script>
<script src="app.js"></script>
<script>
// slackV2.ejs
(function (w) {
/*navigator.geolocation.getCurrentPosition((show_weather) => {
w.weather = new WeatherSlim({model: new WeatherModel({geo:show_weather})});
});*/
const webSocketModel = new SOCKETMANAGER();
const btcModel = new BitcoinModel();
webSocketModel.setBTC(btcModel);
w.contractEnds = new EventView({model: new EventModel({event: new Date(2017, 8, 29), label: 'Contract Ends:'})});
/*w.bitcoin = new Bitcoin({model: new BitcoinModel()});*/
w.bitcoin = new Bitcoin({model: btcModel});
w.fx = new FxView({model: new FxModel()});
w.dbqglqView = new TrainView({model: new TrainModel({from: 'dbe', to: 'glq'})});
w.glqdbeView = new TrainView({model: new TrainModel({from: 'glq', to: 'dbe'})});
w.glqhymView = new TrainView({model: new TrainModel({from: 'glq', to: 'hym'})});
w.hymglqView = new TrainView({model: new TrainModel({from: 'hym', to: 'glq'})});
// console.log(PasswordView);
w.passwords = new PasswordView();
w.wview = new WView({'el': document.getElementById('weather')});
webSocketModel.turnOn();
})(window);
</script>
</html>