Diff for /loncom/html/adm/jsMath/jsMath-loader.html between versions 1.1 and 1.2

version 1.1, 2006/03/27 19:32:07 version 1.2, 2006/05/17 22:19:27
Line 35  while (!window.jsMath && !showWarning) { Line 35  while (!window.jsMath && !showWarning) {
     window.jsMath = window.parent.jsMath;      window.jsMath = window.parent.jsMath;
     if (!window.jsMath) {throw "no jsMath";}      if (!window.jsMath) {throw "no jsMath";}
   } catch (err) {    } catch (err) {
     showWarning = 1;      showWarning = 1; pageDomain = '';
       try {pageDomain = document.domain} catch (err) {}
     //      //
     // MSIE on Mac can't change document.domain, and 'try' won't      // MSIE on Mac can't change document.domain, and 'try' won't
     //   catch the error (Grrr!) so don't even try for it      //   catch the error (Grrr!) so don't even attempt it.
     //      //
     if (document.domain.match(/\..*\./) &&      if (pageDomain.match(/\..*\./) &&
         (navigator.appName != 'Microsoft Internet Explorer' ||          (navigator.appName != 'Microsoft Internet Explorer' ||
          navigator.platform != 'MacPPC' || !navigator.userProfile || !document.all)) {           navigator.platform != 'MacPPC' || !navigator.userProfile || !document.all)) {
       try {        try {
         document.domain = document.domain.replace(/^[^.]*\./,'');          document.domain = pageDomain.replace(/^[^.]*\./,'');
         showWarning = 0;          showWarning = 0;
       } catch(err) {}        } catch(err) {}
     }      }
Line 59  function Warning () { Line 60  function Warning () {
   );    );
 }  }
   
   isOmniWeb4 = (document.readyState == 'loading' &&
                 navigator.accentColorName != null &&
                 navigator.omniWebString == null);
   
 if (showWarning) {setTimeout("Warning()",1)} else {  if (showWarning) {setTimeout("Warning()",1)} else {
   debug = window.parent.debug; show = window.parent.show;    debug = window.parent.debug; show = window.parent.show;
   jsMath.Script.window = window; url = jsMath.Script.url;    jsMath.Script.window = window; url = jsMath.Script.url;
   document.write('<script src="'+url+'"><'+'/script>');    if (isOmniWeb4) {
       if (url != jsMath.Script.prevURL) {
         jsMath.Script.prevURL = url;
         document.writeln('<script src="'+jsMath.root+'jsMath-loader-omniweb4.js"><'+'/script>');
         document.writeln('<script src="'+url+'"><'+'/script>');
         document.writeln('<script src="'+jsMath.root+'jsMath-loader-omniweb4.js"><'+'/script>');
       }
     } else {
       jsMath.Script.Start();
       document.writeln('<script src="'+url+'"><'+'/script>');
     }
 }  }
 </script>  </script>
   
 <script>  <script>
 if (window.jsMath) {  if (window.jsMath && !isOmniWeb4) {
   if (document.readyState == 'loading') {    jsMath.Script.End();
     // work around bug in OmniWeb 4.5 that would otherwise run this twice.    jsMath.Script.endLoad();
     setTimeout("jsMath.Script.endLoad();",1)  
   } else {  
     jsMath.Script.endLoad();  
   }  
 }  }
 </script>  </script>
   

Removed from v.1.1  
changed lines
  Added in v.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>