mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-16 17:09:28 +08:00

The frontend interaction has been significantly updated, including improvements to the Greet function and the addition of an ongoing time display. Additionally, dependencies in package.json have been updated to their latest versions. Also, redundant print statement was removed from messageprocessor_call.go and changes were made to layout structure and styles in the main.go.tmpl and index.html files.
39 lines
1.1 KiB
HTML
39 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8"/>
|
|
<link rel="icon" type="image/svg+xml" href="/wails.png"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
<link rel="stylesheet" href="/style.css"/>
|
|
<title>Wails App</title>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div>
|
|
<a wml-openURL="https://wails.io">
|
|
<img src="/wails.png" class="logo" alt="Wails logo"/>
|
|
</a>
|
|
<a wml-openURL="https://developer.mozilla.org/en-US/docs/Web/JavaScript">
|
|
<img src="/javascript.svg" class="logo vanilla" alt="JavaScript logo"/>
|
|
</a>
|
|
</div>
|
|
<h1>Wails + Javascript</h1>
|
|
<div>
|
|
<p id="time">Listening for Time event...</p>
|
|
</div>
|
|
<div class="card">
|
|
<label for="name">Enter your name</label>
|
|
<input id="name" type="text"/>
|
|
<button onclick="doGreet()">Press me!</button>
|
|
</div>
|
|
<div>
|
|
<p id="greeting"> </p>
|
|
</div>
|
|
<p class="read-the-docs">
|
|
Click on the Wails logo to learn more
|
|
</p>
|
|
</div>
|
|
<script type="module" src="/main.js"></script>
|
|
</body>
|
|
</html>
|