-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
80b8fe8
commit e6aac3d
Showing
14 changed files
with
387 additions
and
1 deletion.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
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,94 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>CGL-Web</title> | ||
<style> | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
background-color: #f0f0f0; | ||
} | ||
canvas { | ||
border: 1px solid #000; | ||
} | ||
html, | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
width: 100%; | ||
height: 100%; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
overflow: hidden; | ||
} | ||
|
||
canvas { | ||
width: 100vmin; | ||
height: 100vmin; | ||
} | ||
|
||
.window { | ||
position: fixed; | ||
top: 10px; | ||
left: 10px; | ||
width: 120px; | ||
background: #1e1e1e; | ||
padding: 15px; | ||
border-radius: 10px; | ||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); | ||
z-index: 9999; | ||
text-align: center; | ||
} | ||
.window p { | ||
font-size: 14px; | ||
margin-bottom: 10px; | ||
color: #bbb; | ||
} | ||
.options { | ||
list-style: none; | ||
padding: 0; | ||
} | ||
.options li { | ||
background: #333; | ||
padding: 10px; | ||
margin: 5px 0; | ||
border-radius: 6px; | ||
text-align: center; | ||
cursor: pointer; | ||
transition: background 0.2s, transform 0.1s; | ||
font-size: 14px; | ||
} | ||
.options li:hover { | ||
background: #444; | ||
transform: scale(1.05); | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<canvas id="cglCanvas" width="800" height="600"></canvas> | ||
<!-- <div class="window"> | ||
<p>Drag and drop any WAV file to play</p> | ||
<p>Or, choose from one of the following:</p> | ||
<ul class="options"> | ||
<li onclick="playSample(1)">1. Sample Wav 1</li> | ||
<li onclick="playSample(2)">2. Sample Wav 2</li> | ||
</ul> | ||
</div> --> | ||
<script> | ||
var Module = { | ||
onRuntimeInitialized: function () { | ||
console.log("WASM Module Loaded"); | ||
}, | ||
canvas: document.getElementById("cglCanvas"), | ||
}; | ||
</script> | ||
<script src="./cglweb.js"></script> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
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,94 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>CGL-Web</title> | ||
<style> | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
background-color: #f0f0f0; | ||
} | ||
canvas { | ||
border: 1px solid #000; | ||
} | ||
html, | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
width: 100%; | ||
height: 100%; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
overflow: hidden; | ||
} | ||
|
||
canvas { | ||
width: 100vmin; | ||
height: 100vmin; | ||
} | ||
|
||
.window { | ||
position: fixed; | ||
top: 10px; | ||
left: 10px; | ||
width: 200px; | ||
background: #1e1e1e; | ||
padding: 15px; | ||
border-radius: 10px; | ||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); | ||
z-index: 9999; | ||
text-align: center; | ||
} | ||
.window p { | ||
font-size: 14px; | ||
margin-bottom: 10px; | ||
color: #bbb; | ||
} | ||
.options { | ||
list-style: none; | ||
padding: 0; | ||
} | ||
.options li { | ||
background: #333; | ||
padding: 10px; | ||
margin: 5px 0; | ||
border-radius: 6px; | ||
text-align: center; | ||
cursor: pointer; | ||
transition: background 0.2s, transform 0.1s; | ||
font-size: 14px; | ||
} | ||
.options li:hover { | ||
background: #444; | ||
transform: scale(1.05); | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<canvas id="cglCanvas" width="800" height="600"></canvas> | ||
<div class="window"> | ||
<p>Press A to add a Node</p> | ||
<p>Click to select and drag to move</p> | ||
<p>Shift to multi select</p> | ||
<p>Delete to delete</p> | ||
<p>You can drag and connect points</p> | ||
<p>Drag out of a connrected point to disconnect</p> | ||
</div> | ||
<script> | ||
var Module = { | ||
onRuntimeInitialized: function () { | ||
console.log("WASM Module Loaded"); | ||
}, | ||
canvas: document.getElementById("cglCanvas"), | ||
}; | ||
</script> | ||
<script src="./cglweb.js"></script> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
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,92 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>CGL-Web</title> | ||
<style> | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
background-color: #f0f0f0; | ||
} | ||
canvas { | ||
border: 1px solid #000; | ||
} | ||
html, | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
width: 100%; | ||
height: 100%; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
overflow: hidden; | ||
} | ||
|
||
canvas { | ||
width: 100vmin; | ||
height: 100vmin; | ||
} | ||
|
||
.window { | ||
position: fixed; | ||
top: 10px; | ||
left: 10px; | ||
width: 220px; | ||
background: #1e1e1e; | ||
padding: 15px; | ||
border-radius: 10px; | ||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); | ||
z-index: 9999; | ||
text-align: center; | ||
} | ||
.window p { | ||
font-size: 14px; | ||
margin-bottom: 10px; | ||
color: #bbb; | ||
} | ||
.options { | ||
list-style: none; | ||
padding: 0; | ||
} | ||
.options li { | ||
background: #333; | ||
padding: 10px; | ||
margin: 5px 0; | ||
border-radius: 6px; | ||
text-align: center; | ||
cursor: pointer; | ||
transition: background 0.2s, transform 0.1s; | ||
font-size: 14px; | ||
} | ||
.options li:hover { | ||
background: #444; | ||
transform: scale(1.05); | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<canvas id="cglCanvas" width="800" height="600"></canvas> | ||
<div class="window"> | ||
<p>Press 1 for Curve Plots</p> | ||
<p>Press 2 for Scatter Plot</p> | ||
<p>Press 3 for Pie Chart</p> | ||
<p>Press 3 for Bar Graphs</p> | ||
</div> | ||
<script> | ||
var Module = { | ||
onRuntimeInitialized: function () { | ||
console.log("WASM Module Loaded"); | ||
}, | ||
canvas: document.getElementById("cglCanvas"), | ||
}; | ||
</script> | ||
<script src="./cglweb.js"></script> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.