Mercurial > core / rust/ui/alik/index.html
changeset 698: |
96958d3eb5b0 |
parent: |
7963217e1d39
|
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Fri, 04 Oct 2024 22:04:59 -0400 |
permissions: |
-rw-r--r-- |
description: |
fixes |
3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <!-- Disable zooming: --> 6 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> 9 <!-- change this to your project name --> 12 <!-- config for our rust wasm binary. go to https://trunkrs.dev/assets/#rust for more customization --> 13 <link data-trunk rel="rust" data-wasm-opt="2" /> 14 <!-- this is the base url relative to which other urls will be constructed. trunk will insert this from the public-url option --> 15 <base data-trunk-public-url /> 16 <link data-trunk rel="copy-file" href="sw.js" /> 17 <meta name="theme-color" media="(prefers-color-scheme: light)" content="white"> 18 <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#404040"> 22 /* Remove touch delay: */ 23 touch-action: manipulation; 27 /* Light mode background color for what is not covered by the egui canvas, 28 or where the egui canvas is translucent. */ 32 @media (prefers-color-scheme: dark) { 34 /* Dark mode background color for what is not covered by the egui canvas, 35 or where the egui canvas is translucent. */ 40 /* Allow canvas to fill entire web page: */ 45 padding: 0 !important; 50 /* Position canvas in center-top: */ 58 transform: translate(-50%, 0%); 68 transform: translate(-50%, -50%); 71 font-family: Ubuntu-Light, Helvetica, sans-serif; 75 /* ---------------------------------------------- */ 76 /* Loading animation from https://loading.io/css/ */ 78 display: inline-block; 83 .lds-dual-ring:after { 90 border: 3px solid #fff; 91 border-color: #fff transparent #fff transparent; 92 animation: lds-dual-ring 1.2s linear infinite; 95 @keyframes lds-dual-ring { 97 transform: rotate(0deg); 101 transform: rotate(360deg); 109 <!-- The WASM code will resize the canvas dynamically --> 110 <!-- the id is hardcoded in main.rs . so, make sure both match. --> 111 <canvas id="app_canvas"></canvas> 113 <!--Register Service Worker. this will cache the wasm / js scripts for offline use (for PWA functionality). --> 114 <!-- Force refresh (Ctrl + F5) to load the latest files instead of cached files --> 116 // We disable caching during development so that we always view the latest version. 117 if ('serviceWorker' in navigator && window.location.hash !== "#dev") { 118 window.addEventListener('load', function () { 119 navigator.serviceWorker.register('sw.js');