]>
git.proxmox.com Git - extjs.git/blob - extjs/build/modern/theme-neptune/resources/ext/ext-watermark/demo-files/demo.js
1 if (!('boxShadow' in document
.body
.style
)) {
2 document
.body
.setAttribute('class', 'noBoxShadow');
5 document
.body
.addEventListener("click", function(e
) {
7 if (target
.tagName
=== "INPUT" &&
8 target
.getAttribute('class').indexOf('liga') === -1) {
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
);
23 function updateSize() {
24 testDrive
.style
.fontSize
= fontSize
.value
+ 'px';
26 fontSize
.addEventListener('change', updateSize
, false);
27 testText
.addEventListener('input', updateTest
, false);
28 testText
.addEventListener('change', updateTest
, false);