mirror of
https://github.com/Pathduck/pathduck.github.io.git
synced 2025-12-29 11:45:20 -05:00
23 lines
603 B
HTML
Executable File
23 lines
603 B
HTML
Executable File
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Javascript Tests</title>
|
|
<style>body {color: white; background: darkslategray;} a {color: deepskyblue;}</style>
|
|
</head>
|
|
<body>
|
|
|
|
<h3>Hello World</h3>
|
|
<script>document.write("Click here:");</script>
|
|
<button type="button" onclick='document.getElementById("demo").innerHTML = "Hello JavaScript!"'>Click Me!</button>
|
|
<pre id="demo"></pre>
|
|
|
|
<h3>REST Test</h3>
|
|
<button onclick="callWs()">Fetch</button><br>
|
|
<b>HTTP Response: </b><code id="result"></code><br>
|
|
<b>JSON Response: </b><code id="result_json"></code>
|
|
|
|
<script src="functions.js"></script>
|
|
|
|
</body>
|
|
</html>
|