-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Glcanvas #69
Glcanvas #69
Conversation
${scripts} | ||
${viewerScript} | ||
</body>` : ` | ||
<head> | ||
<meta charset="UTF-8"> | ||
${scripts} | ||
${viewerScript} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Scripts are added twice, inside body
and head
, this can have side-effects for other games
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you seen the ? : expression?
</div> | ||
</body> | ||
<body> | ||
<canvas id='glcanvas' style="margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; position: absolute; z-index: 0;"></canvas> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is specific to clash, for other games it would add a full-screen canvas
In the viewer for clash, you can add this directly with body.append(...)
in the JS, in a synchronous manner
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only in the clash special logic
No description provided.