The template javascript libs are organized in 2 folders:
- The template libs, in js/
- The external libs, in js/libs/
Template libs
- setup.js
- This file handles the whole template setup (see below)
- developr.accordions.js
- Library for accordions
- developr.auto-resizing.js
- Auto-resizing textareas
- developr.confirm.js
- Confirmation tooltip - require developr.tooltips.js
- developr.input.js
- Form inputs styling
- developr.message.js
- Messages blocks generation and control
- developr.modal.js
- Modal window library
- developr.navigable.js
- Navigable menus in the main menu
- developr.notify.js
- Notification library
- developr.scroll.js
- Custom scroll library
- developr.progress-slider.js
- Slider and progress generation and control
- developr.tabs.js
- Tabs plugin
- developr.tooltips.js
- Tooltips library
setup.js
This is the main javascript file, it handles the whole setup of the template and provides APIs for other bundled plugins.
- Template interface
- The template defines an interface on $.template with several informations and methods (see Advanced section for details)
- Features detection
- Detects required features, and load polyfills when required (using Modernizr)
- Touch optimization
- Provides a method to detect touchend events when no scrolling has occured (only on touch devices, see Advanced section for details)
- Position: fixed polyfill
- Support for devices with no position:fixed support (mostly old iOS/Android)
- Generic functions
- A bunch of generic methods, always useful
- Custom events
- Detect and trigger custom events for screen and elements resizing
- DOM watching functions
- Detect any DOM change made by jQuery and apply template setup or clear function to the target (see How the template works/Automatic setup for details)
- Viewport resizing handling
- Send normalized resize event when screen is resized and corresponding mediaqueries are ready
- Template init
- Main initialisation function. Called automatically on document.load but may be fired manually to speed up display.
- Template elements
- Defines behavior of template elements using event delegation
- Tracked elements
- Custom function for absolute positioned elements tracking an element in th DOM flow (see Advanced section for details)
- Custom animations
- A couple special animations (mostly shorthands)
- Browser chrome hidding
- Automatic document scrolling to hide browser's chrome on mobile devices
- Dependencies
- Some extra easing functions and mousewheel support
External libs
- CLEditor
- A simple yet complete WYSIWYG editor - http://premiumsoftware.net/cleditor/
- glDatePicker
- The usual datepicker - https://github.com/glad/glDatePicker
- jquery-1.8.2.min.js
- The awesome JS framework - http://jquery.com/
- jquery.details.min.js
- Polyfill for the HTML5 details element - https://github.com/mathiasbynens/jquery-details
- jquery.tablesorter.min.js
- Table sorting, fast and easy - http://tablesorter.com/
- modernizr.custom.js
- Features detections and HTML5 polyfill, on a custom build (link to rebuild the same version included in the file) - http://www.modernizr.com/
- respond.min.js
- Media Queries polyfill, slightly modded (see details inside the file) - https://github.com/scottjehl/Respond
- tinycon.min.js
- Favicon notifications plugin - https://github.com/tommoor/tinycon