Created
January 14, 2018 14:24
-
-
Save sdoro/ddf89cfeb0cbcd93aa2bda36224c63a1 to your computer and use it in GitHub Desktop.
Revisions
-
sdoro revised this gist
Jan 14, 2018 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -4,4 +4,7 @@ onclick A [Pen](https://codepen.io/bdeen/pen/d620aae383d57473812a282ed5f5c77c) by [Bre'Ana Deen](https://codepen.io/bdeen) on [CodePen](https://codepen.io). [License](https://codepen.io/bdeen/pen/d620aae383d57473812a282ed5f5c77c/license). In this example, the paragraph text is changed when the paragraph element is clicked. -
sdoro created this gist
Jan 14, 2018 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ <p id="myParagraph">Good Morning!</p> This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ onclick ------- A [Pen](https://codepen.io/bdeen/pen/d620aae383d57473812a282ed5f5c77c) by [Bre'Ana Deen](https://codepen.io/bdeen) on [CodePen](https://codepen.io). [License](https://codepen.io/bdeen/pen/d620aae383d57473812a282ed5f5c77c/license). This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ var paragraph = document.getElementById("myParagraph"); paragraph.onclick = changeGreeting; function changeGreeting(){ paragraph.innerHTML = "Good Night!"; }