Re:Warning.js: the opposite of noscript warnings
by 0x4a42 on Monday February 19, 2018 @11:17AM
(#16413708)
100 lines of code for this is not "tiny": <script>alert('You are using JavaScript!')</script>
[ Parent
| on HN ]
Re:Warning.js: the opposite of noscript warnings
by vog on Monday February 19, 2018 @12:09PM
(#16414085)
I don't get it, either. Even the include is longer that directly writing a plain alert:
<script type="text/javascript" src="warning.js" charset="utf-8"></script>
versus: <script>alert('You forgot to disable JavaScript!')</script>
To be fair, the following would be sufficient, but for some strange reasons the project recommends the long version: <script src="warning.js"></script>