This commit is contained in:
2026-03-08 22:49:39 +01:00
parent 5d29d6f3b6
commit c752553d2e
14 changed files with 255 additions and 52 deletions

View File

@@ -14,10 +14,18 @@ Please press this <button id="btn">Button</button> for something to happen.
Some input text: <input type="Text" id="inp1" value="Default input value" />
</p>
<div id="test" class="yellow">
<p> Hi there!</p>
<p> Hi there! <a href="/">Click here to load this page again</a></p>
<p> To <a href="page2.html">page 2</a></p>
</div>
<h1 id="t" class="blue">Ja</h1>
Ja
<h1> Nou...</h1>
<div class="image">
<img src="test.jpg" />
</div>
<script>
console.log(document.cookie);
document.cookie = "test-koekje=koekje_in_seconden:" + Date.now();
</script>
</body>
</html>

17
example/page2.html Normal file
View File

@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Example of racket webview</title>
<link href="/styles.css" rel="stylesheet" />
</head>
<body>
<h1 id="h1">This is Page 2</h1>
<div id="test" class="yellow">
<p> Hi there! <a href="/">Click here to load this main page again</a></p>
</div>
<div class="image">
<img src="test.jpg" />
</div>
</body>
</html>

View File

@@ -20,4 +20,12 @@ h1.blue {
color: red;
}
.image {
width: 70%;
}
.image img {
width: 100%;
}

BIN
example/test.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB