Skip to content

Commit c6c8a21

Browse files
authored
Merge pull request #153 from openscad/fix-wasm-downloads
Fix WASM download, provide downloads for both web and node builds.
2 parents c99eeff + 1f9433a commit c6c8a21

File tree

2 files changed

+25
-16
lines changed

2 files changed

+25
-16
lines changed

assets/css/style.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ button {width: auto; overflow: visible;}
121121
.clearfix:after { clear: both; }
122122
.clearfix { zoom: 1; }
123123

124-
124+
.link-hover span {display:none;}
125+
.link-hover:hover span {display:inline;}
125126

126127
/* Stylings
127128
-------------------------------------------------------------------------------*/

downloads.html

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
</script>
5858
<script type="text/javascript" src="https://files.openscad.org/snapshots/.snapshot_wasm.js"></script>
5959
<script type="text/javascript" src="https://files.openscad.org/snapshots/.snapshot_macos.js"></script>
60-
<script type="text/javascript" src="https://files.openscad.org/snapshots/.snapshot_win32.js"></script>
6160
<script type="text/javascript" src="https://files.openscad.org/snapshots/.snapshot_win64.js"></script>
6261
<script type="text/javascript" src="https://files.openscad.org/snapshots/.snapshot_linux_x86_64.js"></script>
6362
<script type="text/javascript" src="https://files.openscad.org/snapshots/.snapshot_linux_aarch64.js"></script>
@@ -450,8 +449,8 @@ <h1>Docker</h1>
450449
<section id="snapshots">
451450
<h1>Development Snapshots</h1>
452451

453-
<div id="snapshots-osx" class="subsection">
454-
<h2>macOS</h2>
452+
<div id="snapshots-osx" class="subsection">
453+
<h2 class="link-hover">macOS<span> <a class="section-link" href="#snapshots-osx">§</a></span></h2>
455454

456455
<p>System requirements: macOS 11 "Big Sur" or newer, universal build supporting Intel and Apple Silicon systems.</p>
457456

@@ -465,7 +464,7 @@ <h3 id="MAC_SNAPSHOT_NAME">OpenSCAD</h3></a>
465464
</div>
466465

467466
<div id="snapshots-windows" class="subsection">
468-
<h2>Windows</h2>
467+
<h2 class="link-hover">Windows<span> <a class="section-link" href="#snapshots-windows">§</a></span></h2>
469468

470469
<p>System requirements: Windows 10 (64-bit), or newer, Intel/AMD system (ARM based systems are not supported).</p>
471470

@@ -489,7 +488,7 @@ <h3 id="WIN64_SNAPSHOT_ZIP_NAME">OpenSCAD</h3></a>
489488
</div>
490489

491490
<div id="snapshots-linux" class="subsection">
492-
<h2>Linux - AppImage</h2>
491+
<h2 class="link-hover">Linux - AppImage<span> <a class="section-link" href="#snapshots-linux">§</a></span></h2>
493492

494493
<p>The ARM 64-bit (aarch64) AppImage is built and tested only for
495494
<a href="https://www.raspberrypi.org/blog/latest-raspberry-pi-os-update-may-2020/">Raspberry PI OS 64-bit</a>
@@ -518,7 +517,7 @@ <h3 id="LIN_AARCH64_SNAPSHOT_NAME">OpenSCAD</h3>
518517
</div>
519518

520519
<div id="snapshots-snap" class="subsection">
521-
<h2>Linux - Snap</h2>
520+
<h2 class="link-hover">Linux - Snap<span> <a class="section-link" href="#snapshots-snap">§</a></span></h2>
522521

523522
<div class="store-button">
524523
<a href="https://snapcraft.io/openscad-nightly">
@@ -538,7 +537,7 @@ <h2>Linux - Snap</h2>
538537
</div>
539538

540539
<div id="snapshots-flatpak" class="subsection">
541-
<h2>Linux - Flatpak</h2>
540+
<h2 class="link-hover">Linux - Flatpak<span> <a class="section-link" href="#snapshots-flatpak">§</a></span></h2>
542541

543542
<div class="store-button">
544543
<a href="https://github.com/flathub/org.openscad.OpenSCAD/blob/master/README.md#beta-versions">
@@ -560,7 +559,7 @@ <h2>Linux - Flatpak</h2>
560559
</div>
561560

562561
<div id="snapshots-WASM" class="subsection">
563-
<h2>WebAssembly</h2>
562+
<h2 class="link-hover">WebAssembly<span> <a class="section-link" href="#snapshots-WASM">§</a></span></h2>
564563

565564
<img alt="WebAssembly Logo" style="margin-bottom: 2em" src="assets/img/web-assembly-icon-64px.png">
566565

@@ -577,15 +576,24 @@ <h2>WebAssembly</h2>
577576
<p>Try it out at <a href="https://ochafik.com/openscad">https://ochafik.com/openscad</a> or start with a
578577
slightly bigger <a href="https://tinyurl.com/262hkuu7">example</a>.</p>
579578

580-
<div class="download-button">
579+
<div class="left, download-button">
580+
<a id="WASM_WEB_SNAPSHOT_URL" href="https://files.openscad.org">
581+
<h3 id="WASM_WEB_SNAPSHOT_NAME">OpenSCAD</h3>
582+
</a>
583+
<small>WebAssembly - WEB package - </small><small id="WASM_WEB_SNAPSHOT_SIZE">?? MB</small><br>
584+
<small><a id="WASM_WEB_SNAPSHOT_ASC_URL" href="">asc</a></small> -
585+
<small><a id="WASM_WEB_SNAPSHOT_SHA256_URL" href="">sha256</a></small> -
586+
<small><a id="WASM_WEB_SNAPSHOT_SHA512_URL" href="">sha512</a></small>
587+
</div>
581588

582-
<a id="WASM_SNAPSHOT_URL" href="https://files.openscad.org">
583-
<h3 id="WASM_SNAPSHOT_NAME">OpenSCAD</h3>
589+
<div class="download-button">
590+
<a id="WASM_NODE_SNAPSHOT_URL" href="https://files.openscad.org">
591+
<h3 id="WASM_NODE_SNAPSHOT_NAME">OpenSCAD</h3>
584592
</a>
585-
<small>WebAssembly - zip package - </small><small id="WASM_SNAPSHOT_SIZE">?? MB</small><br>
586-
<small><a id="WASM_SNAPSHOT_ASC_URL" href="">asc</a></small> -
587-
<small><a id="WASM_SNAPSHOT_SHA256_URL" href="">sha256</a></small> -
588-
<small><a id="WASM_SNAPSHOT_SHA512_URL" href="">sha512</a></small>
593+
<small>WebAssembly - NODE package - </small><small id="WASM_NODE_SNAPSHOT_SIZE">?? MB</small><br>
594+
<small><a id="WASM_NODE_SNAPSHOT_ASC_URL" href="">asc</a></small> -
595+
<small><a id="WASM_NODE_SNAPSHOT_SHA256_URL" href="">sha256</a></small> -
596+
<small><a id="WASM_NODE_SNAPSHOT_SHA512_URL" href="">sha512</a></small>
589597
</div>
590598
</div>
591599

0 commit comments

Comments
 (0)