From 6d9a92c4f3bd7c85b6387adf354c3c5490c52e16 Mon Sep 17 00:00:00 2001 From: Tim Hingston Date: Fri, 22 May 2015 12:17:05 +1000 Subject: [PATCH] Updated to satisfy linting rules --- v2.0/demo-files/demo.js | 46 ++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/v2.0/demo-files/demo.js b/v2.0/demo-files/demo.js index e72f449..c16568f 100755 --- a/v2.0/demo-files/demo.js +++ b/v2.0/demo-files/demo.js @@ -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(); }());