2014-07-19 13:50:31 +02:00
|
|
|
if (!('boxShadow' in document.body.style)) {
|
2017-02-18 20:55:43 +01:00
|
|
|
document.body.setAttribute('class', 'noBoxShadow');
|
2014-07-19 13:50:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
document.body.addEventListener("click", function(e) {
|
2017-02-18 20:55:43 +01:00
|
|
|
var target = e.target;
|
|
|
|
if (target.tagName === "INPUT" &&
|
|
|
|
target.getAttribute('class').indexOf('liga') === -1) {
|
|
|
|
target.select();
|
|
|
|
}
|
2014-07-19 13:50:31 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
(function() {
|
2017-02-18 20:55:43 +01:00
|
|
|
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();
|
2014-07-19 13:50:31 +02:00
|
|
|
}());
|