forked from starnakin/ca42
wow
This commit is contained in:
parent
3f9b0fc1f5
commit
c7e9d5de5a
2
main.py
2
main.py
@ -27,7 +27,7 @@ def update():
|
||||
@app.route("/", methods = ['GET'])
|
||||
def normal():
|
||||
print(values.split(" "))
|
||||
return render_template('home.html', dates = wrap(values, 10))
|
||||
return render_template('home.html', dates = wrap(values, 10), total = len(values.split(' ')), days = values.split(' ')[-1])
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(host='0.0.0.0', port=5000, debug=1)
|
||||
|
@ -52,12 +52,14 @@ header {
|
||||
color: #fff;
|
||||
text-transform: uppercase;
|
||||
font-size: 30px;
|
||||
background: #FF0000;
|
||||
background: #B00000;
|
||||
border-bottom: solid #A20000 4px;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
#incident-btn:hover {
|
||||
background-color: #ff0000;
|
||||
}
|
||||
.btn-text {
|
||||
text-align: center;
|
||||
padding-top: 15px;
|
||||
@ -73,14 +75,14 @@ header {
|
||||
<div id="counter">
|
||||
<h1>Jours depuis le dernier problème:</h1>
|
||||
<div>
|
||||
<p id="days"></p>
|
||||
<p id="days">{{days}}</p>
|
||||
</div>
|
||||
<div>
|
||||
<p id="last-incident"></p>
|
||||
</div>
|
||||
<div>
|
||||
<p id="record">Nombre total de problèmes :<p>
|
||||
<p id="record">Nombre total de problèmes : {{total}}<p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="incident-btn">Incident</div>
|
||||
<div id="incident-btn" form action>Incident</div>
|
||||
<p class="btn-text">Note: Button doesn't actually work yet...</p>
|
Loading…
Reference in New Issue
Block a user