Projektstart
This commit is contained in:
1
backend/node_modules/@fastify/static/example/public/.hidden/sample.json
generated
vendored
Normal file
1
backend/node_modules/@fastify/static/example/public/.hidden/sample.json
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"hello": "world"}
|
||||
BIN
backend/node_modules/@fastify/static/example/public/images/sample.jpg
generated
vendored
Normal file
BIN
backend/node_modules/@fastify/static/example/public/images/sample.jpg
generated
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 43 KiB |
9
backend/node_modules/@fastify/static/example/public/index.css
generated
vendored
Normal file
9
backend/node_modules/@fastify/static/example/public/index.css
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
#my-button {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 200px;
|
||||
height: 28px;
|
||||
margin-top: -14px;
|
||||
margin-left: -100px;
|
||||
}
|
||||
11
backend/node_modules/@fastify/static/example/public/index.html
generated
vendored
Normal file
11
backend/node_modules/@fastify/static/example/public/index.html
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<html>
|
||||
<head>
|
||||
<script src="index.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="index.css"></link>
|
||||
</head>
|
||||
<body>
|
||||
<button id="my-button">
|
||||
The button
|
||||
</button>
|
||||
</body>
|
||||
</html>
|
||||
8
backend/node_modules/@fastify/static/example/public/index.js
generated
vendored
Normal file
8
backend/node_modules/@fastify/static/example/public/index.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
'use strict'
|
||||
|
||||
window.onload = function () {
|
||||
const b = document.getElementById('my-button')
|
||||
b.onclick = function () {
|
||||
window.alert('foo')
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user