-
Notifications
You must be signed in to change notification settings - Fork 0
UM GUI JS
tacoen edited this page Jun 5, 2014
·
7 revisions
A collection of javascript, jQuery functions that UM needed to make some FX and layout fix.
Disable this if you use others UI Frameworks
Example: um_toc( $('div.maketoc'), 'h2', 'Table of contents' )
Make TOC from h2 Element inside div.maketoc.
Example: um_fit_img ( $('.feature-image img') )
Set each .feature-image img aspect ratio using height/width
Example: um_content_height($('#content'),280)
Set #content minimal height equal to window height - (site-header + site-footer) or at least 280px. So site-footer will be at bottom.
Example: um_onscroll_fixed($('#um-top'),$('.main-navigation'),0)
#um-top will stop scrolling and dock to .main-navigation bottom position, with 0 px added-adjustment