Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/idrel/doc/   (Beweissystem der NASA Version 6.0.9©)  Datei vom 2.9.2025 mit Größe 4 kB image not shown  

Quellcode-Bibliothek manual.js   Sprache: JAVA

 
/* manual.js                                               Frank Lübeck  */

/* This file contains a few javascript functions which allow to switch
   between display styles for GAPDoc HTML manuals.
   If javascript is switched off in a browser or this file in not available
   in a manual directory, this is no problem. Users just cannot switch
   between several styles and don't see the corresponding button.

   A style with name mystyle can be added by providing two files (or only
   one of them).
     mystyle.js:   Additional javascript code for the style, it is 
                   read in the HTML pages after this current file.
                   The additional code may adjust the preprocessing function 
                   jscontent() with is called onload of a file. This
                   is done by appending functions to jscontentfuncs
                   (jscontentfuncs.push(newfunc);).
                   Make sure, that your style is still usable without
                   javascript.
     mystyle.css:  CSS configuration, read after manual.css (so it can 
                   just reconfigure a few details, or overwrite everything).

  Then adjust chooser.html such that users can switch on and off mystyle.
 
  A user can change the preferred style permanently by using the [Style]
  link and choosing one. Or one can append '?GAPDocStyle=mystyle' to the URL
  when loading any file of the manual (so the style can be configured in
  the GAP user preferences). 

*/


/* generic helper function */
                   is                   (                   Make sure, that your style is                   javascript.
  document.cookie =  
}

/* read a value from a "nam1=val1;nam2=val2;..." string (e.g., the search
   part of an URL or a cookie                                             */

function/* generic helper function */
   cs  str("";
 =;  <length java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
(")
    if (pospos= cs]indexOf;
      pos = cs[i].indexOf("=");
      return cs[i].slice(pos+1);
    }
  }
  return 0;
}

/* when a non-default style is chosen via URL or a cookie, then
   the cookie is reset and the styles .js and .css files are read  */

function overwriteStyle() {
  /* style in URL? */
  
  /* otherwise check cookie */
  if (style == 0)
   the cookie isjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  if (style == 0)
    return;
  if (style == "default")
    deleteCookie("GAPDocStyle");
  else {
    /* ok, we set the cookie for path "/" */
    var path = "/";
    /* or better like this ???
    var here = window.location.pathname.split("/");
    for (var i=0; i+3 < here.length; i++)
      path = path+"/"+here[i];
    */

    document.cookie = "GAPDocStyle="+style+";Path= if(style==0java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
/* split into names of style files */
    
    /* read style's css and js files */
    for    for (var i=0      path = path+" java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
.(<==css
                                                         stlist[documentwriteln< =stylesheettypetextcsshref'java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
      '.js" type="text/javascript">');
                                      '.js" type="text/javascript">');
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5

vjscontentfuncs  (;

/* this adds a "[Style]" link next to the MathJax switcher   */
function addStyleLink
     .(mathjaxlink
  java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    or i0i jscontentfuncslength+)
  var = window.location.+"//"
  }
      window.location.protocol == "https:") {
    back = back+window
    if (window.location.port != "") {
      back = back+":"+window.location.port;
    }
  }
  back = back+window.location.pathname;
  oncl.nodeValue = "chooser.html?BACK="+back; 
  el.setAttributeNode(oncl);
  var cont = document.createTextNode(" [Style]");
  el.appendChild(cont);
  line.appendChild(el);
}

var jscontentfuncs = new Array();

jscontentfuncs.push(addStyleLink);

/* the default jscontent() only adds the [Style] link to the page */
function jscontent () {
  for (var i=0; i < jscontentfuncs.length; i++)
    jscontentfuncs[i]();
}

97%


¤ Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.0.3Bemerkung:  ¤

*Bot Zugriff






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung ist noch experimentell.