team-9/testing/index.html
2025-08-02 04:07:17 +02:00

164 lines
No EOL
4.8 KiB
HTML

<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Template APP</title>
<style>
body {
font-family: Arial, sans-serif;
max-width: 800px;
margin: 50px auto;
padding: 20px;
background-color: #f5f5f5;
}
.container {
background: white;
padding: 30px;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
h1 {
color: #333;
text-align: center;
margin-bottom: 30px;
}
.button-group {
display: flex;
gap: 20px;
justify-content: center;
margin-bottom: 30px;
}
button {
padding: 15px 30px;
font-size: 16px;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}
.btn-get {
background-color: #4CAF50;
color: white;
}
.btn-get:hover {
background-color: #45a049;
}
.btn-post {
background-color: #2196F3;
color: white;
}
.btn-post:hover {
background-color: #1976D2;
}
.btn-coordinates {
background-color: #FF9800;
color: white;
}
.btn-coordinates:hover {
background-color: #F57C00;
}
.btn-gps {
background-color: #9C27B0;
color: white;
}
.btn-gps:hover {
background-color: #7B1FA2;
}
.btn-molinella {
background-color: #795548;
color: white;
}
.btn-molinella:hover {
background-color: #5D4037;
}
.btn-queue-add {
background-color: #4CAF50;
color: white;
}
.btn-queue-add:hover {
background-color: #45a049;
}
.btn-queue-read {
background-color: #2196F3;
color: white;
}
.btn-queue-read:hover {
background-color: #1976D2;
}
.btn-queue-vote-up {
background-color: #FF9800;
color: white;
}
.btn-queue-vote-up:hover {
background-color: #F57C00;
}
.btn-queue-vote-down {
background-color: #F44336;
color: white;
}
.btn-queue-vote-down:hover {
background-color: #D32F2F;
}
.btn-queue-delete {
background-color: #9C27B0;
color: white;
}
.btn-queue-delete:hover {
background-color: #7B1FA2;
}
.result {
background-color: #f9f9f9;
border: 1px solid #ddd;
border-radius: 5px;
padding: 20px;
margin-top: 20px;
white-space: pre-wrap;
font-family: monospace;
max-height: 400px;
overflow-y: auto;
}
.status {
padding: 10px;
border-radius: 5px;
margin-bottom: 10px;
}
.success {
background-color: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}
.error {
background-color: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}
</style>
</head>
<body>
<div class="container">
<h1>🚀 Simple Fullstack App</h1>
<div class="button-group">
<button class="btn-get" onclick="getData()">📥 GET Data</button>
<button class="btn-post" onclick="createData()">📤 POST Data</button>
<button class="btn-coordinates" onclick="createCoordinates()">📍 POST Coordinates</button>
<button class="btn-gps" onclick="checkGPSLocation()">🌍 Check GPS Location</button>
<button class="btn-molinella" onclick="sendMolinellaCoordinates()">🏘️ Send Molinella coordinates</button>
</div>
<div class="button-group">
<button class="btn-queue-add" onclick="addQueueItem()">🎵 Add Song</button>
<button class="btn-queue-read" onclick="readQueue()">📋 Read Queue</button>
<button class="btn-queue-vote-up" onclick="voteUp()">👍 Vote Up</button>
<button class="btn-queue-vote-down" onclick="voteDown()">👎 Vote Down</button>
<button class="btn-queue-delete" onclick="deleteQueueItem()">🗑️ Delete Item</button>
</div>
<div id="status"></div>
<div id="result" class="result" style="display: none;"></div>
</div>
<script src="script.js"></script>
</body>
</html>