made mastodon share-button portable and only visible for javascript browsers

This commit is contained in:
Leon van Kammen 2026-09-01 17:54:37 +02:00
parent 10a72ff713
commit 586cea2cc6
2 changed files with 6 additions and 0 deletions

View file

@ -18,6 +18,9 @@
.page{ width:640px; } .page{ width:640px; }
body .script{ visibility: hidden; }
body.script .script{ visibility: visible !important; }
/* spacers */ /* spacers */
.margin1L{ margin: 0px 20px 10px 0px;} .margin1L{ margin: 0px 20px 10px 0px;}
.margin1{ margin: 10px 20px; } .margin1{ margin: 10px 20px; }

View file

@ -46,6 +46,9 @@
<!-- JanusXR portalroom, see https://janusxr.org for markup --> <!-- JanusXR portalroom, see https://janusxr.org for markup -->
${janusxr} ${janusxr}
<script>
document.body.classList.add('script') // show javascript buttons for modern browsers
</script>
</body> </body>
</html> </html>