1010 < meta name ="keywords " content ="eustasy jquery plugin modal dialog ">
1111 < meta name ="description " content ="A pure solution to putting your own HTML and CSS to work as a modal dialogue. ">
1212 < title > jQuery.leanModal2.js · eustasy Labs</ title >
13- < link rel ="stylesheet " href ="https://cdn.jsdelivr.net/combine/gh/eustasy/Colors.css@1/colors.min.css,gh/necolas/normalize.css@8/normalize.min.css ">
14- < link rel ="stylesheet " href ="https://fonts.googleapis.com/css?family=Open+Sans:300,400|Lusitana|Source+Code+Pro " data-noprefix >
13+ < link rel ="stylesheet " href ="https://cdn.jsdelivr.net/combine/gh/necolas/normalize.css@8/normalize.min.css,gh/eustasy/Colors.css@2/flatui.min.css ">
1514 < link rel ="stylesheet " href ="https://labs.eustasy.org/assets/css/grid.min.css ">
1615 < link rel ="stylesheet " href ="https://labs.eustasy.org/assets/css/labs.css ">
17- < script >
18- ( function ( i , s , o , g , r , a , m ) { i [ 'GoogleAnalyticsObject' ] = r ; i [ r ] = i [ r ] || function ( ) {
19- ( i [ r ] . q = i [ r ] . q || [ ] ) . push ( arguments ) } , i [ r ] . l = 1 * new Date ( ) ; a = s . createElement ( o ) ,
20- m = s . getElementsByTagName ( o ) [ 0 ] ; a . async = 1 ; a . src = g ; m . parentNode . insertBefore ( a , m )
21- } ) ( window , document , 'script' , '//www.google-analytics.com/analytics.js' , 'ga' ) ;
22- ga ( 'create' , 'UA-45667989-11' , 'eustasy.org' ) ;
23- ga ( 'send' , 'pageview' ) ;
24- </ script >
25- < script src ="https://cdn.jsdelivr.net/combine/gh/jquery/jquery@3/dist/jquery.min.js,gh/jackmoore/autosize@4/dist/autosize.min.js,gh/eustasy/jQuery.equalize@1/jquery.equalize.min.js,gh/eustasy/jQuery.downBoy@1/jquery.downboy.min.js "> </ script >
16+ < script src ="https://cdn.jsdelivr.net/combine/gh/jquery/jquery@3/dist/jquery.min.js,gh/jackmoore/autosize@6/dist/autosize.min.js "> </ script >
2617 < script src ="jQuery.leanModal2.js "> </ script >
2718 < style >
28- @media (max-width : 768px ) {
29- .js-leanmodal-modal {
30- border-bottom-left-radius : 0 ;
31- border-bottom-right-radius : 0 ;
32- width : 100% ;
33- }
19+ code , pre , .code , .code-ref {
20+ font-family : ui-monospace, 'Cascadia Code' , 'Source Code Pro' , Menlo, Consolas, 'DejaVu Sans Mono' , monospace;
21+ }
22+ p {
23+ line-height : 1.5 ;
24+ margin-bottom : 1em ;
25+ font-size : 1.125em ;
26+ font-family : system-ui, sans-serif;
27+ max-width : 40em ;
28+ text-align : left;
29+ }
30+ .code-ref {
31+ background : var (--flatui-clouds );
32+ color : var (--flatui-belize-hole );
33+ padding : 0.1em 0.3em ;
34+ border-radius : 3px ;
35+ }
36+ p .text-center {
37+ max-width : none;
3438 }
3539 </ style >
3640 </ head >
4448 </ a >
4549 < header >
4650 < h1 > jQuery.leanModal2</ h1 >
47- < p > A pure solution to putting your own HTML and CSS to work as a modal dialogue.</ p >
48- < p class ="sub-title "> by < a href ="https://labs.eustasy.org/ "> eustasy Labs</ a > </ p >
51+ < p class =" text-center " > A pure solution to putting your own HTML and CSS to work as a modal dialogue.</ p >
52+ < p class ="text-center sub-title "> by < a href ="https://labs.eustasy.org/ "> eustasy Labs</ a > </ p >
4953 </ header >
5054 < hr class ="section-breaker ">
5155
5256 < div class ="section-guide grid ">
5357
5458 < section class ="whole smablet-half equalize ">
5559 < h2 > Installation & Usage</ h2 >
56- < p > Include after jQuery, preferably from jsDelivr. Then add a trigger element with a < code > data-modal-id</ code > attribute pointing to the < code > id</ code > of the modal element, and initialise leanModal on the trigger's selector. A standard < code > href</ code > attribute can be used instead of < code > data-modal-id</ code > .</ p >
60+ < p > Include after jQuery, preferably from jsDelivr. Then add a trigger element with a < span class ="code-ref "> data-modal-id</ span > attribute pointing to the < span class ="code-ref "> id</ span > of the modal element, and initialise leanModal on the trigger's selector. A standard < span class ="code-ref "> href</ span > attribute can be used instead of < span class ="code-ref "> data-modal-id</ span > .</ p >
61+ < p > Note: The modal element must be a sibling to the trigger element, or a child of a sibling element. This is because the plugin uses jQuery's < span class ="code-ref "> .next()</ span > method to find the modal.</ p >
5762 </ section >
5863
5964 < section class ="whole smablet-half equalize ">
60- < textarea class ="code rounded " readonly > < script src ="https://cdn.jsdelivr.net/gh/eustasy/jQuery.leanModal2@2/ jQuery.leanModal2.min.js "> </ script >
65+ < textarea class ="code rounded " readonly > < script src ="jQuery.leanModal2.min.js "> </ script >
6166
6267< button class ="js-leanmodal-trigger " data-modal-id ="#my-modal "> Open</ button >
6368
@@ -110,18 +115,18 @@ <h3 class="button clickable rounded leanmodal-modified" data-modal-id="#modified
110115 < hr class ="section-breaker ">
111116
112117 < footer >
113- < p > < a href ="https://github.com/eustasy/jQuery.leanModal2/blob/master/LICENSE.md "> MIT License</ a > · < a href ="https://github.com/eustasy/jQuery.leanModal2 "> GitHub</ a > · < a href ="https://github.com/eustasy/jQuery.leanModal2/releases "> Releases</ a > </ p >
118+ < p class =" text-center " > < a href ="https://github.com/eustasy/jQuery.leanModal2/blob/master/LICENSE.md "> MIT License</ a > · < a href ="https://github.com/eustasy/jQuery.leanModal2 "> GitHub</ a > · < a href ="https://github.com/eustasy/jQuery.leanModal2/releases "> Releases</ a > </ p >
114119 </ footer >
115120
116- < div id ="defaults-example " class ="background-white color-2 display-none js-leanmodal-modal rounded ">
121+ < div id ="defaults-example " class ="background-flatui-clouds color-flatui-midnight-blue display-none js-leanmodal-modal rounded ">
117122 < h3 > Hello!</ h3 >
118123 < p > This is a modal using our defaults.</ p >
119124 < a class ="clickable color-flatui-pomegranate js-leanmodal-close no-decoration "> Close</ a >
120125 </ div >
121126
122127 < script > $ ( '.leanmodal-defaults' ) . leanModal ( ) ; </ script >
123128
124- < div id ="modified-example " class ="background-white color-2 display-none js-leanmodal-modal rounded ">
129+ < div id ="modified-example " class ="background-flatui-clouds color-flatui-midnight-blue display-none js-leanmodal-modal rounded ">
125130 < h3 > Hello!</ h3 >
126131 < p > This is a modal using all the options.</ p >
127132 < a class ="clickable color-flatui-pomegranate close-it no-decoration "> Close</ a >
@@ -140,15 +145,5 @@ <h3>Hello!</h3>
140145 < script > $ ( function ( ) { autosize ( $ ( 'textarea' ) ) ; } ) ; </ script >
141146 < script > $ ( 'textarea' ) . one ( 'click' , function ( ) { $ ( this ) . select ( ) ; } ) ; </ script >
142147 < script > $ ( 'textarea' ) . dblclick ( function ( ) { $ ( this ) . select ( ) ; } ) ; </ script >
143- < script >
144- $ ( function ( ) {
145- equalize ( ) ;
146- downBoy ( 'footer' ) ;
147- window . onresize = function ( ) {
148- equalize ( ) ;
149- downBoy ( 'footer' ) ;
150- } ;
151- } ) ;
152- </ script >
153148
154149</ html >
0 commit comments