Repository navigation
Expand file tree
/
Copy pathexample.html
More file actions
94 lines (94 loc) · 2.48 KB
/
Copy pathexample.html
File metadata and controls
94 lines (94 loc) · 2.48 KB
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
<!DOCTYPE HTML!>
<html lang="pt-br">
<head>
<meta charset="ISO-8859-1">
<title>jQuery boxAlert example</title>
<style type="text/css">
/* css reset */
* {
margin:0;
padding:0;
list-style:none;
text-decoration:none;
}
img{ border:0 }
a:hover, a:active, a:focus { outline: 0; }
ul li { margin-bottom:3px; }
/* fim css reset */
h1, h2, h3 { color:#669966; font-weight: normal; }
body{
background: url(texture.jpg) repeat;
font-family: "Segoe Ui", "Calibri", "Trebuchet MS";
font-size: 14px;
color:#444;
}
input{
padding:5px 10px 5px 10px;
width:180px;
}
input[type="button"], input[type="reset"], input[type="submit"] {
padding:3px 20px 3px 20px;
width: auto;
}
#wraper{
width:900px;
margin:0 auto;
}
#main{
margin: 30px 0px;
min-height:900px;
box-shadow:0 0 10px 3px #ccc;
padding:20px;
}
#footer{
min-height:400px;
box-shadow:0 0 10px 3px #ccc;
padding:20px;
}
fieldset{
padding:10px;
border-radius:5px;
border:1px solid #ccc;
}
</style>
<!-- Using CDN of Google with fallback to local file -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script>window.jQuery || document.write(unescape('%3Cscript src="jquery-1.8.2.min.js"%3E%3C/script%3E'))</script>
<!-- Begin of boxAlert's references -->
<script src="jquery.boxAlert.js"></script>
<link rel="stylesheet" type="text/css" href="jquery.boxAlert.css" />
<!-- End of boxAlert's references -->
<script type="text/javascript">
$(document).ready(function(){
$('.exibir').click(function(){
$('#cadastro').boxAlert('This field is required!', { type: 'warning', mode: 'prepend' });
});
$('.limpar').click(function(){
$.clearBoxAlert(true);
});
});
</script>
</head>
<body>
<div id="wraper">
<div id="main">
<h2>Testes para o boxAlert </h2><br />
<div style="height:250px;"></div>
<fieldset id="cadastro">
<ul>
<li><input type="text" class="empty-fields" id="name" /></li>
<li><input type="text" class="empty-fields" id="email" /></li>
<li><input type="password" class="empty-fields" id="password" /></li>
</ul>
</fieldset>
<br />
<input type="button" value="Exibir Mensagem" class="exibir">
<input type="button" value="Remover Todas" class="limpar">
</div>
<div id="footer">
<input type="button" value="Exibir Mensagem" class="exibir">
<input type="button" value="Remover Todas" class="limpar">
</div>
</div>
</body>
</html>