custom sheet on /css/ draft
This commit is contained in:
parent
edb4532cf7
commit
a6e8ebda32
@ -66,8 +66,15 @@ If you do not wish to use JavaScript for this page, you may set a custom theme f
|
|||||||
<INPUT ID="TiB" NAME="css" TYPE="radio" VALUE="https://tebibyte.media/assets/TiB.css" />
|
<INPUT ID="TiB" NAME="css" TYPE="radio" VALUE="https://tebibyte.media/assets/TiB.css" />
|
||||||
<LABEL FOR="TiB">https://tebibyte.media/assets/TiB.css (<B>CC BY-NC-SA 4.0</B>)</LABEL>
|
<LABEL FOR="TiB">https://tebibyte.media/assets/TiB.css (<B>CC BY-NC-SA 4.0</B>)</LABEL>
|
||||||
|
|
||||||
|
<H4>unknown</H4>
|
||||||
|
<SMALL><B>Be careful because there's surely someone out there that will inject a virus into a stylesheet and get some poor sap to plug that in here.</B></SMALL>
|
||||||
|
<BR />
|
||||||
|
<INPUT ID="custom" NAME="css" TYPE="radio" VALUE="/css/blank.css" />
|
||||||
|
<INPUT ID="custom_input" TYPE="text" VALUE="/css/blank.css" />
|
||||||
|
|
||||||
<H4>side-effects</H4>
|
<H4>side-effects</H4>
|
||||||
<INPUT ONCLICK="
|
<INPUT ONCLICK="
|
||||||
|
document.getElementById('custom').value = document.getElementById('custom_input').value;
|
||||||
var selected = document.querySelector('input[name=\'css\']:checked');
|
var selected = document.querySelector('input[name=\'css\']:checked');
|
||||||
if(selected != null)
|
if(selected != null)
|
||||||
window.setStyling(selected.value);
|
window.setStyling(selected.value);
|
||||||
@ -75,7 +82,7 @@ if(selected != null)
|
|||||||
|
|
||||||
<INPUT ONCLICK="
|
<INPUT ONCLICK="
|
||||||
window.setCookie('sheet', window.getStyling(), 365);
|
window.setCookie('sheet', window.getStyling(), 365);
|
||||||
" TYPE="button" VALUE="apply site-wide with a cookie" />
|
" TYPE="button" VALUE="apply page styling site-wide with a cookie" />
|
||||||
|
|
||||||
</BODY>
|
</BODY>
|
||||||
</HTML>
|
</HTML>
|
||||||
|
Loading…
Reference in New Issue
Block a user