Procházet zdrojové kódy

Revert "Separate the most recent log entry from the rest; darken older text slightly"

This reverts commit ea16c5c3ea.
geta
Fen Dweller před 5 roky
rodič
revize
b15fa336d7
2 změnil soubory, kde provedl 3 přidání a 15 odebrání
  1. +1
    -10
      satiate.css
  2. +2
    -5
      satiate.js

+ 1
- 10
satiate.css Zobrazit soubor

@@ -195,15 +195,6 @@ a:hover {
overflow: auto; overflow: auto;
} }


#log > div:not(last-child) {
color: #ddd;
}

#log > div:last-child {
margin-top: 16pt;
color: #fff;
}

.sidebar { .sidebar {
background: rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.1);
padding: 25px; padding: 25px;
@@ -298,7 +289,7 @@ a:hover {
background-color: #888; background-color: #888;
color: #eee; color: #eee;
margin: 5px; margin: 5px;
font-size: 16pt;
font-size: 24px;
} }






+ 2
- 5
satiate.js Zobrazit soubor

@@ -49,18 +49,15 @@ const tags = {
}; };


function print(lines) { function print(lines) {
const bigDiv = document.createElement("div");
([newline].concat(lines)).forEach(line => {
(lines.concat([newline])).forEach(line => {
const log = document.querySelector("#log"); const log = document.querySelector("#log");
const div = document.createElement("div"); const div = document.createElement("div");


div.textContent = line; div.textContent = line;


bigDiv.appendChild(div);
log.appendChild(div);
}); });


log.appendChild(bigDiv);

log.scrollTop = log.scrollHeight; log.scrollTop = log.scrollHeight;
} }




Načítá se…
Zrušit
Uložit