fake fullscreen 404 screen
Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
@@ -7,17 +7,23 @@
|
|||||||
<title>404</title>
|
<title>404</title>
|
||||||
<link href="/css/404.css" rel="stylesheet"/>
|
<link href="/css/404.css" rel="stylesheet"/>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body style="background-color: #EB3A60;">
|
||||||
<div style="text-align: center">
|
<div style="text-align: center">
|
||||||
<canvas id="rive-canvas" style="width: 100%; height: 100%; margin: auto; display: block;"></canvas>
|
<canvas id="rive-canvas" style="width: 100%; height: 100%; margin: auto; display: block;"></canvas>
|
||||||
</div>
|
</div>
|
||||||
<script src="https://unpkg.com/@rive-app/canvas"></script>
|
<script src="https://unpkg.com/@rive-app/canvas@2.20.0"></script>
|
||||||
<script>
|
<script>
|
||||||
const r = new rive.Rive({
|
const r = new rive.Rive({
|
||||||
src: "https://cdn.rive.app/animations/vehicles.riv",
|
src: "https://cdn.rive.app/animations/vehicles.riv",
|
||||||
|
// OR the path to a discoverable and public Rive asset
|
||||||
|
// src: '/public/example.riv',
|
||||||
canvas: document.getElementById("rive-canvas"),
|
canvas: document.getElementById("rive-canvas"),
|
||||||
autoplay: true,
|
autoplay: true,
|
||||||
fit: rive.Fit.Cover
|
// artboard: "Arboard", // Optional. If not supplied the default is selected
|
||||||
|
stateMachines: "bumpy",
|
||||||
|
onLoad: () => {
|
||||||
|
r.resizeDrawingSurfaceToCanvas();
|
||||||
|
},
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
Reference in New Issue
Block a user