mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-07 05:15:09 +00:00
38 lines
1.1 KiB
HTML
38 lines
1.1 KiB
HTML
<object>᚛᚛᚛᚛᚛᚛᚛᚛᚛᚛
|
|
᚛᚛᚛᚛᚛
|
|
᚛᚛᚛᚛᚛᚛᚛᚛᚛᚛
|
|
᚛᚛᚛᚛
|
|
<i>᚛᚛᚛᚛᚛᚛᚛᚛᚛᚛
|
|
|
|
<script>
|
|
var doc = document;
|
|
if (document.getElementById('content')) {
|
|
doc = document.getElementById('content').contentDocument;
|
|
}
|
|
|
|
var docviewer;
|
|
function do_onload() {
|
|
var navigator1 = SpecialPowers.wrap(parent).QueryInterface(SpecialPowers.Ci.nsIInterfaceRequestor).getInterface(SpecialPowers.Ci.nsIWebNavigation);
|
|
var docShell = navigator1.QueryInterface(SpecialPowers.Ci.nsIDocShell);
|
|
docviewer = docShell.contentViewer.QueryInterface(SpecialPowers.Ci.nsIMarkupDocumentViewer);
|
|
|
|
setTimeout(doe,500, 0.2);
|
|
}
|
|
do_onload();
|
|
|
|
|
|
|
|
function doe(i) {
|
|
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
|
docviewer.textZoom += i;
|
|
|
|
if (docviewer.textZoom >=4)
|
|
i = -0.2;
|
|
|
|
if (docviewer.textZoom <=0)
|
|
i = 0.2;
|
|
window.status = docviewer.textZoom;
|
|
setTimeout(doe, 100, i);
|
|
}
|
|
</script>
|