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'])
|
@app.route("/", methods = ['GET'])
|
||||||
def normal():
|
def normal():
|
||||||
print(values.split(" "))
|
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__':
|
if __name__ == '__main__':
|
||||||
app.run(host='0.0.0.0', port=5000, debug=1)
|
app.run(host='0.0.0.0', port=5000, debug=1)
|
||||||
|
@ -52,12 +52,14 @@ header {
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
background: #FF0000;
|
background: #B00000;
|
||||||
border-bottom: solid #A20000 4px;
|
border-bottom: solid #A20000 4px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
#incident-btn:hover {
|
||||||
|
background-color: #ff0000;
|
||||||
|
}
|
||||||
.btn-text {
|
.btn-text {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding-top: 15px;
|
padding-top: 15px;
|
||||||
@ -73,14 +75,14 @@ header {
|
|||||||
<div id="counter">
|
<div id="counter">
|
||||||
<h1>Jours depuis le dernier problème:</h1>
|
<h1>Jours depuis le dernier problème:</h1>
|
||||||
<div>
|
<div>
|
||||||
<p id="days"></p>
|
<p id="days">{{days}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<p id="last-incident"></p>
|
<p id="last-incident"></p>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<p id="record">Nombre total de problèmes :<p>
|
<p id="record">Nombre total de problèmes : {{total}}<p>
|
||||||
</div>
|
</div>
|
||||||
</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>
|
<p class="btn-text">Note: Button doesn't actually work yet...</p>
|
Loading…
Reference in New Issue
Block a user