Snippets: Linux Booting
CSS Before Head
HTML Head
html, body { font-family: "monospace"; padding: 0; margin: 0; } html, body, #screen { width: 100%; height: 100%; background: black; } #screen { color: #ddd; overflow: auto; padding: 5px; box-sizing: border-box; pointer-events: none; user-select: none; } #screen::-webkit-scrollbar { display: none; } span.ok, span.fail, span.fail:before, span.ok:before { margin-right: 10px; } span.ok { color: #1EC622; } span.fail { color: red; } span.ok:before, span.fail:before { content: '['; } span.ok:after, span.fail:after { margin-left: 10px; content: ']'; }
CSS After Head
JS Before HTML Body
<div id="screen"></div>
HTML Body
HTML Foot
// messages var strings = [ "Enabling /etc/fstab swaps", "INIT: Entering runlevel 3", "Entering non-interactive startup", "Applying INTEL CPU microcode update", "Checking for hardware changes", "Bringing up interface eth0", "Determining IP information for eth0... done.", "Starting autditd", "Starting restorecond", "Starting system logger", "Starting kernel logger", "Starting irqbalance", "Starting mcstausd", "Starting portmap", "Starting setroubleshootd", "Starting RPC idmapd", "Starting mdmonitor", "Starting system message bus", "Starting Bluetooth services", "Starting other filesystems", "Starting PC/SC smart card daemon (pcscd)", "Starting hidd", "Enabling /etc/fstab swaps", "INIT: Entering runlevel 3", "Entering non-interactive startup", "Applying INTEL CPU microcode update", "Checking for hardware changes", "Bringing up interface eth0", "Determining IP information for eth0... done.", "Starting autditd", "Starting restorecond", "Starting system logger", "Starting kernel logger", "Starting irqbalance", "Starting mcstausd", "Starting portmap", "Starting setroubleshootd", "Starting RPC idmapd", "Starting mdmonitor", "Starting system message bus", "Starting Bluetooth services", "Starting other filesystems", "Starting PC/SC smart card daemon (pcscd)", "Starting hidd", "Enabling /etc/fstab swaps", "INIT: Entering runlevel 3", "Entering non-interactive startup", "Applying INTEL CPU microcode update", "Checking for hardware changes", "Bringing up interface eth0", "Determining IP information for eth0... done.", "Starting autditd", "Starting restorecond", "Starting system logger", "Starting kernel logger", "Starting irqbalance", "Starting mcstausd", "Starting portmap", "Starting setroubleshootd", "Starting RPC idmapd", "Starting mdmonitor", "Starting system message bus", "Starting Bluetooth services", "Starting other filesystems", "Starting PC/SC smart card daemon (pcscd)", "Starting hidd", "Enabling /etc/fstab swaps", "INIT: Entering runlevel 3", "Entering non-interactive startup", "Applying INTEL CPU microcode update", "Checking for hardware changes", "Bringing up interface eth0", "Determining IP information for eth0... done.", "Starting autditd", "Starting restorecond", "Starting system logger", "Starting kernel logger", "Starting irqbalance", "Starting mcstausd", "Starting portmap", "Starting setroubleshootd", "Starting RPC idmapd", "Starting mdmonitor", "Starting system message bus", "Starting Bluetooth services", "Starting other filesystems", "Starting PC/SC smart card daemon (pcscd)", "Starting hidd", "Enabling /etc/fstab swaps", "INIT: Entering runlevel 3", "Entering non-interactive startup", "Applying INTEL CPU microcode update", "Checking for hardware changes", "Bringing up interface eth0", "Determining IP information for eth0... done.", "Starting autditd", "Starting restorecond", "Starting system logger", "Starting kernel logger", "Starting irqbalance", "Starting mcstausd", "Starting portmap", "Starting setroubleshootd", "Starting RPC idmapd", "Starting mdmonitor", "Starting system message bus", "Starting Bluetooth services", "Starting other filesystems", "Starting PC/SC smart card daemon (pcscd)", "Starting hidd", "Enabling /etc/fstab swaps", "INIT: Entering runlevel 3", "Entering non-interactive startup", "Applying INTEL CPU microcode update", "Checking for hardware changes", "Bringing up interface eth0", "Determining IP information for eth0... done.", "Starting autditd", "Starting restorecond", "Starting system logger", "Starting kernel logger", "Starting irqbalance", "Starting mcstausd", "Starting portmap", "Starting setroubleshootd", "Starting RPC idmapd", "Starting mdmonitor", "Starting system message bus", "Starting Bluetooth services", "Starting other filesystems", "Starting PC/SC smart card daemon (pcscd)", "Starting hidd", "Enabling /etc/fstab swaps", "INIT: Entering runlevel 3", "Entering non-interactive startup", "Applying INTEL CPU microcode update", "Checking for hardware changes", "Bringing up interface eth0", "Determining IP information for eth0... done.", "Starting autditd", "Starting restorecond", "Starting system logger", "Starting kernel logger", "Starting irqbalance", "Starting mcstausd", "Starting portmap", "Starting setroubleshootd", "Starting RPC idmapd", "Starting mdmonitor", "Starting system message bus", "Starting Bluetooth services", "Starting other filesystems", "Starting PC/SC smart card daemon (pcscd)", "Starting hidd", "Enabling /etc/fstab swaps", "INIT: Entering runlevel 3", "Entering non-interactive startup", "Applying INTEL CPU microcode update", "Checking for hardware changes", "Bringing up interface eth0", "Determining IP information for eth0... done.", "Starting autditd", "Starting restorecond", "Starting system logger", "Starting kernel logger", "Starting irqbalance", "Starting mcstausd", "Starting portmap", "Starting setroubleshootd", "Starting RPC idmapd", "Starting mdmonitor", "Starting system message bus", "Starting Bluetooth services", "Starting other filesystems", "Starting PC/SC smart card daemon (pcscd)", "Starting hidd", "Enabling /etc/fstab swaps", "INIT: Entering runlevel 3", "Entering non-interactive startup", "Applying INTEL CPU microcode update", "Checking for hardware changes", "Bringing up interface eth0", "Determining IP information for eth0... done.", "Starting autditd", "Starting restorecond", "Starting system logger", "Starting kernel logger", "Starting irqbalance", "Starting mcstausd", "Starting portmap", "Starting setroubleshootd", "Starting RPC idmapd", "Starting mdmonitor", "Starting system message bus", "Starting Bluetooth services", "Starting other filesystems", "Starting PC/SC smart card daemon (pcscd)", "Starting hidd", "Enabling /etc/fstab swaps", "INIT: Entering runlevel 3", "Entering non-interactive startup", "Applying INTEL CPU microcode update", "Checking for hardware changes", "Bringing up interface eth0", "Determining IP information for eth0... done.", "Starting autditd", "Starting restorecond", "Starting system logger", "Starting kernel logger", "Starting irqbalance", "Starting mcstausd", "Starting portmap", "Starting setroubleshootd", "Starting RPC idmapd", "Starting mdmonitor", "Starting system message bus", "Starting Bluetooth services", "Starting other filesystems", "Starting PC/SC smart card daemon (pcscd)", "Starting hidd", "Enabling /etc/fstab swaps", "INIT: Entering runlevel 3", "Entering non-interactive startup", "Applying INTEL CPU microcode update", "Checking for hardware changes", "Bringing up interface eth0", "Determining IP information for eth0... done.", "Starting autditd", "Starting restorecond", "Starting system logger", "Starting kernel logger", "Starting irqbalance", "Starting mcstausd", "Starting portmap", "Starting setroubleshootd", "Starting RPC idmapd", "Starting mdmonitor", "Starting system message bus", "Starting Bluetooth services", "Starting other filesystems", "Starting PC/SC smart card daemon (pcscd)", "Starting hidd", "Enabling /etc/fstab swaps", "INIT: Entering runlevel 3", "Entering non-interactive startup", "Applying INTEL CPU microcode update", "Checking for hardware changes", "Bringing up interface eth0", "Determining IP information for eth0... done.", "Starting autditd", "Starting restorecond", "Starting system logger", "Starting kernel logger", "Starting irqbalance", "Starting mcstausd", "Starting portmap", "Starting setroubleshootd", "Starting RPC idmapd", "Starting mdmonitor", "Starting system message bus", "Starting Bluetooth services", "Starting other filesystems", "Starting PC/SC smart card daemon (pcscd)", "Starting hidd", ]; var screen = document.getElementById('screen'); var delay = 1000; var count = 0; var repeat = 0; function addLog() { var row = createLog('ok', count); screen.appendChild(row); goScrollToBottom(); count++; if (repeat == 0) { if (count > 3) { delay = 300; } if (count > 6) { delay = 100; } if (count > 8) { delay = 50; } if (count > 10) { delay = 10; } } else { if (count > 3) { delay = 10; } } if (count < strings.length) { setTimeout(function() { return addLog(); }, delay); } else { if (repeat != 1) { count = 0; repeat++; setTimeout(function() { delay = 1000; return addLog(); }, 1000); } else { var failRow = createLog('fail'); screen.appendChild(failRow); goScrollToBottom(); } } } function createLog(type, index) { var row = document.createElement('div'); var spanStatus = document.createElement('span'); spanStatus.className = type; spanStatus.innerHTML = type.toUpperCase(); var message = (index != null) ? strings[index] : 'Kernel: PCCT header not found.'; var spanMessage = document.createElement('span'); spanMessage.innerHTML = message; row.appendChild(spanStatus); row.appendChild(spanMessage); return row; } function goScrollToBottom() { screen.scrollTop = screen.scrollHeight - screen.clientHeight; } addLog();
JS After HTML Body
Full HTML Code