Test
This commit is contained in:
parent
827965a8bb
commit
e53888a841
|
@ -7,10 +7,12 @@ path = path for the image starting from the root, for example /Dani/10225.jpg
|
|||
*/
|
||||
function changeUrlToFallback(aid,imgid,path) {
|
||||
try {
|
||||
document.getElementById(imgid).src = "http://serverissimo.freeddns.org:30081/apps/files_sharing/publicpreview/ffdqobqRg2ezKXt?file=" + path + "&x=1920&y=1080&a=true";
|
||||
//document.getElementById(imgid).src = "http://serverissimo.freeddns.org:30081/apps/files_sharing/publicpreview/ffdqobqRg2ezKXt?file=" + path + "&x=1920&y=1080&a=true";
|
||||
this.src = "http://serverissimo.freeddns.org:30081/apps/files_sharing/publicpreview/ffdqobqRg2ezKXt?file=" + path + "&x=1920&y=1080&a=true";
|
||||
} catch {}
|
||||
try {
|
||||
document.getElementById(aid).href = "http://serverissimo.freeddns.org:30081/apps/files_sharing/publicpreview/ffdqobqRg2ezKXt?file=" + path + "&x=1920&y=1080&a=true";
|
||||
//document.getElementById(aid).href = "http://serverissimo.freeddns.org:30081/apps/files_sharing/publicpreview/ffdqobqRg2ezKXt?file=" + path + "&x=1920&y=1080&a=true";
|
||||
this.href = "http://serverissimo.freeddns.org:30081/apps/files_sharing/publicpreview/ffdqobqRg2ezKXt?file=" + path + "&x=1920&y=1080&a=true";
|
||||
} catch {}
|
||||
}
|
||||
function changeUrlToFallbackNoTrue(aid,imgid,path) {
|
||||
|
|
|
@ -26,21 +26,11 @@
|
|||
</nav>
|
||||
</header>
|
||||
<h1>Autobus Urbani di SETA Modena</h1>
|
||||
<script>
|
||||
document.querySelectorAll('img').forEach(img => {
|
||||
img.addEventListener('error', function () {
|
||||
const fallback = this.getAttribute('data-fallback');
|
||||
if (fallback && this.src !== fallback) {
|
||||
this.src = fallback;
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<table class="image-table">
|
||||
<tr>
|
||||
<td>
|
||||
<p>113, 115-117, 120-121, 123-125, 128-132<br>Mercedes Citaro O530N Diesel</p>
|
||||
<a href="/setamodena_bus/urbano/citarodiesel.html"><img class="bus" src="http://serverissimo.freeddns.org:30081/apps/files_sharing/publicpreview/ffdqobqRg2ezKXt?file=/Leo/SETA/Citaro%20Diesel/117-2.jpg&fileId=9674&x=1920&y=1080&etag=cb5efc9e356f03195595921d182a8f54" data-fallback="https://drive-vichingo455.duckdns.org/apps/files_sharing/publicpreview/dydYxaqMrKce3Zj?file=/Leo/SETA/Citaro%20Diesel/117-2.jpg&fileId=234151&x=1920&y=1080" alt="Server foto non raggiungibile." style="width:100%"></a>
|
||||
<a href="/setamodena_bus/urbano/citarodiesel.html"><img class="bus" src="https://drive-vichingo455.duckdns.org/apps/files_sharing/publicpreview/dydYxaqMrKce3Zj?file=/Fogli/START/Bredamenarinibus%20M231%20CNG%20Start%20Ravenna/START10226.jpg&fileId=233903&x=1920&y=1080&etag=812a711d9fbd2dcca8e760c071231ad5" onerror='this.onerror=null; changeUrlToFallback("","bredino","/Fogli/START/Bredamenarinibus%20M231%20CNG%20Start%20Ravenna/START10226.jpg");' alt="Server foto non raggiungibile." style="width:100%"></a>
|
||||
</td>
|
||||
<td>
|
||||
<p>133-142<br>Irisbus Cityclass CNG CURSOR (ATCM)</p>
|
||||
|
|
Loading…
Reference in New Issue