1if (!('boxShadow' in document.body.style)) {
2    document.body.setAttribute('class', 'noBoxShadow');
3}
4
5document.body.addEventListener("click", function(e) {
6    var target = e.target;
7    if (target.tagName === "INPUT" &&
8        target.getAttribute('class').indexOf('liga') === -1) {
9        target.select();
10    }
11});
12
13(function() {
14    var fontSize = document.getElementById('fontSize'),
15        testDrive = document.getElementById('testDrive'),
16        testText = document.getElementById('testText');
17    function updateTest() {
18        testDrive.innerHTML = testText.value || String.fromCharCode(160);
19        if (window.icomoonLiga) {
20            window.icomoonLiga(testDrive);
21        }
22    }
23    function updateSize() {
24        testDrive.style.fontSize = fontSize.value + 'px';
25    }
26    fontSize.addEventListener('change', updateSize, false);
27    testText.addEventListener('input', updateTest, false);
28    testText.addEventListener('change', updateTest, false);
29    updateSize();
30}());
31