This repository was archived by the owner on Aug 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
V.3. Variables
Andrey Bogdanov edited this page Mar 1, 2016
·
3 revisions
- Variables available on every page
- Variables available on the board/thread/catalog/archive pages only
Note: Variables, that are used internally, are not described here.
-
lord.popupsAn array oflord.PopupMessageobjects. Default:[](an empty array). -
lord.modelsAn object-map of models used by doT.js. Populated at the page load. Default:{}(an empty object). -
lord.partialsAn object-map of partials used by doT.js. Populated at the page load. Default:{}(an empty object). -
lord.templatesAn object-map of templates used by doT.js. Populated at the page load. Default:{}(an empty object). -
lord.chatDialogHolds a link to the private chat dialog if it is opened, otherwise isnull. Default:null. -
lord.lastChatCheckDateAn ISO Date object representation of last private chat check date. Default:lord.getLocalObject("lastChatCheckDate", null). -
lord.notificationQueueAn array of notifications to be shown. Default:[](an empty array). -
lord.pageProcessorsAn array of functions called after the page is loaded. Default:[lord.processFomattedDate]. May be populated from the user script to add custom page processing. -
lord.postProcessorsAn array of functions called after the page is loaded. Default:[lord.processFomattedDate, function() { /*an anonymous function*/ }]. May be populated from the user script to add custom posts processing. -
lord.currentTracksAn object-map of audio tracks added to the built-in player. Default:{}(an empty object). Populated on the page load. -
lord.lastWindowSizeAn object-map containing the last window width and height. Default:{ width: $(window).width(), height: $(window).height() }. Updated every time the window is resized.
-
lord.postPreviewsAn object-map of cached post previews. Default:{}(an empty object). -
lord.lastPostPreviewThe last opened post preview, ornullif no preview is currently visible. Default:null. -
lord.lastPostPreviewTimerA timer used to hide the last post preview if the mouse leaves it. Default:null. -
lord.postPreviewMaskAn overlay mask added to the page when showing post previews on mobile devices. Default:null. -
lord.movablePlayersAn object-map of cached movable players. Default:{}(an empty object). -
lord.currentMovablePlayerCurrently visible movable player. Default:null. -
lord.lastPostFormPositionThe last post form position. Default:""(an emptystring). Possible values:
-
"Top"The post form was at the top of the page. -
"Bottom"The post form was at the bottom of the page. -
""The post form was hidden or shown near a post (quick reply mode).
-
lord.filesAn array of file infos to navigate through. Default:null. Populated at the page load, and every time a post is added/edited/deleted. -
lord.filesMapThe same aslord.files, but an object-map (file href's are keys). Default:null. -
lord.spellsA list of parsed spells (post hiding/modification script). Default:null. -
lord.workerA Web worker, created every time a page is loaded using the code:new Worker("/js/worker.js"). -
lord.customPostFormFieldAn array-map of custom post form field generation functions. May be populated manually. Default:{}(an empty object). Seepublic/js/echo.jsfor an example. -
lord.customPostFormOptionAn array-map of custom post form option generation functions. May be populated manually. Default:{}(an empty object). Seepublic/js/echo.jsfor an example (none of the ololord.js boards uses this variable, but is it almost the same aslord.customPostFormField). -
lord.customEditPostDialogPartAn array-map of custom edit dialog field generation functions. May be populated manually. Default:{}(an empty object). Seepublic/js/rpg.jsfor an example. -
lord.customPostHeaderPartAn array-map of custom post header part generation functions. May be populated manually. Default:{}(an empty object). Seepublic/js/soc.jsfor an example. -
lord.customPostBodyPartAn array-map of custom post body part generation functions. May be populated manually. Default:{}(an empty object). Seepublic/js/rpg.jsfor an example. -
lord.customPostMenuActionAn array-map of custom post menu action generation functions. May be populated manually. Default:{}(an empty object). Seepublic/js/rpg.jsfor an example (none of the ololord.js boards uses this variable, but is it almost the same aslord.customPostBodyPart).