updated contract end date and cleaner

This commit is contained in:
Martin Donnelly 2019-03-20 15:37:51 +00:00
parent 71215b6e9c
commit 40108b55e6
2 changed files with 6 additions and 4 deletions

View File

@ -19,7 +19,7 @@ const WView = require('./js/v2/weatherV2');
const btcModel = new BitcoinModel();
webSocketModel.setBTC(btcModel);
w.contractEnds = new EventView({ 'model': new EventModel({ 'event': new Date(2019, 2, 29), 'label': 'Contract Ends:' }) });
w.contractEnds = new EventView({ 'model': new EventModel({ 'event': new Date(2019, 5, 28), 'label': 'Contract Ends:' }) });
w.bitcoin = new Bitcoin({ 'model': btcModel });
@ -30,7 +30,6 @@ const WView = require('./js/v2/weatherV2');
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();

View File

@ -24,6 +24,8 @@
height: 800px;
}
</style>
<script src="libs/zepto.min.js"></script>
</head>
<body>
<div class="row">
@ -37,14 +39,15 @@
<button onclick="convertFromBase64()">Convert From Base64</button>
<br>
<button class='button-primary' onclick="clear()">Clear windows</button>
<button class='button-primary' onclick="clearAreas()">Clear windows</button>
<script>
// ucs-2 string to base64 encoded ascii
function clear(){
function clearAreas(){
console.log('clear');
document.getElementById('source').value = '';
document.getElementById('output').value = '';