GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    Yukkuri (iamtakingiteasy@eientei.org)'s status on Saturday, 08-Mar-2025 21:39:44 JSTYukkuriYukkuri
    in reply to
    • Zergling_man
    • 𝅙𝅙𝅙𝅙𝅙𝅙𝅙𝅙
    • 夜化

    @Zergling_man @Yoruka @sally You can do away with most of JS with just CSS counters and animations:

    <div id="nojs" class="hidden"> <p>Or wait <n id="tick"></n> seconds...</p> </div> <style type="text/css"> @property --tick { syntax: "<integer>"; initial-value: 0; inherits: false; } @keyframes tick { from { --tick: 3; } } @keyframes hide { from { width: 100%; height: 100%; } } .hidden { display: none; } .nojs { display: block; position: absolute; padding: 0; margin: 0; left: 0; top: 0; right: 100%; bottom: 100%; width: 0; height: 0; overflow: hidden; animation: hide 3s steps(1, end); background: #fff; } #tick { animation: tick 3s steps(3); counter-reset: tick var(--tick); } #tick::after { content: counter(tick); } </style>

    then the only JS line you need:

    document.getElementById("nojs").className = "nojs"
    In conversationabout a year ago from eientei.orgpermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.