[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/lib/scripts/ -> script.js (summary)

Some of these scripts were taken from wikipedia.org and were modified for DokuWiki

File Size: 520 lines (14 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 22 functions

  isset()
  getElementsByClass()
  findPosX()
  findPosY()
  jsEscape()
  escapeQuotes()
  prependChild()
  showLoadBar()
  hideLoadBar()
  addTocToggle()
  toggleToc()
  checkAclLevel()
  footnote()
  initSizeCtl()
  sizeCtl()
  toggleWrap()
  setWrap()
  closePopups()
  scrollToMarker()
  focusMarker()
  cleanMsgArea()
  checkWindowsShares()

Functions
Functions that are not part of a class:

isset(varname)   X-Ref
No description

getElementsByClass(searchClass,node,tag)   X-Ref
Select elements by their class name

link: http://www.dustindiaz.com/getelementsbyclass/
author: Dustin Diaz <dustin [at] dustindiaz [dot] com>

findPosX(object)   X-Ref
Get the X offset of the top left corner of the given object

link: http://www.quirksmode.org/index.html?/js/findpos.html

findPosY(object)   X-Ref
Get the Y offset of the top left corner of the given object

link: http://www.quirksmode.org/index.html?/js/findpos.html

jsEscape(text)   X-Ref
Escape special chars in JavaScript

author: Andreas Gohr <andi@splitbrain.org>

escapeQuotes(text)   X-Ref
This function escapes some special chars


prependChild(parent,element)   X-Ref
Adds a node as the first childenode to the given parent

see: appendChild()

showLoadBar()   X-Ref
Prints a animated gif to show the search is performed

Because we need to modify the DOM here before the document is loaded
and parsed completely we have to rely on document.write()

author: Andreas Gohr <andi@splitbrain.org>

hideLoadBar(id)   X-Ref
Disables the animated gif to show the search is done

author: Andreas Gohr <andi@splitbrain.org>

addTocToggle()   X-Ref
Adds the toggle switch to the TOC


toggleToc()   X-Ref
This toggles the visibility of the Table of Contents


checkAclLevel()   X-Ref
This enables/disables checkboxes for acl-administration

author: Frank Schubert <frank@schokilade.de>

footnote(e)   X-Ref
Display an insitu footnote popup

author: Andreas Gohr <andi@splitbrain.org>
author: Chris Smith <chris@jalakai.co.uk>

initSizeCtl(ctlid,edid)   X-Ref
Add the edit window size controls


sizeCtl(edid,val)   X-Ref
This sets the vertical size of the editbox


toggleWrap(edid)   X-Ref
Toggle the wrapping mode of a textarea


setWrap(textarea, wrapAttrValue)   X-Ref
Set the wrapping mode of a textarea

link: http://news.hping.org/comp.lang.javascript.archive/12265.html
link: https://bugzilla.mozilla.org/show_bug.cgi?id=41464
author: Fluffy Convict <fluffyconvict@hotmail.com>
author: <shutdown@flashmail.com>

closePopups()   X-Ref
Handler to close all open Popups


scrollToMarker()   X-Ref
Looks for an element with the ID scroll__here at scrolls to it


focusMarker()   X-Ref
Looks for an element with the ID focus__this at sets focus to it


cleanMsgArea()   X-Ref
Remove messages


checkWindowsShares()   X-Ref
Display error for Windows Shares on browsers other than IE

Michael Klier <chi@chimeric.de>



Generated: Tue Dec 2 01:30:01 2008 Cross-referenced by PHPXref 0.7