Skip to content

Commit

Permalink
demos2
Browse files Browse the repository at this point in the history
  • Loading branch information
pkarnakov committed Jan 19, 2024
1 parent 2cd9d13 commit 9378354
Show file tree
Hide file tree
Showing 20 changed files with 676 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ all: \
.md.html:
$(PANDOC) -s --css $(STYLE)/pandoc.css "$<" -o "$@"

demos:
demos demos2:
mkdir -p "$@"
git -C $(MAINREPO) rev-parse --short HEAD > $@/.gitrev
$(RSYNC) $(MAINREPO)/build_wasm/{*.js,*.css,*.wasm,*.html,*.svg,favicon.png,libs} $@/
Expand All @@ -20,5 +20,5 @@ demos_commit:
clean:
rm -vf *.pdf *.html

.PHONY: all clean demos demos_commit
.PHONY: all clean demos demos2 demos_commit
.SUFFIXES: .md .html
1 change: 1 addition & 0 deletions demos2/.gitrev
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
76337e2
46 changes: 46 additions & 0 deletions demos2/advection.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/png" href="favicon.png" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>ODIL Advection</title>
<link rel="stylesheet" href="view.css" />
</head>
<body>
<noscript>
<div>
This demo needs JavaScript.
</div>
</noscript>

<div id="content_column">
<div class="row">
<a class="github-button" href="https://github.com/pkarnakov/autodiff" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star pkarnakov/autodiff on GitHub">Star</a>
<a href="poisson.html" class="demo">Poisson</a>
<a href="wave.html" class="demo">Wave</a>
<a href="heat.html" class="demo">Heat</a>
<a href="advection.html" class="demo current">Adv</a>
</div>
<div class="row">
<canvas id="canvas" tabindex=-1></canvas>
</div>
<div class="row" style="position: relative;">
<input type="button" title="space" class="button" id="button_pause" value="pause" onclick="togglePause();">
<input type="button" title='r' class="button" id="button_restart" value="restart" onclick="pressButton('r')">
<img src="axes_xt.svg" class="axes" />
</div>
<div class="row">
<span class="kbdspan"><kbd>click</kbd> draw reference solution,</span>
<span class="kbdspan"><kbd>space</kbd> toggle pause,</span>
<span class="kbdspan"><kbd>r</kbd> restart</span>
</div>
<div class="row" id="text_status"></div>
</div>

<script async defer src="libs/buttons.js"></script>
<script src="view.js"></script>
<script async src="advection.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions demos2/advection.js

Large diffs are not rendered by default.

Binary file added demos2/advection.wasm
Binary file not shown.
131 changes: 131 additions & 0 deletions demos2/axes_xt.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demos2/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 46 additions & 0 deletions demos2/heat.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/png" href="favicon.png" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>ODIL Heat</title>
<link rel="stylesheet" href="view.css" />
</head>
<body>
<noscript>
<div>
This demo needs JavaScript.
</div>
</noscript>

<div id="content_column">
<div class="toprow">
<a class="github-button" href="https://github.com/pkarnakov/autodiff" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star pkarnakov/autodiff on GitHub">Star</a>
<a href="poisson.html" class="demo">Poisson</a>
<a href="wave.html" class="demo">Wave</a>
<a href="heat.html" class="demo current">Heat</a>
<a href="advection.html" class="demo">Adv</a>
</div>
<div class="row">
<canvas id="canvas" tabindex=-1></canvas>
</div>
<div class="row" style="position: relative;">
<input type="button" title="space" class="button" id="button_pause" value="pause" onclick="togglePause();">
<input type="button" title='r' class="button" id="button_restart" value="restart" onclick="pressButton('r')">
<img src="axes_xt.svg" class="axes" />
</div>
<div class="row">
<span class="kbdspan"><kbd>click</kbd> draw mask to impose exact solution,</span>
<span class="kbdspan"><kbd>space</kbd> toggle pause,</span>
<span class="kbdspan"><kbd>r</kbd> restart</span>
</div>
<div class="row" id="text_status"></div>
</div>

<script async defer src="libs/buttons.js"></script>
<script src="view.js"></script>
<script async src="heat.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions demos2/heat.js

Large diffs are not rendered by default.

Binary file added demos2/heat.wasm
Binary file not shown.
6 changes: 6 additions & 0 deletions demos2/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url=wave.html"/>
</head>
</html>
6 changes: 6 additions & 0 deletions demos2/libs/buttons.js

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions demos2/poisson.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/png" href="favicon.png" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>ODIL Poisson</title>
<link rel="stylesheet" href="view.css" />
</head>
<body>
<noscript>
<div>
This demo needs JavaScript.
</div>
</noscript>

<div id="content_column">
<div class="rowtop">
<a class="github-button" href="https://github.com/pkarnakov/autodiff" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star pkarnakov/autodiff on GitHub">Star</a>
<a href="poisson.html" class="demo current">Poisson</a>
<a href="wave.html" class="demo">Wave</a>
<a href="heat.html" class="demo">Heat</a>
<a href="advection.html" class="demo">Adv</a>
</div>
<div class="row">
<canvas id="canvas" tabindex=-1></canvas>
</div>
<div class="row">
<input type="button" title="space" class="button" id="button_pause" value="pause" onclick="togglePause();">
<input type="button" title='r' class="button" id="button_restart" value="restart" onclick="pressButton('r')">
</div>
<div class="row">
<span class="kbdspan"><kbd>click</kbd> draw mask to impose zero solution,</span>
<span class="kbdspan"><kbd>space</kbd> toggle pause,</span>
<span class="kbdspan"><kbd>r</kbd> restart</span>
</div>
<div class="row" id="text_status"></div>
</div>

<script async defer src="libs/buttons.js"></script>
<script src="view.js"></script>
<script async src="poisson.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions demos2/poisson.js

Large diffs are not rendered by default.

Binary file added demos2/poisson.wasm
Binary file not shown.
Loading

0 comments on commit 9378354

Please sign in to comment.