ui: use material theme, move to local instance

This commit is contained in:
Alexander Baryshnikov 2020-10-01 21:58:30 +08:00
parent 143d907bef
commit 28260476cb
6 changed files with 18 additions and 14 deletions

View File

@ -22,7 +22,6 @@
</div> </div>
</div> </div>
</div> </div>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" <link rel="stylesheet" href="../static/css/bootstrap-material-design.min.css">
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
</body> </body>
</html> </html>

File diff suppressed because one or more lines are too long

View File

@ -211,7 +211,7 @@
</div> </div>
</div> </div>
</div> </div>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" <link rel="stylesheet" href="{{.Rel "/static" "css" "bootstrap-material-design.min.css"}}">
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
</body> </body>
</html> </html>

View File

@ -69,7 +69,7 @@
</div> </div>
<button type="button" onclick="loadResult()" class="btn btn-primary" id="load-btn">show result <button type="button" onclick="loadResult()" class="btn btn-primary" id="load-btn">show result
</button> </button>
<a target="_blank" href="result" class="btn btn-light" class="btn btn-light">open result in a new <a target="_blank" href="result" class="btn btn-default" class="btn btn-light">open result in a new
tab</a> tab</a>
</div> </div>
</div> </div>
@ -105,7 +105,7 @@
const load = document.getElementById("load") const load = document.getElementById("load")
load.style.display = null; load.style.display = null;
btn.style.display = 'none' btn.style.display = 'none'
progress.style.display = 'visible' progress.style.display = null
fetch("result").then(function (res) { fetch("result").then(function (res) {
if (res.status === 200) { if (res.status === 200) {
@ -124,7 +124,6 @@
}) })
} }
</script> </script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" <link rel="stylesheet" href="{{.Rel "/static" "css" "bootstrap-material-design.min.css"}}">
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
</body> </body>
</html> </html>

View File

@ -82,7 +82,7 @@
</form> </form>
<button type="button" onclick="loadResult()" class="btn btn-primary" id="load-btn">show payload <button type="button" onclick="loadResult()" class="btn btn-primary" id="load-btn">show payload
</button> </button>
<a target="_blank" href="payload" class="btn btn-light">open payload in a new tab</a> <a target="_blank" href="payload" class="btn btn-default">open payload in a new tab</a>
</div> </div>
</div> </div>
</div> </div>
@ -153,7 +153,7 @@
const load = document.getElementById("load") const load = document.getElementById("load")
load.style.display = null; load.style.display = null;
btn.style.display = 'none' btn.style.display = 'none'
progress.style.display = 'visible' progress.style.display = null
fetch("payload").then(function (res) { fetch("payload").then(function (res) {
if (res.status === 200) { if (res.status === 200) {
@ -172,7 +172,6 @@
}) })
} }
</script> </script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" <link rel="stylesheet" href="{{.Rel "/static" "css" "bootstrap-material-design.min.css"}}">
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
</body> </body>
</html> </html>

View File

@ -96,7 +96,6 @@
</div> </div>
</div> </div>
</div> </div>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" <link rel="stylesheet" href="{{.Rel "/static" "css" "bootstrap-material-design.min.css"}}">
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
</body> </body>
</html> </html>