Procházet zdrojové kódy

Allow text to contain HTML tags

tags/v0.1.3
Fen Dweller před 5 roky
rodič
revize
2374ee0bdb
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. +1
    -1
      satiate.js
  2. +1
    -1
      stories/demo.js

+ 1
- 1
satiate.js Zobrazit soubor

@@ -54,7 +54,7 @@ function print(lines) {
const log = document.querySelector("#log");
const div = document.createElement("div");

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

bigDiv.appendChild(div);
});


+ 1
- 1
stories/demo.js Zobrazit soubor

@@ -13,7 +13,7 @@ stories.push({
state.player.stats.number = {name: "Number", type: "counter", value: 0, max: 10, color: "rgb(255,255,255)"};
},
"intro": () => {
print(["don't fall down the stairs ok"]);
print(["<b>don't fall down the stairs ok</b>"]);
}
},
"sounds": [


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