Skip to content

Commit

Permalink
Add QR and Github Code link
Browse files Browse the repository at this point in the history
  • Loading branch information
Croquetx committed Aug 7, 2024
1 parent 0016f94 commit d0fa06e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
overflow: hidden;
background: rgb(30, 30, 30);
}
#codelink {
position: fixed; bottom: 10px; right: 10px; padding: .5em; border-radius: 30px;
opacity: 50%; background: lightgray; box-shadow: 1px 1px 5px black;
text-decoration: none; font-family: monospace; font-size: 1.5em; z-index: 1000;
}
#codelink:hover {
opacity: 100%;
}
</style>
<script type="importmap">
{
Expand All @@ -35,7 +43,7 @@
//------------------------------------------------------------------------------------------
class AvatarActor extends mix(Actor).with(AM_Spatial, AM_Avatar) {
get pawn() { return "AvatarPawn" }
// no need to override init, but we can if we want to
// no need to override init, but we can if we need to
init(options) {
super.init(options);
}
Expand Down Expand Up @@ -563,6 +571,7 @@
}
}
}
App.makeWidgetDock(); // shows QR code

StartWorldcore({
appId: 'io.croquet.physics',
Expand All @@ -573,5 +582,7 @@
</script>
</head>
<body>
<a id="codelink" href="https://github.com/multisynq/physics-fountain/blob/main/index.html"
title="View source code on GitHub" target="_blank">{}</a>
</body>
</html>

0 comments on commit d0fa06e

Please sign in to comment.