Skip to content

Commit

Permalink
Updated to satisfy linting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
timbotnik committed May 22, 2015
1 parent d28ed03 commit 6d9a92c
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions v2.0/demo-files/demo.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
if (!('boxShadow' in document.body.style)) {
document.body.setAttribute('class', 'noBoxShadow');
if (!("boxShadow" in document.body.style)) {
document.body.setAttribute("class", "noBoxShadow");
}

document.body.addEventListener("click", function(e) {
var target = e.target;
if (target.tagName === "INPUT" &&
target.getAttribute('class').indexOf('liga') === -1) {
target.select();
}
var target = e.target;
if (target.tagName === "INPUT"
&& target.getAttribute("class").indexOf("liga") === -1) {
target.select();
}
});

(function() {
var fontSize = document.getElementById('fontSize'),
testDrive = document.getElementById('testDrive'),
testText = document.getElementById('testText');
function updateTest() {
testDrive.innerHTML = testText.value || String.fromCharCode(160);
if (window.icomoonLiga) {
window.icomoonLiga(testDrive);
}
}
function updateSize() {
testDrive.style.fontSize = fontSize.value + 'px';
}
fontSize.addEventListener('change', updateSize, false);
testText.addEventListener('input', updateTest, false);
testText.addEventListener('change', updateTest, false);
updateSize();
var fontSize = document.getElementById("fontSize"),
testDrive = document.getElementById("testDrive"),
testText = document.getElementById("testText");
var updateTest = function() {
testDrive.innerHTML = testText.value || String.fromCharCode(160);
if (window.icomoonLiga) {
window.icomoonLiga(testDrive);
}
};
var updateSize = function() {
testDrive.style.fontSize = fontSize.value + "px";
};
fontSize.addEventListener("change", updateSize, false);
testText.addEventListener("input", updateTest, false);
testText.addEventListener("change", updateTest, false);
updateSize();
}());

0 comments on commit 6d9a92c

Please sign in to comment.