Created
November 3, 2024 00:10
-
-
Save timrprobocom/2dd7f035294d8c76fc69b5f29ba7a357 to your computer and use it in GitHub Desktop.
Demonstration for a StackOverflow Question
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 characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> | |
<script> | |
'use strict'; | |
var x = "0"; | |
var y = "1"; | |
var answer = parseInt(x); | |
$(function() { | |
var counter = 0; | |
function appendNumber() { | |
const newElement = document.createElement('div'); | |
newElement.textContent = counter; | |
document.body.appendChild(newElement); | |
counter++; | |
} | |
appendNumber(); | |
appendNumber(); | |
}); | |
</script> | |
<meta charset="utf-8"> | |
<title>Clicker</title> | |
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" /> | |
</head> | |
<body class="body"> | |
<div class="counter all"></div> | |
<div class="clickme all"> | |
<h2 class="click all">Click Me</h2> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment