Skip to content

Commit

Permalink
update 1710883240
Browse files Browse the repository at this point in the history
  • Loading branch information
damirka committed Mar 19, 2024
1 parent 6bcc3e9 commit 1aec509
Show file tree
Hide file tree
Showing 68 changed files with 1,062 additions and 6 deletions.
16 changes: 16 additions & 0 deletions sui/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,22 @@ <h1 id="document-not-found-404"><a class="header" href="#document-not-found-404"

</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/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
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 @@ -268,6 +268,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 @@ -276,6 +276,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 @@ -261,6 +261,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
16 changes: 16 additions & 0 deletions sui/basic-syntax/control-flow.html
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,22 @@ <h2 id="early-return"><a class="header" href="#early-return">Early Return</a></h

</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/copy-ability.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,22 @@ <h2 id="copying-and-drop"><a class="header" href="#copying-and-drop">Copying and

</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/drop-ability.html
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,22 @@ <h2 id="drop-ability"><a class="header" href="#drop-ability">Drop ability</a></h

</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/expression.html
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,22 @@ <h2 id="control-flow-expressions"><a class="header" href="#control-flow-expressi

</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/function.html
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,22 @@ <h2 id="multiple-return-values"><a class="header" href="#multiple-return-values"

</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/generics.html
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,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/importing-modules.html
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,22 @@ <h2 id="importing-a-module-from-another-package"><a class="header" href="#import

</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/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,22 @@ <h1 id="basic-syntax"><a class="header" href="#basic-syntax">Basic Syntax</a></h

</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/module.html
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,22 @@ <h2 id="address-block"><a class="header" href="#address-block">Address block</a>

</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/option.html
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,22 @@ <h2 id="using-option"><a class="header" href="#using-option">Using Option</a></h

</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/ownership-and-scope.html
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,22 @@ <h2 id="copyable-types"><a class="header" href="#copyable-types">Copyable Types<

</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 1aec509

Please sign in to comment.