Skip to content

Instantly share code, notes, and snippets.

@prigara
Created July 29, 2016 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prigara/3d3b853081291d9ab2e2a4cf1ca3f561 to your computer and use it in GitHub Desktop.
Save prigara/3d3b853081291d9ab2e2a4cf1ca3f561 to your computer and use it in GitHub Desktop.
Sample file for WebStorm Quick start quide
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Meet WebStorm</title>
</head>
<body>
<div class="container">
<h1 id="greeting">Hello!</h1>
<input type="text" id="name" placeholder="Your name">
<button id="submitButton">Submit</button>
</div>
<script>
var submitButton = document.querySelector("#submitButton");
var nameInput = document.querySelector("#name");
var greeting = document.querySelector("#greeting");
button.addEventListener("click", function () {
greeting.innerText = "Hello, " + nameInput.value + "!";
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment