updated contract end date and cleaner

This commit is contained in:
Martin Donnelly 2019-02-12 16:10:05 +00:00
parent 59adf37523
commit 71215b6e9c
2 changed files with 13 additions and 1 deletions

View File

@ -192,8 +192,9 @@ const Bitcoin = Backbone.View.extend({
const title = `High: $${ parseFloat(btcdata.highs.usd.toFixed(2)) } / Low $${ parseFloat(btcdata.lows.usd.toFixed(2))}`;
let trendClass = '';
if (btcdata.trend > 1.00)
if (btcdata.trend > 1.00)
trendClass = 'trendUp';
else if (btcdata.trend < 1.00)
trendClass = 'trendDown';
else

View File

@ -35,10 +35,20 @@
<button onclick="cleanScriptsLinks()">Clean Scripts / Links</button>
<button onclick="convertToBase64()">Convert To Base64</button>
<button onclick="convertFromBase64()">Convert From Base64</button>
<br>
<button class='button-primary' onclick="clear()">Clear windows</button>
<script>
// ucs-2 string to base64 encoded ascii
function clear(){
document.getElementById('source').value = '';
document.getElementById('output').value = '';
}
function utoa(str) {
return window.btoa(unescape(encodeURIComponent(str)));
}
@ -53,6 +63,7 @@
let output = source.replace(/(\<\bscript\b[\S\s]+?<\/\bscript\b\>)/g, '');
output = output.replace(/<\/?link[^>]*>/g,'');
output = output.replace(/(?:src\s*?=\s*?['"])(.+?)(?:['"])/g,'');