-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.html
19 lines (19 loc) · 1.27 KB
/
README.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<h1 id="sizeme-js">sizeme.js</h1>
<p>Take a look at the demo here: <a href="http://aastrong.github.io/sizeme.js/">http://aastrong.github.io/sizeme.js/</a></p>
<p>This is a small .js plugin that will take your desired region, and tell you the width of it as you resize your page. </p>
<p>This is a very simple & lightweight jQuery plugin which allows you to select any element, and have the width of the elemnt be printed on the element itself. The value changes as you resize your browser width so you always know the elements width. </p>
<p>This will help with development of responsive website</p>
<p>Simply add the sizeme.js file to the bottom of your file, and intialize the plugin on what ever divs or elements you desire. ( look at example below )</p>
<pre><code><script src="min/jquery.sizeme.min.js"></script>
<script>
$(window).resize(function() {
$('.div').sizeme();
}).resize();
</script></code></pre>
<p>I have included an index.html as page as an example if need be. </p>
<p>Any feedback is greatly apprciated. </p>
<pre><code> _
__ _ __ _ __| |_ _ _ ___ _ _ __ _
/ _` / _` (_-| _| '_/ _ | ' \/ _` |
\__,_\__,_/__/\__|_| \___|_||_\__, |
|___/</code></pre>