diff options
Diffstat (limited to 'openo-portal/portal-common/src/main/webapp/common/css/ZteIctIcons/demo-files/demo.js')
-rw-r--r-- | openo-portal/portal-common/src/main/webapp/common/css/ZteIctIcons/demo-files/demo.js | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/openo-portal/portal-common/src/main/webapp/common/css/ZteIctIcons/demo-files/demo.js b/openo-portal/portal-common/src/main/webapp/common/css/ZteIctIcons/demo-files/demo.js index 6f45f1c4..52f25145 100644 --- a/openo-portal/portal-common/src/main/webapp/common/css/ZteIctIcons/demo-files/demo.js +++ b/openo-portal/portal-common/src/main/webapp/common/css/ZteIctIcons/demo-files/demo.js @@ -1,30 +1,30 @@ -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(); -}()); +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();
+}());
|