summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-bootstrap/ucode
diff options
context:
space:
mode:
Diffstat (limited to 'themes/luci-theme-bootstrap/ucode')
-rw-r--r--themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/footer.ut2
-rw-r--r--themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/header.ut4
-rw-r--r--themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/sysauth.ut2
3 files changed, 4 insertions, 4 deletions
diff --git a/themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/footer.ut b/themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/footer.ut
index a9dd0f939e..d51079b6fa 100644
--- a/themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/footer.ut
+++ b/themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/footer.ut
@@ -14,7 +14,7 @@
</span>
<ul class="breadcrumb pull-right" id="modemenu" style="display:none"></ul>
</footer>
- <script type="text/javascript">L.require('menu-bootstrap')</script>
+ <script>L.require('menu-bootstrap')</script>
{% endif %}
</body>
</html>
diff --git a/themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/header.ut b/themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/header.ut
index a6d2936a5f..ef37c7a454 100644
--- a/themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/header.ut
+++ b/themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/header.ut
@@ -20,7 +20,7 @@
<meta charset="utf-8">
<title>{{ striptags(`${boardinfo.hostname ?? '?'}${node ? ` - ${node.title}` : ''}`) }} - LuCI</title>
{% if (!darkpref): %}
- <script type="text/javascript">
+ <script>
var mediaQuery = window.matchMedia('(prefers-color-scheme: dark)'),
rootElement = document.querySelector(':root'),
setDarkMode = function(match) { rootElement.setAttribute('data-darkmode', match.matches) };
@@ -31,7 +31,7 @@
{% endif %}
<meta name="viewport" content="initial-scale=1.0">
<link rel="stylesheet" href="{{ media }}/cascade.css">
- <link rel="stylesheet" media="only screen and (max-device-width: 854px)" href="{{ media }}/mobile.css" type="text/css" />
+ <link rel="stylesheet" media="only screen and (max-device-width: 854px)" href="{{ media }}/mobile.css" />
<link rel="icon" href="{{ media }}/logo_48.png" sizes="48x48">
<link rel="icon" href="{{ media }}/logo.svg" sizes="any">
{% if (node?.css): %}
diff --git a/themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/sysauth.ut b/themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/sysauth.ut
index 15f3b1435b..e311f2d03f 100644
--- a/themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/sysauth.ut
+++ b/themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/sysauth.ut
@@ -38,7 +38,7 @@
<div id="view">
<div class="spinning">{{ _('Loading view…') }}</div>
- <script type="text/javascript">
+ <script>
L.require('ui').then(function(ui) {
ui.instantiateView('bootstrap.sysauth');
});