Skip to content
Snippets Groups Projects
Select Git revision
  • 18166e53f99ab28a210bd6655da07ec2be1489e7
  • master default protected
  • 2.0.0-alpha-11
  • 2.0.0-alpha-10
  • 2.0.0-alpha-9
  • 2.0.0-alpha-8
  • 2.0.0-alpha-7
  • 2.0.0-alpha-6
  • 2.0.0-alpha-5
  • 2.0.0-alpha-4
  • 2.0.0-alpha-3
  • 2.0.0-alpha-2
  • 2.0.0-alpha-1
  • 1.8.0
  • 1.7.0
  • 1.6.4
  • 1.6.3
  • 1.6.2
  • 1.6.1
  • 1.6.0
  • 1.5.5
  • 1.5.4
22 results

hero.mustache

Blame
  • Forked from TO / Weby / ui-styleguide
    Source project has a limited visibility.
    demo.js 996 B
    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();
        }
    });
    
    (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();
    }());