-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#206 Created js app and html dev file for DiceLess.
- Loading branch information
Showing
4 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<head> | ||
<title>OpenStrat: DiceLess</title> | ||
<meta charset='UTF-8'> | ||
<meta name='viewport' content='width=device-width'> | ||
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"/> | ||
<meta http-equiv="Pragma" content="no-cache"/> | ||
<meta http-equiv="Expires" content="0"/> | ||
<style> | ||
body { margin: 0px; overflow: hidden; } | ||
</style> | ||
</head> | ||
<body> | ||
<canvas id='scanv'></canvas> | ||
<noscript> | ||
This page will not function properly without Javascript enabled | ||
</noscript> | ||
<script type='text/javascript'> | ||
// aid local development in ensuring script not cached during a simple refresh | ||
var script = document.createElement("script"); | ||
script.setAttribute("type", "text/javascript"); | ||
script.setAttribute("src", "../SbtDir/DiceLessJs/target/scala-3.2.2/dicelessjs-fastopt.js?"+Date.now().toString()); | ||
document.getElementsByTagName("head")[0].appendChild(script); | ||
script.addEventListener('load', function(e) { | ||
DiceLessJsApp.main(); | ||
}); | ||
</script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<head> | ||
<title>OpenStrat: DiceLess</title> | ||
<meta charset='UTF-8'> | ||
<meta name='viewport' content='width=device-width'> | ||
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"/> | ||
<meta http-equiv="Pragma" content="no-cache"/> | ||
<meta http-equiv="Expires" content="0"/> | ||
<style> | ||
body { margin: 0px; overflow: hidden; } | ||
</style> | ||
</head> | ||
<body> | ||
<canvas id='scanv'></canvas> | ||
<noscript> | ||
This page will not function properly without Javascript enabled | ||
</noscript> | ||
<script type='text/javascript'> | ||
// aid local development in ensuring script not cached during a simple refresh | ||
var script = document.createElement("script"); | ||
script.setAttribute("type", "text/javascript"); | ||
script.setAttribute("src", "../SbtDir/DiceLessJs/target/scala-3.2.2/dicelessjs-opt.js?"+Date.now().toString()); | ||
document.getElementsByTagName("head")[0].appendChild(script); | ||
script.addEventListener('load', function(e) { | ||
DiceLessJsApp.main(); | ||
}); | ||
</script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* Copyright 2018-23 Richard Oliver. Licensed under Apache Licence version 2.0. */ | ||
package ostrat; package pSJs | ||
import scalajs.js.annotation._, dless._, prid.phex._ | ||
|
||
@JSExportTopLevel("DiceLessJsApp") | ||
object DiceLessJsApp | ||
{ | ||
@JSExport def main(): Unit = DLessGui(CanvasJs, DLessScen1, HGView(141, 524, 20)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters