1
0
mirror of https://github.com/Adam-Ant/ClockworkAprilFools2017 synced 2024-12-20 11:04:35 +00:00

Template tweaks

This commit is contained in:
Adam Dodman 2017-03-14 23:47:19 +00:00
parent 56592b9764
commit bb79b0747b
2 changed files with 8 additions and 5 deletions

View File

@ -1,4 +1,4 @@
<html> <html>
<body> <body>
<h1>Welcome to this clockwork gaming debug page!</h1> <h1>Welcome to this clockwork gaming debug page!</h1>
<a href="/activate">Click Here</a> to activate your membership! <a href="/activate">Click Here</a> to purchase Clockwork Plus!

View File

@ -1,5 +1,5 @@
<meta http-equiv="refresh" content="31; url=/activate"> <meta http-equiv="refresh" content="29; url=/activate">
<script src="/static/progressbar.js"></script> <script src="/static/progressbar.js"></script>
<link href="https://fonts.googleapis.com/css?family=Raleway:400,300,600,800,900" rel="stylesheet" type="text/css"> <link href="https://fonts.googleapis.com/css?family=Raleway:400,300,600,800,900" rel="stylesheet" type="text/css">
@ -38,16 +38,19 @@ var bar = new ProgressBar.SemiCircle(container, {
value: '', value: '',
alignToBottom: false alignToBottom: false
}, },
from: {color: '#000000'}, from: {color: '#ED6A5A'},
to: {color: '#ED6A5A'}, to: {color: '#76FF03'},
// Set default step function for all animate calls // Set default step function for all animate calls
step: (state, bar) => { step: (state, bar) => {
bar.path.setAttribute('stroke', state.color);
var value = Math.round(bar.value() * 100); var value = Math.round(bar.value() * 100);
if (value === 0) { if (value === 0) {
bar.setText('Please Wait...'); bar.setText('');
} else { } else {
bar.setText(value); bar.setText(value);
} }
bar.text.style.color = state.color;
} }
}); });
bar.text.style.fontFamily = '"Raleway", Helvetica, sans-serif'; bar.text.style.fontFamily = '"Raleway", Helvetica, sans-serif';