Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 547 Bytes

js_popup_defaults.md

File metadata and controls

17 lines (11 loc) · 547 Bytes

JavaScript Popup defaults

popup window with predefined width/height values. Override defaults with data-popup attribute

Installation

  • copy js_popup_defaults.js to app/assets/javascripts/popup_defaults.js

Example

Setup rel="popup" attribute for popup links, optional change predefined width/height values with data-popup="width|height".

<a href="http://example.com" rel="popup" data-popup="510|550" target="_blank">popup example</a>
or
<a href="http://example.com" rel="popup" target="_blank">popup example</a>