Skip to content

Instantly share code, notes, and snippets.

@perguth

perguth/index.html

Last active Aug 16, 2019
Embed
What would you like to do?
Some website starter.
<!doctype html>
<title>My website</title>
<!-- Validate your own here: https://validator.w3.org/ -->
<main>
<h1>My website</h1>
<p>Some texts.</p>
</main>
<script>
setTimeout(_ => {
const paragraphs = document.getElementsByTagName('p')
const firstParagraph = paragraphs[0]
firstParagraph.innerHTML = 'Some other text.'
firstParagraph.style.backgroundColor = 'pink'
}, 1300)
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment