|
1 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:mathml="http://www.w3.org/1998/Math/MathML" class="reftest-wait"> |
|
2 <mathml:mfenced/> |
|
3 |
|
4 |
|
5 <script><![CDATA[ |
|
6 var docviewer; |
|
7 function do_onload() { |
|
8 var navigator1 = SpecialPowers.wrap(parent).QueryInterface(SpecialPowers.Ci.nsIInterfaceRequestor).getInterface(SpecialPowers.Ci.nsIWebNavigation); |
|
9 var docShell = navigator1.QueryInterface(SpecialPowers.Ci.nsIDocShell); |
|
10 docviewer = docShell.contentViewer.QueryInterface(SpecialPowers.Ci.nsIMarkupDocumentViewer); |
|
11 |
|
12 setTimeout(function() { |
|
13 clearTimeout(timer); |
|
14 docviewer.textZoom = 1; |
|
15 document.documentElement.removeAttribute("class"); |
|
16 }, 500); |
|
17 setTimeout(doe,50, 0.2); |
|
18 } |
|
19 do_onload(); |
|
20 |
|
21 var timer; |
|
22 function doe(i) { |
|
23 docviewer.textZoom += i; |
|
24 |
|
25 if (docviewer.textZoom >=4) |
|
26 i = -0.2; |
|
27 |
|
28 if (docviewer.textZoom <=0) |
|
29 i = 0.2; |
|
30 window.status = docviewer.textZoom; |
|
31 timer = setTimeout(doe, 50, i); |
|
32 } |
|
33 ]]></script> |
|
34 </html> |