Skip to content

Commit

Permalink
Preparing to demonstrate source maps
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Bandi committed Jul 7, 2014
1 parent 8fbc89d commit 0c7a525
Show file tree
Hide file tree
Showing 6 changed files with 10,322 additions and 11 deletions.
12 changes: 6 additions & 6 deletions 03-jQuery/01-BrowserDifferences/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
var button = document.getElementById("test_button");

// DOM Level 0 event handling
button.onclick = showTab;
// button.onclick = showTab;

// DOM Level 2 event handling
// if (window.attachEvent) {
// button.attachEvent("onclick", showTab);
// } else {
// button.addEventListener("click", showTab);
// }
if (window.attachEvent) {
button.attachEvent("onclick", showTab);
} else {
button.addEventListener("click", showTab);
}

function showTab(e)
{
Expand Down
2 changes: 1 addition & 1 deletion 03-jQuery/01-BrowserDifferences/index2.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<button id="test_button">Click me</button>

<script src="jquery-1.11.0.min.js"></script>
<script src="js/jquery-1.11.1.min.js"></script>
<script>

$(function() {
Expand Down
4 changes: 0 additions & 4 deletions 03-jQuery/01-BrowserDifferences/jquery-1.11.0.min.js

This file was deleted.

Loading

0 comments on commit 0c7a525

Please sign in to comment.