Fix temporaneo notizie seta

This commit is contained in:
Leocraft1
2025-11-03 17:01:15 +01:00
parent afdca4250b
commit 2a4cee4e72
2 changed files with 59 additions and 50 deletions

View File

@@ -3,6 +3,11 @@ const newsContainer = document.getElementById('news-container');
//URL //URL
const newsURL = "https://setaapi.serverissimo.freeddns.org/allnews"; const newsURL = "https://setaapi.serverissimo.freeddns.org/allnews";
//Vars
const trimWidth = 250;
const trimMargins = 16;
const trimLines = 2;
newsContainer.innerHTML="<p>Caricamento notizie...</p>"; newsContainer.innerHTML="<p>Caricamento notizie...</p>";
fetch(newsURL) fetch(newsURL)
.then(response => { .then(response => {

102
style.css
View File

@@ -311,8 +311,9 @@ table.image-table img {
border: 3px solid #787878; border: 3px solid #787878;
border-radius: 8px; border-radius: 8px;
background-color: #282828; background-color: #282828;
min-width: 320px; min-width: 250px;
min-height: 146px; max-height: 113px;
overflow: hidden;
display: flex; display: flex;
align-items:center; align-items:center;
} }
@@ -336,7 +337,7 @@ span.yellow{
font-weight: 700; font-weight: 700;
} }
span.green{ span.green{
color: rgb(0, 160, 0) !important; color: rgb(0, 220, 0) !important;
font-weight: 700; font-weight: 700;
} }
span.blu{ span.blu{
@@ -347,52 +348,7 @@ span.blu{
text-align: left; text-align: left;
margin:64px; margin:64px;
} }
@media (max-width: 768px) { /*Zona lista mezzi*/
table.image-table {
width: 100%;
}
table.image-table td {
display: block;
width: 100%;
}
table.image-table img {
margin-bottom: 10px;
}
.container {
flex-direction: column;
margin-left:0;
margin-right:0;
}
iframe.chisiamo{
width: 340px;
height: 190px;
}
table.greenhead{
width: 100%;
}
table.greenhead td,table.greenhead th{
border: 2px solid #444;
padding: 1.8vw;
padding-top: 1.5vw;
padding-bottom: 1.5vw;
}
nav ul:last-child li {
margin-right: 20px;
}
nav ul li {
margin-right: 8px;
}
img.service{
width:80% !important;
}
#notizia-container{
margin:12px;
margin-top: 24px;
}
}
/*zona lista mezzi*/
.lista-mezzi{ .lista-mezzi{
width: 80vw; width: 80vw;
border-collapse: separate; border-collapse: separate;
@@ -484,3 +440,51 @@ span.blu{
margin: 20px; margin: 20px;
font-size: 16px; font-size: 16px;
} }
@media (max-width: 768px) {
table.image-table {
width: 100%;
}
table.image-table td {
display: block;
width: 100%;
}
table.image-table img {
margin-bottom: 10px;
}
.container {
flex-direction: column;
margin-left:0;
margin-right:0;
}
iframe.chisiamo{
width: 340px;
height: 190px;
}
table.greenhead{
width: 100%;
}
table.greenhead td,table.greenhead th{
border: 2px solid #444;
padding: 1.8vw;
padding-top: 1.5vw;
padding-bottom: 1.5vw;
}
nav ul:last-child li {
margin-right: 20px;
}
nav ul li {
margin-right: 8px;
}
img.service{
width:80% !important;
}
.news-card{
min-width: 250px;
}
#notizia-container{
margin:12px;
margin-top: 24px;
}
}