diff options
Diffstat (limited to 'themes')
8 files changed, 17 insertions, 19 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'); }); diff --git a/themes/luci-theme-material/ucode/template/themes/material/footer.ut b/themes/luci-theme-material/ucode/template/themes/material/footer.ut index f0225e7329..8b3c7f728b 100644 --- a/themes/luci-theme-material/ucode/template/themes/material/footer.ut +++ b/themes/luci-theme-material/ucode/template/themes/material/footer.ut @@ -26,7 +26,7 @@ </div> </div> - <script type="text/javascript">L.require('menu-material')</script> + <script>L.require('menu-material')</script> </body> </html> diff --git a/themes/luci-theme-openwrt-2020/ucode/template/themes/openwrt2020/footer.ut b/themes/luci-theme-openwrt-2020/ucode/template/themes/openwrt2020/footer.ut index 5899f2a9dd..6d165f1502 100644 --- a/themes/luci-theme-openwrt-2020/ucode/template/themes/openwrt2020/footer.ut +++ b/themes/luci-theme-openwrt-2020/ucode/template/themes/openwrt2020/footer.ut @@ -10,7 +10,7 @@ Powered by {{ version.luciname }} ({{ version.luciversion }}) </p> -<script type="text/javascript">L.require('menu-openwrt2020')</script> +<script>L.require('menu-openwrt2020')</script> </body> </html> diff --git a/themes/luci-theme-openwrt-2020/ucode/template/themes/openwrt2020/header.ut b/themes/luci-theme-openwrt-2020/ucode/template/themes/openwrt2020/header.ut index 3857bce723..56443bd9cb 100644 --- a/themes/luci-theme-openwrt-2020/ucode/template/themes/openwrt2020/header.ut +++ b/themes/luci-theme-openwrt-2020/ucode/template/themes/openwrt2020/header.ut @@ -14,15 +14,14 @@ <!DOCTYPE html> <html lang="{{ dispatcher.lang }}"> <head> -<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> -<meta http-equiv="Content-Script-Type" content="text/javascript" /> +<meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="apple-mobile-web-app-capable" content="yes" /> -<link rel="stylesheet" type="text/css" media="screen" href="{{ media }}/cascade.css" /> +<link rel="stylesheet" media="screen" href="{{ media }}/cascade.css" /> <link rel="icon" href="{{ media }}/logo.png" sizes="180x180"> <link rel="icon" href="{{ media }}/logo.svg" sizes="any"> -<script type="text/javascript" src="{{ dispatcher.build_url('admin/translations', dispatcher.lang) }}"></script> -<script type="text/javascript" src="{{ resource }}/cbi.js"></script> +<script src="{{ dispatcher.build_url('admin/translations', dispatcher.lang) }}"></script> +<script src="{{ resource }}/cbi.js"></script> <title>{{ striptags(`${boardinfo.hostname ?? '?'}${node ? ` - ${node.title}` : ''}`) }} - LuCI</title> {% if (css): %} <style title="text/css">{{ css }}</style> diff --git a/themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/footer.ut b/themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/footer.ut index 1b6bfff5bb..12249ed75e 100644 --- a/themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/footer.ut +++ b/themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/footer.ut @@ -12,7 +12,7 @@ Powered by {{ version.luciname }} ({{ version.luciversion }}) </p> -<script type="text/javascript">L.require('menu-openwrt')</script> +<script>L.require('menu-openwrt')</script> </body> </html> diff --git a/themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/header.ut b/themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/header.ut index 9f9e75d532..b7a6abae68 100644 --- a/themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/header.ut +++ b/themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/header.ut @@ -16,18 +16,17 @@ <!DOCTYPE html> <html lang="{{ dispatcher.lang }}"> <head> -<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> -<meta http-equiv="Content-Script-Type" content="text/javascript" /> -<link rel="stylesheet" type="text/css" media="screen" href="{{ media }}/cascade.css" /> +<link rel="stylesheet" media="screen" href="{{ media }}/cascade.css" /> {% if (node?.css): %} -<link rel="stylesheet" type="text/css" media="screen" href="{{ resource }}/{{ node.css }}" /> +<link rel="stylesheet" media="screen" href="{{ resource }}/{{ node.css }}" /> {% endif %} {% if (css): %} -<style type="text/css">{{ css }}</style> +<style>{{ css }}</style> {% endif %} -<script type="text/javascript" src="{{ dispatcher.build_url('admin/translations', dispatcher.lang) }}"></script> -<script type="text/javascript" src="{{ resource }}/cbi.js"></script> +<script src="{{ dispatcher.build_url('admin/translations', dispatcher.lang) }}"></script> +<script src="{{ resource }}/cbi.js"></script> <title>{{ striptags(`${boardinfo.hostname ?? '?'}${node ? ` - ${_(node.title)}` : ''}`) }} - LuCI</title> </head> |