Commit bc77d715 authored by  JosephK's avatar JosephK

Better text fallback display

parent 0344b860
Pipeline #44935 passed with stages
in 49 seconds
......@@ -16,7 +16,7 @@
leaderboard: 'Leaderboard (728 x 90)',
medium: 'Medium rectangle (350 x 200)',
fbanner: 'Static banner',
none: 'None',
none: 'None (random)',
tags: 'Tags',
colors: 'Colors',
background: 'Background',
......@@ -40,7 +40,7 @@
leaderboard: 'Entête large (728 x 90)',
medium: 'Rectangle moyen (350 x 200)',
fbanner: 'Forcer une bannière',
none: 'Aucune',
none: 'Aucune (aléatoire)',
tags: 'Mots-clés',
colors: 'Couleurs',
background: 'Arrière-plan',
......@@ -483,10 +483,9 @@
html = `
<a id="img" href="${d[id].link[llg]}" target="_blank" title="${d[id].text[tlg].join(' - ')}">
<img alt="" src="img/${id}-${w}_${h}-${llg}.${type}"
onload="document.getElementById('text').style='display:none;';"
onerror="this.style='display:none;';" />
onerror="this.style='display:none;';document.getElementById('text').style='';" />
</a>
<a id="text" href="${d[id].link[llg]}" target="_blank">
<a id="text" href="${d[id].link[llg]}" target="_blank" style="display:none;">
<h1>${t1}</h1>
<p>${d[id].link[llg].split('/')[2]}</p>
<h2>${t2}</h2>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment