mirror of
https://github.com/kittywitch/dork.dev.git
synced 2026-02-09 23:29:17 -08:00
21 lines
595 B
HTML
21 lines
595 B
HTML
<!-- Component for no-noscript; Showing an item only if you have Javascript -->
|
|
|
|
<!--
|
|
Motivation:
|
|
* Provide things with script tag related behaviour only if the user has Javascript
|
|
* If the user does not have Javascript, just don't display those elements to them
|
|
|
|
Other parts of the implementation:
|
|
* Components with scripted behaviour should be given the "nonoscript" class.
|
|
|
|
```scss
|
|
/* A kindness to those of you who don't use Javascript */
|
|
.nonoscript {
|
|
display: none;
|
|
}
|
|
```
|
|
-->
|
|
|
|
<script src="/nonoscript.js">
|
|
</script>
|
|
<!-- End of component for no-noscript -->
|