Zymantics <XML/>

<rapidWeb/>

<bs:listbox>

Simple

Hashes

Allowed SHAs (checksum reflecting the allowed style or Javascript)
datatype: text
datatype: text
−
<bs:form content="form" xmlns:bs="http://www.bootstrap-cms.org">
−
<bs:listbox name="sha" splitter=";" margin-bottom="2" margin-top="2">
<bs:title>Hashes</bs:title>
<bs:help-text>Allowed SHAs (checksum reflecting the allowed style or Javascript)</bs:help-text>
+
<bs:content>
+
<bs:input-group separator="-">
+
<bs:addon>
+
<bs:select size="small" tooltip="SHA Algoritm">
<bs:option code="sha256">256</bs:option>
<bs:option code="sha384">384</bs:option>
<bs:option code="sha512">512</bs:option>
</bs:select>
[3 lines]
</bs:addon>
[4 lines]
<bs:input size="small"/>
</bs:input-group>
[6 lines]
+
<bs:input-group separator="-">
+
<bs:addon>
+
<bs:select size="small" tooltip="SHA Algoritm">
<bs:option code="sha256">256</bs:option>
<bs:option code="sha384">384</bs:option>
<bs:option code="sha512">512</bs:option>
</bs:select>
[3 lines]
</bs:addon>
[4 lines]
<bs:input size="small"/>
</bs:input-group>
[6 lines]
</bs:content>
[14 lines]
+
<bs:guide>
<bs:p>A sha256, sha384 or sha512 hash of scripts or styles. The use of this source consists of two portions separated by a dash: the encryption algorithm used to create the hash and the base64-encoded hash of the script or style.</bs:p>
<bs:p>In CSP 2.0, this applied only to inline scripts. CSP 3.0 allows it in the case of script-src for external scripts.</bs:p>
</bs:guide>
[2 lines]
</bs:listbox>
[20 lines]
</bs:form>
[21 lines]

With Dialog

Hashes

Allowed SHAs (checksum reflecting the allowed style or Javascript)
datatype: text
datatype: text
−
<bs:form content="form" xmlns:bs="http://www.bootstrap-cms.org">
−
<bs:listbox name="sha" splitter=";" margin-bottom="2" margin-top="2">
<bs:title>Hashes</bs:title>
<bs:help-text>Allowed SHAs (checksum reflecting the allowed style or Javascript)</bs:help-text>
+
<bs:content>
+
<bs:input-group separator="-">
+
<bs:addon>
+
<bs:button size="sm">
+
<bs:title tooltip="Click for calculation dialog">
<bs:icon name="lightning"/>
</bs:title>
[1 lines]
+
<bs:dialog centered="true">
+
<bs:header>
<bs:h4>Calculate SHA</bs:h4>
<bs:close margin-left="auto" padding="0"/>
</bs:header>
[2 lines]
+
<bs:body>
<bs:textarea placeholder="inline script or style" nosubmit="true"/>
+
<bs:select size="small" margin-top="1" tooltip="SHA Algoritm" nosubmit="true">
<bs:option code="256">256</bs:option>
<bs:option code="384">384</bs:option>
<bs:option code="512">512</bs:option>
</bs:select>
[3 lines]
+
<bs:button data-csp="calc" class="w-100" color="primary" margin-vertical="1">
<bs:icon name="arrow-down"/>
Calc
</bs:button>
[1 lines]
<bs:textarea readonly="true" placeholder="SHA" bg-color="light" nosubmit="true"/>
</bs:body>
[8 lines]
+
<bs:footer>
<bs:button data-csp="insert" color="success" data-bs-dismiss="modal">Insert</bs:button>
</bs:footer>
[1 lines]
</bs:dialog>
[14 lines]
</bs:button>
[17 lines]
</bs:addon>
[18 lines]
+
<bs:addon>
+
<bs:select size="small" tooltip="SHA Algoritm">
<bs:option code="sha256">256</bs:option>
<bs:option code="sha384">384</bs:option>
<bs:option code="sha512">512</bs:option>
</bs:select>
[3 lines]
</bs:addon>
[4 lines]
<bs:input size="small"/>
</bs:input-group>
[25 lines]
+
<bs:input-group separator="-">
+
<bs:addon>
+
<bs:button size="sm">
+
<bs:title tooltip="Click for calculation dialog">
<bs:icon name="lightning"/>
</bs:title>
[1 lines]
+
<bs:dialog centered="true">
+
<bs:header>
<bs:h4>Calculate SHA</bs:h4>
<bs:close margin-left="auto" padding="0"/>
</bs:header>
[2 lines]
+
<bs:body>
<bs:textarea placeholder="inline script or style" nosubmit="true"/>
+
<bs:select size="small" margin-top="1" tooltip="SHA Algoritm" nosubmit="true">
<bs:option code="256">256</bs:option>
<bs:option code="384">384</bs:option>
<bs:option code="512">512</bs:option>
</bs:select>
[3 lines]
+
<bs:button data-csp="calc" class="w-100" color="primary" margin-vertical="1">
<bs:icon name="arrow-down"/>
Calc
</bs:button>
[1 lines]
<bs:textarea readonly="true" placeholder="SHA" bg-color="light" nosubmit="true"/>
</bs:body>
[8 lines]
+
<bs:footer>
<bs:button data-csp="insert" color="success" data-bs-dismiss="modal">Insert</bs:button>
</bs:footer>
[1 lines]
</bs:dialog>
[14 lines]
</bs:button>
[17 lines]
</bs:addon>
[18 lines]
+
<bs:addon>
+
<bs:select size="small" tooltip="SHA Algoritm">
<bs:option code="sha256">256</bs:option>
<bs:option code="sha384">384</bs:option>
<bs:option code="sha512">512</bs:option>
</bs:select>
[3 lines]
</bs:addon>
[4 lines]
<bs:input size="small"/>
</bs:input-group>
[25 lines]
</bs:content>
[52 lines]
+
<bs:guide>
<bs:p>A sha256, sha384 or sha512 hash of scripts or styles. The use of this source consists of two portions separated by a dash: the encryption algorithm used to create the hash and the base64-encoded hash of the script or style.</bs:p>
<bs:p>In CSP 2.0, this applied only to inline scripts. CSP 3.0 allows it in the case of script-src for external scripts.</bs:p>
</bs:guide>
[2 lines]
</bs:listbox>
[58 lines]
</bs:form>
[59 lines]

Key Attributes

AttributeValuePurposeExample
@namexs:stringData bindingD_VALUE
@valuexs:stringdefault load value
@splitterrepeat | {separator}multiple values




Oops

Your browser is not supported

A modern browser with Javascript ES6 is required

Any major browser from 2015 onwards will be suitable