Moved files

This commit is contained in:
Quentin ANIERE 2022-04-09 00:14:20 +02:00
parent 01461c0e13
commit caa060a500
17 changed files with 24 additions and 665 deletions

File diff suppressed because it is too large Load Diff

View File

@ -33,6 +33,8 @@ io.on("connection", (client) => {
io.sockets.emit("update-count", {value: usersConnected}); io.sockets.emit("update-count", {value: usersConnected});
}); });
app.use(express.static("src"));
server.listen(3000, () => { server.listen(3000, () => {
console.log("Server started on port 3000"); console.log("Server started on port 3000");
}); });

View File

@ -1,15 +0,0 @@
document.addEventListener('DOMContentLoaded', () => {
var socket = io("https://danby.aniere.fr:3000");
socket.on("update-count", (data) => {
document.getElementById("value").innerText = data.value;
});
});
const swiper = new Swiper('.swiper', {
direction: "horizontal",
loop: true,
autoplay: true,
speed: 400,
spaceBetween: 100,
});

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 83 KiB

View File

Before

Width:  |  Height:  |  Size: 103 KiB

After

Width:  |  Height:  |  Size: 103 KiB

View File

Before

Width:  |  Height:  |  Size: 236 KiB

After

Width:  |  Height:  |  Size: 236 KiB

View File

Before

Width:  |  Height:  |  Size: 247 KiB

After

Width:  |  Height:  |  Size: 247 KiB

View File

Before

Width:  |  Height:  |  Size: 95 KiB

After

Width:  |  Height:  |  Size: 95 KiB

View File

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 52 KiB

View File

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB

View File

Before

Width:  |  Height:  |  Size: 122 KiB

After

Width:  |  Height:  |  Size: 122 KiB

22
src/script.js Normal file
View File

@ -0,0 +1,22 @@
document.addEventListener('DOMContentLoaded', () => {
try {
var socket = io("https://danby.aniere.fr:3000");
socket.on("update-count", (data) => {
document.getElementById("value").innerText = data.value;
});
} catch(error) {
document.getElementById("value").innerText = "Serveur injoingnable !";
}
});
const swiper = new Swiper('.swiper', {
direction: "horizontal",
loop: true,
autoplay: true,
speed: 400,
spaceBetween: 100,
});