mirror of
https://github.com/openwrt/luci.git
synced 2025-04-27 16:08:13 +00:00
* HTML Cleanup: Meta tags. * Converted charset to shorthand. * Removed meta tags with `Content-Script-Type` attribute. (Invalid in HTML5 spec.) * HTML Cleanup: CSS tags. * Removed `type` attribute with CSS files from link tags. (HTML5 spec recommends omitting it.) * Removed `type` attribute from style tags. (Deprecated in HTML5 spec.) https://html.spec.whatwg.org/#attr-link-type https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style * HTML Cleanup: Convert from XHTML to HTML5 * Removed XML declaration. * Removed XML namespace. * Changed doctype to HTML5. * HTML Cleanup: CDATA tags. * CDATA sections should not be used within HTML they are considered as comments and not displayed. https://developer.mozilla.org/en-US/docs/Web/API/CDATASection * HTML Cleanup: Script tags. * Removed `language` attribute from script tags. (No longer valid in HTML5) * Removed `type` attribute with JavaScript MIME type from script tags. (HTML5 spec recommends omitting it.) https://html.spec.whatwg.org/multipage/scripting.html#attr-script-type https://mimesniff.spec.whatwg.org/#javascript-mime-type Signed-off-by: Mustafa Can Elmacı <mustafacan@elmaci.net>
28 lines
1.0 KiB
HTML
28 lines
1.0 KiB
HTML
<%+cbi/valueheader%>
|
|
<script>
|
|
function switchToCIDRList(ev) {
|
|
var input = ev.target.previousElementSibling,
|
|
usecidr = document.getElementById(input.id + '_usecidr');
|
|
|
|
ev.preventDefault();
|
|
|
|
usecidr.value = '1';
|
|
cbi_d_update();
|
|
}
|
|
</script>
|
|
<input data-update="change"<%=
|
|
attr("id", cbid) ..
|
|
attr("name", cbid) ..
|
|
attr("type", "text") ..
|
|
attr("class", "cbi-input-text") ..
|
|
attr("value", self:cfgvalue(section) or self.default) ..
|
|
ifattr(self.size, "size") ..
|
|
ifattr(self.placeholder, "placeholder") ..
|
|
ifattr(self.datatype, "data-type", self.datatype) ..
|
|
ifattr(self.datatype, "data-optional", self.optional or self.rmempty) ..
|
|
ifattr(self.combobox_manual, "data-manual", self.combobox_manual) ..
|
|
ifattr(#self.keylist > 0, "data-choices", { self.keylist, self.vallist })
|
|
%> /><!--
|
|
--><button class="btn cbi-button cbi-button-neutral" title="<%:Switch to CIDR list notation%>" aria-label="<%:Switch to CIDR list notation%>" onclick="switchToCIDRList(event)">…</button>
|
|
<%+cbi/valuefooter%>
|