Skip to content

Commit

Permalink
adds control flow
Browse files Browse the repository at this point in the history
  • Loading branch information
damirka committed Mar 18, 2024
1 parent cd1d800 commit 2e1e89d
Show file tree
Hide file tree
Showing 78 changed files with 1,148 additions and 6,600 deletions.
222 changes: 0 additions & 222 deletions sui/404.html

This file was deleted.

16 changes: 16 additions & 0 deletions sui/appendix/glossary.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,22 @@ <h2 id="abilities"><a class="header" href="#abilities">Abilities</a></h2>

</div>

<!-- Livereload script (if served using the cli tool) -->
<script>
const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
const wsAddress = wsProtocol + "//" + location.host + "/" + "__livereload";
const socket = new WebSocket(wsAddress);
socket.onmessage = function (event) {
if (event.data === "reload") {
socket.close();
location.reload();
}
};

window.onbeforeunload = function() {
socket.close();
}
</script>



Expand Down
78 changes: 0 additions & 78 deletions sui/ayu-highlight.css

This file was deleted.

16 changes: 16 additions & 0 deletions sui/basic-syntax/address.html
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,22 @@ <h2 id="conversion"><a class="header" href="#conversion">Conversion</a></h2>

</div>

<!-- Livereload script (if served using the cli tool) -->
<script>
const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
const wsAddress = wsProtocol + "//" + location.host + "/" + "__livereload";
const socket = new WebSocket(wsAddress);
socket.onmessage = function (event) {
if (event.data === "reload") {
socket.close();
location.reload();
}
};

window.onbeforeunload = function() {
socket.close();
}
</script>



Expand Down
16 changes: 16 additions & 0 deletions sui/basic-syntax/assert-and-abort.html
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,22 @@ <h2 id="further-reading"><a class="header" href="#further-reading">Further readi

</div>

<!-- Livereload script (if served using the cli tool) -->
<script>
const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
const wsAddress = wsProtocol + "//" + location.host + "/" + "__livereload";
const socket = new WebSocket(wsAddress);
socket.onmessage = function (event) {
if (event.data === "reload") {
socket.close();
location.reload();
}
};

window.onbeforeunload = function() {
socket.close();
}
</script>



Expand Down
16 changes: 16 additions & 0 deletions sui/basic-syntax/comments.html
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,22 @@ <h2 id="doc-comment"><a class="header" href="#doc-comment">Doc comment</a></h2>

</div>

<!-- Livereload script (if served using the cli tool) -->
<script>
const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
const wsAddress = wsProtocol + "//" + location.host + "/" + "__livereload";
const socket = new WebSocket(wsAddress);
socket.onmessage = function (event) {
if (event.data === "reload") {
socket.close();
location.reload();
}
};

window.onbeforeunload = function() {
socket.close();
}
</script>



Expand Down
16 changes: 16 additions & 0 deletions sui/basic-syntax/constants.html
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,22 @@ <h2 id="constants-are-immutable"><a class="header" href="#constants-are-immutabl

</div>

<!-- Livereload script (if served using the cli tool) -->
<script>
const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
const wsAddress = wsProtocol + "//" + location.host + "/" + "__livereload";
const socket = new WebSocket(wsAddress);
socket.onmessage = function (event) {
if (event.data === "reload") {
socket.close();
location.reload();
}
};

window.onbeforeunload = function() {
socket.close();
}
</script>



Expand Down
Loading

0 comments on commit 2e1e89d

Please sign in to comment.