-
Notifications
You must be signed in to change notification settings - Fork 3
/
template.html
229 lines (175 loc) · 8.93 KB
/
template.html
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Modal Box by Patrick LEFEVRE</title>
<meta name="viewport" content="width=device-width, shrink-to-fit=no">
<!-- Remove Tap Highlight on Windows Phone IE -->
<meta name="msapplication-tap-highlight" content="no">
<!--[if (gte IE 6)&(lte IE 8)]>
<script src="js/selectivizr-min.js"></script>
<![endif]-->
<link rel="stylesheet" href="css/modal-box.min.css" media="screen">
<link rel="stylesheet" href="css/custom.min.css" media="screen">
<link rel="stylesheet" href="css/template.css" media="screen">
<style>
/*! ============================
CSS rules for this page demo
*/
/**
* Waiting for Google font loader: hide the entire page
*/
.wf-loading {
opacity: 0;
visibility: hidden;
height: 100%;
overflow: hidden
}
/**
* All is fine: display the document
*/
.wf-active {
opacity: 1;
visibility: visible
}
.wrapper {
width: 100%;
padding: 0 0 3em
}
.wrapper p {
padding: 0 2% 10px;
font-size: 20px;
line-height: 1.5
}
/* Corrects the wrapper position on Modal Boxes opening */
.modal-dialog:target ~.wrapper{margin-top: 1.2em}
p.first-line {
float: left;
clear: both;
width: 96%
}
/* Custom fonts */
@media only screen and (min-width: 720px) {
.header-modal,
.modal-dialog .inner-dialog h2 {
font-family: Roboto,'Helvetica Neue',Helvetica,Arial,sans-serif;
font-weight: 300
}
.modal-dialog .inner-dialog p{font-family: 'Open Sans', sans-serif}
}
/**
* The buttons
*/
.button {
float: left;
margin: 0 .5em 1em 0;
padding: .8em .5em 1em;
background: #0b7cd7;
color: #fff;
text-decoration: none;
font-size: 18px;
line-height: 1
}
.button:hover {text-decoration: underline}
/**
* For JS fallback if used
*/
html .visible {
display: block;
opacity: 1;
visibility: visible
}
</style>
<!--
<script src="https://cdnjs.cloudflare.com/ajax/libs/less.js/2.7.2/less.min.js"></script>
-->
<script asyn src="https://ajax.googleapis.com/ajax/libs/webfont/1.6/webfont.js"></script>
<script>
/*! Webfontloader */
WebFont.load({
google: {
families: [ 'Open+Sans', 'Roboto' ]
}
});
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://ajax.googleapis.com/ajax/libs/webfont/1.6/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
});
</script>
<noscript>
<link rel="prefetch" href="https://fonts.googleapis.com/css?family=Open+Sans|Noto+Sans" media="screen">
</noscript>
</head>
<body>
<div role="dialog" aria-modal="true" aria-haspopup="true" tabindex="-1" aria-live="assertive" aria-describedby="dialog-description" class="modal-dialog dialog" id="openModal">
<div role="document" class="modal">
<a href="#close" title="Close" class="close no__select" id="close-modal" onclick="document.getElementById('openModal').style.display='none';return true;">×</a>
<div class="header-modal no__select">
<span><strong class="static">☂</strong> Parameters</span> <span><strong class="mob-hide">Action:</strong> <a href="#open-modal" title="Validate changes"><svg class="svg-icon" viewBox="0 0 20 20">✓<path d="M7.6 14.6c0.1 0.1 0.3 0.2 0.5 0.2 0.2 0 0.3-0.1 0.5-0.2l8.2-8.2c0.3-0.3 0.3-0.7 0-0.9 -0.3-0.3-0.7-0.3-0.9 0l-7.8 7.8L4.2 9.3c-0.3-0.3-0.7-0.3-0.9 0 -0.3 0.3-0.3 0.7 0 0.9L7.6 14.6z"></path></svg></a></span>
</div>
<div class="inner-dialog">
<span id="dialog-description">Modal Box</span>
<p>This is a sample modal box that can be created using the powers of CSS3.</p>
<p>You could do a lot of things here like have a pop-up ad that shows when your website loads, or create a login/register form for users.</p>
<p>This is a sample modal box that can be created using the powers of CSS3.</p>
<p>You could do a lot of things here like have a pop-up ad that shows when your website loads, or create a login/register form for users.</p>
<p>This is a sample modal box that can be created using the powers of CSS3.</p>
<p>You could do a lot of things here like have a pop-up ad that shows when your website loads, or create a login/register form for users.</p>
<p>This is a sample modal box that can be created using the powers of CSS3.</p>
<p>You could do a lot of things here like have a pop-up ad that shows when your website loads, or create a login/register form for users.</p>
<p>This is a sample modal box that can be created using the powers of CSS3.</p>
<p>You could do a lot of things here like have a pop-up ad that shows when your website loads, or create a login/register form for users.</p>
<p>This is a sample modal box that can be created using the powers of CSS3.</p>
<p>You could do a lot of things here like have a pop-up ad that shows when your website loads, or create a login/register form for users.</p>
</div> <!-- /inner-dialog -->
<div class="footer-modal no__select">
<a href="#close" class="ripple" id="footer-close" onclick="document.getElementById('openModal').style.display='none';return true;">Close</a><a href="https://www.cara-tm.com" target="_blank" class="ripple">Help</a>
</div>
</div> <!-- /modal -->
</div> <!-- /modal-dialog -->
<div role="dialog" aria-modal="true" aria-haspopup="true" tabindex="-1" aria-live="assertive" aria-describedby="dialog-description" class="modal-dialog dialog" id="openModal2">
<div role="document" class="modal modal-message">
<a href="#close" title="Close" class="close no__select" id="close-msg" onclick="document.getElementById('openModal2').style.display='none';return true;">×</a>
<div class="inner-dialog">
<h2 id="dialog-description">Message Box</h2>
<p><span class="info-sign"><strong>ℹ</strong></span> This is a sample modal message box suitable for infos. ✌</p>
</div> <!-- /inner-dialog -->
</div> <!-- /modal -->
</div> <!-- /modal-dialog -->
<div class="wrapper">
<p class="first-line">
<a href="#open" class="button">A simple link</a>
<a href="#openModal" class="button" id="link1" onclick="document.getElementById('openModal').style.display='block';return true;">Open Modal Box</a>
<a href="#openModal2" class="button" id="link2" onclick="document.getElementById('openModal2').style.display='block';return true;">Open Modal Message</a>
</p>
<p>This is a sample modal box that can be created using the powers of CSS3.</p>
<p>This is a sample modal box that can be created using the powers of CSS3.</p>
<p>This is a sample modal box that can be created using the powers of CSS3.</p>
<p>This is a sample modal box that can be created using the powers of CSS3.</p>
<p>This is a sample modal box that can be created using the powers of CSS3.</p>
<p>This is a sample modal box that can be created using the powers of CSS3.</p>
<p>This is a sample modal box that can be created using the powers of CSS3.</p>
<p>This is a sample modal box that can be created using the powers of CSS3.</p>
<p>This is a sample modal box that can be created using the powers of CSS3.</p>
<p>This is a sample modal box that can be created using the powers of CSS3.</p>
<p>This is a sample modal box that can be created using the powers of CSS3.</p>
<p>This is a sample modal box that can be created using the powers of CSS3.</p>
<p>This is a sample modal box that can be created using the powers of CSS3.</p>
<p>This is a sample modal box that can be created using the powers of CSS3.</p>
<p>This is a sample modal box that can be created using the powers of CSS3.</p>
<p>This is a sample modal box that can be created using the powers of CSS3.</p>
</div> <!-- /wrapper -->
<script>
/*! A poor alternative to :target selector for IE8 and below;
script can be removed safely if you don't need this support.
*/
/*
'use strict';
var addEvent=function(a,b,d){if(a.addEventListener) a.addEventListener(b,d,false);else if(a.attachEvent) a.attachEvent('on'+b,d);},target=document.getElementById('open-modal'),target2=document.getElementById('open-modal2'),link1=document.getElementById('link1'),link2=document.getElementById('link2'),link3=document.getElementById('close-modal'),link4=document.getElementById('footer-close'),link5=document.getElementById('close-msg');addEvent(link1,'click',function(){hasClass(target,'visible')?removeClass(target,'visible'):target.className+=' visible'}),addEvent(link2,'click',function(){hasClass(target2,'visible')?removeClass(target2,'visible'):target2.className+=' visible'}),addEvent(link3,'click',function(){restaureClass(target,'modal-dialog dialog')}),addEvent(link4,'click',function(){restaureClass(target,'modal-dialog dialog')}),addEvent(link5,'click',function(){restaureClass(target2,'modal-dialog dialog')});function hasClass(a,b){if('undefined'!=typeof b)return-1<(' '+a.className+' ').indexOf(' '+b+' ')};function restaureClass(a,b){return a.className=b};function addClass(el,className){if (el.classList) el.classList.add(className);else if (!hasClass(el,className)) el.className+=' '+className;}
*/
</script>
</body></html>