Usage
First, include jQuery and the jQuery.respontent-plugin files in your webpage:
<head> <link type="text/css" rel="stylesheet" href="jquery.respontent.css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="jquery.respontent.min.js"></script> </head>
Second (and last), fire the plugin targeting the HTML node that contains the user generated content:
$(document).ready(function() { $("#wrapper").respontent({ // configuration goes here }); });
The options that can be passed in the configuration-object:
- images
- Whether or not to make images responsive.
Default value:true
. - youtube
- Whether or not to make YouTube videos responsive.
Default value:true
. - tables
- Whether or not to make tables responsive.
Default value:true
. - googlemaps
- Whether or not to make Google Maps responsive.
Default value:true
.