Update 'index.html'

This commit is contained in:
Maxwell Drake 2024-04-07 21:16:40 +00:00
parent 2519e7115d
commit e210ca0ac9

View file

@ -17,8 +17,10 @@ Also it's a test if things are working.
* ####ing magnets, how do they work!?! * ####ing magnets, how do they work!?!
`)) `))
createParagraph("paragraphLorum", `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed pulvinar nisl eu risus tincidunt, non aliquet metus tempor. Duis ac tortor commodo, venenatis leo at, consectetur nulla.`) createParagraph("paragraphLorum", `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed pulvinar nisl eu risus tincidunt, non aliquet metus tempor. Duis ac tortor commodo, venenatis leo at, consectetur nulla.`)
createImage("moz", "https://upload.wikimedia.org/wikipedia/commons/5/5c/Mozilla_dinosaur_head_logo.png")
applyCSS("moz", "width", "25%")
let dino = createButton("dino", "dino sound") let dino = createButton("dino", "dino sound")
changeAttributes(dino, {"onclick": "spin('dino'); playAudio(`https://interactive-examples.mdn.mozilla.net/media/cc0-audio/t-rex-roar.mp3`, 0.4)"}) changeAttributes(dino, {"onclick": "spin('moz'); playAudio(`https://interactive-examples.mdn.mozilla.net/media/cc0-audio/t-rex-roar.mp3`, 0.4)"})
applyCSS("body", "background", "black") applyCSS("body", "background", "black")
applyCSS("body", "color", "lime") applyCSS("body", "color", "lime")
importGoogleFont('Roboto'); importGoogleFont('Roboto');