aboutsummaryrefslogtreecommitdiff
path: root/examples/scalajs-plain-example/server
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-02-22 17:21:43 +0800
committerChristopher Vogt <oss.nsp@cvogt.org>2017-02-22 17:38:45 +0800
commit0d1b7e92ada02c5149abefdbc8e70d02241951ca (patch)
treeefba968c647bb7185fdae711fac26c1306248f02 /examples/scalajs-plain-example/server
parent63d77017a205a394e604ec9f943d0ef6d2511ef4 (diff)
downloadcbt-0d1b7e92ada02c5149abefdbc8e70d02241951ca.tar.gz
cbt-0d1b7e92ada02c5149abefdbc8e70d02241951ca.tar.bz2
cbt-0d1b7e92ada02c5149abefdbc8e70d02241951ca.zip
Add small and simple scala js example
Diffstat (limited to 'examples/scalajs-plain-example/server')
-rw-r--r--examples/scalajs-plain-example/server/public/index.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/scalajs-plain-example/server/public/index.html b/examples/scalajs-plain-example/server/public/index.html
new file mode 100644
index 0000000..a06fc3a
--- /dev/null
+++ b/examples/scalajs-plain-example/server/public/index.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Prototype</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/vis/4.16.1/vis.min.css">
+</head>
+<body>
+ execute <pre style="display: inline">cbt fastOptJs</pre> in <pre style="display: inline">js/</pre> to generate/update the .js file
+ <div id="plotly"></div>
+ <script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
+ <script type="text/javascript" src="./generated/my-project.js"></script>
+ <script type="text/javascript">
+ App().main();
+ </script>
+</body>
+</html>