ocp_registry 0.0.1.alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +25 -0
- data/Gemfile +17 -0
- data/Gemfile.lock +65 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/bin/ocp_registry +28 -0
- data/config/example-mysql.yml +40 -0
- data/config/example-sqlite.yml +33 -0
- data/lib/ocp_registry.rb +29 -0
- data/lib/ocp_registry/api_controller.rb +146 -0
- data/lib/ocp_registry/application_manager.rb +213 -0
- data/lib/ocp_registry/cloud_manager/mock.rb +5 -0
- data/lib/ocp_registry/cloud_manager/mock/mock.rb +191 -0
- data/lib/ocp_registry/cloud_manager/mock/model.rb +22 -0
- data/lib/ocp_registry/cloud_manager/openstack.rb +4 -0
- data/lib/ocp_registry/cloud_manager/openstack/cinder_helper.rb +27 -0
- data/lib/ocp_registry/cloud_manager/openstack/keystone_helper.rb +57 -0
- data/lib/ocp_registry/cloud_manager/openstack/nova_helper.rb +37 -0
- data/lib/ocp_registry/cloud_manager/openstack/openstack.rb +126 -0
- data/lib/ocp_registry/common.rb +54 -0
- data/lib/ocp_registry/config.rb +96 -0
- data/lib/ocp_registry/db/001_db_initialize.rb +16 -0
- data/lib/ocp_registry/error.rb +16 -0
- data/lib/ocp_registry/mail_client.rb +141 -0
- data/lib/ocp_registry/models.rb +7 -0
- data/lib/ocp_registry/models/registry_application.rb +10 -0
- data/lib/ocp_registry/runner.rb +47 -0
- data/lib/ocp_registry/version.rb +3 -0
- data/lib/ocp_registry/yaml_helper.rb +23 -0
- data/mail_template/approve_admin.erb +14 -0
- data/mail_template/approve_user.erb +22 -0
- data/mail_template/refuse_admin.erb +16 -0
- data/mail_template/refuse_user.erb +17 -0
- data/mail_template/request_admin.erb +15 -0
- data/mail_template/request_user.erb +16 -0
- data/ocp_registry.gemspec +34 -0
- data/public/bootstrap/css/bootstrap-responsive.css +1109 -0
- data/public/bootstrap/css/bootstrap-responsive.min.css +9 -0
- data/public/bootstrap/css/bootstrap.css +6167 -0
- data/public/bootstrap/css/bootstrap.min.css +9 -0
- data/public/bootstrap/img/glyphicons-halflings-white.png +0 -0
- data/public/bootstrap/img/glyphicons-halflings.png +0 -0
- data/public/bootstrap/js/bootstrap.js +2280 -0
- data/public/bootstrap/js/bootstrap.min.js +6 -0
- data/public/common.css +104 -0
- data/public/favicon.ico +0 -0
- data/public/images/loading.gif +0 -0
- data/public/jquery-1.10.2.min.js +6 -0
- data/public/jquery-1.10.2.min.map +1 -0
- data/public/jquery.json-2.4.min.js +23 -0
- data/public/noty/.gitignore +8 -0
- data/public/noty/LICENSE.txt +20 -0
- data/public/noty/README.markdown +22 -0
- data/public/noty/demo/allLayouts.html +91 -0
- data/public/noty/demo/allTypes.html +86 -0
- data/public/noty/demo/api.html +103 -0
- data/public/noty/demo/buttons.css +320 -0
- data/public/noty/demo/consumingAlert.html +78 -0
- data/public/noty/demo/customContainer.html +90 -0
- data/public/noty/demo/index.html +66 -0
- data/public/noty/demo/jquery-1.7.2.min.js +4 -0
- data/public/noty/demo/usingMaxVisible.html +104 -0
- data/public/noty/demo/usingWithButtons.html +104 -0
- data/public/noty/demo/usingWithButtons2.html +98 -0
- data/public/noty/demo/usingWithModal.html +87 -0
- data/public/noty/demo/usingWithOldOptions.html +110 -0
- data/public/noty/js/jquery.noty.js +547 -0
- data/public/noty/js/layouts/bottom.js +34 -0
- data/public/noty/js/layouts/bottomCenter.js +41 -0
- data/public/noty/js/layouts/bottomLeft.js +43 -0
- data/public/noty/js/layouts/bottomRight.js +43 -0
- data/public/noty/js/layouts/center.js +56 -0
- data/public/noty/js/layouts/centerLeft.js +61 -0
- data/public/noty/js/layouts/centerRight.js +61 -0
- data/public/noty/js/layouts/inline.js +31 -0
- data/public/noty/js/layouts/top.js +34 -0
- data/public/noty/js/layouts/topCenter.js +41 -0
- data/public/noty/js/layouts/topLeft.js +43 -0
- data/public/noty/js/layouts/topRight.js +43 -0
- data/public/noty/js/promise.js +432 -0
- data/public/noty/js/themes/default.js +156 -0
- data/views/apply.erb +134 -0
- data/views/base.erb +25 -0
- data/views/list.erb +41 -0
- data/views/review.erb +141 -0
- data/views/show.erb +96 -0
- data/views/view.erb +7 -0
- metadata +294 -0
@@ -0,0 +1,320 @@
|
|
1
|
+
/*!
|
2
|
+
* Bootstrap Buttons v2.0.2
|
3
|
+
*
|
4
|
+
* Copyright 2012 Twitter, Inc
|
5
|
+
* Licensed under the Apache License v2.0
|
6
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
*
|
8
|
+
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
9
|
+
*/
|
10
|
+
|
11
|
+
.btn {
|
12
|
+
display: inline-block;
|
13
|
+
*display: inline;
|
14
|
+
/* IE7 inline-block hack */
|
15
|
+
|
16
|
+
*zoom: 1;
|
17
|
+
padding: 4px 10px 4px;
|
18
|
+
margin-bottom: 0;
|
19
|
+
font-size: 13px;
|
20
|
+
line-height: 18px;
|
21
|
+
color: #333333;
|
22
|
+
text-align: center;
|
23
|
+
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
|
24
|
+
vertical-align: middle;
|
25
|
+
background-color: #f5f5f5;
|
26
|
+
background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
|
27
|
+
background-image: -ms-linear-gradient(top, #ffffff, #e6e6e6);
|
28
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
|
29
|
+
background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
|
30
|
+
background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
|
31
|
+
background-image: linear-gradient(top, #ffffff, #e6e6e6);
|
32
|
+
background-repeat: repeat-x;
|
33
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#e6e6e6', GradientType=0);
|
34
|
+
border-color: #e6e6e6 #e6e6e6 #bfbfbf;
|
35
|
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
36
|
+
filter: progid:dximagetransform.microsoft.gradient(enabled=false);
|
37
|
+
border: 1px solid #cccccc;
|
38
|
+
border-bottom-color: #b3b3b3;
|
39
|
+
-webkit-border-radius: 4px;
|
40
|
+
-moz-border-radius: 4px;
|
41
|
+
border-radius: 4px;
|
42
|
+
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
43
|
+
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
44
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
45
|
+
cursor: pointer;
|
46
|
+
*margin-left: .3em;
|
47
|
+
}
|
48
|
+
.btn:hover,
|
49
|
+
.btn:active,
|
50
|
+
.btn.active,
|
51
|
+
.btn.disabled,
|
52
|
+
.btn[disabled] {
|
53
|
+
background-color: #e6e6e6;
|
54
|
+
}
|
55
|
+
.btn:active,
|
56
|
+
.btn.active {
|
57
|
+
background-color: #cccccc \9;
|
58
|
+
}
|
59
|
+
.btn:first-child {
|
60
|
+
*margin-left: 0;
|
61
|
+
}
|
62
|
+
.btn:hover {
|
63
|
+
color: #333333;
|
64
|
+
text-decoration: none;
|
65
|
+
background-color: #e6e6e6;
|
66
|
+
background-position: 0 -15px;
|
67
|
+
-webkit-transition: background-position 0.1s linear;
|
68
|
+
-moz-transition: background-position 0.1s linear;
|
69
|
+
-ms-transition: background-position 0.1s linear;
|
70
|
+
-o-transition: background-position 0.1s linear;
|
71
|
+
transition: background-position 0.1s linear;
|
72
|
+
}
|
73
|
+
.btn:focus {
|
74
|
+
outline: thin dotted #333;
|
75
|
+
outline: 5px auto -webkit-focus-ring-color;
|
76
|
+
outline-offset: -2px;
|
77
|
+
}
|
78
|
+
.btn.active,
|
79
|
+
.btn:active {
|
80
|
+
background-image: none;
|
81
|
+
-webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
|
82
|
+
-moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
|
83
|
+
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
|
84
|
+
background-color: #e6e6e6;
|
85
|
+
background-color: #d9d9d9 \9;
|
86
|
+
outline: 0;
|
87
|
+
}
|
88
|
+
.btn.disabled,
|
89
|
+
.btn[disabled] {
|
90
|
+
cursor: default;
|
91
|
+
background-image: none;
|
92
|
+
background-color: #e6e6e6;
|
93
|
+
opacity: 0.65;
|
94
|
+
filter: alpha(opacity=65);
|
95
|
+
-webkit-box-shadow: none;
|
96
|
+
-moz-box-shadow: none;
|
97
|
+
box-shadow: none;
|
98
|
+
}
|
99
|
+
.btn-large {
|
100
|
+
padding: 9px 14px;
|
101
|
+
font-size: 15px;
|
102
|
+
line-height: normal;
|
103
|
+
-webkit-border-radius: 5px;
|
104
|
+
-moz-border-radius: 5px;
|
105
|
+
border-radius: 5px;
|
106
|
+
}
|
107
|
+
.btn-large [class^="icon-"] {
|
108
|
+
margin-top: 1px;
|
109
|
+
}
|
110
|
+
.btn-small {
|
111
|
+
padding: 5px 9px;
|
112
|
+
font-size: 11px;
|
113
|
+
line-height: 16px;
|
114
|
+
}
|
115
|
+
.btn-small [class^="icon-"] {
|
116
|
+
margin-top: -1px;
|
117
|
+
}
|
118
|
+
.btn-mini {
|
119
|
+
padding: 2px 6px;
|
120
|
+
font-size: 11px;
|
121
|
+
line-height: 14px;
|
122
|
+
}
|
123
|
+
.btn-primary,
|
124
|
+
.btn-primary:hover,
|
125
|
+
.btn-warning,
|
126
|
+
.btn-warning:hover,
|
127
|
+
.btn-danger,
|
128
|
+
.btn-danger:hover,
|
129
|
+
.btn-success,
|
130
|
+
.btn-success:hover,
|
131
|
+
.btn-info,
|
132
|
+
.btn-info:hover,
|
133
|
+
.btn-inverse,
|
134
|
+
.btn-inverse:hover {
|
135
|
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
136
|
+
color: #ffffff;
|
137
|
+
}
|
138
|
+
.btn-primary.active,
|
139
|
+
.btn-warning.active,
|
140
|
+
.btn-danger.active,
|
141
|
+
.btn-success.active,
|
142
|
+
.btn-info.active,
|
143
|
+
.btn-inverse.active {
|
144
|
+
color: rgba(255, 255, 255, 0.75);
|
145
|
+
}
|
146
|
+
.btn-primary {
|
147
|
+
background-color: #0074cc;
|
148
|
+
background-image: -moz-linear-gradient(top, #0088cc, #0055cc);
|
149
|
+
background-image: -ms-linear-gradient(top, #0088cc, #0055cc);
|
150
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0055cc));
|
151
|
+
background-image: -webkit-linear-gradient(top, #0088cc, #0055cc);
|
152
|
+
background-image: -o-linear-gradient(top, #0088cc, #0055cc);
|
153
|
+
background-image: linear-gradient(top, #0088cc, #0055cc);
|
154
|
+
background-repeat: repeat-x;
|
155
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0055cc', GradientType=0);
|
156
|
+
border-color: #0055cc #0055cc #003580;
|
157
|
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
158
|
+
filter: progid:dximagetransform.microsoft.gradient(enabled=false);
|
159
|
+
}
|
160
|
+
.btn-primary:hover,
|
161
|
+
.btn-primary:active,
|
162
|
+
.btn-primary.active,
|
163
|
+
.btn-primary.disabled,
|
164
|
+
.btn-primary[disabled] {
|
165
|
+
background-color: #0055cc;
|
166
|
+
}
|
167
|
+
.btn-primary:active,
|
168
|
+
.btn-primary.active {
|
169
|
+
background-color: #004099 \9;
|
170
|
+
}
|
171
|
+
.btn-warning {
|
172
|
+
background-color: #faa732;
|
173
|
+
background-image: -moz-linear-gradient(top, #fbb450, #f89406);
|
174
|
+
background-image: -ms-linear-gradient(top, #fbb450, #f89406);
|
175
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406));
|
176
|
+
background-image: -webkit-linear-gradient(top, #fbb450, #f89406);
|
177
|
+
background-image: -o-linear-gradient(top, #fbb450, #f89406);
|
178
|
+
background-image: linear-gradient(top, #fbb450, #f89406);
|
179
|
+
background-repeat: repeat-x;
|
180
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fbb450', endColorstr='#f89406', GradientType=0);
|
181
|
+
border-color: #f89406 #f89406 #ad6704;
|
182
|
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
183
|
+
filter: progid:dximagetransform.microsoft.gradient(enabled=false);
|
184
|
+
}
|
185
|
+
.btn-warning:hover,
|
186
|
+
.btn-warning:active,
|
187
|
+
.btn-warning.active,
|
188
|
+
.btn-warning.disabled,
|
189
|
+
.btn-warning[disabled] {
|
190
|
+
background-color: #f89406;
|
191
|
+
}
|
192
|
+
.btn-warning:active,
|
193
|
+
.btn-warning.active {
|
194
|
+
background-color: #c67605 \9;
|
195
|
+
}
|
196
|
+
.btn-danger {
|
197
|
+
background-color: #da4f49;
|
198
|
+
background-image: -moz-linear-gradient(top, #ee5f5b, #bd362f);
|
199
|
+
background-image: -ms-linear-gradient(top, #ee5f5b, #bd362f);
|
200
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#bd362f));
|
201
|
+
background-image: -webkit-linear-gradient(top, #ee5f5b, #bd362f);
|
202
|
+
background-image: -o-linear-gradient(top, #ee5f5b, #bd362f);
|
203
|
+
background-image: linear-gradient(top, #ee5f5b, #bd362f);
|
204
|
+
background-repeat: repeat-x;
|
205
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ee5f5b', endColorstr='#bd362f', GradientType=0);
|
206
|
+
border-color: #bd362f #bd362f #802420;
|
207
|
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
208
|
+
filter: progid:dximagetransform.microsoft.gradient(enabled=false);
|
209
|
+
}
|
210
|
+
.btn-danger:hover,
|
211
|
+
.btn-danger:active,
|
212
|
+
.btn-danger.active,
|
213
|
+
.btn-danger.disabled,
|
214
|
+
.btn-danger[disabled] {
|
215
|
+
background-color: #bd362f;
|
216
|
+
}
|
217
|
+
.btn-danger:active,
|
218
|
+
.btn-danger.active {
|
219
|
+
background-color: #942a25 \9;
|
220
|
+
}
|
221
|
+
.btn-success {
|
222
|
+
background-color: #5bb75b;
|
223
|
+
background-image: -moz-linear-gradient(top, #62c462, #51a351);
|
224
|
+
background-image: -ms-linear-gradient(top, #62c462, #51a351);
|
225
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#51a351));
|
226
|
+
background-image: -webkit-linear-gradient(top, #62c462, #51a351);
|
227
|
+
background-image: -o-linear-gradient(top, #62c462, #51a351);
|
228
|
+
background-image: linear-gradient(top, #62c462, #51a351);
|
229
|
+
background-repeat: repeat-x;
|
230
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#62c462', endColorstr='#51a351', GradientType=0);
|
231
|
+
border-color: #51a351 #51a351 #387038;
|
232
|
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
233
|
+
filter: progid:dximagetransform.microsoft.gradient(enabled=false);
|
234
|
+
}
|
235
|
+
.btn-success:hover,
|
236
|
+
.btn-success:active,
|
237
|
+
.btn-success.active,
|
238
|
+
.btn-success.disabled,
|
239
|
+
.btn-success[disabled] {
|
240
|
+
background-color: #51a351;
|
241
|
+
}
|
242
|
+
.btn-success:active,
|
243
|
+
.btn-success.active {
|
244
|
+
background-color: #408140 \9;
|
245
|
+
}
|
246
|
+
.btn-info {
|
247
|
+
background-color: #49afcd;
|
248
|
+
background-image: -moz-linear-gradient(top, #5bc0de, #2f96b4);
|
249
|
+
background-image: -ms-linear-gradient(top, #5bc0de, #2f96b4);
|
250
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#2f96b4));
|
251
|
+
background-image: -webkit-linear-gradient(top, #5bc0de, #2f96b4);
|
252
|
+
background-image: -o-linear-gradient(top, #5bc0de, #2f96b4);
|
253
|
+
background-image: linear-gradient(top, #5bc0de, #2f96b4);
|
254
|
+
background-repeat: repeat-x;
|
255
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#5bc0de', endColorstr='#2f96b4', GradientType=0);
|
256
|
+
border-color: #2f96b4 #2f96b4 #1f6377;
|
257
|
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
258
|
+
filter: progid:dximagetransform.microsoft.gradient(enabled=false);
|
259
|
+
}
|
260
|
+
.btn-info:hover,
|
261
|
+
.btn-info:active,
|
262
|
+
.btn-info.active,
|
263
|
+
.btn-info.disabled,
|
264
|
+
.btn-info[disabled] {
|
265
|
+
background-color: #2f96b4;
|
266
|
+
}
|
267
|
+
.btn-info:active,
|
268
|
+
.btn-info.active {
|
269
|
+
background-color: #24748c \9;
|
270
|
+
}
|
271
|
+
.btn-inverse {
|
272
|
+
background-color: #414141;
|
273
|
+
background-image: -moz-linear-gradient(top, #555555, #222222);
|
274
|
+
background-image: -ms-linear-gradient(top, #555555, #222222);
|
275
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#555555), to(#222222));
|
276
|
+
background-image: -webkit-linear-gradient(top, #555555, #222222);
|
277
|
+
background-image: -o-linear-gradient(top, #555555, #222222);
|
278
|
+
background-image: linear-gradient(top, #555555, #222222);
|
279
|
+
background-repeat: repeat-x;
|
280
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#555555', endColorstr='#222222', GradientType=0);
|
281
|
+
border-color: #222222 #222222 #000000;
|
282
|
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
283
|
+
filter: progid:dximagetransform.microsoft.gradient(enabled=false);
|
284
|
+
}
|
285
|
+
.btn-inverse:hover,
|
286
|
+
.btn-inverse:active,
|
287
|
+
.btn-inverse.active,
|
288
|
+
.btn-inverse.disabled,
|
289
|
+
.btn-inverse[disabled] {
|
290
|
+
background-color: #222222;
|
291
|
+
}
|
292
|
+
.btn-inverse:active,
|
293
|
+
.btn-inverse.active {
|
294
|
+
background-color: #080808 \9;
|
295
|
+
}
|
296
|
+
button.btn,
|
297
|
+
input[type="submit"].btn {
|
298
|
+
*padding-top: 2px;
|
299
|
+
*padding-bottom: 2px;
|
300
|
+
}
|
301
|
+
button.btn::-moz-focus-inner,
|
302
|
+
input[type="submit"].btn::-moz-focus-inner {
|
303
|
+
padding: 0;
|
304
|
+
border: 0;
|
305
|
+
}
|
306
|
+
button.btn.btn-large,
|
307
|
+
input[type="submit"].btn.btn-large {
|
308
|
+
*padding-top: 7px;
|
309
|
+
*padding-bottom: 7px;
|
310
|
+
}
|
311
|
+
button.btn.btn-small,
|
312
|
+
input[type="submit"].btn.btn-small {
|
313
|
+
*padding-top: 3px;
|
314
|
+
*padding-bottom: 3px;
|
315
|
+
}
|
316
|
+
button.btn.btn-mini,
|
317
|
+
input[type="submit"].btn.btn-mini {
|
318
|
+
*padding-top: 1px;
|
319
|
+
*padding-bottom: 1px;
|
320
|
+
}
|
@@ -0,0 +1,78 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
+
<meta charset="utf-8">
|
6
|
+
<title>Notification Types</title>
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
8
|
+
<meta name="description" content="demonstration of some noty capabilities">
|
9
|
+
|
10
|
+
<link href='http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic&subset=latin,latin-ext,cyrillic' rel='stylesheet' type='text/css'>
|
11
|
+
<style type="text/css">
|
12
|
+
|
13
|
+
html {
|
14
|
+
height: 100%;
|
15
|
+
width: 100%;
|
16
|
+
}
|
17
|
+
body {
|
18
|
+
font-family: 'PT Sans', Tahoma, Arial, serif; line-height: 13px
|
19
|
+
}
|
20
|
+
|
21
|
+
</style>
|
22
|
+
|
23
|
+
<link rel="stylesheet" type="text/css" href="buttons.css"/>
|
24
|
+
|
25
|
+
</head>
|
26
|
+
<body>
|
27
|
+
|
28
|
+
<div class="container">
|
29
|
+
|
30
|
+
<div id="customContainer"></div>
|
31
|
+
|
32
|
+
</div>
|
33
|
+
|
34
|
+
<script src="jquery-1.7.2.min.js"></script>
|
35
|
+
|
36
|
+
<!-- noty -->
|
37
|
+
<script type="text/javascript" src="../js/noty/jquery.noty.js"></script>
|
38
|
+
|
39
|
+
<!-- layouts -->
|
40
|
+
<script type="text/javascript" src="../js/noty/layouts/bottom.js"></script>
|
41
|
+
<script type="text/javascript" src="../js/noty/layouts/bottomCenter.js"></script>
|
42
|
+
<script type="text/javascript" src="../js/noty/layouts/bottomLeft.js"></script>
|
43
|
+
<script type="text/javascript" src="../js/noty/layouts/bottomRight.js"></script>
|
44
|
+
<script type="text/javascript" src="../js/noty/layouts/center.js"></script>
|
45
|
+
<script type="text/javascript" src="../js/noty/layouts/centerLeft.js"></script>
|
46
|
+
<script type="text/javascript" src="../js/noty/layouts/centerRight.js"></script>
|
47
|
+
<script type="text/javascript" src="../js/noty/layouts/inline.js"></script>
|
48
|
+
<script type="text/javascript" src="../js/noty/layouts/top.js"></script>
|
49
|
+
<script type="text/javascript" src="../js/noty/layouts/topCenter.js"></script>
|
50
|
+
<script type="text/javascript" src="../js/noty/layouts/topLeft.js"></script>
|
51
|
+
<script type="text/javascript" src="../js/noty/layouts/topRight.js"></script>
|
52
|
+
|
53
|
+
<!-- themes -->
|
54
|
+
<script type="text/javascript" src="../js/noty/themes/default.js"></script>
|
55
|
+
|
56
|
+
<script type="text/javascript">
|
57
|
+
|
58
|
+
$(document).ready(function() {
|
59
|
+
|
60
|
+
alert("This is a basic window alert");
|
61
|
+
|
62
|
+
$.noty.consumeAlert({layout: 'topRight', type: 'success', dismissQueue: true});
|
63
|
+
|
64
|
+
alert("This is the same but noty consumed with options");
|
65
|
+
|
66
|
+
$.noty.consumeAlert({layout: 'topCenter', type: 'alert', dismissQueue: true});
|
67
|
+
|
68
|
+
alert("Consumed again but different options");
|
69
|
+
|
70
|
+
$.noty.stopConsumeAlert();
|
71
|
+
|
72
|
+
alert("This is just alert without consume");
|
73
|
+
|
74
|
+
});
|
75
|
+
|
76
|
+
</script>
|
77
|
+
</body>
|
78
|
+
</html>
|
@@ -0,0 +1,90 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
+
<meta charset="utf-8">
|
6
|
+
<title>Notification Types</title>
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
8
|
+
<meta name="description" content="demonstration of some noty capabilities">
|
9
|
+
|
10
|
+
<link href='http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic&subset=latin,latin-ext,cyrillic' rel='stylesheet' type='text/css'>
|
11
|
+
<style type="text/css">
|
12
|
+
|
13
|
+
html {
|
14
|
+
height: 100%;
|
15
|
+
width: 100%;
|
16
|
+
}
|
17
|
+
body {
|
18
|
+
font-family: 'PT Sans', Tahoma, Arial, serif; line-height: 13px
|
19
|
+
}
|
20
|
+
|
21
|
+
</style>
|
22
|
+
|
23
|
+
<link rel="stylesheet" type="text/css" href="buttons.css"/>
|
24
|
+
|
25
|
+
</head>
|
26
|
+
<body>
|
27
|
+
|
28
|
+
<div class="container">
|
29
|
+
|
30
|
+
<div id="customContainer" style="width: 400px; margin-left: 125px; margin-top: 100px; border: 1px solid #ccc; padding: 10px">
|
31
|
+
<p><strong>Hi!</strong> I'm a custom container</p>
|
32
|
+
</div>
|
33
|
+
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<script src="jquery-1.7.2.min.js"></script>
|
37
|
+
|
38
|
+
<!-- noty -->
|
39
|
+
<script type="text/javascript" src="../js/noty/jquery.noty.js"></script>
|
40
|
+
|
41
|
+
<!-- layouts -->
|
42
|
+
<script type="text/javascript" src="../js/noty/layouts/bottom.js"></script>
|
43
|
+
<script type="text/javascript" src="../js/noty/layouts/bottomCenter.js"></script>
|
44
|
+
<script type="text/javascript" src="../js/noty/layouts/bottomLeft.js"></script>
|
45
|
+
<script type="text/javascript" src="../js/noty/layouts/bottomRight.js"></script>
|
46
|
+
<script type="text/javascript" src="../js/noty/layouts/center.js"></script>
|
47
|
+
<script type="text/javascript" src="../js/noty/layouts/centerLeft.js"></script>
|
48
|
+
<script type="text/javascript" src="../js/noty/layouts/centerRight.js"></script>
|
49
|
+
<script type="text/javascript" src="../js/noty/layouts/inline.js"></script>
|
50
|
+
<script type="text/javascript" src="../js/noty/layouts/top.js"></script>
|
51
|
+
<script type="text/javascript" src="../js/noty/layouts/topCenter.js"></script>
|
52
|
+
<script type="text/javascript" src="../js/noty/layouts/topLeft.js"></script>
|
53
|
+
<script type="text/javascript" src="../js/noty/layouts/topRight.js"></script>
|
54
|
+
|
55
|
+
<!-- themes -->
|
56
|
+
<script type="text/javascript" src="../js/noty/themes/default.js"></script>
|
57
|
+
|
58
|
+
<script type="text/javascript">
|
59
|
+
|
60
|
+
function generate(type) {
|
61
|
+
|
62
|
+
var n = $('div#customContainer').noty({
|
63
|
+
text: type,
|
64
|
+
type: type,
|
65
|
+
dismissQueue: true,
|
66
|
+
layout: 'topCenter',
|
67
|
+
theme: 'defaultTheme'
|
68
|
+
});
|
69
|
+
|
70
|
+
console.log('html: '+n.options.id);
|
71
|
+
}
|
72
|
+
|
73
|
+
function generateAll() {
|
74
|
+
generate('alert');
|
75
|
+
generate('information');
|
76
|
+
generate('error');
|
77
|
+
generate('warning');
|
78
|
+
generate('notification');
|
79
|
+
generate('success');
|
80
|
+
}
|
81
|
+
|
82
|
+
$(document).ready(function() {
|
83
|
+
|
84
|
+
generateAll();
|
85
|
+
|
86
|
+
});
|
87
|
+
|
88
|
+
</script>
|
89
|
+
</body>
|
90
|
+
</html>
|