-
Notifications
You must be signed in to change notification settings - Fork 6
JS functions
Dario Kampkaspar edited this page Jul 6, 2018
·
1 revision
| file | used for |
|---|---|
| resources/scripts/admin.js | in admin functions |
| resources/scripts/annotate.js | user annotations in texts |
| resources/scripts/function.js | main functionality |
| function | use |
|---|---|
| anno() | prompt for simple annotation text and forward text and IDs to insert.xql
|
| $(document).ready() | load annotations from return.xql
|
| function | use |
|---|---|
| $(document).ready() | evaluate &l=from-to and highlight elements with ID from, to and all in between |
| loadTargetImage() | load the image for the page where #target is located – calls displayImage(href) |
| marginPos(), positionMarginalia (index, element) | position marginalia within a div class="#marginalia_container
|
| getPosition(el) | get the (absolute) vertical position of el |
| mouseIn(event) | load a note into #ann – contains legacy code for hovering boxes |
| mouseOut(event) | remove legacy hovering box after timeout |
| show_annotation(dir, xml, xsl, ref, height, width) | show info from entity.html in #ann
|
| clear(id) | close #id or all info displayed in #ann |
| commonAncestor(e1, e2) | find the common ancestor for #e1 and #e2 |
| sprung(event) | highlight a section defined by 'targ' und 'targe' |
| highlightAll(startMarker, endMarker, color, alt) | highligh #startMarker, #endMarker, and all elements in between with $color and optionally display $alt as text |
| toggleNavigation() | display/hide #nav |
| getUniqueId() | return an ID that is unique at runtime |
| doLogout() | log out |
| displayImage(href) | actually display href in #facsimile |
| toggleRightside() | adjust width of #wdbContent to 75% or back to 50% |
| close() | hide the facsimile |
- Installation and Configuration
- Basic Usage
- project Specifics
- Tech