Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Eaielectronic authored Aug 19, 2024
1 parent 5a48d1b commit 3ade683
Showing 1 changed file with 158 additions and 0 deletions.
158 changes: 158 additions & 0 deletions Electronix2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Jeux Vidéo Collection</title>
<style>
body {
font-family: 'Roboto', sans-serif;
background: url('https://cdn.pixabay.com/photo/2014/12/24/05/02/drop-of-water-578897_1280.jpg') no-repeat center center fixed;
background-size: cover;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
color: #333;
}
.container {
background: rgba(255, 255, 255, 0.9);
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
text-align: center;
max-width: 800px;
width: 100%;
}
.header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20px;
}
.header img {
width: 50px;
height: 50px;
border-radius: 10px;
}
.header h1 {
font-size: 24px;
margin: 0;
}
.game-section {
display: flex;
align-items: center;
margin: 20px 0;
}
.game-section img.icon {
width: 50px;
height: 50px;
margin-right: 20px;
}
.game-section img.game-image {
width: 400px; /* Agrandir l'image */
height: auto;
margin-left: 20px;
}
.game-details {
flex: 1;
text-align: left;
}
.download-btn {
background-color: #0F9D58;
color: white;
padding: 10px 15px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 14px;
margin: 5px;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.download-btnnon {
background-color: #9d0f0f;
color: white;
padding: 10px 15px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 14px;
margin: 5px;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.links {
margin-top: 20px;
display: flex;
justify-content: space-around;
}
.links a {
color: #0F9D58;
text-decoration: none;
font-size: 14px;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<img src="https://raw.githubusercontent.com/Eaielectronic/Electronix/main/logo_menu1.png" alt="Erreur">
<h1>Jeux Vidéo Collection</h1>
</div>
<div class="game-section">
<img src="https://raw.githubusercontent.com/Eaielectronic/Electronix/main/logo.svg" alt="Icône du jeu" class="icon">
<div class="game-details">

<h2>Appel The Adventure 1.6</h2>
<p>Un jeu de plateforme sympatique avec de très belles textures</p>
<a href="https://raw.githubusercontent.com/Eaielectronic/Electronix/main/source/Electronix3.html" class="download-btn" id="sendButton">Télécharger</a>
<p>Nombre de téléchargements : <span id="downloadCount">0</span></p>
</div>
<img src="https://raw.githubusercontent.com/Eaielectronic/Electronix/main/backgroud1.png" alt="Image du jeu" class="game-image">
</div>
<div class="game-section">
<img src="URL_DE_L_ICONE" alt="Icône du jeu" class="icon">
<div class="game-details">
<h2>Level EATEN! - v0.12</h2>
<p>Indisponible</p>
<a class="download-btnnon" >Indisponible</a>
<p>Nombre de téléchargements : <span id="downloadCount1">0</span></span></p>
</div>
<img src="URL_DE_L_IMAGE" alt="Image du jeu" class="game-image">
</div>
<div class="links">
<a href="https://github.com">GitHub</a>
<a href="https://scratch.mit.edu">Scratch</a>
<a href="https://turbowarp.org">TurboWarp</a>
<a href="https://raw.githubusercontent.com/Eaielectronic/Electronix/main/Electronix.html">Desktop</a>
<a href="https://dedespo.com">Crédit</a>
</div>
</div>
<script>
// Connexion au serveur WebSocket
const socket = new WebSocket('ws://localhost:8010');

// Mise à jour du nombre de téléchargements
socket.onmessage = function(event) {
try {
// Conversion du message reçu en JSON
const data = JSON.parse(event.data);
const key1 = data.key1;
const key2 = data.key2;
document.getElementById('downloadCount').textContent = key1;
document.getElementById('downloadCount1').textContent = key2;
} catch (error) {
console.error("Erreur lors du parsing JSON : ", error);
}
}

// Envoi de "get_count" au serveur WebSocket lors de l'ouverture de la connexion
socket.onopen = function() {
socket.send('get_count');
};
</script>
</body>
</html>

0 comments on commit 3ade683

Please sign in to comment.