/useful_function

The useful function for responsive design.

Primary LanguageJavaScript

useful_function

The useful function for responsive design.

flash_detect.min.js - For detect the browser is support flash or not.
html5.js - For IE8 to support HTML5.
respond.js - For IE8 to support Media Queries.

Device.getDevice()
Get the device accoring browser size.
@return - String

Responsivebase.get_real_device()
Get the real device or browser.

Responsivebase.browser_flash_support()
Verify Flash support.

Responsivebase.jump_to_element(element)
Jumps the display to the position of a given element.
element - Will scroll to this element.

Responsivebase.set_height(element, reset, parent)
Set the elements have the same height.
element - The elements that need set same height.
reset - Is set reset the height, Boolean.
parent - The element's parent also need set the same height.

Responsivebase.resize_media_elements()
Resize media elements acording to browser size.