-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmessages.html
158 lines (148 loc) · 5.84 KB
/
messages.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>mobiStyle</title>
<link href='http://fonts.googleapis.com/css?family=Roboto:100,300,300italic,500|Electrolize' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/grid.css" />
<link rel="stylesheet" href="css/mobi.css" />
</head>
<body>
<img id="mg-imgBG" src="img/Avenger-blur.png" />
<div id="mg-scanlineBG"></div>
<img id="mg-gridBG" src="img/new-dot.png" alt="" />
<div id="mg-dotBG"></div>
<div id="mgModal" class="mg-modal">
<h3 class="mg-modal-title">Modal Window</h3>
<div class="mg-modal-content">
<p>This is some information you need to know.</p>
<div class="container">
<button id="closeModal" class="mg-simple right" data-mg-close-modal>OK</button>
</div>
</div>
</div>
<section id="mg-wrapper">
<div class="mainContent">
<div class="mg-panel container">
<h1>Messages & Notifications</h1>
<h2>Successes and Failures</h2>
<h3>Big Messages</h3>
<div class="mg-message">
<h3>This is a message</h3>
<p>It's probably something you should know.</p>
</div>
<div class="mg-message success">
<h3>Very good</h3>
<p>Now you can go to the second grade.</p>
</div>
<div class="mg-message warning">
<h3>It is pitch black</h3>
<p>You are likely to be eaten by a grue</p>
</div>
<div class="mg-message error">
<h3>Game over</h3>
<p>You have died of dysentery.</p>
</div>
<h3>Small Messages</h3>
<div class="mg-message small">
<p>Check it out check it out check it out</p>
</div>
<div class="mg-message small success">
<p>Huzzah!</p>
</div>
<div class="mg-message small warning">
<p>Ehrmagerd</p>
</div>
<div class="mg-message small error">
<p>U MAD BRO</p>
</div>
<h3>Text-only messages</h3>
<div class="mg-message inline"><h3>Uploading...</h3></div>
<div class="mg-message inline success"><h3>Complete!</h3></div>
<div class="mg-message inline warning"><h3>Please try again</h3></div>
<div class="mg-message inline error"><h3>Cancelled</h3></div>
<hr/>
<h3>Toast Notifications</h3>
<button class="svg mg-action" id="openToast">Load a toast</button>
<hr />
<h3>Modal Window</h3>
<button class="svg mg-action" id="openModal" data-mg-modal="mgModal">Modal!</button>
<!-- <hr />
<h3>Progress Bar</h3>
<div class="container">
<div class="third">
<a href="#startProgress" id="startProgress">Load something</a>
</div>
<div class="third" style="height: 96px;">
<div id="prog" class="mg-progress">
<div class="pct"></div>
<svg version="1.1" id="hexProgress" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="86.4px" height="86.4px" viewBox="0 0 86.4 86.4" style="enable-background:new 0 0 86.4 86.4;" xml:space="preserve">
<defs>
<clipPath id="hexClip">
<path d="M43.2,13.2l26,15v30l-26,15l-26-15v-30L43.2,13.2 M43.2,1.7l-5,2.9l-26,15l-5,2.9v5.8v30V64l5,2.9
l26,15l5,2.9l5-2.9l26-15l5-2.9v-5.8v-30v-5.8l-5-2.9l-26-15L43.2,1.7L43.2,1.7z"/>
</clipPath>
<filter id="hexGlow">
<feGaussianBlur in="SourceAlpha" stdDeviation="3"/>
<feOffset dx="0" dy="0" result="offsetblur"/>
<feFlood flood-color="#fff"/>
<feComposite in2="offsetblur" operator="in"/>
<feMerge>
<feMergeNode/>
<feMergeNode in="SourceGraphic"/>
</feMerge>
</filter>
</defs>
<g>
<polygon style="fill:none;stroke:white;stroke-width:1;stroke-miterlimit:10;" points="43.2,13.7 68.7,28.5 68.7,58 43.2,72.7
17.7,58 17.7,28.5 "/>
<polygon style="fill:none;stroke:white;stroke-width:1;stroke-miterlimit:10;" points="43.2,13.7 68.7,28.5 68.7,58 43.2,72.7
17.7,58 17.7,28.5 " filter="url(#hexGlow)"/>
<path class="fullPct" fill="rgba(131, 161, 199, 0)" d="M43.2,13.2l26,15v30l-26,15l-26-15v-30L43.2,13.2 M43.2,1.7l-5,2.9l-26,15l-5,2.9v5.8v30V64l5,2.9
l26,15l5,2.9l5-2.9l26-15l5-2.9v-5.8v-30v-5.8l-5-2.9l-26-15L43.2,1.7L43.2,1.7z"/>
<path style="fill:none;stroke:white;stroke-width:1;stroke-miterlimit:10;" d="M43.2,1.2l-5.1,2.9L11.8,19.3l-5.1,2.9V28v30.4v5.8
l5.1,2.9l26.3,15.2l5.1,2.9l5.1-2.9l26.3-15.2l5.1-2.9v-5.8V28v-5.8l-5.1-2.9L48.3,4.1L43.2,1.2L43.2,1.2z"/>
<path style="fill:none;stroke:white;stroke-width:1;stroke-miterlimit:10;" d="M43.2,1.2l-5.1,2.9L11.8,19.3l-5.1,2.9V28v30.4v5.8
l5.1,2.9l26.3,15.2l5.1,2.9l5.1-2.9l26.3-15.2l5.1-2.9v-5.8V28v-5.8l-5.1-2.9L48.3,4.1L43.2,1.2L43.2,1.2z" filter="url(#hexGlow)"/>
</g>
</svg>
</div>
</div>
</div>
</div> -->
</div>
</div>
<div class="mg-sidebar">
<div class="mg-panel">
<h3>Nav</h3>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="text.html">Text & Typography</a></li>
<li><a href="links.html">Links & Navigation</a></li>
<li><a href="media.html">Media</a></li>
<li><a href="lists.html">Lists & Tables</a></li>
<li><a href="forms.html">Forms & Input</a></li>
<li class="active"><b>Messages & Notifications</b></li>
</ul>
</div>
</div>
</section>
<div class="mg-toast" id="mgToast">
<div class="mg-toast-content">
<h3>Title</h3>
<p>Message</p>
</div>
</div>
<div id="mg-modalOverlay"></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/snap.svg/0.3.0/snap.svg-min.js"></script>
<script src="scripts/min/jquery.mobiStyle-min.js"></script>
<script>
$(document).mobiStyle();
$('#openToast').click(function(){
$('#mgToast').mobiStyle('messages', 'openToast');
});
</script>
</body>
</html>