Last active
November 24, 2020 16:36
-
-
Save FabianoLothor/bca9de59681937ae868387ed5aa4fe93 to your computer and use it in GitHub Desktop.
Shuffle Name
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
<!-- Valid HTML Test --> | |
<!doctype html> | |
<html lang=en> | |
<meta charset=utf-8> | |
<pre id='data'></pre> | |
<script> | |
function onDataLoaded(data) { | |
var h2Content = data.feed.entry.find((entry) => entry.title.$t == 'H2').content.$t; | |
var h3Content = data.feed.entry.find((entry) => entry.title.$t == 'H3').content.$t; | |
document.getElementById('data').innerHTML = h2Content + " and " + h3Content; | |
} | |
var script = document.createElement("script"); | |
script.setAttribute("type", "text/javascript"); | |
script.setAttribute("src", "https://spreadsheets.google.com/feeds/cells/1wV6a7eE1WU1JK1WKVJD9UiyAj5FkiDjTmh3U6XAVD1M/1/public/full?alt=json-in-script&callback=onDataLoaded"); | |
document.getElementsByTagName("head")[0].appendChild(script); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment