@@ -13,26 +13,32 @@ Modern 8-bit Computer
1313It blends the core principles of 8-bit computing with modern hardware components, making it practical and capable of handling everyday tasks.
1414
1515<div class =" hero-split " >
16- <div ><span class =" emu-gallery " ><iframe id =" emu-gallery-frame " title = " X65 Emu " src =" /emu/emu.html?disable-speaker-icon&disable-gui&file= roms/mixed_modes.xex " ></ iframe ><a id =" emu-gallery-link " href =" /emu/?rom=roms/mixed_modes.xex#Emu " ></a ></span ></div >
16+ <div ><span class =" emu-gallery " ><img id =" emu-gallery-image " src =" /emu/roms/mixed_modes.gif " data-fallback = " /emu/ roms/mixed_modes.png " alt = " X65 emulator demo " ><a id =" emu-gallery-link " href =" /emu/?rom=roms/mixed_modes.xex#Emu " ></a ></span ></div >
1717<div ><a href =" /timeline.html " ><img src =" /media/2025-07-21_DEV-board.png " alt =" X65 DEV-board " ></a ></div >
1818</div >
1919
2020<script >
2121(function () {
2222 var demos = [
23- {% for item in site .data .emu % }{% if item .gallery % } " {% unless item.xex contains 'http' %}roms/{% endunless %}{{ item.xex }}" ,
23+ {% for item in site .data .emu % }{% if item .gallery % } {
24+ rom: " {% unless item.xex contains 'http' %}roms/{% endunless %}{{ item.xex }}" ,
25+ src: " /emu/roms/{% if item.gallery == true %}{{ item.img | replace: '.png', '.gif' }}{% else %}{{ item.img }}{% endif %}" ,
26+ png: " /emu/roms/{{ item.img }}"
27+ },
2428{% endif % }{% endfor % } ];
25- var frame = document .getElementById (' emu-gallery-frame ' );
29+ var image = document .getElementById (' emu-gallery-image ' );
2630 var link = document .getElementById (' emu-gallery-link' );
2731 var current = ' roms/mixed_modes.xex' ;
32+ image .onerror = function () { image .src = image .getAttribute (' data-fallback' ); };
2833 function swap () {
2934 if (demos .length === 0 ) return ;
3035 var next;
3136 do { next = demos[Math .floor (Math .random () * demos .length )]; }
32- while (demos .length > 1 && next === current);
33- current = next;
34- frame .src = ' /emu/emu.html?disable-speaker-icon&disable-gui&file=' + next;
35- link .href = ' /emu/?rom=' + next + ' #Emu' ;
37+ while (demos .length > 1 && next .rom === current);
38+ current = next .rom ;
39+ image .setAttribute (' data-fallback' , next .png );
40+ image .src = next .src ;
41+ link .href = ' /emu/?rom=' + next .rom + ' #Emu' ;
3642 }
3743 setInterval (swap, 30000 );
3844})();
0 commit comments