mirror of
				https://github.com/slint-ui/slint.git
				synced 2025-11-03 21:24:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			41 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
<!DOCTYPE html>
 | 
						|
 | 
						|
<!-- Copyright © SixtyFPS GmbH <info@slint.dev> -->
 | 
						|
<!-- SPDX-License-Identifier: MIT -->
 | 
						|
 | 
						|
<html>
 | 
						|
<!--
 | 
						|
    This is a static html file used to display the wasm build.
 | 
						|
    In order to generate the build
 | 
						|
     - Run `wasm-pack build --release --target web` in this directory.
 | 
						|
  -->
 | 
						|
 | 
						|
 | 
						|
<head>
 | 
						|
  <meta charset="UTF-8">
 | 
						|
  <title>Slint Todo Demo (Web Assembly version)</title>
 | 
						|
  <link rel="stylesheet" href="https://slint.dev/css/demos-v1.css">
 | 
						|
</head>
 | 
						|
 | 
						|
<body>
 | 
						|
  <p>This is the <a href="https://slint.dev">Slint</a> Todo Demo compiled to WebAssembly.</p>
 | 
						|
  <div id="spinner" style="position: relative;">
 | 
						|
    <div class="spinner">Loading...</div>
 | 
						|
  </div>
 | 
						|
  <canvas id="canvas" unselectable="on" data-slint-auto-resize-to-preferred="true"></canvas>
 | 
						|
  <p class="links">
 | 
						|
    <a href="https://github.com/slint-ui/slint/blob/master/examples/todo/">
 | 
						|
      View Source Code on GitHub</a> -
 | 
						|
    <a href="https://slint.dev/editor?load_demo=examples/todo/ui/todo.slint">
 | 
						|
      Open in SlintPad
 | 
						|
    </a>
 | 
						|
  </p>
 | 
						|
  <script type="module">
 | 
						|
    import init from './pkg/todo_lib.js';
 | 
						|
    init().finally(() => {
 | 
						|
      document.getElementById("spinner").remove();
 | 
						|
    });
 | 
						|
  </script>
 | 
						|
</body>
 | 
						|
 | 
						|
</html>
 |