Skip to content

Commit

Permalink
static: Add enable JavaScript info to index.html
Browse files Browse the repository at this point in the history
Add prompt to enable JavaScript to index.html, offering guidance on
on what needs done, rather than showing a blank page.

Single-network Kiwi IRC instances may consider customizing this
further to provide guidance on how to connect with a traditional IRC
client.

For example, replace the noscript div with:

<div class="kiwi-noscript-warn">
  <p>Please enable JavaScript and refresh the page to use this
     website.
  </p>
  <p>You may also connect with any other IRC client to
    <a href="ircs://irc.example.com/"><code>irc.example.com</code></a>.
  </p>
</div>
  • Loading branch information
digitalcircuit committed Jun 3, 2019
1 parent 26f171e commit cd600ab
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
/* disable the 'pull down to refresh' on mobiles */
overflow: hidden;
}
.kiwi-noscript-warn {
text-align: center;
font-weight: bold;
padding: 1em;
}
</style>
<style class="embedly-css">
.card .hdr {
Expand All @@ -19,6 +24,11 @@
</style>
</head>
<body>
<noscript>
<div class="kiwi-noscript-warn">
Please enable JavaScript and refresh the page to use this website.
</div>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
Expand Down

0 comments on commit cd600ab

Please sign in to comment.