Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an HTML file where JavaScript changes text color #618

Merged
merged 1 commit into from Jul 25, 2013
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Add an HTML file where JavaScript changes text color

I wanted this for testing incremental layout, but it's also useful to
illustrate a bug I just found.
  • Loading branch information
kmcallister committed Jul 24, 2013
commit 350c0a61c6c705b2f4c1b095064ee337f17a1c9e
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<style>
.red { color: red; }
.blue { color: blue; }
</style>
<script src="color-change-text.js"></script>
</head>
<body>
<div id="change" class="red">Hello, World!</div>
</body>
</html>
@@ -0,0 +1,3 @@
window.setTimeout(function () {
document.getElementsByTagName('div')[0].setAttribute('class', 'blue');
}, 1000);
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.