Created
September 30, 2017 14:23
-
-
Save batisteo/5560f328a47b9eef67e66623ad518b74 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul id="aligxintoj"></ul> | |
<script src="https://unpkg.com/tabletop/src/tabletop.min.js"></script> | |
<script> | |
function listigi(datumo) { | |
const ul = document.getElementById("aligxintoj"); | |
datumo.forEach(function(homo) { | |
const li = document.createElement("li"); | |
li.innerHTML = `${homo.Nomo} (${homo.Lando})`; | |
ul.appendChild(li); | |
}) | |
} | |
if (document.getElementById("aligxintoj")) { | |
const url = "https://docs.google.com/spreadsheets/d/IDENTIGILO/pubhtml?gid=NUMERO&single=true"; | |
Tabletop.init({key: url, callback: listigi, simpleSheet: true}) | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nepre anstataŭigu la
url
per la ligilo donita de Google Spreadsheet.Eblas ŝanĝi la aspekton en tiu linio:
Notu ke
Nomo
kajLando
estas la titolo de la kolumnoj en la dokumento. Ŝanĝu se bezonata.Eblas aldoni stilon per: