-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
59 lines (55 loc) · 1.54 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
* Part of Nitriques Solutions inc. (http://www.nitriques.com) jQuery plug-in bundle
*
* Use this plugin to automatically switch css class on root element in order to accomodate differents
* screen resolution.
*
* Usage $.ntr$fontSize(opts);
*
* options w and h always means that the css class will be applied if the resolution is less than mention
*
* Examples:
*
* 1- Default: **** resulting css will be 'resolution-w1024'
* $.ntr$resolution({
* res: [
* {w:1024}
* ]
* });
*
* 2- With options:
* $.ntr$resolution({
* res: [
* {w:1024}
* ],
* prefix: 'my-resolution', // css prefix class
* root: '#my-root' // root DOM element that gets the css class
* });
*
* 4- With width and height resolution options: **** resulting css will be 'resolution-w1024-h720'
* $.ntr$resolution({
* res: [
* {w:1024, h:720}
* ]
* });
*
* 4- With multiple resolution options: ** NOTE they must be in ASC order
* $.ntr$resolution({
* res: [
* {w:1024, h:720}, //**** resulting css will be 'resolution-w1024-h720'
* {w:1024}, //**** resulting css will be 'resolution-w1024'
* {w:1200}, //**** resulting css will be 'resolution-w1200'
* {h:900}, //**** resulting css will be 'resolution-h900'
* ]
* });
*
* Liscence under the The Code Project Open License (CPOL)
* http://www.codeproject.com/info/cpol10.aspx
* Name: jquery.resolution.js
* Date: 2011-06-16
* Version: 1.0
* Pre-requisites: none;
*
* Version 1.0
* Initial version
*/