index.html 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  6. <title>Avalonia Sample</title>
  7. <base href="/" />
  8. <link href="css/app.css" rel="stylesheet" />
  9. </head>
  10. <body>
  11. <div id="app">Powered by Avalonia</div>
  12. <div id="blazor-error-ui">
  13. An unhandled error has occurred.
  14. <a href="" class="reload">Reload</a>
  15. <a class="dismiss">🗙</a>
  16. </div>
  17. <script src="js/app.js"></script>
  18. <script src="_framework/blazor.webassembly.js"></script>
  19. </body>
  20. <script>
  21. clearInput = () => {
  22. document.getElementById("inputBox").value = "";
  23. }
  24. focusInput = () => {
  25. document.getElementById("inputBox").focus();
  26. }
  27. finishInput = () => {
  28. document.getElementById("container").focus();
  29. };
  30. setCursor = (kind) => {
  31. document.getElementById("inputBox").style.cursor = kind;
  32. };
  33. hideInput = () => {
  34. document.getElementById('inputBox').style.display = 'none';
  35. };
  36. showInput = () => {
  37. document.getElementById('inputBox').style.display = 'block';
  38. };
  39. </script>
  40. </html>