Fossil

Check-in [e7ec49815b]
Login

Check-in [e7ec49815b]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Make gebi() work on browsers with javascipt < 5.1
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: e7ec49815b988811f8a8c4493209a5951a3a5e30
User & Date: jan.nijtmans 2015-02-26 12:25:41.421
Context
2015-02-27
12:30
Fix many typos in the documentation. Also capitalize words like "Unix", "Unicode", "Windows", and "Boolean". (FWIW: Except in the case of "Windows", I'm dubious about the capitalization, but I appreciate the typo fixes so we'll just go with the whole package.) ... (check-in: fe38a768db user: drh tags: trunk)
2015-02-26
20:18
fixed a number of typos in WWW-docs, as suggested on ML ... (check-in: 05fc09c5dd user: michai tags: ml-jb-doc-typos)
12:25
Make gebi() work on browsers with javascipt < 5.1 ... (check-in: e7ec49815b user: jan.nijtmans tags: trunk)
03:12
Additional changes associated with check-in [43b30dcfc330b] on 2014-10-20: Change the %!w format to %!W. ... (check-in: 3b92154af8 user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/style.c.
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
  ** Maintenance note: this function must of course be available
  ** before it is called. It "should" go in the HEAD so that client
  ** HEAD code can make use of it, but because the client can replace
  ** the HEAD, and some fossil pages rely on gebi(), we put it here.
  */
  @ <script>
  @ function gebi(x){
  @ if(/^#/.test(x)) x = x.substr(1);
  @ var e = document.getElementById(x);
  @ if(!e) throw new Error("Expecting element with ID "+x);
  @ else return e;}
  @ </script>
}

#if INTERFACE
/* Allowed parameters for style_adunit() */
#define ADUNIT_OFF        0x0001       /* Do not allow ads on this page */







|

|







404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
  ** Maintenance note: this function must of course be available
  ** before it is called. It "should" go in the HEAD so that client
  ** HEAD code can make use of it, but because the client can replace
  ** the HEAD, and some fossil pages rely on gebi(), we put it here.
  */
  @ <script>
  @ function gebi(x){
  @ if(x.substr(0,1)=='#') x = x.substr(1);
  @ var e = document.getElementById(x);
  @ if(!e) throw new Error('Expecting element with ID '+x);
  @ else return e;}
  @ </script>
}

#if INTERFACE
/* Allowed parameters for style_adunit() */
#define ADUNIT_OFF        0x0001       /* Do not allow ads on this page */