50 lines
974 B
HTML
50 lines
974 B
HTML
{% extends "layout.html" %}
|
|
|
|
{% block title %}
|
|
Progress Bar
|
|
{% endblock %}
|
|
|
|
{% block head %}
|
|
|
|
<style>
|
|
.progress {
|
|
height: 20px;
|
|
margin-bottom: 20px;
|
|
overflow: hidden;
|
|
background-color: #f5f5f5;
|
|
border-radius: 4px;
|
|
box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
|
|
}
|
|
.progress-bar {
|
|
float: left;
|
|
width: 0%;
|
|
height: 100%;
|
|
font-size: 12px;
|
|
line-height: 20px;
|
|
color: #fff;
|
|
text-align: center;
|
|
background-color: #337ab7;
|
|
-webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
|
|
box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
|
|
-webkit-transition: width .6s ease;
|
|
-o-transition: width .6s ease;
|
|
transition: width .6s ease;
|
|
}
|
|
</style>
|
|
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<h2><a href="https://htmx.org/examples/progress-bar/">Progress Bar</a></h2>
|
|
|
|
<div hx-target="this" hx-swap="outerHTML">
|
|
<h3>Start Progress</h3>
|
|
<button class="btn" hx-post="/start">
|
|
Start Job
|
|
</button>
|
|
</div>
|
|
|
|
|
|
{% endblock %}
|