Commit 6b3911b2faaac317cebf7316b9f50eb7afbfd43d
Initial commit
1 | +++ a/TODO.md | ||
@@ -0,0 +1,55 @@ | @@ -0,0 +1,55 @@ | ||
1 | +* Make animated inserting to the any position | ||
2 | + | ||
3 | +* Make drag'n'dropping with saving position | ||
4 | + | ||
5 | +* Correctly handle changing size of item | ||
6 | + | ||
7 | +* make rational spans | ||
8 | +* make item-specific width | ||
9 | + | ||
10 | +* utilize modernizr to detect features | ||
11 | + | ||
12 | +* Insert inside the list - animate displacing | ||
13 | + | ||
14 | +* Make layouter - generic layout description thing | ||
15 | + | ||
16 | +* Correct chrome rounding of item offsets | ||
17 | + | ||
18 | +* Use translate-3d and calc, if possible. If not - use simple absolute positioning. | ||
19 | + | ||
20 | +* BUG: data-col-width fails to read | ||
21 | + | ||
22 | +* BUG: fix case where there’s only three items, but pasteable 4 columns (footer in kudago) | ||
23 | + * Min-col-num property, max-col-num | ||
24 | + | ||
25 | +* Restrict max columns number | ||
26 | + | ||
27 | +* Move out animations to the css | ||
28 | + | ||
29 | +* Finish up deferreds (fix zepto/jquery bad behaviour, test for nested images) | ||
30 | + | ||
31 | +* Make full equivalent to css-columns | ||
32 | + | ||
33 | +* Test on jquery sequential image-loading along with non-image elements (as header inside content) | ||
34 | + | ||
35 | +* On `add` - animate from bottom of the screen | ||
36 | + | ||
37 | +* BUG: Fucks up layout if -webkit-animation top | ||
38 | + | ||
39 | +* Update only visible part on add, do not recalculate | ||
40 | + | ||
41 | +* Speed up appending of elements. Too slow for now. | ||
42 | + | ||
43 | +* Deferred image loading of new elements. | ||
44 | + | ||
45 | +* Scroll only visible part | ||
46 | + | ||
47 | +* Specified number of columns, e.g. 2,4,6. No 3. | ||
48 | + | ||
49 | +* Keep viewport scrolling on reflow | ||
50 | + | ||
51 | +* Fixed-width floating aside column | ||
52 | +* Correct reflow when inner element size changed | ||
53 | +* Displacement as on gplus when new item added. | ||
54 | +* Test float elements with prerender mode | ||
55 | +* Keep position(order) tracking, e.g. if I want to fix some element on top of column | ||
0 | \ No newline at end of file | 56 | \ No newline at end of file |
1 | +++ a/appearance_menu.html.erb | ||
@@ -0,0 +1,17 @@ | @@ -0,0 +1,17 @@ | ||
1 | +<div id="control_panel_bar" class="menu_aparence controller-profile_editor"> | ||
2 | + | ||
3 | +<ul class="control-panel"> | ||
4 | + <li> | ||
5 | + <%= link_to(_('Edit sideboxes'), url_for(:controller => 'profile_design', :action => 'index'), :class => 'control-panel-blocks') %> | ||
6 | + </li> | ||
7 | + | ||
8 | + <li> | ||
9 | + <%= link_to(_('Edit Appearance'), url_for(:controller => 'profile_themes', :action => 'index'), :class => 'control-panel-design-editor') %> | ||
10 | + </li> | ||
11 | + | ||
12 | + <li> | ||
13 | + <%= link_to(_('Edit Header and Footer'), url_for(:controller => 'profile_editor', :action => 'header_footer'), :class => 'control-panel-header-and-footer') unless profile.enterprise? && environment.enabled?('disable_header_and_footer') && !user.is_admin?(environment) %> | ||
14 | + </li> | ||
15 | +</ul> | ||
16 | + | ||
17 | +</div> |
1 | +++ a/cabecalho.css | ||
@@ -0,0 +1,1198 @@ | @@ -0,0 +1,1198 @@ | ||
1 | +/*(amarelo-claro=#fcdd4e)*/ | ||
2 | +/*(amarelo-escuro=#f9c404)*/ | ||
3 | +/****************** cabecalho ******************/ | ||
4 | +#theme-header{height: auto;} | ||
5 | + | ||
6 | +#header { | ||
7 | + padding: 13px 0 0 0; | ||
8 | +background-color: #fcdd4e;/*(amarelo-claro)*/ | ||
9 | + /* Old browsers */ | ||
10 | + background-color: #f9c404; /*(amarelo-escuro)*/ | ||
11 | + background-image: -moz-radial-gradient(center, ellipse cover, #fcdd4e 1%, #f9c404 100%); /*(amarelo-claro)(amarelo-escuro)*/ | ||
12 | + /* FF3.6+ */ | ||
13 | + background-image: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(1%,#fcdd4e), color-stop(100%,#f9c404)); | ||
14 | + /* Chrome,Safari4+ */ | ||
15 | + background-image: -webkit-radial-gradient(center, ellipse cover, #fcdd4e 1%,#f9c404 100%); | ||
16 | + /* Chrome10+,Safari5.1+ */ | ||
17 | + background-image: -o-radial-gradient(center, ellipse cover, #fcdd4e 1%,#f9c404 100%); | ||
18 | + /* Opera 12+ */ | ||
19 | + background-image: -ms-radial-gradient(center, ellipse cover, #fcdd4e 1%,#f9c404 100%); | ||
20 | + /* IE10+ */ | ||
21 | + background-image: radial-gradient(ellipse at center, #fcdd4e 1%,#f9c404 100%); | ||
22 | + /* W3C */ | ||
23 | +/* filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcdd4e', endColorstr='#f9c404',GradientType=1 );*/ | ||
24 | + /* IE6-9 fallback on horizontal gradient */ | ||
25 | + color: #fff; | ||
26 | +} | ||
27 | + | ||
28 | +#header>div { | ||
29 | + max-width: 960px; | ||
30 | + margin: 0 auto; | ||
31 | +} | ||
32 | + | ||
33 | +.header-content * { | ||
34 | + margin: 0; | ||
35 | + padding: 0; | ||
36 | + list-style: none; | ||
37 | + vertical-align: baseline; | ||
38 | +} | ||
39 | + | ||
40 | +.header-content { | ||
41 | + height: 5px; | ||
42 | + transition-duration: 0.6s; | ||
43 | + overflow: hidden; | ||
44 | +} | ||
45 | + | ||
46 | +.header-content:hover, | ||
47 | +.header-content *:focus + .header-content, | ||
48 | +.header-content *:focus > .header-content { | ||
49 | + height: 173px; | ||
50 | +} | ||
51 | + | ||
52 | +.header-content li { display: inline; } | ||
53 | + | ||
54 | +#brasilgov { | ||
55 | + background: #00510f; | ||
56 | + border-bottom: 1px solid #ffcc00; | ||
57 | + padding: 5px 10px; | ||
58 | + color: #03316f; | ||
59 | +} | ||
60 | + | ||
61 | +#accessibility { | ||
62 | + display: block !important; | ||
63 | + float: left; | ||
64 | + font-family: arial; | ||
65 | + font-size: 10px; | ||
66 | + width: 50%; | ||
67 | +} | ||
68 | + | ||
69 | +#accessibility a { | ||
70 | + color: #00500f; | ||
71 | + margin-right: 8px; | ||
72 | +} | ||
73 | + | ||
74 | +#accessibility span { | ||
75 | + background: none repeat scroll 0 0 #497B16; | ||
76 | + color: #FFFFFF; | ||
77 | + padding: 0 4px; | ||
78 | +} | ||
79 | + | ||
80 | + | ||
81 | + | ||
82 | +/* logo */ | ||
83 | +#logo { | ||
84 | + padding: 0; | ||
85 | + float: left; | ||
86 | + width: 70%; | ||
87 | +} | ||
88 | + | ||
89 | +#logo span { | ||
90 | + display: block; | ||
91 | +} | ||
92 | + | ||
93 | +#logo a { | ||
94 | + display: block; | ||
95 | + width: 100%; | ||
96 | + color: #03316f !important; | ||
97 | + margin: 1em 0px; | ||
98 | +} | ||
99 | + | ||
100 | +#logo a, #logo #portal-title { | ||
101 | + color: #03316f; | ||
102 | +} | ||
103 | + | ||
104 | +#logo #portal-title { | ||
105 | + margin: 30px 0px 46px 0px; | ||
106 | + color: #03316f; | ||
107 | + font-size: 40px; | ||
108 | + font-family: 'Open Sans Extrabold', Arial, Helvetica, sans-serif; | ||
109 | + font-weight: normal; | ||
110 | + line-height: 1em; | ||
111 | + letter-spacing: -0.05em; | ||
112 | +} | ||
113 | + | ||
114 | +#logo .luongo { | ||
115 | + font-size: 3em !important; | ||
116 | + line-height: 1.1em; | ||
117 | + margin-bottom: 0.2em; | ||
118 | +} | ||
119 | + | ||
120 | +#logo #portal-description { | ||
121 | + font-size: 1.2em; | ||
122 | + text-transform: uppercase; | ||
123 | +} | ||
124 | + | ||
125 | +/* Site Actions */ | ||
126 | +#portal-siteactions { | ||
127 | + display: block; | ||
128 | + float: right; | ||
129 | + clear: left; | ||
130 | + border-bottom: 1px dotted #00500f; | ||
131 | + padding-bottom: 2px; | ||
132 | + margin-top: -15px; | ||
133 | + font-size: 10px; | ||
134 | + text-align: center; | ||
135 | +} | ||
136 | + | ||
137 | +#portal-siteactions a { | ||
138 | + color: #00500f; | ||
139 | + text-decoration: none; | ||
140 | + padding: 4px 0 4px 10px; | ||
141 | + text-transform: uppercase; | ||
142 | + font-family: 'Open Sans', Arial, Helvetica, sans-serif; | ||
143 | +} | ||
144 | + | ||
145 | +#portal-siteactions a:hover { | ||
146 | + color: #03316f; | ||
147 | +} | ||
148 | + | ||
149 | +#portal-siteactions li { | ||
150 | + display: inline; | ||
151 | +} | ||
152 | + | ||
153 | +#portal-siteactions li a:hover { | ||
154 | +color: #75ad0a | ||
155 | +} | ||
156 | +#portal-siteactions li a { | ||
157 | + padding: 4px 0px; | ||
158 | +} | ||
159 | + | ||
160 | +#social-icons { | ||
161 | + float: right; | ||
162 | + clear: right; | ||
163 | + margin: 0px; | ||
164 | +} | ||
165 | + | ||
166 | +#social-icons ul { | ||
167 | + display: table-row; | ||
168 | +} | ||
169 | + | ||
170 | +#social-icons li { | ||
171 | + display: table-cell; | ||
172 | +} | ||
173 | + | ||
174 | +#social-icons li a { | ||
175 | + border: none; | ||
176 | + padding: 0 5px; | ||
177 | +} | ||
178 | + | ||
179 | +#siteaction-accessibility, | ||
180 | +#siteaction-contraste { | ||
181 | + margin: 0px 15px 0px 0px; | ||
182 | +} | ||
183 | +/* */ | ||
184 | + | ||
185 | +/* Top links */ | ||
186 | +#theme-header .header-content #link-faq a { | ||
187 | + border-right: 1px solid #00500f; | ||
188 | + padding: 0 10px; | ||
189 | +} | ||
190 | +#theme-header .header-content #link-contact a { | ||
191 | + padding-left: 10px; | ||
192 | +} | ||
193 | + | ||
194 | +#theme-header #sobre { | ||
195 | + line-height: 20px; | ||
196 | + font-size: 12px; | ||
197 | +} | ||
198 | +/* */ | ||
199 | + | ||
200 | +/* Sobre o brasil */ | ||
201 | +#sobre { | ||
202 | + clear: both; | ||
203 | + max-width: 100% !important; | ||
204 | + margin: 0; | ||
205 | + background: #f8c300;/*amarelo-mais-escuro*/ | ||
206 | + padding: 5px 0; | ||
207 | +} | ||
208 | + | ||
209 | +#sobre ul { | ||
210 | + max-width: 960px; | ||
211 | + margin: 0 auto; | ||
212 | + text-align: right; | ||
213 | +} | ||
214 | + | ||
215 | +#sobre a { | ||
216 | + color: #00500f; | ||
217 | + font-family: 'Open Sans', Arial, Helvetica, sans-serif; | ||
218 | +} | ||
219 | + | ||
220 | +#sobre .portalservicos-item a { | ||
221 | + padding: 0 10px; | ||
222 | + border-right: 1px solid #03316f; | ||
223 | +} | ||
224 | + | ||
225 | +#sobre .last-item a { | ||
226 | + padding: 0 0 0 10px; | ||
227 | + border-right: none; | ||
228 | +} | ||
229 | + | ||
230 | +/* Searchbox */ | ||
231 | +.LSBox { | ||
232 | + margin: 0; | ||
233 | + padding: 0; | ||
234 | + border: none; | ||
235 | +} | ||
236 | + | ||
237 | +input.searchField { | ||
238 | + -moz-appearance: none; | ||
239 | +} | ||
240 | + | ||
241 | +#portal-searchbox { | ||
242 | + clear: right; | ||
243 | + float: right; | ||
244 | + font-size: 80%; | ||
245 | + margin: 30px 0 14px; | ||
246 | + /*margin: 3.12em 0px 3px 0px;*/ | ||
247 | + text-align: right; | ||
248 | + border-radius: 5px; | ||
249 | + -moz-border-radius: 5px; | ||
250 | + -webkit-border-radius: 5px; | ||
251 | + border: 1px solid #CCCCCC; | ||
252 | + background: #fff; | ||
253 | + padding: 2px; | ||
254 | +} | ||
255 | + | ||
256 | +#portal-searchbox .searchField { | ||
257 | + padding: 0.45em; | ||
258 | + border-right: none; | ||
259 | + border: none; | ||
260 | + width: 170px; | ||
261 | +} | ||
262 | + | ||
263 | +#portal-searchbox form { | ||
264 | +white-space: nowrap; | ||
265 | +} | ||
266 | + | ||
267 | +#portal-searchbox label { | ||
268 | +font-weight: normal; | ||
269 | +} | ||
270 | + | ||
271 | +#searchGadget { | ||
272 | +width: 13em; | ||
273 | +} | ||
274 | + | ||
275 | +#header input.searchButton { | ||
276 | + padding: 0.3em; | ||
277 | + background: transparent; | ||
278 | + text-indent: -2000px; | ||
279 | + padding: 4px 15px; | ||
280 | + border: none; | ||
281 | +} | ||
282 | + | ||
283 | +#content input.searchField { | ||
284 | +margin-bottom: 1em; | ||
285 | +} | ||
286 | +input.searchField { | ||
287 | +-moz-appearance: searchfield; | ||
288 | +} | ||
289 | + | ||
290 | +#header input.searchButton { | ||
291 | + background-image: url("images/search-button.gif"); | ||
292 | + background-position: 8px 2px; | ||
293 | + background-repeat: no-repeat; | ||
294 | + background-color: #ffffff; | ||
295 | +} | ||
296 | + | ||
297 | +#LSResult { | ||
298 | + z-index: 1; | ||
299 | + margin-top: 0.5%; | ||
300 | +} | ||
301 | + | ||
302 | + | ||
303 | +/* Search Button */ | ||
304 | +#search-button a { | ||
305 | + display: inline-block; | ||
306 | + width: 29px; | ||
307 | + height: 25px; | ||
308 | + margin-right: 3px; | ||
309 | + margin-top: 10px; | ||
310 | +} | ||
311 | + | ||
312 | +#search-button a:hover { | ||
313 | + opacity: 0.6; | ||
314 | +} | ||
315 | + | ||
316 | +#search-button #sb_search { | ||
317 | +background-image: url(images/search.png); | ||
318 | +background-size: 100% 100%; | ||
319 | +} | ||
320 | + | ||
321 | +#search-button span { display: none; } | ||
322 | + | ||
323 | + | ||
324 | +/* */ | ||
325 | + | ||
326 | +/* Social Buttons */ | ||
327 | +#social-buttons a { | ||
328 | + width: 18px; | ||
329 | + height: 20px; | ||
330 | + margin-right: 3px; | ||
331 | + margin-top: 10px; | ||
332 | +} | ||
333 | + | ||
334 | +#social-icons li a { | ||
335 | + width: 20px; | ||
336 | + height: 20px; | ||
337 | + padding: 0px; | ||
338 | + display: inline-block; | ||
339 | + background-repeat: no-repeat; | ||
340 | +} | ||
341 | + | ||
342 | +#social-icons li { | ||
343 | + float: right; | ||
344 | + width: 20px; | ||
345 | + margin-left: 4px; | ||
346 | +} | ||
347 | + | ||
348 | +#social-icons #sb_face { | ||
349 | +background-image: url(images/icone-verde-facebook.png); | ||
350 | +} | ||
351 | +#social-icons #sb_face:hover { | ||
352 | +background: url(images/icone-verde-facebook.png) 0 20px; | ||
353 | +} | ||
354 | + | ||
355 | +#social-icons #sb_tweet { | ||
356 | +background-image: url(images/icone-verde-twitter.png); | ||
357 | +} | ||
358 | +#social-icons #sb_tweet:hover { | ||
359 | +background: url(images/icone-verde-twitter.png) 0 20px; | ||
360 | +} | ||
361 | + | ||
362 | +#social-icons #sb_youtb { | ||
363 | +background-image: url(images/icone-verde-youtube.png); | ||
364 | +} | ||
365 | +#social-icons #sb_youtb:hover { | ||
366 | +background: url(images/icone-verde-youtube.png) 0 20px; | ||
367 | +} | ||
368 | + | ||
369 | +#social-icons #sb_flickr { | ||
370 | +background-image: url(images/icone-verde-flickr.png); | ||
371 | +} | ||
372 | +#social-icons #sb_flickr:hover { | ||
373 | +background: url(images/icone-verde-flickr.png) 0 20px; | ||
374 | +} | ||
375 | + | ||
376 | +#social-icons span { display: none; } | ||
377 | + | ||
378 | +/* FIM social Buttons */ | ||
379 | + | ||
380 | +/****************** FIM cabecalho ******************/ | ||
381 | + | ||
382 | + | ||
383 | + | ||
384 | +/****************** Barra do usuário e Espaço do usuário ******************/ | ||
385 | + | ||
386 | +/********ABA Lateral - Espaço do Usuário**********/ | ||
387 | +/*escondendo e revelando a aba lateral*/ | ||
388 | +.notransition { | ||
389 | + -webkit-transition: none !important; | ||
390 | + -moz-transition: none !important; | ||
391 | + -o-transition: none !important; | ||
392 | + -ms-transition: none !important; | ||
393 | + transition: none !important; | ||
394 | +} | ||
395 | +div#wrap-1,div#wrap-0,div#theme-footer { | ||
396 | + transition-duration: 0.6s; | ||
397 | + -webkit-transition-duration:0.6s; | ||
398 | +} | ||
399 | +div#wrap-1,div#theme-footer {float: right;width:100%;} | ||
400 | +div#wrap-1.menu,div#theme-footer.menu {width: 80%;} | ||
401 | +div#wrap-0.menu{/*width: 20%*/; /*float: left;height: 1px;*/} | ||
402 | + | ||
403 | +/*Propriedades da aba lateral e elementos internos*/ | ||
404 | +#navigation-control { | ||
405 | + width: 0%; | ||
406 | + transition: 0.6s; | ||
407 | + /*position: absolute;*/ | ||
408 | + position: fixed; | ||
409 | + left: 0px; | ||
410 | + display: inline-block; | ||
411 | + background-color: transparent; | ||
412 | + color: black; | ||
413 | + z-index: -1; | ||
414 | + font-size:80%; | ||
415 | +} | ||
416 | + | ||
417 | +.menu #navigation-control {width: 20%;} | ||
418 | + | ||
419 | +#navigation-control a{} | ||
420 | + | ||
421 | +#navigation-control ul li { | ||
422 | + margin: 10px 0; | ||
423 | + text-align: left; | ||
424 | + list-style: none; | ||
425 | +} | ||
426 | + | ||
427 | +#navigation-control ul li a.button.with-text, | ||
428 | +#navigation-control ul li a.button.with-text:visited { | ||
429 | + border: 0px solid #AAA; | ||
430 | +} | ||
431 | + | ||
432 | +#navigation-control ul li a span { | ||
433 | + background-repeat: no-repeat; | ||
434 | + /*padding-left: 25px;*/ | ||
435 | +} | ||
436 | + | ||
437 | +/**/ | ||
438 | +#navigation-control .perfil{ | ||
439 | + display: inline-block; | ||
440 | + background-color: gray; | ||
441 | + width: 100%; | ||
442 | +} | ||
443 | + | ||
444 | +#navigation-control .perfil ul{padding-left: 0;} | ||
445 | + | ||
446 | +#navigation-control .perfil ul li{} | ||
447 | + | ||
448 | +#navigation-control .perfil .name{text-align: center;} | ||
449 | + | ||
450 | +#navigation-control .perfil .name h1{color: #fff;} | ||
451 | + | ||
452 | +#navigation-control .perfil .picture{display: inline-block;width: 100%;text-align: center;} | ||
453 | + | ||
454 | +#navigation-control .perfil .picture img{max-width: 140px; max-height: 140px;overflow: hidden;/*border-radius: 50%;border: 1px solid red;*/} | ||
455 | + | ||
456 | +#navigation-control .perfil .tasks_inner{cursor:pointer; color: #fff;display: inline-block;width: 49%;text-align: center;background: url(images/barra-menu-task.png) no-repeat 10px center gray;} | ||
457 | + | ||
458 | +#navigation-control .perfil .user_status{cursor:pointer; display:inline-block; width:49% ; text-align: center;} | ||
459 | + | ||
460 | +#navigation-control .perfil .online{color: greenyellow;} | ||
461 | +#navigation-control .perfil .busy{color: red;} | ||
462 | +#navigation-control .perfil .away{color: yellow;} | ||
463 | +#navigation-control .perfil .offline{color: #ccc;} | ||
464 | + | ||
465 | +#navigation-control .perfil .online span{font-size: large;vertical-align: -1px;} | ||
466 | + | ||
467 | + | ||
468 | +#navigation-control .menu_user{margin-top: 0;} | ||
469 | + | ||
470 | +#navigation-control .menu_user .activity_menu {margin-top: 0;padding: 0;border-top: 1px solid #ddd;} | ||
471 | + | ||
472 | +#navigation-control .menu_user .activity_menu .activity_menu_item{ | ||
473 | + color: #ddd; | ||
474 | + background-color: gray; | ||
475 | + padding: 0 28px; | ||
476 | + margin: 0; | ||
477 | + border-bottom: 1px solid #ddd; | ||
478 | + height: 40px; | ||
479 | +} | ||
480 | + | ||
481 | +#navigation-control .menu_user .activity_menu .activity_menu_item * { | ||
482 | + line-height: 40px; | ||
483 | +} | ||
484 | +#navigation-control .menu_user .activity_menu .activity_menu_item a { | ||
485 | + display: inline-block; | ||
486 | + width: 100%; | ||
487 | +} | ||
488 | + | ||
489 | +#navigation-control .menu_user .activity_menu .activity_menu_item:hover {background-color: #ddd; color: #333;} | ||
490 | + | ||
491 | +#navigation-control .menu_user .activity_menu .activity_menu_item .arrow{float: right;} | ||
492 | + | ||
493 | +#navigation-control .menu_user .activity_menu .activity_menu_item .quick_post{padding: 14px;background-color: #fff;margin-top: 10px;display: none;} | ||
494 | + | ||
495 | +/********FIM ABA Lateral - Espaço do Usuário**********/ | ||
496 | + | ||
497 | + | ||
498 | +/****************** Barra do usuário ******************/ | ||
499 | +#top-bar { | ||
500 | + position: relative; | ||
501 | + height: 40px; | ||
502 | + margin: auto; | ||
503 | + background: url(images/top-bar-bg.png) repeat-x; | ||
504 | +} | ||
505 | + | ||
506 | +#top-bar.top { | ||
507 | + background-color: #fff; | ||
508 | + height: 40px; | ||
509 | +} | ||
510 | + | ||
511 | +#top-bar li { | ||
512 | + float: left; | ||
513 | +} | ||
514 | + | ||
515 | + | ||
516 | +/*****Botões da barra do usuário - Menu - Pendẽncias - Mensagens *****/ | ||
517 | +.btn_control_panel { | ||
518 | + min-width: 40px; | ||
519 | + height: 40px; | ||
520 | + color: #999; | ||
521 | + margin-top: 0; | ||
522 | + margin-right: -3px; | ||
523 | + display: inline-block; | ||
524 | + /*float: left;*/ | ||
525 | + vertical-align:top; | ||
526 | + cursor: pointer; | ||
527 | + border-right: 1px solid #999; | ||
528 | + opacity:0.4; | ||
529 | + filter:alpha(opacity=40); | ||
530 | + padding: 0px 0px 0 35px; | ||
531 | + position:relative; | ||
532 | + /*z-index: 99;*/ | ||
533 | +} | ||
534 | + | ||
535 | +#user .logged-in #pending-tasks-count { | ||
536 | + background-color: #eee; | ||
537 | + padding-left: 15px; | ||
538 | + border-left: 1px solid #999; | ||
539 | + border-right: 1px solid #999; | ||
540 | + margin-left: 15px; | ||
541 | + height: 40px; | ||
542 | + display: inline-block; | ||
543 | +} | ||
544 | +#user .logged-in #pending-tasks-count i { | ||
545 | + left: 0; | ||
546 | +} | ||
547 | + | ||
548 | +#theme-header .btn_control_panel #user a:hover { | ||
549 | + background-color: #eee; | ||
550 | + opacity:0.8; | ||
551 | + filter:alpha(opacity=80); | ||
552 | +} | ||
553 | +#theme-header .btn_control_panel #user a { | ||
554 | + display: inline-block; | ||
555 | + margin: 0; | ||
556 | +} | ||
557 | +#theme-header .btn_control_panel #user a strong { | ||
558 | + line-height: 40px; | ||
559 | + padding: 10px 5px 10px 33px; | ||
560 | +} | ||
561 | +#theme-header .btn_control_panel #user a span { | ||
562 | + line-height: 40px; | ||
563 | +} | ||
564 | +#theme-header .btn_control_panel #user a i { | ||
565 | + left: 10px; | ||
566 | + top: 12px; | ||
567 | +} | ||
568 | +#theme-header .btn_control_panel #user a .task-count { | ||
569 | + padding: 5px; | ||
570 | + margin-left: 16px; | ||
571 | +} | ||
572 | +#theme-header .btn_control_panel #user .ctrl-panel { | ||
573 | + display: none; | ||
574 | +} | ||
575 | + | ||
576 | +/* | ||
577 | +#theme-header .btn_control_panel #user a strong:hover { | ||
578 | + line-height: 40px; | ||
579 | +}*/ | ||
580 | + | ||
581 | +.btn_control_panel span{ | ||
582 | + border: 1px solid gray; | ||
583 | + border-radius: 5px; | ||
584 | + background-color: white; | ||
585 | + padding: 3px; | ||
586 | + color: #333; | ||
587 | + display: inline; | ||
588 | +} | ||
589 | + | ||
590 | +a.btn_control_panel span{margin:0px; border: 0px solid gray;border-radius: 0px; background-color: transparent; padding: 0px;color: #333;display: inline-block;height: 35px;} | ||
591 | + | ||
592 | +.btn_control_panel ul {padding-left: 0;text-align: left;margin: 0;padding: 1em} | ||
593 | + | ||
594 | +.btn_control_panel ul li {display: none;padding-left: 0;text-align: left;margin: 0;padding: 1em} | ||
595 | + | ||
596 | +a.btn_control_panel:hover ul li{display: block;} | ||
597 | + | ||
598 | +.btn_control_panel ul li ul {display: none;} | ||
599 | + | ||
600 | +.btn_control_panel ul.menu_conteudo li:hover ul {display: inline-block} | ||
601 | + | ||
602 | +.btn_control_panel.btn_control {padding: 0;} | ||
603 | + | ||
604 | +/*****FIM Botões da barra do usuário - Menu - Pendẽncias - Mensagens *****/ | ||
605 | + | ||
606 | +/*.btn_control,*/ | ||
607 | +.btn_menu { | ||
608 | + background: url(images/barra-menu-control.png) no-repeat 14px center #eee; | ||
609 | + padding-left: 10px; | ||
610 | +} | ||
611 | + | ||
612 | +#navigation ul li#btn_profile { | ||
613 | + border-left: 0; | ||
614 | + padding: 0; | ||
615 | + margin: 5px 10px; | ||
616 | +} | ||
617 | +#navigation ul li#btn_profile a { | ||
618 | + border-left: 0; | ||
619 | + padding: 0 10px; | ||
620 | +} | ||
621 | +#navigation ul li#btn_profile a img { | ||
622 | + vertical-align: middle; | ||
623 | +} | ||
624 | +#navigation ul li#btn_profile span { | ||
625 | + background: none; | ||
626 | + padding: 0 0 0 5px; | ||
627 | + color: rgb(170, 170, 170); | ||
628 | + font-weight: bold; | ||
629 | +} | ||
630 | + | ||
631 | +.icon-menu-tasks { | ||
632 | + background-image: url(images/barra-menu-task.png); | ||
633 | +} | ||
634 | + | ||
635 | +.btn_msg { | ||
636 | + background: url(images/barra-menu-mail.png) no-repeat 10px center #eee; | ||
637 | +} | ||
638 | + | ||
639 | + | ||
640 | +/*tarefas da barra do usuário*/ | ||
641 | +.task_list { | ||
642 | + position: absolute; | ||
643 | + background: #eee; | ||
644 | + z-index: 9999; | ||
645 | + margin-left: 50px; | ||
646 | + visibility: visible; | ||
647 | + display: block; | ||
648 | +} | ||
649 | + | ||
650 | +#msg_list.task_list {margin-left: 122px;} | ||
651 | + | ||
652 | +.task_list ul {display: inline-block;padding-left: 0;} | ||
653 | + | ||
654 | +.task_list ul li { | ||
655 | + float: none; | ||
656 | + display: block; | ||
657 | + padding: 10px; | ||
658 | +} | ||
659 | +.task_list ul .task_box { | ||
660 | + border-bottom: 1px solid #ccc; | ||
661 | + padding:16px; | ||
662 | +} | ||
663 | + | ||
664 | +.task_icon { | ||
665 | + float: left; | ||
666 | + margin-right: 14px; | ||
667 | +} | ||
668 | + | ||
669 | +.task_list ul .task_decisions { | ||
670 | + clear: right; | ||
671 | +} | ||
672 | + | ||
673 | +.task_information { | ||
674 | + display: inline-block; | ||
675 | + width: 300px; | ||
676 | +} | ||
677 | + | ||
678 | +.task_list ul .task_title {margin-right: 0px !important} | ||
679 | + | ||
680 | +.task_list .button-bar{float: right;margin-right: 10px;} | ||
681 | + | ||
682 | +.task_list .button-bar a.button.with-text { | ||
683 | + padding: 5px 10px; | ||
684 | + padding-left: 20px; | ||
685 | + padding-right: 5px; | ||
686 | +} | ||
687 | +.task_list .button-bar input.button.with-text { | ||
688 | + max-height: 32px; | ||
689 | + height: 32px; | ||
690 | + padding: 0 25px; | ||
691 | + padding-right: 10px; | ||
692 | +} | ||
693 | + | ||
694 | +.task_list.hide {display: none; visibility: hidden;} | ||
695 | + | ||
696 | +/*FIM tarefas da barra do usuário*/ | ||
697 | + | ||
698 | + | ||
699 | +/**/ | ||
700 | + | ||
701 | +/************* Bar Psocial Style - Menu Horizontal**************/ | ||
702 | + | ||
703 | +#user{ | ||
704 | + font-size: 12px; | ||
705 | + position: static; | ||
706 | + z-index: 9; | ||
707 | +} | ||
708 | + | ||
709 | +#user form { | ||
710 | + top: -32px; | ||
711 | + right: -200px; | ||
712 | +} | ||
713 | + | ||
714 | +#user form input { | ||
715 | + width: 180px; | ||
716 | + height: 20px; | ||
717 | +} | ||
718 | + | ||
719 | +#user .logged-in { | ||
720 | + visibility: hidden; | ||
721 | + display: block; | ||
722 | + background:url("images/barra-menu-user-bg.png") repeat-x bottom center #FEFEFE; | ||
723 | + display: block; | ||
724 | + padding: 0; | ||
725 | + text-align: left; | ||
726 | + width: 130px; | ||
727 | + border-radius: 10px | ||
728 | +} | ||
729 | + | ||
730 | +#user .logged-in:hover { | ||
731 | + visibility: visible; | ||
732 | +} | ||
733 | +#user .logged-in a#homepage-link { | ||
734 | + visibility: visible; | ||
735 | +} | ||
736 | + | ||
737 | + | ||
738 | +#user .logged-in span.welcome { | ||
739 | + display: none; | ||
740 | +} | ||
741 | + | ||
742 | +#user .logged-in a { | ||
743 | + width: auto; | ||
744 | +} | ||
745 | + | ||
746 | +/*info do usuário na barra do usuário*/ | ||
747 | +#top-bar .layout_user #user .logged-in a{text-decoration: none;} | ||
748 | + | ||
749 | +#top-bar .layout_user #user .logged-in { | ||
750 | + visibility: visible; | ||
751 | + display: block; | ||
752 | + background: none; | ||
753 | + display: block; | ||
754 | + text-align: left; | ||
755 | + width: auto; | ||
756 | + border-radius: 0; | ||
757 | + border: 0px; | ||
758 | +} | ||
759 | + | ||
760 | +.btn_control_panel #user span.not-logged-in, | ||
761 | +.btn_control_panel #user span.not-logged-in span { | ||
762 | +margin: 5px 5px 5px 5px; | ||
763 | +border: 0; | ||
764 | +background-color: transparent; | ||
765 | +padding: 3px; | ||
766 | +color: #333; | ||
767 | +} | ||
768 | + | ||
769 | +#top-bar .layout_user #user .not-logged-in a{text-decoration: none;} | ||
770 | + | ||
771 | +/*info do usuário no espaço do usuário*/ | ||
772 | +#navigation-control{ | ||
773 | + height: 100%; | ||
774 | + overflow-y: scroll; | ||
775 | + overflow-x: hidden; | ||
776 | + background-color:gray; | ||
777 | +} | ||
778 | + | ||
779 | +#navigation-control #user{margin-top: 0;width: 300px;} | ||
780 | + | ||
781 | + | ||
782 | +#navigation-control #user .logged-in { | ||
783 | + visibility: visible; | ||
784 | + display: block; | ||
785 | + background: none; | ||
786 | + display: block; | ||
787 | + padding: 5px; | ||
788 | + text-align: left; | ||
789 | + width: auto; | ||
790 | + border-radius: 0; | ||
791 | + border: 0px; | ||
792 | + margin-top: 0; | ||
793 | + padding: 0; | ||
794 | + border-top: 0px solid #DDD; | ||
795 | +} | ||
796 | + | ||
797 | +#navigation-control #user .logged-in a { | ||
798 | + text-decoration: none; | ||
799 | + color: #DDD; | ||
800 | + background-color: #808080; | ||
801 | + padding: 14px 28px; | ||
802 | + margin: 0; | ||
803 | + border-bottom: 1px solid #DDD; | ||
804 | +} | ||
805 | + | ||
806 | +#navigation-control #user .logged-in a strong { | ||
807 | +font-weight: normal; | ||
808 | +color: #DDD; | ||
809 | +background-color: #808080; | ||
810 | +padding: 14px; | ||
811 | +margin: 0; | ||
812 | +border-bottom: 0px solid #DDD; | ||
813 | +font-size: 16px; | ||
814 | +font-family: Arial, sans-serif; | ||
815 | +text-decoration: none; | ||
816 | +} | ||
817 | + | ||
818 | +#navigation-control .menu_user .activity_menu{border-top: 0px solid #DDD;} | ||
819 | + | ||
820 | + | ||
821 | +/*modificação da scroll bar DO ESPAÇO DO USUÁRIO*/ | ||
822 | +#navigation-control::-webkit-scrollbar-button { | ||
823 | + height: 0; | ||
824 | + width: 0; | ||
825 | +} | ||
826 | + | ||
827 | +#navigation-control::-webkit-scrollbar-thumb { | ||
828 | + background-clip: padding-box; | ||
829 | + background-color: gray;/*rgba(0,0,0,.3);*/ | ||
830 | + border: 5px solid transparent; | ||
831 | + border-radius: 10px; | ||
832 | + min-height: 20px; | ||
833 | + min-width: 20px; | ||
834 | + height: 5px; | ||
835 | + width: 5px; | ||
836 | +} | ||
837 | + | ||
838 | +#navigation-control::-webkit-scrollbar-thumb:hover { | ||
839 | + background-clip: padding-box; | ||
840 | + background-color: #eee;/*rgba(0,0,0,.3);*/ | ||
841 | + border: 5px solid transparent; | ||
842 | + border-radius: 10px; | ||
843 | + min-height: 20px; | ||
844 | + min-width: 20px; | ||
845 | + height: 5px; | ||
846 | + width: 5px; | ||
847 | +} | ||
848 | + | ||
849 | + | ||
850 | +#navigation-control::-webkit-scrollbar { | ||
851 | + height: 15px; | ||
852 | + width: 15px; | ||
853 | +} | ||
854 | + | ||
855 | +/*fim de modificação da scroll bar DO ESPAÇO DO USUÁRIO */ | ||
856 | + | ||
857 | +/****************** FIM Barra do usuário ******************/ | ||
858 | + | ||
859 | +/****************** FIM Barra do usuário e Menu do usuário ******************/ | ||
860 | + | ||
861 | + | ||
862 | +/****************** Painel de Controle ******************/ | ||
863 | + | ||
864 | +.btn_home { | ||
865 | + margin-right: 14px; | ||
866 | + float: right; | ||
867 | + line-height: 40px; | ||
868 | +} | ||
869 | + | ||
870 | +.btn_home a{ | ||
871 | + display: inline-block; | ||
872 | + text-decoration: none; | ||
873 | + margin-left: 5px; | ||
874 | + width: 35px; | ||
875 | + background: url("images/logo.png") no-repeat left center transparent; | ||
876 | +} | ||
877 | + | ||
878 | +/*Botão Painel de controle*/ | ||
879 | + | ||
880 | +#btn_open_control_panel { | ||
881 | +/* float: right;*/ | ||
882 | +/* width: 100%;*/ | ||
883 | + background-color: #eee; | ||
884 | + position: relative; | ||
885 | + padding: 0 14px; | ||
886 | + text-decoration: none; | ||
887 | + font-size: small; | ||
888 | + color: #666; | ||
889 | +} | ||
890 | + | ||
891 | +#navigation li span { | ||
892 | + position: relative; | ||
893 | + background: url("images/20-gear2.png") no-repeat left center transparent; | ||
894 | + padding-left: 30px; | ||
895 | + display: inline-block; | ||
896 | + height: 30px; | ||
897 | + line-height: 30px; | ||
898 | + text-decoration: none; | ||
899 | +} | ||
900 | + | ||
901 | +#btn_open_control_panel.show span {} | ||
902 | + | ||
903 | +/*****FIM Botão Painel de controle*****/ | ||
904 | + | ||
905 | +/*barra (menu) painel de controle*/ | ||
906 | + | ||
907 | +#control_panel_bar { | ||
908 | + /*width: 100%;*/ | ||
909 | + text-align: center; | ||
910 | + display: inline-block; | ||
911 | + padding-top: 0px; | ||
912 | + overflow: hidden; | ||
913 | + height: 0px; | ||
914 | + transition: 0.6s; | ||
915 | + /*margin-bottom: 14px;*/ | ||
916 | + width: 100%; | ||
917 | +} | ||
918 | + | ||
919 | +#control_panel_bar.show { | ||
920 | + padding-top: 0px; | ||
921 | + background-color: rgb(248, 248, 248); | ||
922 | + height: 60px; | ||
923 | +} | ||
924 | + | ||
925 | +#navigation { | ||
926 | + text-align: right; | ||
927 | + position: static; | ||
928 | + background: none; | ||
929 | + background-color: #eee; | ||
930 | + border-bottom: 1px solid #d3d7cf; | ||
931 | +} | ||
932 | + | ||
933 | +#navigation ul { | ||
934 | + text-align: center; | ||
935 | + height: auto; | ||
936 | + float: none; | ||
937 | + font-size: small; | ||
938 | + color: #666; | ||
939 | + padding: 0; | ||
940 | +} | ||
941 | +#wrap-1 #wrap-2 { | ||
942 | + padding: 0; | ||
943 | + border-top: none; | ||
944 | +} | ||
945 | + | ||
946 | +#navigation #navigation-end { | ||
947 | + width: 0px; | ||
948 | + height: 0px; | ||
949 | + background: none; | ||
950 | + clear: both; | ||
951 | +} | ||
952 | + | ||
953 | +#navigation ul li{ | ||
954 | +border-left: 1px solid rgb(187, 187, 187); | ||
955 | +padding: 0 14px; | ||
956 | +width: auto; | ||
957 | +margin: 12px 0; | ||
958 | +float: right; | ||
959 | +} | ||
960 | +#navigation ul li:hover { | ||
961 | + cursor: pointer; | ||
962 | + background-color: rgb(112, 112, 112); | ||
963 | + color: #FFF; | ||
964 | +} | ||
965 | + | ||
966 | +#navigation ul li#btn_icon { | ||
967 | + border: none; | ||
968 | + padding: 4px; | ||
969 | + margin: 0; | ||
970 | + background: none; | ||
971 | + cursor: auto; | ||
972 | +} | ||
973 | + | ||
974 | +#control_panel_bar .btn_control_panel{ | ||
975 | + float: none; | ||
976 | +} | ||
977 | + | ||
978 | +#control_panel_bar #new_content{ | ||
979 | + background-image: url(images/text-editor.png); | ||
980 | + background-repeat: no-repeat; | ||
981 | +} | ||
982 | + | ||
983 | +#control_panel_bar .btn_control { | ||
984 | + background-position: center 3px; | ||
985 | + height: 35px; | ||
986 | + padding: 40px 14px 0px 14px; | ||
987 | + display: inline-block; | ||
988 | + width: 100px; | ||
989 | + vertical-align: top; | ||
990 | + background-size: 25%; | ||
991 | +} | ||
992 | + | ||
993 | +#control_panel_bar .btn_menu{ | ||
994 | + background-position: center 3px; | ||
995 | + height: 0px; | ||
996 | + overflow: hidden; | ||
997 | + padding: 0px; | ||
998 | + display: inline-block; | ||
999 | + width: 100px; | ||
1000 | + vertical-align: top; | ||
1001 | + background-size: 25%; | ||
1002 | + transition: 0.6s; | ||
1003 | +} | ||
1004 | + | ||
1005 | +#control_panel_bar.show .btn_menu{ | ||
1006 | + background-position: center 3px; | ||
1007 | + height: 35px; | ||
1008 | + overflow: hidden; | ||
1009 | + padding: 40px 14px 0px 14px; | ||
1010 | + display: inline-block; | ||
1011 | + width: 100px; | ||
1012 | + vertical-align: top; | ||
1013 | + background-size: 25%; | ||
1014 | +} | ||
1015 | + | ||
1016 | +#control_panel_bar.show .btn_menu:hover{ | ||
1017 | + overflow: visible; | ||
1018 | +} | ||
1019 | + | ||
1020 | +/*Menu e SubMenu do Painel de controle*/ | ||
1021 | +#control_panel_bar a.btn_control_panel span{margin:0px; border: 0px solid gray;border-radius: 0px; background-color: transparent; padding: 0px;color: #333;display: inline-block;height: 35px;} | ||
1022 | + | ||
1023 | + | ||
1024 | +#control_panel_bar .btn_control_panel ul {display: inline-block;padding-left: 0;padding-top: 0;text-align: left;margin: 0;position: relative;left: -14px;} | ||
1025 | + | ||
1026 | +#control_panel_bar .btn_control_panel ul:hover {} | ||
1027 | + | ||
1028 | +#control_panel_bar .btn_control_panel ul li {padding: 0;display: block;display: inline-block;}/*{display: block;padding-left: 0;text-align: left;margin: 0;padding: 0 1em}*/ | ||
1029 | + | ||
1030 | +#control_panel_bar a.btn_control_panel:hover ul li{display: block;} | ||
1031 | + | ||
1032 | +#control_panel_bar a.btn_control_panel ul li span{height: auto;width: 140px;background-color: #eee;padding: 7px 14px;} | ||
1033 | + | ||
1034 | +#control_panel_bar a.btn_control_panel ul li span:hover{background-color: #ccc;} | ||
1035 | + | ||
1036 | +#control_panel_bar .btn_control_panel ul li ul {display: none;} | ||
1037 | + | ||
1038 | +#control_panel_bar .btn_control_panel ul.menu_conteudo li:hover ul {display: inline-block} | ||
1039 | +/*FIM Menu e SubMenu do Painel de controle*/ | ||
1040 | + | ||
1041 | +/* FIM barra (menu) painel de controle*/ | ||
1042 | + | ||
1043 | + | ||
1044 | + | ||
1045 | +/****************** FIM Painel de Controle ******************/ | ||
1046 | + | ||
1047 | + | ||
1048 | +#assets-menu { | ||
1049 | + background: #E8E8E8; | ||
1050 | + top: 35px; | ||
1051 | + left: 80px; | ||
1052 | + min-width: 132px; | ||
1053 | +} | ||
1054 | + | ||
1055 | +#assets-menu a { | ||
1056 | + border: 1px solid #E8E8E8; | ||
1057 | +} | ||
1058 | + | ||
1059 | +#categories_menu { | ||
1060 | + /*max-width: 960px;*/ | ||
1061 | + padding: 0 1em; | ||
1062 | + margin: auto; | ||
1063 | + float: left; | ||
1064 | +} | ||
1065 | + | ||
1066 | +#cat_menu { | ||
1067 | + background: url(images/logo-ps.png) no-repeat center left; | ||
1068 | + height: 40px; | ||
1069 | + padding-left: 70px; | ||
1070 | + | ||
1071 | +} | ||
1072 | + | ||
1073 | +#cat_menu li { | ||
1074 | + list-style: none; | ||
1075 | + font-size: 12px; | ||
1076 | + font-weight: bold; | ||
1077 | + padding: 0px 20px; | ||
1078 | + height: 100%; | ||
1079 | + text-transform: uppercase; | ||
1080 | +} | ||
1081 | + | ||
1082 | +#cat_menu li:hover { | ||
1083 | + background-color: #E1E4E4; | ||
1084 | +} | ||
1085 | + | ||
1086 | +#cat_menu li a { | ||
1087 | + line-height: 40px; | ||
1088 | + width: 100%; | ||
1089 | + height: 100%; | ||
1090 | + display: block; | ||
1091 | +} | ||
1092 | +/************* FIM Bar Psocial Style - Menu Horizontal**************/ | ||
1093 | + | ||
1094 | +/*ajuste no content*/ | ||
1095 | +#content{margin-top: 8px;} | ||
1096 | + | ||
1097 | + | ||
1098 | +/******************Footer - Rodapé**********************************/ | ||
1099 | + | ||
1100 | +#theme-footer { | ||
1101 | + background-color: #eee; | ||
1102 | + position: relative; | ||
1103 | + margin-bottom: 0; | ||
1104 | +} | ||
1105 | +} | ||
1106 | + | ||
1107 | +#footer-content { | ||
1108 | + background: #fff; | ||
1109 | +} | ||
1110 | + | ||
1111 | +#footer-logos { | ||
1112 | + background: #F28F00; | ||
1113 | + max-width: 100%; | ||
1114 | + padding: 2em 0; | ||
1115 | + height: 49px; | ||
1116 | +} | ||
1117 | + | ||
1118 | +#footer-logos div { | ||
1119 | + max-width: 960px; | ||
1120 | + margin: 0 auto; | ||
1121 | +} | ||
1122 | + | ||
1123 | +#footer-logos a { | ||
1124 | + display: block; | ||
1125 | + height: 49px; | ||
1126 | + float: left; | ||
1127 | +} | ||
1128 | + | ||
1129 | +#footer-logos span { | ||
1130 | + display: none; | ||
1131 | +} | ||
1132 | + | ||
1133 | +#footer-logos .logo-acesso { | ||
1134 | + background: transparent url(images/acesso-a-informacao.png) center center no-repeat; | ||
1135 | + width: 107px; | ||
1136 | +} | ||
1137 | + | ||
1138 | +#footer-logos .logo-brasil { | ||
1139 | + background: transparent url(images/brasil.png) center center no-repeat; | ||
1140 | + width: 153px; | ||
1141 | +} | ||
1142 | + | ||
1143 | +#footer-logos .logo-sgpr { | ||
1144 | + background: transparent url(images/sgpr.png) center center no-repeat; | ||
1145 | + width: 187px; | ||
1146 | + margin-right: 30px; | ||
1147 | +} | ||
1148 | + | ||
1149 | +#footer-logos .institucionais { | ||
1150 | + float: right; | ||
1151 | +} | ||
1152 | + | ||
1153 | +#footer-license { | ||
1154 | + max-width: 960px; | ||
1155 | + margin: 0 auto; | ||
1156 | + text-align: left; | ||
1157 | + padding: 19px; | ||
1158 | +} | ||
1159 | + | ||
1160 | +#footer-license p { | ||
1161 | + color: #F28F00; | ||
1162 | + text-align: left; | ||
1163 | +} | ||
1164 | + | ||
1165 | +#user #homepage-link { | ||
1166 | + background: url(images/barra-menu-control.png) no-repeat 10px center; | ||
1167 | + margin-left: 0px; | ||
1168 | +} | ||
1169 | +#user #homepage-link i { | ||
1170 | + display: none; | ||
1171 | +} | ||
1172 | + | ||
1173 | +#control_panel_bar .control-panel a { | ||
1174 | + margin: 0; | ||
1175 | + border: 0; | ||
1176 | + line-height: normal; | ||
1177 | + background-color: transparent; | ||
1178 | + background-size: 32px; | ||
1179 | + padding: 0 0 0 36px; | ||
1180 | + width: 120px; | ||
1181 | + font-size: 13px; | ||
1182 | + background-position: 0 0; | ||
1183 | + color: rgb(60, 60, 60); | ||
1184 | +} | ||
1185 | +#control_panel_bar .control-panel span { | ||
1186 | + background: none; | ||
1187 | + padding-left: 0; | ||
1188 | +} | ||
1189 | + | ||
1190 | +.controller-profile_editor a.icon-new { | ||
1191 | + background-image: url(../../../images/control-panel/text-editor.png); | ||
1192 | +} | ||
1193 | + | ||
1194 | +#openchat .unread-messages { | ||
1195 | + position: relative; | ||
1196 | + left: 27px; | ||
1197 | + border: 0; | ||
1198 | +} |
1 | +++ a/content_menu.html.erb | ||
@@ -0,0 +1,14 @@ | @@ -0,0 +1,14 @@ | ||
1 | +<div id="control_panel_bar" class="menu_content controller-profile_editor"> | ||
2 | + | ||
3 | +<ul class="control-panel"> | ||
4 | + <li> | ||
5 | + <%= link_to(_('Manage Content'), url_for(:controller => 'cms'), :class => 'control-panel-cms') %> | ||
6 | + </li> | ||
7 | + <li> | ||
8 | + <% article = @article || @page %> | ||
9 | + <% parent_id = ((article && article.allow_children?) ? article : nil) %> | ||
10 | + <%= colorbox_button('new', _('New content'), :controller => 'cms', :action => 'new', :parent_id => parent_id, :cms => true) %> | ||
11 | + </li> | ||
12 | +</ul> | ||
13 | + | ||
14 | +</div> |
1 | +++ a/footer.html.erb | ||
@@ -0,0 +1,7 @@ | @@ -0,0 +1,7 @@ | ||
1 | +<div id="footer-links"> | ||
2 | + <a id="link-to-doc" class='icon-help'><%= link_to _('Manual'), '/doc' %></a> | ||
3 | +</div><!-- end id="footer-links" --> | ||
4 | +<div id="copyright"> | ||
5 | + <p><%= _('This social network uses <a href="http://noosfero.org/">Noosfero</a>, developed by %s and licensed under the <a href="http://www.gnu.org/licenses/agpl.html">GNU Affero General Public License</a> version 3 or any later version.') % link_to('Colivre', 'http://colivre.coop.br/') %></p> | ||
6 | +</div><!-- end id="copyright" --> | ||
7 | +<%= language_chooser(environment) %> |
1 | +++ a/header.html.erb | ||
@@ -0,0 +1,21 @@ | @@ -0,0 +1,21 @@ | ||
1 | +<% user = (session[:user] && User.find_by_id(session[:user])) || nil %> | ||
2 | +<%= theme_include "user_menu", :locals => {:person => user.person} if user %> | ||
3 | + | ||
4 | +<!-- Nova Barra de usuário --> | ||
5 | + | ||
6 | +<div id="top-bar" class="top" > | ||
7 | + <div class="btn_control_panel btn_control" title="Painel de Controle" alt="menu"> | ||
8 | + <div class="layout_user"> | ||
9 | + <%= render :partial => 'layouts/user' %> | ||
10 | + </div> | ||
11 | + </div> | ||
12 | + | ||
13 | +<!-- | ||
14 | + <div id="categories_menu"> | ||
15 | + <%= theme_include 'categories' %> | ||
16 | + </div> | ||
17 | + --> | ||
18 | + <span class="btn_home" title="Página Inicial"><a href="<%=environment.top_url%>"> </a></span> | ||
19 | +</div> | ||
20 | +<!-- FIM Nova Barra de usuário --> | ||
21 | + |
3.12 KB
9.42 KB
70.1 KB
174 KB
3.75 KB
3.75 KB
229 KB
567 Bytes
548 Bytes
230 Bytes
2.54 KB
268 Bytes
425 Bytes
300 Bytes
179 Bytes
2.93 KB
3.18 KB
3.12 KB
475 Bytes
533 Bytes
636 Bytes
883 Bytes
239 Bytes
187 Bytes
173 Bytes
14.3 KB
245 KB
695 Bytes
159 Bytes
418 Bytes
1.02 KB
3.01 KB
1.47 KB
3.13 KB
884 Bytes
856 Bytes
95.1 KB
78.5 KB
142 Bytes
216 Bytes
35 Bytes
43 Bytes
305 Bytes
127 Bytes
128 Bytes
1.85 KB
14 KB
969 Bytes
333 Bytes
969 Bytes
1.01 KB
2.85 KB
3.12 KB
445 Bytes
448 Bytes
174 Bytes
648 Bytes
648 Bytes
2.17 KB
52 KB
850 Bytes
771 Bytes
5.21 KB
579 Bytes
877 Bytes
7.01 KB
1.04 KB
3.32 KB
3.74 KB
4.75 KB
2.46 KB
624 Bytes
538 Bytes
2.09 KB
190 Bytes
1.71 KB
642 Bytes
182 KB
2.04 KB
1 | +++ a/images/google_follow.svg | ||
@@ -0,0 +1,23 @@ | @@ -0,0 +1,23 @@ | ||
1 | +<?xml version="1.0" encoding="iso-8859-1"?> | ||
2 | +<!-- Generator: Adobe Illustrator 15.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> | ||
3 | +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> | ||
4 | +<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" | ||
5 | + width="32px" height="32px" viewBox="0 0 32 32" style="enable-background:new 0 0 32 32;" xml:space="preserve"> | ||
6 | +<circle id="circle_x5F_bg_17_" style="fill:#CF4832;" cx="16" cy="16" r="16.005"/> | ||
7 | +<g> | ||
8 | + <polygon style="fill:#FFFFFF;" points="24.376,9.896 22.499,9.896 22.499,13.646 18.747,13.646 18.747,15.523 22.499,15.523 | ||
9 | + 22.499,19.273 24.376,19.273 24.376,15.523 28.126,15.523 28.126,13.646 24.376,13.646 "/> | ||
10 | +</g> | ||
11 | +<g> | ||
12 | + <path style="fill:#FFFFFF;" d="M14.933,25.068c-0.74-0.559-2.355-1.699-2.355-2.465c0-0.898,0.256-1.342,1.605-2.396 | ||
13 | + c1.387-1.082,2.367-2.51,2.367-4.279c0-1.93-0.789-3.678-2.27-4.527h2.102l1.787-1.879c0,0-5.91,0-8.008,0 | ||
14 | + c-4.061,0-7.447,2.996-7.447,6.291c0,3.367,2.225,6.051,6.045,6.051c0.264,0,0.523-0.01,0.775-0.027 | ||
15 | + C9.286,22.309,9.11,22.84,9.11,23.395c0,0.938,0.518,1.473,1.148,2.09c-0.48,0-0.941,0.01-1.449,0.01 | ||
16 | + c-1.805,0-3.395,0.486-4.67,1.254c0.396,0.436,0.814,0.85,1.254,1.238c1.1-0.949,2.709-1.561,4.471-1.541 | ||
17 | + c0.748,0.004,1.449,0.127,2.082,0.332c1.746,1.215,3.156,1.971,3.508,3.357c0.066,0.275,0.102,0.566,0.102,0.861 | ||
18 | + c0,0.34-0.033,0.666-0.098,0.982c0.174,0.006,0.342,0.025,0.518,0.025c0.639,0,1.264-0.047,1.883-0.119 | ||
19 | + c0.119-0.406,0.186-0.818,0.186-1.232C18.044,28.225,17.521,27.008,14.933,25.068z M10.306,20.645 | ||
20 | + c-2.156-0.066-4.209-2.049-4.58-4.881c-0.375-2.834,1.07-5.004,3.23-4.939c2.158,0.064,4.004,2.389,4.377,5.223 | ||
21 | + S12.464,20.707,10.306,20.645z"/> | ||
22 | +</g> | ||
23 | +</svg> |
279 Bytes
349 Bytes
772 Bytes
674 Bytes
772 Bytes
674 Bytes
567 Bytes
424 Bytes
426 Bytes
357 Bytes
438 Bytes
438 Bytes
373 Bytes
374 Bytes
807 Bytes
1.05 KB
1.09 KB
1.14 KB
1.3 KB
741 Bytes
286 Bytes
283 Bytes
1.19 KB
470 Bytes
569 Bytes
1.26 KB
1.29 KB
1.4 KB
1.75 KB
502 Bytes
4.14 KB
1.97 KB
1.16 KB
19.5 KB
3.91 KB
1.75 KB
2.17 KB
9.03 KB
12.5 KB
19.6 KB
2.29 KB
2.65 KB
905 Bytes
1.73 KB
1.08 KB
1.02 KB
2.56 KB
2.06 KB
15 KB
161 Bytes
993 Bytes
1.09 KB
43 Bytes
1018 Bytes
6.91 KB
1.1 KB
856 Bytes
2.58 KB
1.87 KB
2.3 KB
1.1 KB
3.62 KB
5.17 KB
3.33 KB
1.75 KB
181 Bytes
800 Bytes
767 Bytes
811 Bytes
468 Bytes
702 Bytes
782 Bytes
737 Bytes
772 Bytes
1.23 KB
2.71 KB
1.83 KB
1 | +++ a/images/rss.svg | ||
@@ -0,0 +1,14 @@ | @@ -0,0 +1,14 @@ | ||
1 | +<?xml version="1.0" encoding="iso-8859-1"?> | ||
2 | +<!-- Generator: Adobe Illustrator 15.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> | ||
3 | +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> | ||
4 | +<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" | ||
5 | + width="32px" height="32px" viewBox="0 0 32 32" style="enable-background:new 0 0 32 32;" xml:space="preserve"> | ||
6 | +<circle style="fill:#EF8647;" cx="16" cy="16.001" r="16"/> | ||
7 | +<g> | ||
8 | + <circle style="fill:#FFFFFF;" cx="10.617" cy="21.625" r="2.287"/> | ||
9 | + <path style="fill:#FFFFFF;" d="M19.385,23.912h-3.242c0-4.316-3.496-7.812-7.812-7.812l0,0v-3.242 | ||
10 | + C14.436,12.858,19.385,17.807,19.385,23.912z"/> | ||
11 | + <path style="fill:#FFFFFF;" d="M21.668,23.912c0-7.366-5.971-13.339-13.338-13.339V7.237c9.211,0,16.676,7.465,16.676,16.675 | ||
12 | + H21.668z"/> | ||
13 | +</g> | ||
14 | +</svg> |
1.18 KB
1.72 KB
1.18 KB
747 Bytes
1002 Bytes
237 Bytes
1.18 KB
1.17 KB
1.18 KB
1.21 KB
1.18 KB
1.19 KB
1.23 KB
1.22 KB
1.19 KB
1.19 KB
1.2 KB
1.21 KB
4.13 KB
1.13 KB
157 Bytes
3.79 KB
1.44 KB
5.53 KB
3.71 KB
4.44 KB
3.66 KB
153 Bytes
1.71 KB
5.17 KB
608 Bytes
2.1 KB
754 Bytes
4.96 KB
893 Bytes
292 Bytes
983 Bytes
1 | +++ a/index.html.erb | ||
@@ -0,0 +1,91 @@ | @@ -0,0 +1,91 @@ | ||
1 | +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
2 | +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%= html_language %>" lang="<%= html_language %>"> | ||
3 | + <head> | ||
4 | + <title><%= h page_title %></title> | ||
5 | + <%= yield(:feeds) %> | ||
6 | + <!--<meta http-equiv="refresh" content="1"/>--> | ||
7 | + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | ||
8 | + <meta name="description" content="<%= @environment.name %>" /> | ||
9 | + | ||
10 | + <!-- Twitter Card --> | ||
11 | + <meta name="twitter:card" value="summary"> | ||
12 | + <meta name="twitter:title" content="<%= h page_title %>"> | ||
13 | + <meta name="twitter:description" content="<%= meta_description_tag(@page) %>"> | ||
14 | + | ||
15 | + <!-- Open Graph --> | ||
16 | + <meta property="og:type" content="<%= @page ? 'article' : 'website' %>"> | ||
17 | + <meta property="og:url" content="<%= @page ? url_for(@page.url) : @environment.top_url %>"> | ||
18 | + <meta property="og:title" content="<%= h page_title %>"> | ||
19 | + <meta property="og:site_name" content="<%= profile ? profile.name : @environment.name %>"> | ||
20 | + <meta property="og:description" content="<%= @page ? truncate(strip_tags(@page.body.to_s), :length => 200) : @environment.name %>"> | ||
21 | + | ||
22 | + <% if @page %> | ||
23 | + <meta property="article:published_time" content="<%= show_date(@page.published_at) %>"> | ||
24 | + <% @page.body_images_paths.each do |img| %> | ||
25 | + <meta name="twitter:image" content="<%= img.to_s %>"> | ||
26 | + <meta property="og:image" content="<%= img.to_s %>"> | ||
27 | + <% end %> | ||
28 | + <% end %> | ||
29 | + | ||
30 | + <link rel="shortcut icon" href="<%= image_path(theme_favicon) %>" type="image/x-icon" /> | ||
31 | + <%= noosfero_javascript %> | ||
32 | + <%= noosfero_stylesheets %> | ||
33 | + | ||
34 | + <%# Add custom tags/styles/etc via content_for %> | ||
35 | + <%= yield :head %> | ||
36 | + <%= | ||
37 | + @plugins.dispatch(:head_ending).collect do |content| | ||
38 | + content.respond_to?(:call) ? content.call : content | ||
39 | + end.join("\n") | ||
40 | + %> | ||
41 | + <script type='text/javascript'> | ||
42 | + | ||
43 | + DEFAULT_LOADING_MESSAGE = <%="'#{ _('loading...') }'" %>; | ||
44 | + </script> | ||
45 | + | ||
46 | + | ||
47 | + </head> | ||
48 | + <body class="<%= h body_classes %>"> | ||
49 | + <a href="#content" id="link-go-content"><span><%= _("Go to the content") %></span></a> | ||
50 | + | ||
51 | + <%= | ||
52 | + @plugins.dispatch(:body_beginning).collect do |content| | ||
53 | + content.respond_to?(:call) ? content.call : content | ||
54 | + end.join("\n") | ||
55 | + %> | ||
56 | + | ||
57 | + <div id="wrap-1"> | ||
58 | + | ||
59 | +<!-- cabecalho --> | ||
60 | + <div id='theme-header'> | ||
61 | + <%= theme_header %> | ||
62 | + </div> | ||
63 | +<!-- FIM cabecalho --> | ||
64 | + | ||
65 | + <div id="wrap-2"> | ||
66 | + | ||
67 | + | ||
68 | +<!-- título da comunidade/empreendimento/perfil --> | ||
69 | + <h1 id="site-title"> | ||
70 | + <%= theme_site_title %> | ||
71 | + </h1> | ||
72 | + | ||
73 | + | ||
74 | + | ||
75 | + <div id="content"> | ||
76 | + <div id="content-inner"> | ||
77 | + <%= insert_boxes(yield) %> | ||
78 | + <br style='clear: both'/> | ||
79 | + </div><!-- end id="content-inner" --> | ||
80 | + </div><!-- end id="content" --> | ||
81 | + </div><!-- end id="wrap-2" --> | ||
82 | + </div><!-- end id="wrap-1" --> | ||
83 | + <%= render_environment_features(:logged_in) %> | ||
84 | + <div id="theme-footer"> | ||
85 | + <%= theme_footer %> | ||
86 | + </div><!-- end id="theme-footer" --> | ||
87 | + <%= noosfero_layout_features %> | ||
88 | + <%= theme_javascript_ng %> | ||
89 | + <%= addthis_javascript %> | ||
90 | + </body> | ||
91 | +</html> |
1 | +++ a/js/jquery.js | ||
@@ -0,0 +1,2 @@ | @@ -0,0 +1,2 @@ | ||
1 | +/*! jQuery v@1.8.1 jquery.com | jquery.org/license */ | ||
2 | +(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:+d+""===d?+d:H.test(d)?p.parseJSON(d):d}catch(f){}p.data(a,c,d)}else d=b}return d}function K(a){var b;for(b in a){if(b==="data"&&p.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function ba(){return!1}function bb(){return!0}function bh(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function bi(a,b){do a=a[b];while(a&&a.nodeType!==1);return a}function bj(a,b,c){b=b||0;if(p.isFunction(b))return p.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return p.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=p.grep(a,function(a){return a.nodeType===1});if(be.test(b))return p.filter(b,d,!c);b=p.filter(b,d)}return p.grep(a,function(a,d){return p.inArray(a,b)>=0===c})}function bk(a){var b=bl.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function bC(a,b){return a.getElementsByTagName(b)[0]||a.appendChild(a.ownerDocument.createElement(b))}function bD(a,b){if(b.nodeType!==1||!p.hasData(a))return;var c,d,e,f=p._data(a),g=p._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;d<e;d++)p.event.add(b,c,h[c][d])}g.data&&(g.data=p.extend({},g.data))}function bE(a,b){var c;if(b.nodeType!==1)return;b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase(),c==="object"?(b.parentNode&&(b.outerHTML=a.outerHTML),p.support.html5Clone&&a.innerHTML&&!p.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):c==="input"&&bv.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):c==="option"?b.selected=a.defaultSelected:c==="input"||c==="textarea"?b.defaultValue=a.defaultValue:c==="script"&&b.text!==a.text&&(b.text=a.text),b.removeAttribute(p.expando)}function bF(a){return typeof a.getElementsByTagName!="undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!="undefined"?a.querySelectorAll("*"):[]}function bG(a){bv.test(a.type)&&(a.defaultChecked=a.checked)}function bY(a,b){if(b in a)return b;var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=bW.length;while(e--){b=bW[e]+c;if(b in a)return b}return d}function bZ(a,b){return a=b||a,p.css(a,"display")==="none"||!p.contains(a.ownerDocument,a)}function b$(a,b){var c,d,e=[],f=0,g=a.length;for(;f<g;f++){c=a[f];if(!c.style)continue;e[f]=p._data(c,"olddisplay"),b?(!e[f]&&c.style.display==="none"&&(c.style.display=""),c.style.display===""&&bZ(c)&&(e[f]=p._data(c,"olddisplay",cc(c.nodeName)))):(d=bH(c,"display"),!e[f]&&d!=="none"&&p._data(c,"olddisplay",d))}for(f=0;f<g;f++){c=a[f];if(!c.style)continue;if(!b||c.style.display==="none"||c.style.display==="")c.style.display=b?e[f]||"":"none"}return a}function b_(a,b,c){var d=bP.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function ca(a,b,c,d){var e=c===(d?"border":"content")?4:b==="width"?1:0,f=0;for(;e<4;e+=2)c==="margin"&&(f+=p.css(a,c+bV[e],!0)),d?(c==="content"&&(f-=parseFloat(bH(a,"padding"+bV[e]))||0),c!=="margin"&&(f-=parseFloat(bH(a,"border"+bV[e]+"Width"))||0)):(f+=parseFloat(bH(a,"padding"+bV[e]))||0,c!=="padding"&&(f+=parseFloat(bH(a,"border"+bV[e]+"Width"))||0));return f}function cb(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=!0,f=p.support.boxSizing&&p.css(a,"boxSizing")==="border-box";if(d<=0||d==null){d=bH(a,b);if(d<0||d==null)d=a.style[b];if(bQ.test(d))return d;e=f&&(p.support.boxSizingReliable||d===a.style[b]),d=parseFloat(d)||0}return d+ca(a,b,c||(f?"border":"content"),e)+"px"}function cc(a){if(bS[a])return bS[a];var b=p("<"+a+">").appendTo(e.body),c=b.css("display");b.remove();if(c==="none"||c===""){bI=e.body.appendChild(bI||p.extend(e.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!bJ||!bI.createElement)bJ=(bI.contentWindow||bI.contentDocument).document,bJ.write("<!doctype html><html><body>"),bJ.close();b=bJ.body.appendChild(bJ.createElement(a)),c=bH(b,"display"),e.body.removeChild(bI)}return bS[a]=c,c}function ci(a,b,c,d){var e;if(p.isArray(b))p.each(b,function(b,e){c||ce.test(a)?d(a,e):ci(a+"["+(typeof e=="object"?b:"")+"]",e,c,d)});else if(!c&&p.type(b)==="object")for(e in b)ci(a+"["+e+"]",b[e],c,d);else d(a,b)}function cz(a){return function(b,c){typeof b!="string"&&(c=b,b="*");var d,e,f,g=b.toLowerCase().split(s),h=0,i=g.length;if(p.isFunction(c))for(;h<i;h++)d=g[h],f=/^\+/.test(d),f&&(d=d.substr(1)||"*"),e=a[d]=a[d]||[],e[f?"unshift":"push"](c)}}function cA(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h,i=a[f],j=0,k=i?i.length:0,l=a===cv;for(;j<k&&(l||!h);j++)h=i[j](c,d,e),typeof h=="string"&&(!l||g[h]?h=b:(c.dataTypes.unshift(h),h=cA(a,c,d,e,h,g)));return(l||!h)&&!g["*"]&&(h=cA(a,c,d,e,"*",g)),h}function cB(a,c){var d,e,f=p.ajaxSettings.flatOptions||{};for(d in c)c[d]!==b&&((f[d]?a:e||(e={}))[d]=c[d]);e&&p.extend(!0,a,e)}function cC(a,c,d){var e,f,g,h,i=a.contents,j=a.dataTypes,k=a.responseFields;for(f in k)f in d&&(c[k[f]]=d[f]);while(j[0]==="*")j.shift(),e===b&&(e=a.mimeType||c.getResponseHeader("content-type"));if(e)for(f in i)if(i[f]&&i[f].test(e)){j.unshift(f);break}if(j[0]in d)g=j[0];else{for(f in d){if(!j[0]||a.converters[f+" "+j[0]]){g=f;break}h||(h=f)}g=g||h}if(g)return g!==j[0]&&j.unshift(g),d[g]}function cD(a,b){var c,d,e,f,g=a.dataTypes.slice(),h=g[0],i={},j=0;a.dataFilter&&(b=a.dataFilter(b,a.dataType));if(g[1])for(c in a.converters)i[c.toLowerCase()]=a.converters[c];for(;e=g[++j];)if(e!=="*"){if(h!=="*"&&h!==e){c=i[h+" "+e]||i["* "+e];if(!c)for(d in i){f=d.split(" ");if(f[1]===e){c=i[h+" "+f[0]]||i["* "+f[0]];if(c){c===!0?c=i[d]:i[d]!==!0&&(e=f[0],g.splice(j--,0,e));break}}}if(c!==!0)if(c&&a["throws"])b=c(b);else try{b=c(b)}catch(k){return{state:"parsererror",error:c?k:"No conversion from "+h+" to "+e}}}h=e}return{state:"success",data:b}}function cL(){try{return new a.XMLHttpRequest}catch(b){}}function cM(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function cU(){return setTimeout(function(){cN=b},0),cN=p.now()}function cV(a,b){p.each(b,function(b,c){var d=(cT[b]||[]).concat(cT["*"]),e=0,f=d.length;for(;e<f;e++)if(d[e].call(a,b,c))return})}function cW(a,b,c){var d,e=0,f=0,g=cS.length,h=p.Deferred().always(function(){delete i.elem}),i=function(){var b=cN||cU(),c=Math.max(0,j.startTime+j.duration-b),d=1-(c/j.duration||0),e=0,f=j.tweens.length;for(;e<f;e++)j.tweens[e].run(d);return h.notifyWith(a,[j,d,c]),d<1&&f?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:p.extend({},b),opts:p.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:cN||cU(),duration:c.duration,tweens:[],createTween:function(b,c,d){var e=p.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(e),e},stop:function(b){var c=0,d=b?j.tweens.length:0;for(;c<d;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;cX(k,j.opts.specialEasing);for(;e<g;e++){d=cS[e].call(j,a,k,j.opts);if(d)return d}return cV(j,k),p.isFunction(j.opts.start)&&j.opts.start.call(a,j),p.fx.timer(p.extend(i,{anim:j,queue:j.opts.queue,elem:a})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}function cX(a,b){var c,d,e,f,g;for(c in a){d=p.camelCase(c),e=b[d],f=a[c],p.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=p.cssHooks[d];if(g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}}function cY(a,b,c){var d,e,f,g,h,i,j,k,l=this,m=a.style,n={},o=[],q=a.nodeType&&bZ(a);c.queue||(j=p._queueHooks(a,"fx"),j.unqueued==null&&(j.unqueued=0,k=j.empty.fire,j.empty.fire=function(){j.unqueued||k()}),j.unqueued++,l.always(function(){l.always(function(){j.unqueued--,p.queue(a,"fx").length||j.empty.fire()})})),a.nodeType===1&&("height"in b||"width"in b)&&(c.overflow=[m.overflow,m.overflowX,m.overflowY],p.css(a,"display")==="inline"&&p.css(a,"float")==="none"&&(!p.support.inlineBlockNeedsLayout||cc(a.nodeName)==="inline"?m.display="inline-block":m.zoom=1)),c.overflow&&(m.overflow="hidden",p.support.shrinkWrapBlocks||l.done(function(){m.overflow=c.overflow[0],m.overflowX=c.overflow[1],m.overflowY=c.overflow[2]}));for(d in b){f=b[d];if(cP.exec(f)){delete b[d];if(f===(q?"hide":"show"))continue;o.push(d)}}g=o.length;if(g){h=p._data(a,"fxshow")||p._data(a,"fxshow",{}),q?p(a).show():l.done(function(){p(a).hide()}),l.done(function(){var b;p.removeData(a,"fxshow",!0);for(b in n)p.style(a,b,n[b])});for(d=0;d<g;d++)e=o[d],i=l.createTween(e,q?h[e]:0),n[e]=h[e]||p.style(a,e),e in h||(h[e]=i.start,q&&(i.end=i.start,i.start=e==="width"||e==="height"?1:0))}}function cZ(a,b,c,d,e){return new cZ.prototype.init(a,b,c,d,e)}function c$(a,b){var c,d={height:a},e=0;b=b?1:0;for(;e<4;e+=2-b)c=bV[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function da(a){return p.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}var c,d,e=a.document,f=a.location,g=a.navigator,h=a.jQuery,i=a.$,j=Array.prototype.push,k=Array.prototype.slice,l=Array.prototype.indexOf,m=Object.prototype.toString,n=Object.prototype.hasOwnProperty,o=String.prototype.trim,p=function(a,b){return new p.fn.init(a,b,c)},q=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,r=/\S/,s=/\s+/,t=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,u=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^[\],:{}\s]*$/,x=/(?:^|:|,)(?:\s*\[)+/g,y=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,z=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,A=/^-ms-/,B=/-([\da-z])/gi,C=function(a,b){return(b+"").toUpperCase()},D=function(){e.addEventListener?(e.removeEventListener("DOMContentLoaded",D,!1),p.ready()):e.readyState==="complete"&&(e.detachEvent("onreadystatechange",D),p.ready())},E={};p.fn=p.prototype={constructor:p,init:function(a,c,d){var f,g,h,i;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if(typeof a=="string"){a.charAt(0)==="<"&&a.charAt(a.length-1)===">"&&a.length>=3?f=[null,a,null]:f=u.exec(a);if(f&&(f[1]||!c)){if(f[1])return c=c instanceof p?c[0]:c,i=c&&c.nodeType?c.ownerDocument||c:e,a=p.parseHTML(f[1],i,!0),v.test(f[1])&&p.isPlainObject(c)&&this.attr.call(a,c,!0),p.merge(this,a);g=e.getElementById(f[2]);if(g&&g.parentNode){if(g.id!==f[2])return d.find(a);this.length=1,this[0]=g}return this.context=e,this.selector=a,this}return!c||c.jquery?(c||d).find(a):this.constructor(c).find(a)}return p.isFunction(a)?d.ready(a):(a.selector!==b&&(this.selector=a.selector,this.context=a.context),p.makeArray(a,this))},selector:"",jquery:"1.8.1",length:0,size:function(){return this.length},toArray:function(){return k.call(this)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=p.merge(this.constructor(),a);return d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")"),d},each:function(a,b){return p.each(this,a,b)},ready:function(a){return p.ready.promise().done(a),this},eq:function(a){return a=+a,a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(k.apply(this,arguments),"slice",k.call(arguments).join(","))},map:function(a){return this.pushStack(p.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:j,sort:[].sort,splice:[].splice},p.fn.init.prototype=p.fn,p.extend=p.fn.extend=function(){var a,c,d,e,f,g,h=arguments[0]||{},i=1,j=arguments.length,k=!1;typeof h=="boolean"&&(k=h,h=arguments[1]||{},i=2),typeof h!="object"&&!p.isFunction(h)&&(h={}),j===i&&(h=this,--i);for(;i<j;i++)if((a=arguments[i])!=null)for(c in a){d=h[c],e=a[c];if(h===e)continue;k&&e&&(p.isPlainObject(e)||(f=p.isArray(e)))?(f?(f=!1,g=d&&p.isArray(d)?d:[]):g=d&&p.isPlainObject(d)?d:{},h[c]=p.extend(k,g,e)):e!==b&&(h[c]=e)}return h},p.extend({noConflict:function(b){return a.$===p&&(a.$=i),b&&a.jQuery===p&&(a.jQuery=h),p},isReady:!1,readyWait:1,holdReady:function(a){a?p.readyWait++:p.ready(!0)},ready:function(a){if(a===!0?--p.readyWait:p.isReady)return;if(!e.body)return setTimeout(p.ready,1);p.isReady=!0;if(a!==!0&&--p.readyWait>0)return;d.resolveWith(e,[p]),p.fn.trigger&&p(e).trigger("ready").off("ready")},isFunction:function(a){return p.type(a)==="function"},isArray:Array.isArray||function(a){return p.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):E[m.call(a)]||"object"},isPlainObject:function(a){if(!a||p.type(a)!=="object"||a.nodeType||p.isWindow(a))return!1;try{if(a.constructor&&!n.call(a,"constructor")&&!n.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||n.call(a,d)},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},error:function(a){throw new Error(a)},parseHTML:function(a,b,c){var d;return!a||typeof a!="string"?null:(typeof b=="boolean"&&(c=b,b=0),b=b||e,(d=v.exec(a))?[b.createElement(d[1])]:(d=p.buildFragment([a],b,c?null:[]),p.merge([],(d.cacheable?p.clone(d.fragment):d.fragment).childNodes)))},parseJSON:function(b){if(!b||typeof b!="string")return null;b=p.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(w.test(b.replace(y,"@").replace(z,"]").replace(x,"")))return(new Function("return "+b))();p.error("Invalid JSON: "+b)},parseXML:function(c){var d,e;if(!c||typeof c!="string")return null;try{a.DOMParser?(e=new DOMParser,d=e.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(f){d=b}return(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&p.error("Invalid XML: "+c),d},noop:function(){},globalEval:function(b){b&&r.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(A,"ms-").replace(B,C)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var e,f=0,g=a.length,h=g===b||p.isFunction(a);if(d){if(h){for(e in a)if(c.apply(a[e],d)===!1)break}else for(;f<g;)if(c.apply(a[f++],d)===!1)break}else if(h){for(e in a)if(c.call(a[e],e,a[e])===!1)break}else for(;f<g;)if(c.call(a[f],f,a[f++])===!1)break;return a},trim:o&&!o.call(" ")?function(a){return a==null?"":o.call(a)}:function(a){return a==null?"":a.toString().replace(t,"")},makeArray:function(a,b){var c,d=b||[];return a!=null&&(c=p.type(a),a.length==null||c==="string"||c==="function"||c==="regexp"||p.isWindow(a)?j.call(d,a):p.merge(d,a)),d},inArray:function(a,b,c){var d;if(b){if(l)return l.call(b,a,c);d=b.length,c=c?c<0?Math.max(0,d+c):c:0;for(;c<d;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,c){var d=c.length,e=a.length,f=0;if(typeof d=="number")for(;f<d;f++)a[e++]=c[f];else while(c[f]!==b)a[e++]=c[f++];return a.length=e,a},grep:function(a,b,c){var d,e=[],f=0,g=a.length;c=!!c;for(;f<g;f++)d=!!b(a[f],f),c!==d&&e.push(a[f]);return e},map:function(a,c,d){var e,f,g=[],h=0,i=a.length,j=a instanceof p||i!==b&&typeof i=="number"&&(i>0&&a[0]&&a[i-1]||i===0||p.isArray(a));if(j)for(;h<i;h++)e=c(a[h],h,d),e!=null&&(g[g.length]=e);else for(f in a)e=c(a[f],f,d),e!=null&&(g[g.length]=e);return g.concat.apply([],g)},guid:1,proxy:function(a,c){var d,e,f;return typeof c=="string"&&(d=a[c],c=a,a=d),p.isFunction(a)?(e=k.call(arguments,2),f=function(){return a.apply(c,e.concat(k.call(arguments)))},f.guid=a.guid=a.guid||f.guid||p.guid++,f):b},access:function(a,c,d,e,f,g,h){var i,j=d==null,k=0,l=a.length;if(d&&typeof d=="object"){for(k in d)p.access(a,c,k,d[k],1,g,e);f=1}else if(e!==b){i=h===b&&p.isFunction(e),j&&(i?(i=c,c=function(a,b,c){return i.call(p(a),c)}):(c.call(a,e),c=null));if(c)for(;k<l;k++)c(a[k],d,i?e.call(a[k],k,c(a[k],d)):e,h);f=1}return f?a:j?c.call(a):l?c(a[0],d):g},now:function(){return(new Date).getTime()}}),p.ready.promise=function(b){if(!d){d=p.Deferred();if(e.readyState==="complete")setTimeout(p.ready,1);else if(e.addEventListener)e.addEventListener("DOMContentLoaded",D,!1),a.addEventListener("load",p.ready,!1);else{e.attachEvent("onreadystatechange",D),a.attachEvent("onload",p.ready);var c=!1;try{c=a.frameElement==null&&e.documentElement}catch(f){}c&&c.doScroll&&function g(){if(!p.isReady){try{c.doScroll("left")}catch(a){return setTimeout(g,50)}p.ready()}}()}}return d.promise(b)},p.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){E["[object "+b+"]"]=b.toLowerCase()}),c=p(e);var F={};p.Callbacks=function(a){a=typeof a=="string"?F[a]||G(a):p.extend({},a);var c,d,e,f,g,h,i=[],j=!a.once&&[],k=function(b){c=a.memory&&b,d=!0,h=f||0,f=0,g=i.length,e=!0;for(;i&&h<g;h++)if(i[h].apply(b[0],b[1])===!1&&a.stopOnFalse){c=!1;break}e=!1,i&&(j?j.length&&k(j.shift()):c?i=[]:l.disable())},l={add:function(){if(i){var b=i.length;(function d(b){p.each(b,function(b,c){var e=p.type(c);e==="function"&&(!a.unique||!l.has(c))?i.push(c):c&&c.length&&e!=="string"&&d(c)})})(arguments),e?g=i.length:c&&(f=b,k(c))}return this},remove:function(){return i&&p.each(arguments,function(a,b){var c;while((c=p.inArray(b,i,c))>-1)i.splice(c,1),e&&(c<=g&&g--,c<=h&&h--)}),this},has:function(a){return p.inArray(a,i)>-1},empty:function(){return i=[],this},disable:function(){return i=j=c=b,this},disabled:function(){return!i},lock:function(){return j=b,c||l.disable(),this},locked:function(){return!j},fireWith:function(a,b){return b=b||[],b=[a,b.slice?b.slice():b],i&&(!d||j)&&(e?j.push(b):k(b)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!d}};return l},p.extend({Deferred:function(a){var b=[["resolve","done",p.Callbacks("once memory"),"resolved"],["reject","fail",p.Callbacks("once memory"),"rejected"],["notify","progress",p.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return p.Deferred(function(c){p.each(b,function(b,d){var f=d[0],g=a[b];e[d[1]](p.isFunction(g)?function(){var a=g.apply(this,arguments);a&&p.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f+"With"](this===e?c:this,[a])}:c[f])}),a=null}).promise()},promise:function(a){return typeof a=="object"?p.extend(a,d):d}},e={};return d.pipe=d.then,p.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[a^1][2].disable,b[2][2].lock),e[f[0]]=g.fire,e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=k.call(arguments),d=c.length,e=d!==1||a&&p.isFunction(a.promise)?d:0,f=e===1?a:p.Deferred(),g=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?k.call(arguments):d,c===h?f.notifyWith(b,c):--e||f.resolveWith(b,c)}},h,i,j;if(d>1){h=new Array(d),i=new Array(d),j=new Array(d);for(;b<d;b++)c[b]&&p.isFunction(c[b].promise)?c[b].promise().done(g(b,j,c)).fail(f.reject).progress(g(b,i,h)):--e}return e||f.resolveWith(j,c),f.promise()}}),p.support=function(){var b,c,d,f,g,h,i,j,k,l,m,n=e.createElement("div");n.setAttribute("className","t"),n.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",c=n.getElementsByTagName("*"),d=n.getElementsByTagName("a")[0],d.style.cssText="top:1px;float:left;opacity:.5";if(!c||!c.length||!d)return{};f=e.createElement("select"),g=f.appendChild(e.createElement("option")),h=n.getElementsByTagName("input")[0],b={leadingWhitespace:n.firstChild.nodeType===3,tbody:!n.getElementsByTagName("tbody").length,htmlSerialize:!!n.getElementsByTagName("link").length,style:/top/.test(d.getAttribute("style")),hrefNormalized:d.getAttribute("href")==="/a",opacity:/^0.5/.test(d.style.opacity),cssFloat:!!d.style.cssFloat,checkOn:h.value==="on",optSelected:g.selected,getSetAttribute:n.className!=="t",enctype:!!e.createElement("form").enctype,html5Clone:e.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",boxModel:e.compatMode==="CSS1Compat",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},h.checked=!0,b.noCloneChecked=h.cloneNode(!0).checked,f.disabled=!0,b.optDisabled=!g.disabled;try{delete n.test}catch(o){b.deleteExpando=!1}!n.addEventListener&&n.attachEvent&&n.fireEvent&&(n.attachEvent("onclick",m=function(){b.noCloneEvent=!1}),n.cloneNode(!0).fireEvent("onclick"),n.detachEvent("onclick",m)),h=e.createElement("input"),h.value="t",h.setAttribute("type","radio"),b.radioValue=h.value==="t",h.setAttribute("checked","checked"),h.setAttribute("name","t"),n.appendChild(h),i=e.createDocumentFragment(),i.appendChild(n.lastChild),b.checkClone=i.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=h.checked,i.removeChild(h),i.appendChild(n);if(n.attachEvent)for(k in{submit:!0,change:!0,focusin:!0})j="on"+k,l=j in n,l||(n.setAttribute(j,"return;"),l=typeof n[j]=="function"),b[k+"Bubbles"]=l;return p(function(){var c,d,f,g,h="padding:0;margin:0;border:0;display:block;overflow:hidden;",i=e.getElementsByTagName("body")[0];if(!i)return;c=e.createElement("div"),c.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",i.insertBefore(c,i.firstChild),d=e.createElement("div"),c.appendChild(d),d.innerHTML="<table><tr><td></td><td>t</td></tr></table>",f=d.getElementsByTagName("td"),f[0].style.cssText="padding:0;margin:0;border:0;display:none",l=f[0].offsetHeight===0,f[0].style.display="",f[1].style.display="none",b.reliableHiddenOffsets=l&&f[0].offsetHeight===0,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",b.boxSizing=d.offsetWidth===4,b.doesNotIncludeMarginInBodyOffset=i.offsetTop!==1,a.getComputedStyle&&(b.pixelPosition=(a.getComputedStyle(d,null)||{}).top!=="1%",b.boxSizingReliable=(a.getComputedStyle(d,null)||{width:"4px"}).width==="4px",g=e.createElement("div"),g.style.cssText=d.style.cssText=h,g.style.marginRight=g.style.width="0",d.style.width="1px",d.appendChild(g),b.reliableMarginRight=!parseFloat((a.getComputedStyle(g,null)||{}).marginRight)),typeof d.style.zoom!="undefined"&&(d.innerHTML="",d.style.cssText=h+"width:1px;padding:1px;display:inline;zoom:1",b.inlineBlockNeedsLayout=d.offsetWidth===3,d.style.display="block",d.style.overflow="visible",d.innerHTML="<div></div>",d.firstChild.style.width="5px",b.shrinkWrapBlocks=d.offsetWidth!==3,c.style.zoom=1),i.removeChild(c),c=d=f=g=null}),i.removeChild(n),c=d=f=g=h=i=n=null,b}();var H=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,I=/([A-Z])/g;p.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(p.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){return a=a.nodeType?p.cache[a[p.expando]]:a[p.expando],!!a&&!K(a)},data:function(a,c,d,e){if(!p.acceptData(a))return;var f,g,h=p.expando,i=typeof c=="string",j=a.nodeType,k=j?p.cache:a,l=j?a[h]:a[h]&&h;if((!l||!k[l]||!e&&!k[l].data)&&i&&d===b)return;l||(j?a[h]=l=p.deletedIds.pop()||++p.uuid:l=h),k[l]||(k[l]={},j||(k[l].toJSON=p.noop));if(typeof c=="object"||typeof c=="function")e?k[l]=p.extend(k[l],c):k[l].data=p.extend(k[l].data,c);return f=k[l],e||(f.data||(f.data={}),f=f.data),d!==b&&(f[p.camelCase(c)]=d),i?(g=f[c],g==null&&(g=f[p.camelCase(c)])):g=f,g},removeData:function(a,b,c){if(!p.acceptData(a))return;var d,e,f,g=a.nodeType,h=g?p.cache:a,i=g?a[p.expando]:p.expando;if(!h[i])return;if(b){d=c?h[i]:h[i].data;if(d){p.isArray(b)||(b in d?b=[b]:(b=p.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,f=b.length;e<f;e++)delete d[b[e]];if(!(c?K:p.isEmptyObject)(d))return}}if(!c){delete h[i].data;if(!K(h[i]))return}g?p.cleanData([a],!0):p.support.deleteExpando||h!=h.window?delete h[i]:h[i]=null},_data:function(a,b,c){return p.data(a,b,c,!0)},acceptData:function(a){var b=a.nodeName&&p.noData[a.nodeName.toLowerCase()];return!b||b!==!0&&a.getAttribute("classid")===b}}),p.fn.extend({data:function(a,c){var d,e,f,g,h,i=this[0],j=0,k=null;if(a===b){if(this.length){k=p.data(i);if(i.nodeType===1&&!p._data(i,"parsedAttrs")){f=i.attributes;for(h=f.length;j<h;j++)g=f[j].name,g.indexOf("data-")===0&&(g=p.camelCase(g.substring(5)),J(i,g,k[g]));p._data(i,"parsedAttrs",!0)}}return k}return typeof a=="object"?this.each(function(){p.data(this,a)}):(d=a.split(".",2),d[1]=d[1]?"."+d[1]:"",e=d[1]+"!",p.access(this,function(c){if(c===b)return k=this.triggerHandler("getData"+e,[d[0]]),k===b&&i&&(k=p.data(i,a),k=J(i,a,k)),k===b&&d[1]?this.data(d[0]):k;d[1]=c,this.each(function(){var b=p(this);b.triggerHandler("setData"+e,d),p.data(this,a,c),b.triggerHandler("changeData"+e,d)})},null,c,arguments.length>1,null,!1))},removeData:function(a){return this.each(function(){p.removeData(this,a)})}}),p.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=p._data(a,b),c&&(!d||p.isArray(c)?d=p._data(a,b,p.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=p.queue(a,b),d=c.length,e=c.shift(),f=p._queueHooks(a,b),g=function(){p.dequeue(a,b)};e==="inprogress"&&(e=c.shift(),d--),e&&(b==="fx"&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return p._data(a,c)||p._data(a,c,{empty:p.Callbacks("once memory").add(function(){p.removeData(a,b+"queue",!0),p.removeData(a,c,!0)})})}}),p.fn.extend({queue:function(a,c){var d=2;return typeof a!="string"&&(c=a,a="fx",d--),arguments.length<d?p.queue(this[0],a):c===b?this:this.each(function(){var b=p.queue(this,a,c);p._queueHooks(this,a),a==="fx"&&b[0]!=="inprogress"&&p.dequeue(this,a)})},dequeue:function(a){return this.each(function(){p.dequeue(this,a)})},delay:function(a,b){return a=p.fx?p.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){var d,e=1,f=p.Deferred(),g=this,h=this.length,i=function(){--e||f.resolveWith(g,[g])};typeof a!="string"&&(c=a,a=b),a=a||"fx";while(h--)d=p._data(g[h],a+"queueHooks"),d&&d.empty&&(e++,d.empty.add(i));return i(),f.promise(c)}});var L,M,N,O=/[\t\r\n]/g,P=/\r/g,Q=/^(?:button|input)$/i,R=/^(?:button|input|object|select|textarea)$/i,S=/^a(?:rea|)$/i,T=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,U=p.support.getSetAttribute;p.fn.extend({attr:function(a,b){return p.access(this,p.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){p.removeAttr(this,a)})},prop:function(a,b){return p.access(this,p.prop,a,b,arguments.length>1)},removeProp:function(a){return a=p.propFix[a]||a,this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,f,g,h;if(p.isFunction(a))return this.each(function(b){p(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(s);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{f=" "+e.className+" ";for(g=0,h=b.length;g<h;g++)~f.indexOf(" "+b[g]+" ")||(f+=b[g]+" ");e.className=p.trim(f)}}}return this},removeClass:function(a){var c,d,e,f,g,h,i;if(p.isFunction(a))return this.each(function(b){p(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===b){c=(a||"").split(s);for(h=0,i=this.length;h<i;h++){e=this[h];if(e.nodeType===1&&e.className){d=(" "+e.className+" ").replace(O," ");for(f=0,g=c.length;f<g;f++)while(d.indexOf(" "+c[f]+" ")>-1)d=d.replace(" "+c[f]+" "," ");e.className=a?p.trim(d):""}}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";return p.isFunction(a)?this.each(function(c){p(this).toggleClass(a.call(this,c,this.className,b),b)}):this.each(function(){if(c==="string"){var e,f=0,g=p(this),h=b,i=a.split(s);while(e=i[f++])h=d?h:!g.hasClass(e),g[h?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&p._data(this,"__className__",this.className),this.className=this.className||a===!1?"":p._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c<d;c++)if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(O," ").indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e,f=this[0];if(!arguments.length){if(f)return c=p.valHooks[f.type]||p.valHooks[f.nodeName.toLowerCase()],c&&"get"in c&&(d=c.get(f,"value"))!==b?d:(d=f.value,typeof d=="string"?d.replace(P,""):d==null?"":d);return}return e=p.isFunction(a),this.each(function(d){var f,g=p(this);if(this.nodeType!==1)return;e?f=a.call(this,d,g.val()):f=a,f==null?f="":typeof f=="number"?f+="":p.isArray(f)&&(f=p.map(f,function(a){return a==null?"":a+""})),c=p.valHooks[this.type]||p.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,f,"value")===b)this.value=f})}}),p.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,f=a.selectedIndex,g=[],h=a.options,i=a.type==="select-one";if(f<0)return null;c=i?f:0,d=i?f+1:h.length;for(;c<d;c++){e=h[c];if(e.selected&&(p.support.optDisabled?!e.disabled:e.getAttribute("disabled")===null)&&(!e.parentNode.disabled||!p.nodeName(e.parentNode,"optgroup"))){b=p(e).val();if(i)return b;g.push(b)}}return i&&!g.length&&h.length?p(h[f]).val():g},set:function(a,b){var c=p.makeArray(b);return p(a).find("option").each(function(){this.selected=p.inArray(p(this).val(),c)>=0}),c.length||(a.selectedIndex=-1),c}}},attrFn:{},attr:function(a,c,d,e){var f,g,h,i=a.nodeType;if(!a||i===3||i===8||i===2)return;if(e&&p.isFunction(p.fn[c]))return p(a)[c](d);if(typeof a.getAttribute=="undefined")return p.prop(a,c,d);h=i!==1||!p.isXMLDoc(a),h&&(c=c.toLowerCase(),g=p.attrHooks[c]||(T.test(c)?M:L));if(d!==b){if(d===null){p.removeAttr(a,c);return}return g&&"set"in g&&h&&(f=g.set(a,d,c))!==b?f:(a.setAttribute(c,""+d),d)}return g&&"get"in g&&h&&(f=g.get(a,c))!==null?f:(f=a.getAttribute(c),f===null?b:f)},removeAttr:function(a,b){var c,d,e,f,g=0;if(b&&a.nodeType===1){d=b.split(s);for(;g<d.length;g++)e=d[g],e&&(c=p.propFix[e]||e,f=T.test(e),f||p.attr(a,e,""),a.removeAttribute(U?e:c),f&&c in a&&(a[c]=!1))}},attrHooks:{type:{set:function(a,b){if(Q.test(a.nodeName)&&a.parentNode)p.error("type property can't be changed");else if(!p.support.radioValue&&b==="radio"&&p.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}},value:{get:function(a,b){return L&&p.nodeName(a,"button")?L.get(a,b):b in a?a.value:null},set:function(a,b,c){if(L&&p.nodeName(a,"button"))return L.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e,f,g,h=a.nodeType;if(!a||h===3||h===8||h===2)return;return g=h!==1||!p.isXMLDoc(a),g&&(c=p.propFix[c]||c,f=p.propHooks[c]),d!==b?f&&"set"in f&&(e=f.set(a,d,c))!==b?e:a[c]=d:f&&"get"in f&&(e=f.get(a,c))!==null?e:a[c]},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):R.test(a.nodeName)||S.test(a.nodeName)&&a.href?0:b}}}}),M={get:function(a,c){var d,e=p.prop(a,c);return e===!0||typeof e!="boolean"&&(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;return b===!1?p.removeAttr(a,c):(d=p.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase())),c}},U||(N={name:!0,id:!0,coords:!0},L=p.valHooks.button={get:function(a,c){var d;return d=a.getAttributeNode(c),d&&(N[c]?d.value!=="":d.specified)?d.value:b},set:function(a,b,c){var d=a.getAttributeNode(c);return d||(d=e.createAttribute(c),a.setAttributeNode(d)),d.value=b+""}},p.each(["width","height"],function(a,b){p.attrHooks[b]=p.extend(p.attrHooks[b],{set:function(a,c){if(c==="")return a.setAttribute(b,"auto"),c}})}),p.attrHooks.contenteditable={get:L.get,set:function(a,b,c){b===""&&(b="false"),L.set(a,b,c)}}),p.support.hrefNormalized||p.each(["href","src","width","height"],function(a,c){p.attrHooks[c]=p.extend(p.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),p.support.style||(p.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),p.support.optSelected||(p.propHooks.selected=p.extend(p.propHooks.selected,{get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null}})),p.support.enctype||(p.propFix.enctype="encoding"),p.support.checkOn||p.each(["radio","checkbox"],function(){p.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),p.each(["radio","checkbox"],function(){p.valHooks[this]=p.extend(p.valHooks[this],{set:function(a,b){if(p.isArray(b))return a.checked=p.inArray(p(a).val(),b)>=0}})});var V=/^(?:textarea|input|select)$/i,W=/^([^\.]*|)(?:\.(.+)|)$/,X=/(?:^|\s)hover(\.\S+|)\b/,Y=/^key/,Z=/^(?:mouse|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=function(a){return p.event.special.hover?a:a.replace(X,"mouseenter$1 mouseleave$1")};p.event={add:function(a,c,d,e,f){var g,h,i,j,k,l,m,n,o,q,r;if(a.nodeType===3||a.nodeType===8||!c||!d||!(g=p._data(a)))return;d.handler&&(o=d,d=o.handler,f=o.selector),d.guid||(d.guid=p.guid++),i=g.events,i||(g.events=i={}),h=g.handle,h||(g.handle=h=function(a){return typeof p!="undefined"&&(!a||p.event.triggered!==a.type)?p.event.dispatch.apply(h.elem,arguments):b},h.elem=a),c=p.trim(_(c)).split(" ");for(j=0;j<c.length;j++){k=W.exec(c[j])||[],l=k[1],m=(k[2]||"").split(".").sort(),r=p.event.special[l]||{},l=(f?r.delegateType:r.bindType)||l,r=p.event.special[l]||{},n=p.extend({type:l,origType:k[1],data:e,handler:d,guid:d.guid,selector:f,namespace:m.join(".")},o),q=i[l];if(!q){q=i[l]=[],q.delegateCount=0;if(!r.setup||r.setup.call(a,e,m,h)===!1)a.addEventListener?a.addEventListener(l,h,!1):a.attachEvent&&a.attachEvent("on"+l,h)}r.add&&(r.add.call(a,n),n.handler.guid||(n.handler.guid=d.guid)),f?q.splice(q.delegateCount++,0,n):q.push(n),p.event.global[l]=!0}a=null},global:{},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,q,r=p.hasData(a)&&p._data(a);if(!r||!(m=r.events))return;b=p.trim(_(b||"")).split(" ");for(f=0;f<b.length;f++){g=W.exec(b[f])||[],h=i=g[1],j=g[2];if(!h){for(h in m)p.event.remove(a,h+b[f],c,d,!0);continue}n=p.event.special[h]||{},h=(d?n.delegateType:n.bindType)||h,o=m[h]||[],k=o.length,j=j?new RegExp("(^|\\.)"+j.split(".").sort().join("\\.(?:.*\\.|)")+"(\\.|$)"):null;for(l=0;l<o.length;l++)q=o[l],(e||i===q.origType)&&(!c||c.guid===q.guid)&&(!j||j.test(q.namespace))&&(!d||d===q.selector||d==="**"&&q.selector)&&(o.splice(l--,1),q.selector&&o.delegateCount--,n.remove&&n.remove.call(a,q));o.length===0&&k!==o.length&&((!n.teardown||n.teardown.call(a,j,r.handle)===!1)&&p.removeEvent(a,h,r.handle),delete m[h])}p.isEmptyObject(m)&&(delete r.handle,p.removeData(a,"events",!0))},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,f,g){if(!f||f.nodeType!==3&&f.nodeType!==8){var h,i,j,k,l,m,n,o,q,r,s=c.type||c,t=[];if($.test(s+p.event.triggered))return;s.indexOf("!")>=0&&(s=s.slice(0,-1),i=!0),s.indexOf(".")>=0&&(t=s.split("."),s=t.shift(),t.sort());if((!f||p.event.customEvent[s])&&!p.event.global[s])return;c=typeof c=="object"?c[p.expando]?c:new p.Event(s,c):new p.Event(s),c.type=s,c.isTrigger=!0,c.exclusive=i,c.namespace=t.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+t.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,m=s.indexOf(":")<0?"on"+s:"";if(!f){h=p.cache;for(j in h)h[j].events&&h[j].events[s]&&p.event.trigger(c,d,h[j].handle.elem,!0);return}c.result=b,c.target||(c.target=f),d=d!=null?p.makeArray(d):[],d.unshift(c),n=p.event.special[s]||{};if(n.trigger&&n.trigger.apply(f,d)===!1)return;q=[[f,n.bindType||s]];if(!g&&!n.noBubble&&!p.isWindow(f)){r=n.delegateType||s,k=$.test(r+s)?f:f.parentNode;for(l=f;k;k=k.parentNode)q.push([k,r]),l=k;l===(f.ownerDocument||e)&&q.push([l.defaultView||l.parentWindow||a,r])}for(j=0;j<q.length&&!c.isPropagationStopped();j++)k=q[j][0],c.type=q[j][1],o=(p._data(k,"events")||{})[c.type]&&p._data(k,"handle"),o&&o.apply(k,d),o=m&&k[m],o&&p.acceptData(k)&&o.apply(k,d)===!1&&c.preventDefault();return c.type=s,!g&&!c.isDefaultPrevented()&&(!n._default||n._default.apply(f.ownerDocument,d)===!1)&&(s!=="click"||!p.nodeName(f,"a"))&&p.acceptData(f)&&m&&f[s]&&(s!=="focus"&&s!=="blur"||c.target.offsetWidth!==0)&&!p.isWindow(f)&&(l=f[m],l&&(f[m]=null),p.event.triggered=s,f[s](),p.event.triggered=b,l&&(f[m]=l)),c.result}return},dispatch:function(c){c=p.event.fix(c||a.event);var d,e,f,g,h,i,j,k,l,m,n=(p._data(this,"events")||{})[c.type]||[],o=n.delegateCount,q=[].slice.call(arguments),r=!c.exclusive&&!c.namespace,s=p.event.special[c.type]||{},t=[];q[0]=c,c.delegateTarget=this;if(s.preDispatch&&s.preDispatch.call(this,c)===!1)return;if(o&&(!c.button||c.type!=="click"))for(f=c.target;f!=this;f=f.parentNode||this)if(f.disabled!==!0||c.type!=="click"){h={},j=[];for(d=0;d<o;d++)k=n[d],l=k.selector,h[l]===b&&(h[l]=p(l,this).index(f)>=0),h[l]&&j.push(k);j.length&&t.push({elem:f,matches:j})}n.length>o&&t.push({elem:this,matches:n.slice(o)});for(d=0;d<t.length&&!c.isPropagationStopped();d++){i=t[d],c.currentTarget=i.elem;for(e=0;e<i.matches.length&&!c.isImmediatePropagationStopped();e++){k=i.matches[e];if(r||!c.namespace&&!k.namespace||c.namespace_re&&c.namespace_re.test(k.namespace))c.data=k.data,c.handleObj=k,g=((p.event.special[k.origType]||{}).handle||k.handler).apply(i.elem,q),g!==b&&(c.result=g,g===!1&&(c.preventDefault(),c.stopPropagation()))}}return s.postDispatch&&s.postDispatch.call(this,c),c.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return a.which==null&&(a.which=b.charCode!=null?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,c){var d,f,g,h=c.button,i=c.fromElement;return a.pageX==null&&c.clientX!=null&&(d=a.target.ownerDocument||e,f=d.documentElement,g=d.body,a.pageX=c.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f&&f.clientLeft||g&&g.clientLeft||0),a.pageY=c.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(f&&f.clientTop||g&&g.clientTop||0)),!a.relatedTarget&&i&&(a.relatedTarget=i===a.target?c.toElement:i),!a.which&&h!==b&&(a.which=h&1?1:h&2?3:h&4?2:0),a}},fix:function(a){if(a[p.expando])return a;var b,c,d=a,f=p.event.fixHooks[a.type]||{},g=f.props?this.props.concat(f.props):this.props;a=p.Event(d);for(b=g.length;b;)c=g[--b],a[c]=d[c];return a.target||(a.target=d.srcElement||e),a.target.nodeType===3&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,f.filter?f.filter(a,d):a},special:{load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,c){p.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}},simulate:function(a,b,c,d){var e=p.extend(new p.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?p.event.trigger(e,null,b):p.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},p.event.handle=p.event.dispatch,p.removeEvent=e.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){var d="on"+b;a.detachEvent&&(typeof a[d]=="undefined"&&(a[d]=null),a.detachEvent(d,c))},p.Event=function(a,b){if(this instanceof p.Event)a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?bb:ba):this.type=a,b&&p.extend(this,b),this.timeStamp=a&&a.timeStamp||p.now(),this[p.expando]=!0;else return new p.Event(a,b)},p.Event.prototype={preventDefault:function(){this.isDefaultPrevented=bb;var a=this.originalEvent;if(!a)return;a.preventDefault?a.preventDefault():a.returnValue=!1},stopPropagation:function(){this.isPropagationStopped=bb;var a=this.originalEvent;if(!a)return;a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=bb,this.stopPropagation()},isDefaultPrevented:ba,isPropagationStopped:ba,isImmediatePropagationStopped:ba},p.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){p.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj,g=f.selector;if(!e||e!==d&&!p.contains(d,e))a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b;return c}}}),p.support.submitBubbles||(p.event.special.submit={setup:function(){if(p.nodeName(this,"form"))return!1;p.event.add(this,"click._submit keypress._submit",function(a){var c=a.target,d=p.nodeName(c,"input")||p.nodeName(c,"button")?c.form:b;d&&!p._data(d,"_submit_attached")&&(p.event.add(d,"submit._submit",function(a){a._submit_bubble=!0}),p._data(d,"_submit_attached",!0))})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&p.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){if(p.nodeName(this,"form"))return!1;p.event.remove(this,"._submit")}}),p.support.changeBubbles||(p.event.special.change={setup:function(){if(V.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")p.event.add(this,"propertychange._change",function(a){a.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),p.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1),p.event.simulate("change",this,a,!0)});return!1}p.event.add(this,"beforeactivate._change",function(a){var b=a.target;V.test(b.nodeName)&&!p._data(b,"_change_attached")&&(p.event.add(b,"change._change",function(a){this.parentNode&&!a.isSimulated&&!a.isTrigger&&p.event.simulate("change",this.parentNode,a,!0)}),p._data(b,"_change_attached",!0))})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||b.type!=="radio"&&b.type!=="checkbox")return a.handleObj.handler.apply(this,arguments)},teardown:function(){return p.event.remove(this,"._change"),!V.test(this.nodeName)}}),p.support.focusinBubbles||p.each({focus:"focusin",blur:"focusout"},function(a,b){var c=0,d=function(a){p.event.simulate(b,a.target,p.event.fix(a),!0)};p.event.special[b]={setup:function(){c++===0&&e.addEventListener(a,d,!0)},teardown:function(){--c===0&&e.removeEventListener(a,d,!0)}}}),p.fn.extend({on:function(a,c,d,e,f){var g,h;if(typeof a=="object"){typeof c!="string"&&(d=d||c,c=b);for(h in a)this.on(h,c,d,a[h],f);return this}d==null&&e==null?(e=c,d=c=b):e==null&&(typeof c=="string"?(e=d,d=b):(e=d,d=c,c=b));if(e===!1)e=ba;else if(!e)return this;return f===1&&(g=e,e=function(a){return p().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=p.guid++)),this.each(function(){p.event.add(this,a,e,d,c)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,c,d){var e,f;if(a&&a.preventDefault&&a.handleObj)return e=a.handleObj,p(a.delegateTarget).off(e.namespace?e.origType+"."+e.namespace:e.origType,e.selector,e.handler),this;if(typeof a=="object"){for(f in a)this.off(f,c,a[f]);return this}if(c===!1||typeof c=="function")d=c,c=b;return d===!1&&(d=ba),this.each(function(){p.event.remove(this,a,d,c)})},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,c){return p(this.context).on(a,this.selector,b,c),this},die:function(a,b){return p(this.context).off(a,this.selector||"**",b),this},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return arguments.length==1?this.off(a,"**"):this.off(b,a||"**",c)},trigger:function(a,b){return this.each(function(){p.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return p.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||p.guid++,d=0,e=function(c){var e=(p._data(this,"lastToggle"+a.guid)||0)%d;return p._data(this,"lastToggle"+a.guid,e+1),c.preventDefault(),b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),p.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){p.fn[b]=function(a,c){return c==null&&(c=a,a=null),arguments.length>0?this.on(b,null,a,c):this.trigger(b)},Y.test(b)&&(p.event.fixHooks[b]=p.event.keyHooks),Z.test(b)&&(p.event.fixHooks[b]=p.event.mouseHooks)}),function(a,b){function $(a,b,c,d){c=c||[],b=b||q;var e,f,g,j,k=b.nodeType;if(k!==1&&k!==9)return[];if(!a||typeof a!="string")return c;g=h(b);if(!g&&!d)if(e=L.exec(a))if(j=e[1]){if(k===9){f=b.getElementById(j);if(!f||!f.parentNode)return c;if(f.id===j)return c.push(f),c}else if(b.ownerDocument&&(f=b.ownerDocument.getElementById(j))&&i(b,f)&&f.id===j)return c.push(f),c}else{if(e[2])return u.apply(c,t.call(b.getElementsByTagName(a),0)),c;if((j=e[3])&&X&&b.getElementsByClassName)return u.apply(c,t.call(b.getElementsByClassName(j),0)),c}return bk(a,b,c,d,g)}function _(a){return function(b){var c=b.nodeName.toLowerCase();return c==="input"&&b.type===a}}function ba(a){return function(b){var c=b.nodeName.toLowerCase();return(c==="input"||c==="button")&&b.type===a}}function bb(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}function bc(a,b,c,d){var e,g,h,i,j,k,l,m,n,p,r=!c&&b!==q,s=(r?"<s>":"")+a.replace(H,"$1<s>"),u=y[o][s];if(u)return d?0:t.call(u,0);j=a,k=[],m=0,n=f.preFilter,p=f.filter;while(j){if(!e||(g=I.exec(j)))g&&(j=j.slice(g[0].length),h.selector=l),k.push(h=[]),l="",r&&(j=" "+j);e=!1;if(g=J.exec(j))l+=g[0],j=j.slice(g[0].length),e=h.push({part:g.pop().replace(H," "),string:g[0],captures:g});for(i in p)(g=S[i].exec(j))&&(!n[i]||(g=n[i](g,b,c)))&&(l+=g[0],j=j.slice(g[0].length),e=h.push({part:i,string:g.shift(),captures:g}));if(!e)break}return l&&(h.selector=l),d?j.length:j?$.error(a):t.call(y(s,k),0)}function bd(a,b,e,f){var g=b.dir,h=s++;return a||(a=function(a){return a===e}),b.first?function(b){while(b=b[g])if(b.nodeType===1)return a(b)&&b}:f?function(b){while(b=b[g])if(b.nodeType===1&&a(b))return b}:function(b){var e,f=h+"."+c,i=f+"."+d;while(b=b[g])if(b.nodeType===1){if((e=b[o])===i)return b.sizset;if(typeof e=="string"&&e.indexOf(f)===0){if(b.sizset)return b}else{b[o]=i;if(a(b))return b.sizset=!0,b;b.sizset=!1}}}}function be(a,b){return a?function(c){var d=b(c);return d&&a(d===!0?c:d)}:b}function bf(a,b,c){var d,e,g=0;for(;d=a[g];g++)f.relative[d.part]?e=bd(e,f.relative[d.part],b,c):e=be(e,f.filter[d.part].apply(null,d.captures.concat(b,c)));return e}function bg(a){return function(b){var c,d=0;for(;c=a[d];d++)if(c(b))return!0;return!1}}function bh(a,b,c,d){var e=0,f=b.length;for(;e<f;e++)$(a,b[e],c,d)}function bi(a,b,c,d,e,g){var h,i=f.setFilters[b.toLowerCase()];return i||$.error(b),(a||!(h=e))&&bh(a||"*",d,h=[],e),h.length>0?i(h,c,g):[]}function bj(a,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q,r,s=0,t=a.length,v=S.POS,w=new RegExp("^"+v.source+"(?!"+A+")","i"),x=function(){var a=1,c=arguments.length-2;for(;a<c;a++)arguments[a]===b&&(n[a]=b)};for(;s<t;s++){f=a[s],g="",m=e;for(h=0,i=f.length;h<i;h++){j=f[h],k=j.string;if(j.part==="PSEUDO"){v.exec(""),l=0;while(n=v.exec(k)){o=!0,p=v.lastIndex=n.index+n[0].length;if(p>l){g+=k.slice(l,n.index),l=p,q=[c],J.test(g)&&(m&&(q=m),m=e);if(r=O.test(g))g=g.slice(0,-5).replace(J,"$&*"),l++;n.length>1&&n[0].replace(w,x),m=bi(g,n[1],n[2],q,m,r)}g=""}}o||(g+=k),o=!1}g?J.test(g)?bh(g,m||[c],d,e):$(g,c,d,e?e.concat(m):m):u.apply(d,m)}return t===1?d:$.uniqueSort(d)}function bk(a,b,e,g,h){a=a.replace(H,"$1");var i,k,l,m,n,o,p,q,r,s,v=bc(a,b,h),w=b.nodeType;if(S.POS.test(a))return bj(v,b,e,g);if(g)i=t.call(g,0);else if(v.length===1){if((o=t.call(v[0],0)).length>2&&(p=o[0]).part==="ID"&&w===9&&!h&&f.relative[o[1].part]){b=f.find.ID(p.captures[0].replace(R,""),b,h)[0];if(!b)return e;a=a.slice(o.shift().string.length)}r=(v=N.exec(o[0].string))&&!v.index&&b.parentNode||b,q="";for(n=o.length-1;n>=0;n--){p=o[n],s=p.part,q=p.string+q;if(f.relative[s])break;if(f.order.test(s)){i=f.find[s](p.captures[0].replace(R,""),r,h);if(i==null)continue;a=a.slice(0,a.length-q.length)+q.replace(S[s],""),a||u.apply(e,t.call(i,0));break}}}if(a){k=j(a,b,h),c=k.dirruns++,i==null&&(i=f.find.TAG("*",N.test(a)&&b.parentNode||b));for(n=0;m=i[n];n++)d=k.runs++,k(m)&&e.push(m)}return e}var c,d,e,f,g,h,i,j,k,l,m=!0,n="undefined",o=("sizcache"+Math.random()).replace(".",""),q=a.document,r=q.documentElement,s=0,t=[].slice,u=[].push,v=function(a,b){return a[o]=b||!0,a},w=function(){var a={},b=[];return v(function(c,d){return b.push(c)>f.cacheLength&&delete a[b.shift()],a[c]=d},a)},x=w(),y=w(),z=w(),A="[\\x20\\t\\r\\n\\f]",B="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",C=B.replace("w","w#"),D="([*^$|!~]?=)",E="\\["+A+"*("+B+")"+A+"*(?:"+D+A+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+C+")|)|)"+A+"*\\]",F=":("+B+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+E+")|[^:]|\\\\.)*|.*))\\)|)",G=":(nth|eq|gt|lt|first|last|even|odd)(?:\\(((?:-\\d)?\\d*)\\)|)(?=[^-]|$)",H=new RegExp("^"+A+"+|((?:^|[^\\\\])(?:\\\\.)*)"+A+"+$","g"),I=new RegExp("^"+A+"*,"+A+"*"),J=new RegExp("^"+A+"*([\\x20\\t\\r\\n\\f>+~])"+A+"*"),K=new RegExp(F),L=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,M=/^:not/,N=/[\x20\t\r\n\f]*[+~]/,O=/:not\($/,P=/h\d/i,Q=/input|select|textarea|button/i,R=/\\(?!\\)/g,S={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),NAME:new RegExp("^\\[name=['\"]?("+B+")['\"]?\\]"),TAG:new RegExp("^("+B.replace("w","w*")+")"),ATTR:new RegExp("^"+E),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|nth|last|first)-child(?:\\("+A+"*(even|odd|(([+-]|)(\\d*)n|)"+A+"*(?:([+-]|)"+A+"*(\\d+)|))"+A+"*\\)|)","i"),POS:new RegExp(G,"ig"),needsContext:new RegExp("^"+A+"*[>+~]|"+G,"i")},T=function(a){var b=q.createElement("div");try{return a(b)}catch(c){return!1}finally{b=null}},U=T(function(a){return a.appendChild(q.createComment("")),!a.getElementsByTagName("*").length}),V=T(function(a){return a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!==n&&a.firstChild.getAttribute("href")==="#"}),W=T(function(a){a.innerHTML="<select></select>";var b=typeof a.lastChild.getAttribute("multiple");return b!=="boolean"&&b!=="string"}),X=T(function(a){return a.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",!a.getElementsByClassName||!a.getElementsByClassName("e").length?!1:(a.lastChild.className="e",a.getElementsByClassName("e").length===2)}),Y=T(function(a){a.id=o+0,a.innerHTML="<a name='"+o+"'></a><div name='"+o+"'></div>",r.insertBefore(a,r.firstChild);var b=q.getElementsByName&&q.getElementsByName(o).length===2+q.getElementsByName(o+0).length;return e=!q.getElementById(o),r.removeChild(a),b});try{t.call(r.childNodes,0)[0].nodeType}catch(Z){t=function(a){var b,c=[];for(;b=this[a];a++)c.push(b);return c}}$.matches=function(a,b){return $(a,null,null,b)},$.matchesSelector=function(a,b){return $(b,null,null,[a]).length>0},g=$.getText=function(a){var b,c="",d=0,e=a.nodeType;if(e){if(e===1||e===9||e===11){if(typeof a.textContent=="string")return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=g(a)}else if(e===3||e===4)return a.nodeValue}else for(;b=a[d];d++)c+=g(b);return c},h=$.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?b.nodeName!=="HTML":!1},i=$.contains=r.contains?function(a,b){var c=a.nodeType===9?a.documentElement:a,d=b&&b.parentNode;return a===d||!!(d&&d.nodeType===1&&c.contains&&c.contains(d))}:r.compareDocumentPosition?function(a,b){return b&&!!(a.compareDocumentPosition(b)&16)}:function(a,b){while(b=b.parentNode)if(b===a)return!0;return!1},$.attr=function(a,b){var c,d=h(a);return d||(b=b.toLowerCase()),f.attrHandle[b]?f.attrHandle[b](a):W||d?a.getAttribute(b):(c=a.getAttributeNode(b),c?typeof a[b]=="boolean"?a[b]?b:null:c.specified?c.value:null:null)},f=$.selectors={cacheLength:50,createPseudo:v,match:S,order:new RegExp("ID|TAG"+(Y?"|NAME":"")+(X?"|CLASS":"")),attrHandle:V?{}:{href:function(a){return a.getAttribute("href",2)},type:function(a){return a.getAttribute("type")}},find:{ID:e?function(a,b,c){if(typeof b.getElementById!==n&&!c){var d=b.getElementById(a);return d&&d.parentNode?[d]:[]}}:function(a,c,d){if(typeof c.getElementById!==n&&!d){var e=c.getElementById(a);return e?e.id===a||typeof e.getAttributeNode!==n&&e.getAttributeNode("id").value===a?[e]:b:[]}},TAG:U?function(a,b){if(typeof b.getElementsByTagName!==n)return b.getElementsByTagName(a)}:function(a,b){var c=b.getElementsByTagName(a);if(a==="*"){var d,e=[],f=0;for(;d=c[f];f++)d.nodeType===1&&e.push(d);return e}return c},NAME:function(a,b){if(typeof b.getElementsByName!==n)return b.getElementsByName(name)},CLASS:function(a,b,c){if(typeof b.getElementsByClassName!==n&&!c)return b.getElementsByClassName(a)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(R,""),a[3]=(a[4]||a[5]||"").replace(R,""),a[2]==="~="&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),a[1]==="nth"?(a[2]||$.error(a[0]),a[3]=+(a[3]?a[4]+(a[5]||1):2*(a[2]==="even"||a[2]==="odd")),a[4]=+(a[6]+a[7]||a[2]==="odd")):a[2]&&$.error(a[0]),a},PSEUDO:function(a,b,c){var d,e;if(S.CHILD.test(a[0]))return null;if(a[3])a[2]=a[3];else if(d=a[4])K.test(d)&&(e=bc(d,b,c,!0))&&(e=d.indexOf(")",d.length-e)-d.length)&&(d=d.slice(0,e),a[0]=a[0].slice(0,e)),a[2]=d;return a.slice(0,3)}},filter:{ID:e?function(a){return a=a.replace(R,""),function(b){return b.getAttribute("id")===a}}:function(a){return a=a.replace(R,""),function(b){var c=typeof b.getAttributeNode!==n&&b.getAttributeNode("id");return c&&c.value===a}},TAG:function(a){return a==="*"?function(){return!0}:(a=a.replace(R,"").toLowerCase(),function(b){return b.nodeName&&b.nodeName.toLowerCase()===a})},CLASS:function(a){var b=x[o][a];return b||(b=x(a,new RegExp("(^|"+A+")"+a+"("+A+"|$)"))),function(a){return b.test(a.className||typeof a.getAttribute!==n&&a.getAttribute("class")||"")}},ATTR:function(a,b,c){return b?function(d){var e=$.attr(d,a),f=e+"";if(e==null)return b==="!=";switch(b){case"=":return f===c;case"!=":return f!==c;case"^=":return c&&f.indexOf(c)===0;case"*=":return c&&f.indexOf(c)>-1;case"$=":return c&&f.substr(f.length-c.length)===c;case"~=":return(" "+f+" ").indexOf(c)>-1;case"|=":return f===c||f.substr(0,c.length+1)===c+"-"}}:function(b){return $.attr(b,a)!=null}},CHILD:function(a,b,c,d){if(a==="nth"){var e=s++;return function(a){var b,f,g=0,h=a;if(c===1&&d===0)return!0;b=a.parentNode;if(b&&(b[o]!==e||!a.sizset)){for(h=b.firstChild;h;h=h.nextSibling)if(h.nodeType===1){h.sizset=++g;if(h===a)break}b[o]=e}return f=a.sizset-d,c===0?f===0:f%c===0&&f/c>=0}}return function(b){var c=b;switch(a){case"only":case"first":while(c=c.previousSibling)if(c.nodeType===1)return!1;if(a==="first")return!0;c=b;case"last":while(c=c.nextSibling)if(c.nodeType===1)return!1;return!0}}},PSEUDO:function(a,b,c,d){var e,g=f.pseudos[a]||f.pseudos[a.toLowerCase()];return g||$.error("unsupported pseudo: "+a),g[o]?g(b,c,d):g.length>1?(e=[a,a,"",b],function(a){return g(a,0,e)}):g}},pseudos:{not:v(function(a,b,c){var d=j(a.replace(H,"$1"),b,c);return function(a){return!d(a)}}),enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&!!a.checked||b==="option"&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},parent:function(a){return!f.pseudos.empty(a)},empty:function(a){var b;a=a.firstChild;while(a){if(a.nodeName>"@"||(b=a.nodeType)===3||b===4)return!1;a=a.nextSibling}return!0},contains:v(function(a){return function(b){return(b.textContent||b.innerText||g(b)).indexOf(a)>-1}}),has:v(function(a){return function(b){return $(a,b).length>0}}),header:function(a){return P.test(a.nodeName)},text:function(a){var b,c;return a.nodeName.toLowerCase()==="input"&&(b=a.type)==="text"&&((c=a.getAttribute("type"))==null||c.toLowerCase()===b)},radio:_("radio"),checkbox:_("checkbox"),file:_("file"),password:_("password"),image:_("image"),submit:ba("submit"),reset:ba("reset"),button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&a.type==="button"||b==="button"},input:function(a){return Q.test(a.nodeName)},focus:function(a){var b=a.ownerDocument;return a===b.activeElement&&(!b.hasFocus||b.hasFocus())&&(!!a.type||!!a.href)},active:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b,c){return c?a.slice(1):[a[0]]},last:function(a,b,c){var d=a.pop();return c?a:[d]},even:function(a,b,c){var d=[],e=c?1:0,f=a.length;for(;e<f;e=e+2)d.push(a[e]);return d},odd:function(a,b,c){var d=[],e=c?0:1,f=a.length;for(;e<f;e=e+2)d.push(a[e]);return d},lt:function(a,b,c){return c?a.slice(+b):a.slice(0,+b)},gt:function(a,b,c){return c?a.slice(0,+b+1):a.slice(+b+1)},eq:function(a,b,c){var d=a.splice(+b,1);return c?a:d}}},k=r.compareDocumentPosition?function(a,b){return a===b?(l=!0,0):(!a.compareDocumentPosition||!b.compareDocumentPosition?a.compareDocumentPosition:a.compareDocumentPosition(b)&4)?-1:1}:function(a,b){if(a===b)return l=!0,0;if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],g=a.parentNode,h=b.parentNode,i=g;if(g===h)return bb(a,b);if(!g)return-1;if(!h)return 1;while(i)e.unshift(i),i=i.parentNode;i=h;while(i)f.unshift(i),i=i.parentNode;c=e.length,d=f.length;for(var j=0;j<c&&j<d;j++)if(e[j]!==f[j])return bb(e[j],f[j]);return j===c?bb(a,f[j],-1):bb(e[j],b,1)},[0,0].sort(k),m=!l,$.uniqueSort=function(a){var b,c=1;l=m,a.sort(k);if(l)for(;b=a[c];c++)b===a[c-1]&&a.splice(c--,1);return a},$.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},j=$.compile=function(a,b,c){var d,e,f,g=z[o][a];if(g&&g.context===b)return g;d=bc(a,b,c);for(e=0,f=d.length;e<f;e++)d[e]=bf(d[e],b,c);return g=z(a,bg(d)),g.context=b,g.runs=g.dirruns=0,g},q.querySelectorAll&&function(){var a,b=bk,c=/'|\\/g,d=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,e=[],f=[":active"],g=r.matchesSelector||r.mozMatchesSelector||r.webkitMatchesSelector||r.oMatchesSelector||r.msMatchesSelector;T(function(a){a.innerHTML="<select><option selected=''></option></select>",a.querySelectorAll("[selected]").length||e.push("\\["+A+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),a.querySelectorAll(":checked").length||e.push(":checked")}),T(function(a){a.innerHTML="<p test=''></p>",a.querySelectorAll("[test^='']").length&&e.push("[*^$]="+A+"*(?:\"\"|'')"),a.innerHTML="<input type='hidden'/>",a.querySelectorAll(":enabled").length||e.push(":enabled",":disabled")}),e=e.length&&new RegExp(e.join("|")),bk=function(a,d,f,g,h){if(!g&&!h&&(!e||!e.test(a)))if(d.nodeType===9)try{return u.apply(f,t.call(d.querySelectorAll(a),0)),f}catch(i){}else if(d.nodeType===1&&d.nodeName.toLowerCase()!=="object"){var j,k,l,m=d.getAttribute("id"),n=m||o,p=N.test(a)&&d.parentNode||d;m?n=n.replace(c,"\\$&"):d.setAttribute("id",n),j=bc(a,d,h),n="[id='"+n+"']";for(k=0,l=j.length;k<l;k++)j[k]=n+j[k].selector;try{return u.apply(f,t.call(p.querySelectorAll(j.join(",")),0)),f}catch(i){}finally{m||d.removeAttribute("id")}}return b(a,d,f,g,h)},g&&(T(function(b){a=g.call(b,"div");try{g.call(b,"[test!='']:sizzle"),f.push(S.PSEUDO.source,S.POS.source,"!=")}catch(c){}}),f=new RegExp(f.join("|")),$.matchesSelector=function(b,c){c=c.replace(d,"='$1']");if(!h(b)&&!f.test(c)&&(!e||!e.test(c)))try{var i=g.call(b,c);if(i||a||b.document&&b.document.nodeType!==11)return i}catch(j){}return $(c,null,null,[b]).length>0})}(),f.setFilters.nth=f.setFilters.eq,f.filters=f.pseudos,$.attr=p.attr,p.find=$,p.expr=$.selectors,p.expr[":"]=p.expr.pseudos,p.unique=$.uniqueSort,p.text=$.getText,p.isXMLDoc=$.isXML,p.contains=$.contains}(a);var bc=/Until$/,bd=/^(?:parents|prev(?:Until|All))/,be=/^.[^:#\[\.,]*$/,bf=p.expr.match.needsContext,bg={children:!0,contents:!0,next:!0,prev:!0};p.fn.extend({find:function(a){var b,c,d,e,f,g,h=this;if(typeof a!="string")return p(a).filter(function(){for(b=0,c=h.length;b<c;b++)if(p.contains(h[b],this))return!0});g=this.pushStack("","find",a);for(b=0,c=this.length;b<c;b++){d=g.length,p.find(a,this[b],g);if(b>0)for(e=d;e<g.length;e++)for(f=0;f<d;f++)if(g[f]===g[e]){g.splice(e--,1);break}}return g},has:function(a){var b,c=p(a,this),d=c.length;return this.filter(function(){for(b=0;b<d;b++)if(p.contains(this,c[b]))return!0})},not:function(a){return this.pushStack(bj(this,a,!1),"not",a)},filter:function(a){return this.pushStack(bj(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?bf.test(a)?p(a,this.context).index(this[0])>=0:p.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c,d=0,e=this.length,f=[],g=bf.test(a)||typeof a!="string"?p(a,b||this.context):0;for(;d<e;d++){c=this[d];while(c&&c.ownerDocument&&c!==b&&c.nodeType!==11){if(g?g.index(c)>-1:p.find.matchesSelector(c,a)){f.push(c);break}c=c.parentNode}}return f=f.length>1?p.unique(f):f,this.pushStack(f,"closest",a)},index:function(a){return a?typeof a=="string"?p.inArray(this[0],p(a)):p.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(a,b){var c=typeof a=="string"?p(a,b):p.makeArray(a&&a.nodeType?[a]:a),d=p.merge(this.get(),c);return this.pushStack(bh(c[0])||bh(d[0])?d:p.unique(d))},addBack:function(a){return this.add(a==null?this.prevObject:this.prevObject.filter(a))}}),p.fn.andSelf=p.fn.addBack,p.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return p.dir(a,"parentNode")},parentsUntil:function(a,b,c){return p.dir(a,"parentNode",c)},next:function(a){return bi(a,"nextSibling")},prev:function(a){return bi(a,"previousSibling")},nextAll:function(a){return p.dir(a,"nextSibling")},prevAll:function(a){return p.dir(a,"previousSibling")},nextUntil:function(a,b,c){return p.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return p.dir(a,"previousSibling",c)},siblings:function(a){return p.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return p.sibling(a.firstChild)},contents:function(a){return p.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:p.merge([],a.childNodes)}},function(a,b){p.fn[a]=function(c,d){var e=p.map(this,b,c);return bc.test(a)||(d=c),d&&typeof d=="string"&&(e=p.filter(d,e)),e=this.length>1&&!bg[a]?p.unique(e):e,this.length>1&&bd.test(a)&&(e=e.reverse()),this.pushStack(e,a,k.call(arguments).join(","))}}),p.extend({filter:function(a,b,c){return c&&(a=":not("+a+")"),b.length===1?p.find.matchesSelector(b[0],a)?[b[0]]:[]:p.find.matches(a,b)},dir:function(a,c,d){var e=[],f=a[c];while(f&&f.nodeType!==9&&(d===b||f.nodeType!==1||!p(f).is(d)))f.nodeType===1&&e.push(f),f=f[c];return e},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var bl="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",bm=/ jQuery\d+="(?:null|\d+)"/g,bn=/^\s+/,bo=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bp=/<([\w:]+)/,bq=/<tbody/i,br=/<|&#?\w+;/,bs=/<(?:script|style|link)/i,bt=/<(?:script|object|embed|option|style)/i,bu=new RegExp("<(?:"+bl+")[\\s/>]","i"),bv=/^(?:checkbox|radio)$/,bw=/checked\s*(?:[^=]|=\s*.checked.)/i,bx=/\/(java|ecma)script/i,by=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,bz={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},bA=bk(e),bB=bA.appendChild(e.createElement("div"));bz.optgroup=bz.option,bz.tbody=bz.tfoot=bz.colgroup=bz.caption=bz.thead,bz.th=bz.td,p.support.htmlSerialize||(bz._default=[1,"X<div>","</div>"]),p.fn.extend({text:function(a){return p.access(this,function(a){return a===b?p.text(this):this.empty().append((this[0]&&this[0].ownerDocument||e).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(p.isFunction(a))return this.each(function(b){p(this).wrapAll(a.call(this,b))});if(this[0]){var b=p(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return p.isFunction(a)?this.each(function(b){p(this).wrapInner(a.call(this,b))}):this.each(function(){var b=p(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=p.isFunction(a);return this.each(function(c){p(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){p.nodeName(this,"body")||p(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){(this.nodeType===1||this.nodeType===11)&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){(this.nodeType===1||this.nodeType===11)&&this.insertBefore(a,this.firstChild)})},before:function(){if(!bh(this[0]))return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=p.clean(arguments);return this.pushStack(p.merge(a,this),"before",this.selector)}},after:function(){if(!bh(this[0]))return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=p.clean(arguments);return this.pushStack(p.merge(this,a),"after",this.selector)}},remove:function(a,b){var c,d=0;for(;(c=this[d])!=null;d++)if(!a||p.filter(a,[c]).length)!b&&c.nodeType===1&&(p.cleanData(c.getElementsByTagName("*")),p.cleanData([c])),c.parentNode&&c.parentNode.removeChild(c);return this},empty:function(){var a,b=0;for(;(a=this[b])!=null;b++){a.nodeType===1&&p.cleanData(a.getElementsByTagName("*"));while(a.firstChild)a.removeChild(a.firstChild)}return this},clone:function(a,b){return a=a==null?!1:a,b=b==null?a:b,this.map(function(){return p.clone(this,a,b)})},html:function(a){return p.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(bm,""):b;if(typeof a=="string"&&!bs.test(a)&&(p.support.htmlSerialize||!bu.test(a))&&(p.support.leadingWhitespace||!bn.test(a))&&!bz[(bp.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(bo,"<$1></$2>");try{for(;d<e;d++)c=this[d]||{},c.nodeType===1&&(p.cleanData(c.getElementsByTagName("*")),c.innerHTML=a);c=0}catch(f){}}c&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(a){return bh(this[0])?this.length?this.pushStack(p(p.isFunction(a)?a():a),"replaceWith",a):this:p.isFunction(a)?this.each(function(b){var c=p(this),d=c.html();c.replaceWith(a.call(this,b,d))}):(typeof a!="string"&&(a=p(a).detach()),this.each(function(){var b=this.nextSibling,c=this.parentNode;p(this).remove(),b?p(b).before(a):p(c).append(a)}))},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){a=[].concat.apply([],a);var e,f,g,h,i=0,j=a[0],k=[],l=this.length;if(!p.support.checkClone&&l>1&&typeof j=="string"&&bw.test(j))return this.each(function(){p(this).domManip(a,c,d)});if(p.isFunction(j))return this.each(function(e){var f=p(this);a[0]=j.call(this,e,c?f.html():b),f.domManip(a,c,d)});if(this[0]){e=p.buildFragment(a,this,k),g=e.fragment,f=g.firstChild,g.childNodes.length===1&&(g=f);if(f){c=c&&p.nodeName(f,"tr");for(h=e.cacheable||l-1;i<l;i++)d.call(c&&p.nodeName(this[i],"table")?bC(this[i],"tbody"):this[i],i===h?g:p.clone(g,!0,!0))}g=f=null,k.length&&p.each(k,function(a,b){b.src?p.ajax?p.ajax({url:b.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):p.error("no ajax"):p.globalEval((b.text||b.textContent||b.innerHTML||"").replace(by,"")),b.parentNode&&b.parentNode.removeChild(b)})}return this}}),p.buildFragment=function(a,c,d){var f,g,h,i=a[0];return c=c||e,c=!c.nodeType&&c[0]||c,c=c.ownerDocument||c,a.length===1&&typeof i=="string"&&i.length<512&&c===e&&i.charAt(0)==="<"&&!bt.test(i)&&(p.support.checkClone||!bw.test(i))&&(p.support.html5Clone||!bu.test(i))&&(g=!0,f=p.fragments[i],h=f!==b),f||(f=c.createDocumentFragment(),p.clean(a,c,f,d),g&&(p.fragments[i]=h&&f)),{fragment:f,cacheable:g}},p.fragments={},p.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){p.fn[a]=function(c){var d,e=0,f=[],g=p(c),h=g.length,i=this.length===1&&this[0].parentNode;if((i==null||i&&i.nodeType===11&&i.childNodes.length===1)&&h===1)return g[b](this[0]),this;for(;e<h;e++)d=(e>0?this.clone(!0):this).get(),p(g[e])[b](d),f=f.concat(d);return this.pushStack(f,a,g.selector)}}),p.extend({clone:function(a,b,c){var d,e,f,g;p.support.html5Clone||p.isXMLDoc(a)||!bu.test("<"+a.nodeName+">")?g=a.cloneNode(!0):(bB.innerHTML=a.outerHTML,bB.removeChild(g=bB.firstChild));if((!p.support.noCloneEvent||!p.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!p.isXMLDoc(a)){bE(a,g),d=bF(a),e=bF(g);for(f=0;d[f];++f)e[f]&&bE(d[f],e[f])}if(b){bD(a,g);if(c){d=bF(a),e=bF(g);for(f=0;d[f];++f)bD(d[f],e[f])}}return d=e=null,g},clean:function(a,b,c,d){var f,g,h,i,j,k,l,m,n,o,q,r,s=b===e&&bA,t=[];if(!b||typeof b.createDocumentFragment=="undefined")b=e;for(f=0;(h=a[f])!=null;f++){typeof h=="number"&&(h+="");if(!h)continue;if(typeof h=="string")if(!br.test(h))h=b.createTextNode(h);else{s=s||bk(b),l=b.createElement("div"),s.appendChild(l),h=h.replace(bo,"<$1></$2>"),i=(bp.exec(h)||["",""])[1].toLowerCase(),j=bz[i]||bz._default,k=j[0],l.innerHTML=j[1]+h+j[2];while(k--)l=l.lastChild;if(!p.support.tbody){m=bq.test(h),n=i==="table"&&!m?l.firstChild&&l.firstChild.childNodes:j[1]==="<table>"&&!m?l.childNodes:[];for(g=n.length-1;g>=0;--g)p.nodeName(n[g],"tbody")&&!n[g].childNodes.length&&n[g].parentNode.removeChild(n[g])}!p.support.leadingWhitespace&&bn.test(h)&&l.insertBefore(b.createTextNode(bn.exec(h)[0]),l.firstChild),h=l.childNodes,l.parentNode.removeChild(l)}h.nodeType?t.push(h):p.merge(t,h)}l&&(h=l=s=null);if(!p.support.appendChecked)for(f=0;(h=t[f])!=null;f++)p.nodeName(h,"input")?bG(h):typeof h.getElementsByTagName!="undefined"&&p.grep(h.getElementsByTagName("input"),bG);if(c){q=function(a){if(!a.type||bx.test(a.type))return d?d.push(a.parentNode?a.parentNode.removeChild(a):a):c.appendChild(a)};for(f=0;(h=t[f])!=null;f++)if(!p.nodeName(h,"script")||!q(h))c.appendChild(h),typeof h.getElementsByTagName!="undefined"&&(r=p.grep(p.merge([],h.getElementsByTagName("script")),q),t.splice.apply(t,[f+1,0].concat(r)),f+=r.length)}return t},cleanData:function(a,b){var c,d,e,f,g=0,h=p.expando,i=p.cache,j=p.support.deleteExpando,k=p.event.special;for(;(e=a[g])!=null;g++)if(b||p.acceptData(e)){d=e[h],c=d&&i[d];if(c){if(c.events)for(f in c.events)k[f]?p.event.remove(e,f):p.removeEvent(e,f,c.handle);i[d]&&(delete i[d],j?delete e[h]:e.removeAttribute?e.removeAttribute(h):e[h]=null,p.deletedIds.push(d))}}}}),function(){var a,b;p.uaMatch=function(a){a=a.toLowerCase();var b=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},a=p.uaMatch(g.userAgent),b={},a.browser&&(b[a.browser]=!0,b.version=a.version),b.chrome?b.webkit=!0:b.webkit&&(b.safari=!0),p.browser=b,p.sub=function(){function a(b,c){return new a.fn.init(b,c)}p.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function c(c,d){return d&&d instanceof p&&!(d instanceof a)&&(d=a(d)),p.fn.init.call(this,c,d,b)},a.fn.init.prototype=a.fn;var b=a(e);return a}}();var bH,bI,bJ,bK=/alpha\([^)]*\)/i,bL=/opacity=([^)]*)/,bM=/^(top|right|bottom|left)$/,bN=/^(none|table(?!-c[ea]).+)/,bO=/^margin/,bP=new RegExp("^("+q+")(.*)$","i"),bQ=new RegExp("^("+q+")(?!px)[a-z%]+$","i"),bR=new RegExp("^([-+])=("+q+")","i"),bS={},bT={position:"absolute",visibility:"hidden",display:"block"},bU={letterSpacing:0,fontWeight:400},bV=["Top","Right","Bottom","Left"],bW=["Webkit","O","Moz","ms"],bX=p.fn.toggle;p.fn.extend({css:function(a,c){return p.access(this,function(a,c,d){return d!==b?p.style(a,c,d):p.css(a,c)},a,c,arguments.length>1)},show:function(){return b$(this,!0)},hide:function(){return b$(this)},toggle:function(a,b){var c=typeof a=="boolean";return p.isFunction(a)&&p.isFunction(b)?bX.apply(this,arguments):this.each(function(){(c?a:bZ(this))?p(this).show():p(this).hide()})}}),p.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bH(a,"opacity");return c===""?"1":c}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":p.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!a||a.nodeType===3||a.nodeType===8||!a.style)return;var f,g,h,i=p.camelCase(c),j=a.style;c=p.cssProps[i]||(p.cssProps[i]=bY(j,i)),h=p.cssHooks[c]||p.cssHooks[i];if(d===b)return h&&"get"in h&&(f=h.get(a,!1,e))!==b?f:j[c];g=typeof d,g==="string"&&(f=bR.exec(d))&&(d=(f[1]+1)*f[2]+parseFloat(p.css(a,c)),g="number");if(d==null||g==="number"&&isNaN(d))return;g==="number"&&!p.cssNumber[i]&&(d+="px");if(!h||!("set"in h)||(d=h.set(a,d,e))!==b)try{j[c]=d}catch(k){}},css:function(a,c,d,e){var f,g,h,i=p.camelCase(c);return c=p.cssProps[i]||(p.cssProps[i]=bY(a.style,i)),h=p.cssHooks[c]||p.cssHooks[i],h&&"get"in h&&(f=h.get(a,!0,e)),f===b&&(f=bH(a,c)),f==="normal"&&c in bU&&(f=bU[c]),d||e!==b?(g=parseFloat(f),d||p.isNumeric(g)?g||0:f):f},swap:function(a,b,c){var d,e,f={};for(e in b)f[e]=a.style[e],a.style[e]=b[e];d=c.call(a);for(e in b)a.style[e]=f[e];return d}}),a.getComputedStyle?bH=function(b,c){var d,e,f,g,h=a.getComputedStyle(b,null),i=b.style;return h&&(d=h[c],d===""&&!p.contains(b.ownerDocument,b)&&(d=p.style(b,c)),bQ.test(d)&&bO.test(c)&&(e=i.width,f=i.minWidth,g=i.maxWidth,i.minWidth=i.maxWidth=i.width=d,d=h.width,i.width=e,i.minWidth=f,i.maxWidth=g)),d}:e.documentElement.currentStyle&&(bH=function(a,b){var c,d,e=a.currentStyle&&a.currentStyle[b],f=a.style;return e==null&&f&&f[b]&&(e=f[b]),bQ.test(e)&&!bM.test(b)&&(c=f.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":e,e=f.pixelLeft+"px",f.left=c,d&&(a.runtimeStyle.left=d)),e===""?"auto":e}),p.each(["height","width"],function(a,b){p.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth===0&&bN.test(bH(a,"display"))?p.swap(a,bT,function(){return cb(a,b,d)}):cb(a,b,d)},set:function(a,c,d){return b_(a,c,d?ca(a,b,d,p.support.boxSizing&&p.css(a,"boxSizing")==="border-box"):0)}}}),p.support.opacity||(p.cssHooks.opacity={get:function(a,b){return bL.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=p.isNumeric(b)?"alpha(opacity="+b*100+")":"",f=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&p.trim(f.replace(bK,""))===""&&c.removeAttribute){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bK.test(f)?f.replace(bK,e):f+" "+e}}),p(function(){p.support.reliableMarginRight||(p.cssHooks.marginRight={get:function(a,b){return p.swap(a,{display:"inline-block"},function(){if(b)return bH(a,"marginRight")})}}),!p.support.pixelPosition&&p.fn.position&&p.each(["top","left"],function(a,b){p.cssHooks[b]={get:function(a,c){if(c){var d=bH(a,b);return bQ.test(d)?p(a).position()[b]+"px":d}}}})}),p.expr&&p.expr.filters&&(p.expr.filters.hidden=function(a){return a.offsetWidth===0&&a.offsetHeight===0||!p.support.reliableHiddenOffsets&&(a.style&&a.style.display||bH(a,"display"))==="none"},p.expr.filters.visible=function(a){return!p.expr.filters.hidden(a)}),p.each({margin:"",padding:"",border:"Width"},function(a,b){p.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bV[d]+b]=e[d]||e[d-2]||e[0];return f}},bO.test(a)||(p.cssHooks[a+b].set=b_)});var cd=/%20/g,ce=/\[\]$/,cf=/\r?\n/g,cg=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,ch=/^(?:select|textarea)/i;p.fn.extend({serialize:function(){return p.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?p.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ch.test(this.nodeName)||cg.test(this.type))}).map(function(a,b){var c=p(this).val();return c==null?null:p.isArray(c)?p.map(c,function(a,c){return{name:b.name,value:a.replace(cf,"\r\n")}}):{name:b.name,value:c.replace(cf,"\r\n")}}).get()}}),p.param=function(a,c){var d,e=[],f=function(a,b){b=p.isFunction(b)?b():b==null?"":b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=p.ajaxSettings&&p.ajaxSettings.traditional);if(p.isArray(a)||a.jquery&&!p.isPlainObject(a))p.each(a,function(){f(this.name,this.value)});else for(d in a)ci(d,a[d],c,f);return e.join("&").replace(cd,"+")};var cj,ck,cl=/#.*$/,cm=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,cn=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,co=/^(?:GET|HEAD)$/,cp=/^\/\//,cq=/\?/,cr=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,cs=/([?&])_=[^&]*/,ct=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,cu=p.fn.load,cv={},cw={},cx=["*/"]+["*"];try{cj=f.href}catch(cy){cj=e.createElement("a"),cj.href="",cj=cj.href}ck=ct.exec(cj.toLowerCase())||[],p.fn.load=function(a,c,d){if(typeof a!="string"&&cu)return cu.apply(this,arguments);if(!this.length)return this;var e,f,g,h=this,i=a.indexOf(" ");return i>=0&&(e=a.slice(i,a.length),a=a.slice(0,i)),p.isFunction(c)?(d=c,c=b):c&&typeof c=="object"&&(f="POST"),p.ajax({url:a,type:f,dataType:"html",data:c,complete:function(a,b){d&&h.each(d,g||[a.responseText,b,a])}}).done(function(a){g=arguments,h.html(e?p("<div>").append(a.replace(cr,"")).find(e):a)}),this},p.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){p.fn[b]=function(a){return this.on(b,a)}}),p.each(["get","post"],function(a,c){p[c]=function(a,d,e,f){return p.isFunction(d)&&(f=f||e,e=d,d=b),p.ajax({type:c,url:a,data:d,success:e,dataType:f})}}),p.extend({getScript:function(a,c){return p.get(a,b,c,"script")},getJSON:function(a,b,c){return p.get(a,b,c,"json")},ajaxSetup:function(a,b){return b?cB(a,p.ajaxSettings):(b=a,a=p.ajaxSettings),cB(a,b),a},ajaxSettings:{url:cj,isLocal:cn.test(ck[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":cx},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":p.parseJSON,"text xml":p.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:cz(cv),ajaxTransport:cz(cw),ajax:function(a,c){function y(a,c,f,i){var k,s,t,u,w,y=c;if(v===2)return;v=2,h&&clearTimeout(h),g=b,e=i||"",x.readyState=a>0?4:0,f&&(u=cC(l,x,f));if(a>=200&&a<300||a===304)l.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(p.lastModified[d]=w),w=x.getResponseHeader("Etag"),w&&(p.etag[d]=w)),a===304?(y="notmodified",k=!0):(k=cD(l,u),y=k.state,s=k.data,t=k.error,k=!t);else{t=y;if(!y||a)y="error",a<0&&(a=0)}x.status=a,x.statusText=""+(c||y),k?o.resolveWith(m,[s,y,x]):o.rejectWith(m,[x,y,t]),x.statusCode(r),r=b,j&&n.trigger("ajax"+(k?"Success":"Error"),[x,l,k?s:t]),q.fireWith(m,[x,y]),j&&(n.trigger("ajaxComplete",[x,l]),--p.active||p.event.trigger("ajaxStop"))}typeof a=="object"&&(c=a,a=b),c=c||{};var d,e,f,g,h,i,j,k,l=p.ajaxSetup({},c),m=l.context||l,n=m!==l&&(m.nodeType||m instanceof p)?p(m):p.event,o=p.Deferred(),q=p.Callbacks("once memory"),r=l.statusCode||{},t={},u={},v=0,w="canceled",x={readyState:0,setRequestHeader:function(a,b){if(!v){var c=a.toLowerCase();a=u[c]=u[c]||a,t[a]=b}return this},getAllResponseHeaders:function(){return v===2?e:null},getResponseHeader:function(a){var c;if(v===2){if(!f){f={};while(c=cm.exec(e))f[c[1].toLowerCase()]=c[2]}c=f[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){return v||(l.mimeType=a),this},abort:function(a){return a=a||w,g&&g.abort(a),y(0,a),this}};o.promise(x),x.success=x.done,x.error=x.fail,x.complete=q.add,x.statusCode=function(a){if(a){var b;if(v<2)for(b in a)r[b]=[r[b],a[b]];else b=a[x.status],x.always(b)}return this},l.url=((a||l.url)+"").replace(cl,"").replace(cp,ck[1]+"//"),l.dataTypes=p.trim(l.dataType||"*").toLowerCase().split(s),l.crossDomain==null&&(i=ct.exec(l.url.toLowerCase()),l.crossDomain=!(!i||i[1]==ck[1]&&i[2]==ck[2]&&(i[3]||(i[1]==="http:"?80:443))==(ck[3]||(ck[1]==="http:"?80:443)))),l.data&&l.processData&&typeof l.data!="string"&&(l.data=p.param(l.data,l.traditional)),cA(cv,l,c,x);if(v===2)return x;j=l.global,l.type=l.type.toUpperCase(),l.hasContent=!co.test(l.type),j&&p.active++===0&&p.event.trigger("ajaxStart");if(!l.hasContent){l.data&&(l.url+=(cq.test(l.url)?"&":"?")+l.data,delete l.data),d=l.url;if(l.cache===!1){var z=p.now(),A=l.url.replace(cs,"$1_="+z);l.url=A+(A===l.url?(cq.test(l.url)?"&":"?")+"_="+z:"")}}(l.data&&l.hasContent&&l.contentType!==!1||c.contentType)&&x.setRequestHeader("Content-Type",l.contentType),l.ifModified&&(d=d||l.url,p.lastModified[d]&&x.setRequestHeader("If-Modified-Since",p.lastModified[d]),p.etag[d]&&x.setRequestHeader("If-None-Match",p.etag[d])),x.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+(l.dataTypes[0]!=="*"?", "+cx+"; q=0.01":""):l.accepts["*"]);for(k in l.headers)x.setRequestHeader(k,l.headers[k]);if(!l.beforeSend||l.beforeSend.call(m,x,l)!==!1&&v!==2){w="abort";for(k in{success:1,error:1,complete:1})x[k](l[k]);g=cA(cw,l,c,x);if(!g)y(-1,"No Transport");else{x.readyState=1,j&&n.trigger("ajaxSend",[x,l]),l.async&&l.timeout>0&&(h=setTimeout(function(){x.abort("timeout")},l.timeout));try{v=1,g.send(t,y)}catch(B){if(v<2)y(-1,B);else throw B}}return x}return x.abort()},active:0,lastModified:{},etag:{}});var cE=[],cF=/\?/,cG=/(=)\?(?=&|$)|\?\?/,cH=p.now();p.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=cE.pop()||p.expando+"_"+cH++;return this[a]=!0,a}}),p.ajaxPrefilter("json jsonp",function(c,d,e){var f,g,h,i=c.data,j=c.url,k=c.jsonp!==!1,l=k&&cG.test(j),m=k&&!l&&typeof i=="string"&&!(c.contentType||"").indexOf("application/x-www-form-urlencoded")&&cG.test(i);if(c.dataTypes[0]==="jsonp"||l||m)return f=c.jsonpCallback=p.isFunction(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,g=a[f],l?c.url=j.replace(cG,"$1"+f):m?c.data=i.replace(cG,"$1"+f):k&&(c.url+=(cF.test(j)?"&":"?")+c.jsonp+"="+f),c.converters["script json"]=function(){return h||p.error(f+" was not called"),h[0]},c.dataTypes[0]="json",a[f]=function(){h=arguments},e.always(function(){a[f]=g,c[f]&&(c.jsonpCallback=d.jsonpCallback,cE.push(f)),h&&p.isFunction(g)&&g(h[0]),h=g=b}),"script"}),p.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){return p.globalEval(a),a}}}),p.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),p.ajaxTransport("script",function(a){if(a.crossDomain){var c,d=e.head||e.getElementsByTagName("head")[0]||e.documentElement;return{send:function(f,g){c=e.createElement("script"),c.async="async",a.scriptCharset&&(c.charset=a.scriptCharset),c.src=a.url,c.onload=c.onreadystatechange=function(a,e){if(e||!c.readyState||/loaded|complete/.test(c.readyState))c.onload=c.onreadystatechange=null,d&&c.parentNode&&d.removeChild(c),c=b,e||g(200,"success")},d.insertBefore(c,d.firstChild)},abort:function(){c&&c.onload(0,1)}}}});var cI,cJ=a.ActiveXObject?function(){for(var a in cI)cI[a](0,1)}:!1,cK=0;p.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&cL()||cM()}:cL,function(a){p.extend(p.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(p.ajaxSettings.xhr()),p.support.ajax&&p.ajaxTransport(function(c){if(!c.crossDomain||p.support.cors){var d;return{send:function(e,f){var g,h,i=c.xhr();c.username?i.open(c.type,c.url,c.async,c.username,c.password):i.open(c.type,c.url,c.async);if(c.xhrFields)for(h in c.xhrFields)i[h]=c.xhrFields[h];c.mimeType&&i.overrideMimeType&&i.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(h in e)i.setRequestHeader(h,e[h])}catch(j){}i.send(c.hasContent&&c.data||null),d=function(a,e){var h,j,k,l,m;try{if(d&&(e||i.readyState===4)){d=b,g&&(i.onreadystatechange=p.noop,cJ&&delete cI[g]);if(e)i.readyState!==4&&i.abort();else{h=i.status,k=i.getAllResponseHeaders(),l={},m=i.responseXML,m&&m.documentElement&&(l.xml=m);try{l.text=i.responseText}catch(a){}try{j=i.statusText}catch(n){j=""}!h&&c.isLocal&&!c.crossDomain?h=l.text?200:404:h===1223&&(h=204)}}}catch(o){e||f(-1,o)}l&&f(h,j,l,k)},c.async?i.readyState===4?setTimeout(d,0):(g=++cK,cJ&&(cI||(cI={},p(a).unload(cJ)),cI[g]=d),i.onreadystatechange=d):d()},abort:function(){d&&d(0,1)}}}});var cN,cO,cP=/^(?:toggle|show|hide)$/,cQ=new RegExp("^(?:([-+])=|)("+q+")([a-z%]*)$","i"),cR=/queueHooks$/,cS=[cY],cT={"*":[function(a,b){var c,d,e,f=this.createTween(a,b),g=cQ.exec(b),h=f.cur(),i=+h||0,j=1;if(g){c=+g[2],d=g[3]||(p.cssNumber[a]?"":"px");if(d!=="px"&&i){i=p.css(f.elem,a,!0)||c||1;do e=j=j||".5",i=i/j,p.style(f.elem,a,i+d),j=f.cur()/h;while(j!==1&&j!==e)}f.unit=d,f.start=i,f.end=g[1]?i+(g[1]+1)*c:c}return f}]};p.Animation=p.extend(cW,{tweener:function(a,b){p.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");var c,d=0,e=a.length;for(;d<e;d++)c=a[d],cT[c]=cT[c]||[],cT[c].unshift(b)},prefilter:function(a,b){b?cS.unshift(a):cS.push(a)}}),p.Tween=cZ,cZ.prototype={constructor:cZ,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(p.cssNumber[c]?"":"px")},cur:function(){var a=cZ.propHooks[this.prop];return a&&a.get?a.get(this):cZ.propHooks._default.get(this)},run:function(a){var b,c=cZ.propHooks[this.prop];return this.options.duration?this.pos=b=p.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):cZ.propHooks._default.set(this),this}},cZ.prototype.init.prototype=cZ.prototype,cZ.propHooks={_default:{get:function(a){var b;return a.elem[a.prop]==null||!!a.elem.style&&a.elem.style[a.prop]!=null?(b=p.css(a.elem,a.prop,!1,""),!b||b==="auto"?0:b):a.elem[a.prop]},set:function(a){p.fx.step[a.prop]?p.fx.step[a.prop](a):a.elem.style&&(a.elem.style[p.cssProps[a.prop]]!=null||p.cssHooks[a.prop])?p.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},cZ.propHooks.scrollTop=cZ.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},p.each(["toggle","show","hide"],function(a,b){var c=p.fn[b];p.fn[b]=function(d,e,f){return d==null||typeof d=="boolean"||!a&&p.isFunction(d)&&p.isFunction(e)?c.apply(this,arguments):this.animate(c$(b,!0),d,e,f)}}),p.fn.extend({fadeTo:function(a,b,c,d){return this.filter(bZ).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=p.isEmptyObject(a),f=p.speed(b,c,d),g=function(){var b=cW(this,p.extend({},a),f);e&&b.stop(!0)};return e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,c,d){var e=function(a){var b=a.stop;delete a.stop,b(d)};return typeof a!="string"&&(d=c,c=a,a=b),c&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,c=a!=null&&a+"queueHooks",f=p.timers,g=p._data(this);if(c)g[c]&&g[c].stop&&e(g[c]);else for(c in g)g[c]&&g[c].stop&&cR.test(c)&&e(g[c]);for(c=f.length;c--;)f[c].elem===this&&(a==null||f[c].queue===a)&&(f[c].anim.stop(d),b=!1,f.splice(c,1));(b||!d)&&p.dequeue(this,a)})}}),p.each({slideDown:c$("show"),slideUp:c$("hide"),slideToggle:c$("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){p.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),p.speed=function(a,b,c){var d=a&&typeof a=="object"?p.extend({},a):{complete:c||!c&&b||p.isFunction(a)&&a,duration:a,easing:c&&b||b&&!p.isFunction(b)&&b};d.duration=p.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in p.fx.speeds?p.fx.speeds[d.duration]:p.fx.speeds._default;if(d.queue==null||d.queue===!0)d.queue="fx";return d.old=d.complete,d.complete=function(){p.isFunction(d.old)&&d.old.call(this),d.queue&&p.dequeue(this,d.queue)},d},p.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},p.timers=[],p.fx=cZ.prototype.init,p.fx.tick=function(){var a,b=p.timers,c=0;for(;c<b.length;c++)a=b[c],!a()&&b[c]===a&&b.splice(c--,1);b.length||p.fx.stop()},p.fx.timer=function(a){a()&&p.timers.push(a)&&!cO&&(cO=setInterval(p.fx.tick,p.fx.interval))},p.fx.interval=13,p.fx.stop=function(){clearInterval(cO),cO=null},p.fx.speeds={slow:600,fast:200,_default:400},p.fx.step={},p.expr&&p.expr.filters&&(p.expr.filters.animated=function(a){return p.grep(p.timers,function(b){return a===b.elem}).length});var c_=/^(?:body|html)$/i;p.fn.offset=function(a){if(arguments.length)return a===b?this:this.each(function(b){p.offset.setOffset(this,a,b)});var c,d,e,f,g,h,i,j,k,l,m=this[0],n=m&&m.ownerDocument;if(!n)return;return(e=n.body)===m?p.offset.bodyOffset(m):(d=n.documentElement,p.contains(d,m)?(c=m.getBoundingClientRect(),f=da(n),g=d.clientTop||e.clientTop||0,h=d.clientLeft||e.clientLeft||0,i=f.pageYOffset||d.scrollTop,j=f.pageXOffset||d.scrollLeft,k=c.top+i-g,l=c.left+j-h,{top:k,left:l}):{top:0,left:0})},p.offset={bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;return p.support.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(p.css(a,"marginTop"))||0,c+=parseFloat(p.css(a,"marginLeft"))||0),{top:b,left:c}},setOffset:function(a,b,c){var d=p.css(a,"position");d==="static"&&(a.style.position="relative");var e=p(a),f=e.offset(),g=p.css(a,"top"),h=p.css(a,"left"),i=(d==="absolute"||d==="fixed")&&p.inArray("auto",[g,h])>-1,j={},k={},l,m;i?(k=e.position(),l=k.top,m=k.left):(l=parseFloat(g)||0,m=parseFloat(h)||0),p.isFunction(b)&&(b=b.call(a,c,f)),b.top!=null&&(j.top=b.top-f.top+l),b.left!=null&&(j.left=b.left-f.left+m),"using"in b?b.using.call(a,j):e.css(j)}},p.fn.extend({position:function(){if(!this[0])return;var a=this[0],b=this.offsetParent(),c=this.offset(),d=c_.test(b[0].nodeName)?{top:0,left:0}:b.offset();return c.top-=parseFloat(p.css(a,"marginTop"))||0,c.left-=parseFloat(p.css(a,"marginLeft"))||0,d.top+=parseFloat(p.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(p.css(b[0],"borderLeftWidth"))||0,{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||e.body;while(a&&!c_.test(a.nodeName)&&p.css(a,"position")==="static")a=a.offsetParent;return a||e.body})}}),p.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);p.fn[a]=function(e){return p.access(this,function(a,e,f){var g=da(a);if(f===b)return g?c in g?g[c]:g.document.documentElement[e]:a[e];g?g.scrollTo(d?p(g).scrollLeft():f,d?f:p(g).scrollTop()):a[e]=f},a,e,arguments.length,null)}}),p.each({Height:"height",Width:"width"},function(a,c){p.each({padding:"inner"+a,content:c,"":"outer"+a},function(d,e){p.fn[e]=function(e,f){var g=arguments.length&&(d||typeof e!="boolean"),h=d||(e===!0||f===!0?"margin":"border");return p.access(this,function(c,d,e){var f;return p.isWindow(c)?c.document.documentElement["client"+a]:c.nodeType===9?(f=c.documentElement,Math.max(c.body["scroll"+a],f["scroll"+a],c.body["offset"+a],f["offset"+a],f["client"+a])):e===b?p.css(c,d,e,h):p.style(c,d,e,h)},c,g?e:b,g,null)}})}),a.jQuery=a.$=p,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return p})})(window); | ||
0 | \ No newline at end of file | 3 | \ No newline at end of file |
1 | +++ a/js/jquery.waterfall.js | ||
@@ -0,0 +1,585 @@ | @@ -0,0 +1,585 @@ | ||
1 | +/* Simple min-height-masonry layout plugin. | ||
2 | +Like masonry column shift, but works. */ | ||
3 | +;(function($) { | ||
4 | + | ||
5 | + 'use strict'; | ||
6 | + | ||
7 | + var cssPrefix = detectCSSPrefix(); | ||
8 | + | ||
9 | + var Waterfall = function(el, opts) { | ||
10 | + this.$el = $(el); | ||
11 | + this.el = el[0]; | ||
12 | + this._create(opts); | ||
13 | + }; | ||
14 | + | ||
15 | + Waterfall.defaultClass = 'waterfall'; | ||
16 | + | ||
17 | + $.extend(Waterfall.prototype, { | ||
18 | + options: { | ||
19 | + colMinWidth: 30, //width of column, used to calculate number of columns possible to display | ||
20 | + defaultContainerWidth: window.clientWidth, | ||
21 | + autoresize: true, | ||
22 | + maxCols: 2, //used to restrict max number of columns | ||
23 | + updateDelay: 45, //how often to reflow layout on window resize | ||
24 | + useCalc: undefined, //set width through -prefix-calc value. Values: true, false, undefined. Autodetection. | ||
25 | + useTranslate3d: undefined, //place items through translate3d instead of top/left. Values: true, false, undefined. Autodetection | ||
26 | + animateShow: false, //whether to animate appending items (causes browser extra-reflows, slows down rendering) | ||
27 | + | ||
28 | + //callbacks | ||
29 | + reflow: null | ||
30 | + }, | ||
31 | + | ||
32 | + _create: function(opts) { | ||
33 | + var self = this, | ||
34 | + o = self.options = $.extend({}, self.options, opts); | ||
35 | + | ||
36 | + this.items = []; | ||
37 | + | ||
38 | + //init some vars | ||
39 | + self.lastHeights = []; | ||
40 | + self.lastItems = []; | ||
41 | + self.colPriority = []; //most left = most minimal column | ||
42 | + self.baseOrder = []; | ||
43 | + | ||
44 | + var cStyle = getComputedStyle(self.el); | ||
45 | + self.el.hidden = true; | ||
46 | + self.el.style.minHeight = cStyle.height; //prevent scrollbar width changing | ||
47 | + if (self.$el.css('position') === 'static') self.el.style.position = 'relative'; | ||
48 | + | ||
49 | + //detect placing mode needed | ||
50 | + if (o.useCalc === undefined) { | ||
51 | + //transform calc detect | ||
52 | + this.prefixedCalc = (function() { | ||
53 | + var dummy = document.createElement('div'), | ||
54 | + props = ['calc', '-webkit-calc', '-moz-calc', '-o-calc']; | ||
55 | + for (var i = 0; i < props.length; ++i) { | ||
56 | + var prop = props[i], propStr = prop + '(1px)'; | ||
57 | + dummy.style.cssText = cssPrefix + 'transform: translate3d(' + [propStr, propStr, propStr].join(',') +');'; | ||
58 | + //console.log(dummy.style[cssPrefix + 'transform']) | ||
59 | + if (dummy.style.length && dummy.style[cssPrefix + 'transform'].length > 14) { | ||
60 | + return prop; | ||
61 | + } | ||
62 | + } | ||
63 | + })(); | ||
64 | + o.useCalc = !!this.prefixedCalc; | ||
65 | + } | ||
66 | + //console.log(this.prefixedCalc); | ||
67 | + if (o.useTranslate3d === undefined) { | ||
68 | + this.prefixedTranslate3d = (function() { | ||
69 | + var dummy = document.createElement('div'); | ||
70 | + var props = ['translate3d', '-webkit-translate3d', '-moz-translate3d', '-o-translate3d']; | ||
71 | + for (var i = 0; i < props.length; ++i) { | ||
72 | + var prop = props[i]; | ||
73 | + dummy.style.cssText = cssPrefix + 'transform:' + prop + '(1px, 0, 0);'; | ||
74 | + if (dummy.style.length) | ||
75 | + return prop; | ||
76 | + } | ||
77 | + })(); | ||
78 | + o.useTranslate3d = !! this.prefixedTranslate3d; | ||
79 | + } | ||
80 | + //console.log(this.prefixedTranslate3d) | ||
81 | + | ||
82 | + //populate items | ||
83 | + var items; | ||
84 | + { | ||
85 | + items = self.$el.children(); | ||
86 | + } | ||
87 | + | ||
88 | + //remove text nodes | ||
89 | + for (var i = 0; i < self.el.childNodes.length;){ | ||
90 | + if (self.el.childNodes[i].nodeType !== 1){ | ||
91 | + self.el.removeChild(self.el.childNodes[i]); | ||
92 | + } else i++; | ||
93 | + } | ||
94 | + | ||
95 | + items.each(function(i, e) { | ||
96 | + //self.items[i].data('id', i); | ||
97 | + self._addItem(e); | ||
98 | + self._initItem(e); | ||
99 | + }); | ||
100 | + | ||
101 | + self.lastItem = self.items[self.items.length - 1]; | ||
102 | + | ||
103 | + self.el.removeAttribute("hidden"); | ||
104 | + | ||
105 | + self._update(); | ||
106 | + | ||
107 | + if (o.autoresize) { | ||
108 | + $(window) | ||
109 | + .resize(self.reflow.bind(self)); | ||
110 | + } | ||
111 | + | ||
112 | + this._observeMutations(); | ||
113 | + }, | ||
114 | + | ||
115 | + _addItem: function(item){ | ||
116 | + if (item.getAttribute("data-exclude")) return; | ||
117 | + this.items.push(item); | ||
118 | + }, | ||
119 | + | ||
120 | + _observeMutations: function() { | ||
121 | + //Make Node changing observer - the fastest way to add items | ||
122 | + if (window.MutationObserver) { | ||
123 | + //FF, chrome | ||
124 | + this.observer = new MutationObserver(function(mutations) { | ||
125 | + var mNum = mutations.length; | ||
126 | + for (var i = 0; i < mNum; i++) { | ||
127 | + //console.log(mutations[i]) | ||
128 | + if (mutations[i].removedNodes.length) { | ||
129 | + this._removedItems(Array.prototype.slice.apply(mutations[i].removedNodes)); | ||
130 | + } | ||
131 | + if (mutations[i].addedNodes.length) { | ||
132 | + var nodes = Array.prototype.slice.apply(mutations[i].addedNodes); | ||
133 | + if (mutations[i].nextSibling) { | ||
134 | + this._insertedItems(nodes); | ||
135 | + } else { | ||
136 | + this._appendedItems(nodes); | ||
137 | + } | ||
138 | + } | ||
139 | + } | ||
140 | + }.bind(this)); | ||
141 | + | ||
142 | + this.observer.observe(this.el, { | ||
143 | + attributes: false, | ||
144 | + childList: true, | ||
145 | + characterData: false | ||
146 | + }); | ||
147 | + } else { | ||
148 | + //opera, ie | ||
149 | + this.$el.on('DOMNodeInserted', function(e) { | ||
150 | + var evt = (e.originalEvent || e), | ||
151 | + target = evt.target; | ||
152 | + | ||
153 | + if (target.nodeType !== 1) return; | ||
154 | + if (target.parentNode !== this.el) return; //if insertee is below container | ||
155 | + //console.log("--------" + target.className + " next:" + target.nextSibling + " prev:" + target.previousSibling) | ||
156 | + | ||
157 | + if (target.previousSibling && target.previousSibling.span && (!target.nextSibling || !target.nextSibling.span)) { | ||
158 | + this._appendedItems([target]); //append specific case, times faster than _insertedItems | ||
159 | + } else { | ||
160 | + this._insertedItems([target]); | ||
161 | + } | ||
162 | + }.bind(this)).on('DOMNodeRemoved', function(e) { | ||
163 | + var el = (e.originalEvent || e).target; | ||
164 | + | ||
165 | + if (el.nodeType !== 1) return; | ||
166 | + if (el.parentNode !== this.el) return; //if insertee is below container | ||
167 | + | ||
168 | + this._removedItems([el]); | ||
169 | + }.bind(this)); | ||
170 | + } | ||
171 | + }, | ||
172 | + | ||
173 | + //==========================API | ||
174 | + //Ensures column number correct, reallocates items | ||
175 | + reflow: function() { | ||
176 | + var self = this, | ||
177 | + o = self.options; | ||
178 | + | ||
179 | + window.clearTimeout(self._updateInterval); | ||
180 | + self._updateInterval = window.setTimeout(self._update.bind(self), o.updateDelay); | ||
181 | + | ||
182 | + return self; | ||
183 | + }, | ||
184 | + | ||
185 | + //========================= Techs | ||
186 | + //called by mutation observer | ||
187 | + _appendedItems: function(items) { | ||
188 | + var l = items.length, | ||
189 | + i = 0; | ||
190 | + //console.log("append: " + this.items.length) | ||
191 | + for (; i < l; i++) { | ||
192 | + var el = items[i]; | ||
193 | + if (el.nodeType !== 1) continue; | ||
194 | + this._addItem(el); | ||
195 | + this._initItem(el); //TODO: optimize | ||
196 | + this._setItemWidth(el); | ||
197 | + } | ||
198 | + | ||
199 | + for (i = 0; i < l; i++) { | ||
200 | + this._placeItem(items[i]); | ||
201 | + } | ||
202 | + | ||
203 | + this.lastItem = this.items[this.items.length - 1]; | ||
204 | + | ||
205 | + this._maximizeHeight(); | ||
206 | + }, | ||
207 | + | ||
208 | + //if new items inserted somewhere inside the list | ||
209 | + _insertedItems: function(items) { | ||
210 | + //console.log("insert: " + this.items.length) | ||
211 | + //clear old items | ||
212 | + this.items.length = 0; | ||
213 | + | ||
214 | + //init new items | ||
215 | + var l = items.length; | ||
216 | + for (var i = 0; i < l; i++) { | ||
217 | + var el = items[i]; | ||
218 | + if (el.nodeType !== 1) continue; | ||
219 | + this._initItem(el); //TODO: optimize | ||
220 | + this._setItemWidth(el); | ||
221 | + } | ||
222 | + | ||
223 | + //reinit all items | ||
224 | + var children = this.el.childNodes, | ||
225 | + itemsL = children.length; | ||
226 | + | ||
227 | + for (var i = 0; i < itemsL; i++){ | ||
228 | + if (children[i].nodeType !== 1) continue; | ||
229 | + if (!children[i].span) continue; | ||
230 | + this._addItem(children[i]); | ||
231 | + } | ||
232 | + this.lastItem = this.items[this.items.length - 1]; | ||
233 | + | ||
234 | + this.reflow(); | ||
235 | + }, | ||
236 | + | ||
237 | + //called by mutation observer | ||
238 | + _removedItems: function(items) { | ||
239 | + var childItems = this.el.childNodes, | ||
240 | + cl = childItems.length; | ||
241 | + //console.log("before removed: " + this.items.length) | ||
242 | + | ||
243 | + //reinit items | ||
244 | + for (var i = 0; i < items.length; i++){ | ||
245 | + this.items.splice(this.items.indexOf(items[i]), 1); | ||
246 | + } | ||
247 | + | ||
248 | + //console.log("after remove:" + this.items.length) | ||
249 | + this.lastItem = this.items[this.items.length - 1]; | ||
250 | + | ||
251 | + this.reflow(); | ||
252 | + }, | ||
253 | + | ||
254 | + //simple trigger routine | ||
255 | + _trigger: function(cbName, arg) { | ||
256 | + try { | ||
257 | + if (this.options[cbName]) this.options[cbName].call(this.$el, arg); | ||
258 | + this.$el.trigger(cbName, [arg]); | ||
259 | + } catch (err) { | ||
260 | + throw (err); | ||
261 | + } | ||
262 | + }, | ||
263 | + | ||
264 | + //init item properties once item appended | ||
265 | + _initItem: function(el) { | ||
266 | + var o = this.options, | ||
267 | + span = el.getAttribute('data-span') || 1, | ||
268 | + floatVal = el.getAttribute('data-float') || el.getAttribute('data-column'); | ||
269 | + | ||
270 | + //set span | ||
271 | + span = (span === 'all' ? o.maxCols : Math.max(0, Math.min(~~(span), o.maxCols))); | ||
272 | + el.span = span; //quite bad, but no choice: dataset is sloow | ||
273 | + | ||
274 | + //save heavy style-attrs | ||
275 | + var style = getComputedStyle(el); | ||
276 | + el.mr = ~~(style.marginRight.slice(0, -2)); | ||
277 | + el.ml = ~~(style.marginLeft.slice(0, -2)); | ||
278 | + el.bt = ~~(style.borderTopWidth.slice(0, -2)); | ||
279 | + el.bb = ~~(style.borderBottomWidth.slice(0, -2)); | ||
280 | + el.mt = ~~(style.marginTop.slice(0, -2)); //ignored because of offsetTop instead of style.top | ||
281 | + el.mb = ~~(style.marginBottom.slice(0, -2)); | ||
282 | + | ||
283 | + //set style | ||
284 | + el.style.position = 'absolute'; | ||
285 | + //this._setItemWidth(el); //make it external action to not to init frominside create | ||
286 | + | ||
287 | + //parset float | ||
288 | + switch (floatVal) { | ||
289 | + case null: //no float | ||
290 | + el.floatCol = null; | ||
291 | + break; | ||
292 | + case 'right': | ||
293 | + case 'last': | ||
294 | + el.floatCol = -span; | ||
295 | + break; | ||
296 | + case 'left': | ||
297 | + case 'first': | ||
298 | + el.floatCol = 0; | ||
299 | + break; | ||
300 | + default: //int column | ||
301 | + el.floatCol = ~~(floatVal) - 1; | ||
302 | + break; | ||
303 | + } | ||
304 | + | ||
305 | + if (o.animateShow) { | ||
306 | + if (o.useTranslate3d) { | ||
307 | + //TODO: this below crashes chrome | ||
308 | + //el.style[cssPrefix+'translate'] = 'translate3d(0, ' + this.lastHeights[this.colPriority[0]] + 'px ,0)' | ||
309 | + } else { | ||
310 | + el.style.top = this.lastHeights[this.colPriority[this.colPriority.length - 1]] + 'px'; | ||
311 | + el.style.left = this.colWidth * this.colPriority[this.colPriority.length - 1] + 'px'; | ||
312 | + } | ||
313 | + el.removeAttribute('hidden'); | ||
314 | + } | ||
315 | + }, | ||
316 | + | ||
317 | + _initLayoutParams: function() { | ||
318 | + var self = this, | ||
319 | + o = self.options, | ||
320 | + cStyle = window.getComputedStyle(self.el), | ||
321 | + i = 0, | ||
322 | + prevCols = self.lastItems.length; | ||
323 | + | ||
324 | + self.pl = ~~(cStyle.paddingLeft.slice(0, -2)); | ||
325 | + self.pt = ~~(cStyle.paddingTop.slice(0, -2)); | ||
326 | + self.pr = ~~(cStyle.paddingRight.slice(0, -2)); | ||
327 | + self.pb = ~~(cStyle.paddingBottom.slice(0, -2)); | ||
328 | + | ||
329 | + self.lastHeights.length = 0; | ||
330 | + self.colPriority.length = 0; //most left = most minimal column | ||
331 | + self.baseOrder.length = 0; | ||
332 | + | ||
333 | + self.colWidth = self.el.clientWidth - self.pl - self.pr; | ||
334 | + | ||
335 | + self.lastItems.length = ~~(self.colWidth / o.colMinWidth) || 1; //needed length | ||
336 | + console.log(o.colMinWidth) | ||
337 | + | ||
338 | + var top = o.useTranslate3d ? 0 : self.pt; | ||
339 | + for (i = 0; i < self.lastItems.length; i++) { | ||
340 | + self.lastHeights.push(top); | ||
341 | + self.baseOrder.push(i); | ||
342 | + self.colPriority.push(i); | ||
343 | + } | ||
344 | + | ||
345 | + self.colWidth /= self.lastItems.length; | ||
346 | + | ||
347 | + //console.log(prevCols + '->' + self.lastItems.length); | ||
348 | + if (!o.useCalc || prevCols !== self.lastItems.length) { | ||
349 | + //set item widths carefully - if columns changed or px widths used | ||
350 | + for (i = self.items.length; i--;) { | ||
351 | + this._setItemWidth(self.items[i]); | ||
352 | + } | ||
353 | + } | ||
354 | + | ||
355 | + return self.lastItems.length; | ||
356 | + }, | ||
357 | + | ||
358 | + //full update of layout | ||
359 | + _updateInterval: 0, | ||
360 | + _update: function(from, to) { | ||
361 | + //window.start = Date.now() | ||
362 | + var self = this, | ||
363 | + i = 0, | ||
364 | + start = from || 0, | ||
365 | + end = to || self.items.length, | ||
366 | + colsNeeded = self._initLayoutParams(); | ||
367 | + | ||
368 | + //console.log('beforePlace:' + this.lastItems.length) | ||
369 | + for (i = start; i < end; i++) { | ||
370 | + self._placeItem(self.items[i]); | ||
371 | + } | ||
372 | + //console.log('afterPlace:' + this.lastItems.length) | ||
373 | + | ||
374 | + self._maximizeHeight(); | ||
375 | + self._trigger('reflow'); | ||
376 | + //console.log('time elapsed: ' + (Date.now() - window.start) + 'ms') | ||
377 | + }, | ||
378 | + | ||
379 | + //set item width based on span/colWidth | ||
380 | + _setItemWidth: function(el) { | ||
381 | + var span = el.span > this.lastItems.length ? this.lastItems.length : el.span, | ||
382 | + cols = this.lastItems.length, | ||
383 | + colWeight = span / cols; | ||
384 | + if (this.options.useCalc) { | ||
385 | + el.w = (100 * colWeight); | ||
386 | + el.style.width = this.prefixedCalc + '(' + (100 * colWeight) + '% - ' + (el.mr + el.ml + (this.pl + this.pr) * colWeight) + 'px)'; | ||
387 | + } else { | ||
388 | + el.w = ~~(this.colWidth * span - (el.ml + el.mr)); | ||
389 | + el.style.width = el.w + 'px'; | ||
390 | + } | ||
391 | + }, | ||
392 | + | ||
393 | + _placeItem: function(e) { | ||
394 | + var self = this, | ||
395 | + o = self.options; | ||
396 | + | ||
397 | + var lastHeights = self.lastHeights, | ||
398 | + lastItems = self.lastItems, | ||
399 | + colPriority = self.colPriority, | ||
400 | + minCol = 0, | ||
401 | + minH = 0, | ||
402 | + h = 0, | ||
403 | + c = 0, | ||
404 | + t = 0, | ||
405 | + end = 0, | ||
406 | + start = 0, | ||
407 | + span = e.span > lastItems.length ? lastItems.length : e.span, | ||
408 | + newH = 0, | ||
409 | + spanCols = [], //numbers of spanned columns | ||
410 | + spanHeights = [], //heights of spanned columns | ||
411 | + style, | ||
412 | + floatCol = e.floatCol; | ||
413 | + | ||
414 | + //console.log('------ item:' + e.innerHTML) | ||
415 | + //console.log('span:'+span) | ||
416 | + | ||
417 | + //Find pro→per column to place item | ||
418 | + //console.log(colPriority) | ||
419 | + if (floatCol) { | ||
420 | + floatCol = floatCol > 0 ? Math.min(floatCol, lastItems.length - span) : (lastItems.length + floatCol); | ||
421 | + } | ||
422 | + if (span === 1) { | ||
423 | + //Single-span element | ||
424 | + if (floatCol === null) { | ||
425 | + //no align | ||
426 | + minCol = colPriority.shift(); | ||
427 | + } else { | ||
428 | + //predefined column to align | ||
429 | + minCol = floatCol; | ||
430 | + for (c = 0; c < colPriority.length; c++) { | ||
431 | + if (colPriority[c] == minCol) { | ||
432 | + colPriority.splice(c, 1); | ||
433 | + break; | ||
434 | + } | ||
435 | + } | ||
436 | + } | ||
437 | + spanCols.push(minCol); | ||
438 | + minH = lastHeights[minCol]; | ||
439 | + } else if (span >= lastItems.length) { //Full-span element | ||
440 | + minCol = 0; | ||
441 | + minH = lastHeights[colPriority[colPriority.length - 1]]; | ||
442 | + spanCols = self.baseOrder.slice(); | ||
443 | + spanCols.length = lastHeights.length; | ||
444 | + colPriority.length = 0; | ||
445 | + } else { //Some-span element | ||
446 | + if (floatCol !== null) { | ||
447 | + minCol = floatCol; | ||
448 | + minH = Math.max.apply(Math, lastHeights.slice(minCol, minCol + span)); | ||
449 | + //console.log(lastHeights.slice(minCol, span)) | ||
450 | + //console.log('fCol:' + floatCol + ' minH: ' + minH) | ||
451 | + } else { | ||
452 | + //Make span heights alternatives | ||
453 | + spanHeights.length = 0; | ||
454 | + minH = Infinity; | ||
455 | + minCol = 0; | ||
456 | + for (c = 0; c <= lastItems.length - span; c++) { | ||
457 | + spanHeights[c] = Math.max.apply(Math, lastHeights.slice(c, c + span)); | ||
458 | + if (spanHeights[c] < minH) { | ||
459 | + minCol = c; | ||
460 | + minH = spanHeights[c]; | ||
461 | + } | ||
462 | + } | ||
463 | + } | ||
464 | + //Replace priorities | ||
465 | + for (c = 0; c < colPriority.length;) { | ||
466 | + if (colPriority[c] >= minCol && colPriority[c] < minCol + span) { | ||
467 | + spanCols.push(colPriority.splice(c, 1)[0]); | ||
468 | + } else c++; | ||
469 | + } | ||
470 | + } | ||
471 | + | ||
472 | + //console.log(spanCols) | ||
473 | + //console.log(lastHeights) | ||
474 | + //console.log('↑ spanCols to ↓') | ||
475 | + | ||
476 | + //TODO: correct to work ok with options | ||
477 | + e.top = ~~minH; //stupid save value for translate3d | ||
478 | + if (o.useTranslate3d) { | ||
479 | + var offset = (100 * minCol / span) + '% + ' + ~~((e.ml + e.mr) * minCol / span) + 'px'; | ||
480 | + if (o.useCalc) { | ||
481 | + e.style[cssPrefix + 'transform'] = this.prefixedTranslate3d + '( ' + this.prefixedCalc + '(' + offset + '), ' + e.top + 'px, 0)'; | ||
482 | + } else { | ||
483 | + //Safari won't set -webkit-calc in element.style | ||
484 | + e.style[cssPrefix + 'transform'] = this.prefixedTranslate3d + '(' + ~~(self.colWidth * minCol) + 'px, ' + e.top + 'px, 0)'; | ||
485 | + } | ||
486 | + } else { | ||
487 | + e.style.top = e.top + 'px'; | ||
488 | + e.style.left = self.colWidth * minCol + self.pl + 'px'; | ||
489 | + } | ||
490 | + //console.log(e.style[cssPrefix + 'transform']) | ||
491 | + | ||
492 | + //if element was added first time and is out of flow - show it | ||
493 | + //e.style.opacity = 1; | ||
494 | + e.removeAttribute('hidden'); | ||
495 | + | ||
496 | + newH = self._getBottom(e); //this is the most difficult operation (e.clientHeight) | ||
497 | + for (t = 0; t < spanCols.length; t++) { | ||
498 | + lastItems[spanCols[t]] = e; | ||
499 | + self.lastHeights[spanCols[t]] = newH; | ||
500 | + } | ||
501 | + | ||
502 | + //console.log(lastItems) | ||
503 | + //console.log('↑ self.lastHeights to ↓') | ||
504 | + //console.log(self.lastHeights) | ||
505 | + //console.log('minCol:'+minCol+' minH:'+minH+' newH:'+newH) | ||
506 | + //console.log(colPriority) | ||
507 | + //console.log('↑ colPriorities to ↓') | ||
508 | + | ||
509 | + //Update colPriority | ||
510 | + for (c = colPriority.length; c--;) { | ||
511 | + h = self.lastHeights[colPriority[c]]; | ||
512 | + if (newH >= h) { | ||
513 | + Array.prototype.splice.apply(colPriority, [c + 1, 0].concat(spanCols)); | ||
514 | + break; | ||
515 | + } | ||
516 | + } | ||
517 | + if (colPriority.length < lastHeights.length) { | ||
518 | + Array.prototype.unshift.apply(colPriority, spanCols); | ||
519 | + //self.colPriority = spanCols.concat(colPriority) | ||
520 | + } | ||
521 | + }, | ||
522 | + | ||
523 | + _getBottom: function(e) { | ||
524 | + if (!e) return 0; //this.pt; | ||
525 | + //TODO: memrize height, look for height change to avoid reflow | ||
526 | + return e.top + e.clientHeight + e.bt + e.bb + e.mb + e.mt; | ||
527 | + }, | ||
528 | + | ||
529 | + _maximizeHeight: function() { | ||
530 | + var top = this.options.useTranslate3d ? this.pt : 0; | ||
531 | + this.el.style.minHeight = this.lastHeights[this.colPriority[this.colPriority.length - 1]] + this.pb + top + 'px'; | ||
532 | + } | ||
533 | + | ||
534 | + }); | ||
535 | + | ||
536 | + | ||
537 | + $.fn.waterfall = function(arg, arg2) { | ||
538 | + if (typeof arg == 'string') { //Call API method | ||
539 | + return $(this).each(function(i, el) { | ||
540 | + $(el).data('waterfall')[arg](arg2); | ||
541 | + }); | ||
542 | + } else { | ||
543 | + if (!this.length) { | ||
544 | + throw new Error("No element passed to waterfall") | ||
545 | + return false; | ||
546 | + }; | ||
547 | + var $this = $(this), | ||
548 | + opts = $.extend({}, {"colMinWidth": ~~$this[0].getAttribute("data-col-min-width") ||~~$this[0].getAttribute("data-width")}, arg); | ||
549 | + if (opts.width && !opts.colMinWidth) { | ||
550 | + opts.colMinWidth = opts.width; | ||
551 | + } | ||
552 | + var wf = new Waterfall($this, opts); | ||
553 | + if (!$this.data('waterfall')) $this.data('waterfall', wf); | ||
554 | + return wf; | ||
555 | + } | ||
556 | + }; | ||
557 | + | ||
558 | + //prefix/features detector | ||
559 | + | ||
560 | + function detectCSSPrefix(property) { | ||
561 | + if (!property) property = 'transform'; | ||
562 | + | ||
563 | + var style = document.defaultView.getComputedStyle(document.body, ''); | ||
564 | + if (style[property]) return ''; | ||
565 | + if (style['-webkit-' + property]) return '-webkit-'; | ||
566 | + if (style['-moz-' + property]) return '-moz-'; | ||
567 | + if (style['-o-' + property]) return '-o-'; | ||
568 | + if (style['-khtml-' + property]) return '-khtml-'; | ||
569 | + | ||
570 | + return false; | ||
571 | + } | ||
572 | + | ||
573 | + //autostart | ||
574 | + $(function() { | ||
575 | + var defClass = window.waterfall && window.waterfall.defaultClass || Waterfall.defaultClass; | ||
576 | + | ||
577 | + $('.' + defClass) | ||
578 | + .each(function(i, e) { | ||
579 | + var $e = $(e), | ||
580 | + opts = window.waterfall || {}; | ||
581 | + $e.waterfall(opts); | ||
582 | + }); | ||
583 | + }); | ||
584 | + | ||
585 | +})(window.jQuery || window.Zepto); |
1 | +++ a/js/jquery.waterfall.js~ | ||
@@ -0,0 +1,585 @@ | @@ -0,0 +1,585 @@ | ||
1 | +/* Simple min-height-masonry layout plugin. | ||
2 | +Like masonry column shift, but works. */ | ||
3 | +;(function($) { | ||
4 | + | ||
5 | + 'use strict'; | ||
6 | + | ||
7 | + var cssPrefix = detectCSSPrefix(); | ||
8 | + | ||
9 | + var Waterfall = function(el, opts) { | ||
10 | + this.$el = $(el); | ||
11 | + this.el = el[0]; | ||
12 | + this._create(opts); | ||
13 | + }; | ||
14 | + | ||
15 | + Waterfall.defaultClass = 'waterfall'; | ||
16 | + | ||
17 | + $.extend(Waterfall.prototype, { | ||
18 | + options: { | ||
19 | + colMinWidth: 300, //width of column, used to calculate number of columns possible to display | ||
20 | + defaultContainerWidth: window.clientWidth, | ||
21 | + autoresize: true, | ||
22 | + maxCols: 16, //used to restrict max number of columns | ||
23 | + updateDelay: 45, //how often to reflow layout on window resize | ||
24 | + useCalc: undefined, //set width through -prefix-calc value. Values: true, false, undefined. Autodetection. | ||
25 | + useTranslate3d: undefined, //place items through translate3d instead of top/left. Values: true, false, undefined. Autodetection | ||
26 | + animateShow: false, //whether to animate appending items (causes browser extra-reflows, slows down rendering) | ||
27 | + | ||
28 | + //callbacks | ||
29 | + reflow: null | ||
30 | + }, | ||
31 | + | ||
32 | + _create: function(opts) { | ||
33 | + var self = this, | ||
34 | + o = self.options = $.extend({}, self.options, opts); | ||
35 | + | ||
36 | + this.items = []; | ||
37 | + | ||
38 | + //init some vars | ||
39 | + self.lastHeights = []; | ||
40 | + self.lastItems = []; | ||
41 | + self.colPriority = []; //most left = most minimal column | ||
42 | + self.baseOrder = []; | ||
43 | + | ||
44 | + var cStyle = getComputedStyle(self.el); | ||
45 | + self.el.hidden = true; | ||
46 | + self.el.style.minHeight = cStyle.height; //prevent scrollbar width changing | ||
47 | + if (self.$el.css('position') === 'static') self.el.style.position = 'relative'; | ||
48 | + | ||
49 | + //detect placing mode needed | ||
50 | + if (o.useCalc === undefined) { | ||
51 | + //transform calc detect | ||
52 | + this.prefixedCalc = (function() { | ||
53 | + var dummy = document.createElement('div'), | ||
54 | + props = ['calc', '-webkit-calc', '-moz-calc', '-o-calc']; | ||
55 | + for (var i = 0; i < props.length; ++i) { | ||
56 | + var prop = props[i], propStr = prop + '(1px)'; | ||
57 | + dummy.style.cssText = cssPrefix + 'transform: translate3d(' + [propStr, propStr, propStr].join(',') +');'; | ||
58 | + //console.log(dummy.style[cssPrefix + 'transform']) | ||
59 | + if (dummy.style.length && dummy.style[cssPrefix + 'transform'].length > 14) { | ||
60 | + return prop; | ||
61 | + } | ||
62 | + } | ||
63 | + })(); | ||
64 | + o.useCalc = !!this.prefixedCalc; | ||
65 | + } | ||
66 | + //console.log(this.prefixedCalc); | ||
67 | + if (o.useTranslate3d === undefined) { | ||
68 | + this.prefixedTranslate3d = (function() { | ||
69 | + var dummy = document.createElement('div'); | ||
70 | + var props = ['translate3d', '-webkit-translate3d', '-moz-translate3d', '-o-translate3d']; | ||
71 | + for (var i = 0; i < props.length; ++i) { | ||
72 | + var prop = props[i]; | ||
73 | + dummy.style.cssText = cssPrefix + 'transform:' + prop + '(1px, 0, 0);'; | ||
74 | + if (dummy.style.length) | ||
75 | + return prop; | ||
76 | + } | ||
77 | + })(); | ||
78 | + o.useTranslate3d = !! this.prefixedTranslate3d; | ||
79 | + } | ||
80 | + //console.log(this.prefixedTranslate3d) | ||
81 | + | ||
82 | + //populate items | ||
83 | + var items; | ||
84 | + { | ||
85 | + items = self.$el.children(); | ||
86 | + } | ||
87 | + | ||
88 | + //remove text nodes | ||
89 | + for (var i = 0; i < self.el.childNodes.length;){ | ||
90 | + if (self.el.childNodes[i].nodeType !== 1){ | ||
91 | + self.el.removeChild(self.el.childNodes[i]); | ||
92 | + } else i++; | ||
93 | + } | ||
94 | + | ||
95 | + items.each(function(i, e) { | ||
96 | + //self.items[i].data('id', i); | ||
97 | + self._addItem(e); | ||
98 | + self._initItem(e); | ||
99 | + }); | ||
100 | + | ||
101 | + self.lastItem = self.items[self.items.length - 1]; | ||
102 | + | ||
103 | + self.el.removeAttribute("hidden"); | ||
104 | + | ||
105 | + self._update(); | ||
106 | + | ||
107 | + if (o.autoresize) { | ||
108 | + $(window) | ||
109 | + .resize(self.reflow.bind(self)); | ||
110 | + } | ||
111 | + | ||
112 | + this._observeMutations(); | ||
113 | + }, | ||
114 | + | ||
115 | + _addItem: function(item){ | ||
116 | + if (item.getAttribute("data-exclude")) return; | ||
117 | + this.items.push(item); | ||
118 | + }, | ||
119 | + | ||
120 | + _observeMutations: function() { | ||
121 | + //Make Node changing observer - the fastest way to add items | ||
122 | + if (window.MutationObserver) { | ||
123 | + //FF, chrome | ||
124 | + this.observer = new MutationObserver(function(mutations) { | ||
125 | + var mNum = mutations.length; | ||
126 | + for (var i = 0; i < mNum; i++) { | ||
127 | + //console.log(mutations[i]) | ||
128 | + if (mutations[i].removedNodes.length) { | ||
129 | + this._removedItems(Array.prototype.slice.apply(mutations[i].removedNodes)); | ||
130 | + } | ||
131 | + if (mutations[i].addedNodes.length) { | ||
132 | + var nodes = Array.prototype.slice.apply(mutations[i].addedNodes); | ||
133 | + if (mutations[i].nextSibling) { | ||
134 | + this._insertedItems(nodes); | ||
135 | + } else { | ||
136 | + this._appendedItems(nodes); | ||
137 | + } | ||
138 | + } | ||
139 | + } | ||
140 | + }.bind(this)); | ||
141 | + | ||
142 | + this.observer.observe(this.el, { | ||
143 | + attributes: false, | ||
144 | + childList: true, | ||
145 | + characterData: false | ||
146 | + }); | ||
147 | + } else { | ||
148 | + //opera, ie | ||
149 | + this.$el.on('DOMNodeInserted', function(e) { | ||
150 | + var evt = (e.originalEvent || e), | ||
151 | + target = evt.target; | ||
152 | + | ||
153 | + if (target.nodeType !== 1) return; | ||
154 | + if (target.parentNode !== this.el) return; //if insertee is below container | ||
155 | + //console.log("--------" + target.className + " next:" + target.nextSibling + " prev:" + target.previousSibling) | ||
156 | + | ||
157 | + if (target.previousSibling && target.previousSibling.span && (!target.nextSibling || !target.nextSibling.span)) { | ||
158 | + this._appendedItems([target]); //append specific case, times faster than _insertedItems | ||
159 | + } else { | ||
160 | + this._insertedItems([target]); | ||
161 | + } | ||
162 | + }.bind(this)).on('DOMNodeRemoved', function(e) { | ||
163 | + var el = (e.originalEvent || e).target; | ||
164 | + | ||
165 | + if (el.nodeType !== 1) return; | ||
166 | + if (el.parentNode !== this.el) return; //if insertee is below container | ||
167 | + | ||
168 | + this._removedItems([el]); | ||
169 | + }.bind(this)); | ||
170 | + } | ||
171 | + }, | ||
172 | + | ||
173 | + //==========================API | ||
174 | + //Ensures column number correct, reallocates items | ||
175 | + reflow: function() { | ||
176 | + var self = this, | ||
177 | + o = self.options; | ||
178 | + | ||
179 | + window.clearTimeout(self._updateInterval); | ||
180 | + self._updateInterval = window.setTimeout(self._update.bind(self), o.updateDelay); | ||
181 | + | ||
182 | + return self; | ||
183 | + }, | ||
184 | + | ||
185 | + //========================= Techs | ||
186 | + //called by mutation observer | ||
187 | + _appendedItems: function(items) { | ||
188 | + var l = items.length, | ||
189 | + i = 0; | ||
190 | + //console.log("append: " + this.items.length) | ||
191 | + for (; i < l; i++) { | ||
192 | + var el = items[i]; | ||
193 | + if (el.nodeType !== 1) continue; | ||
194 | + this._addItem(el); | ||
195 | + this._initItem(el); //TODO: optimize | ||
196 | + this._setItemWidth(el); | ||
197 | + } | ||
198 | + | ||
199 | + for (i = 0; i < l; i++) { | ||
200 | + this._placeItem(items[i]); | ||
201 | + } | ||
202 | + | ||
203 | + this.lastItem = this.items[this.items.length - 1]; | ||
204 | + | ||
205 | + this._maximizeHeight(); | ||
206 | + }, | ||
207 | + | ||
208 | + //if new items inserted somewhere inside the list | ||
209 | + _insertedItems: function(items) { | ||
210 | + //console.log("insert: " + this.items.length) | ||
211 | + //clear old items | ||
212 | + this.items.length = 0; | ||
213 | + | ||
214 | + //init new items | ||
215 | + var l = items.length; | ||
216 | + for (var i = 0; i < l; i++) { | ||
217 | + var el = items[i]; | ||
218 | + if (el.nodeType !== 1) continue; | ||
219 | + this._initItem(el); //TODO: optimize | ||
220 | + this._setItemWidth(el); | ||
221 | + } | ||
222 | + | ||
223 | + //reinit all items | ||
224 | + var children = this.el.childNodes, | ||
225 | + itemsL = children.length; | ||
226 | + | ||
227 | + for (var i = 0; i < itemsL; i++){ | ||
228 | + if (children[i].nodeType !== 1) continue; | ||
229 | + if (!children[i].span) continue; | ||
230 | + this._addItem(children[i]); | ||
231 | + } | ||
232 | + this.lastItem = this.items[this.items.length - 1]; | ||
233 | + | ||
234 | + this.reflow(); | ||
235 | + }, | ||
236 | + | ||
237 | + //called by mutation observer | ||
238 | + _removedItems: function(items) { | ||
239 | + var childItems = this.el.childNodes, | ||
240 | + cl = childItems.length; | ||
241 | + //console.log("before removed: " + this.items.length) | ||
242 | + | ||
243 | + //reinit items | ||
244 | + for (var i = 0; i < items.length; i++){ | ||
245 | + this.items.splice(this.items.indexOf(items[i]), 1); | ||
246 | + } | ||
247 | + | ||
248 | + //console.log("after remove:" + this.items.length) | ||
249 | + this.lastItem = this.items[this.items.length - 1]; | ||
250 | + | ||
251 | + this.reflow(); | ||
252 | + }, | ||
253 | + | ||
254 | + //simple trigger routine | ||
255 | + _trigger: function(cbName, arg) { | ||
256 | + try { | ||
257 | + if (this.options[cbName]) this.options[cbName].call(this.$el, arg); | ||
258 | + this.$el.trigger(cbName, [arg]); | ||
259 | + } catch (err) { | ||
260 | + throw (err); | ||
261 | + } | ||
262 | + }, | ||
263 | + | ||
264 | + //init item properties once item appended | ||
265 | + _initItem: function(el) { | ||
266 | + var o = this.options, | ||
267 | + span = el.getAttribute('data-span') || 1, | ||
268 | + floatVal = el.getAttribute('data-float') || el.getAttribute('data-column'); | ||
269 | + | ||
270 | + //set span | ||
271 | + span = (span === 'all' ? o.maxCols : Math.max(0, Math.min(~~(span), o.maxCols))); | ||
272 | + el.span = span; //quite bad, but no choice: dataset is sloow | ||
273 | + | ||
274 | + //save heavy style-attrs | ||
275 | + var style = getComputedStyle(el); | ||
276 | + el.mr = ~~(style.marginRight.slice(0, -2)); | ||
277 | + el.ml = ~~(style.marginLeft.slice(0, -2)); | ||
278 | + el.bt = ~~(style.borderTopWidth.slice(0, -2)); | ||
279 | + el.bb = ~~(style.borderBottomWidth.slice(0, -2)); | ||
280 | + el.mt = ~~(style.marginTop.slice(0, -2)); //ignored because of offsetTop instead of style.top | ||
281 | + el.mb = ~~(style.marginBottom.slice(0, -2)); | ||
282 | + | ||
283 | + //set style | ||
284 | + el.style.position = 'absolute'; | ||
285 | + //this._setItemWidth(el); //make it external action to not to init frominside create | ||
286 | + | ||
287 | + //parset float | ||
288 | + switch (floatVal) { | ||
289 | + case null: //no float | ||
290 | + el.floatCol = null; | ||
291 | + break; | ||
292 | + case 'right': | ||
293 | + case 'last': | ||
294 | + el.floatCol = -span; | ||
295 | + break; | ||
296 | + case 'left': | ||
297 | + case 'first': | ||
298 | + el.floatCol = 0; | ||
299 | + break; | ||
300 | + default: //int column | ||
301 | + el.floatCol = ~~(floatVal) - 1; | ||
302 | + break; | ||
303 | + } | ||
304 | + | ||
305 | + if (o.animateShow) { | ||
306 | + if (o.useTranslate3d) { | ||
307 | + //TODO: this below crashes chrome | ||
308 | + //el.style[cssPrefix+'translate'] = 'translate3d(0, ' + this.lastHeights[this.colPriority[0]] + 'px ,0)' | ||
309 | + } else { | ||
310 | + el.style.top = this.lastHeights[this.colPriority[this.colPriority.length - 1]] + 'px'; | ||
311 | + el.style.left = this.colWidth * this.colPriority[this.colPriority.length - 1] + 'px'; | ||
312 | + } | ||
313 | + el.removeAttribute('hidden'); | ||
314 | + } | ||
315 | + }, | ||
316 | + | ||
317 | + _initLayoutParams: function() { | ||
318 | + var self = this, | ||
319 | + o = self.options, | ||
320 | + cStyle = window.getComputedStyle(self.el), | ||
321 | + i = 0, | ||
322 | + prevCols = self.lastItems.length; | ||
323 | + | ||
324 | + self.pl = ~~(cStyle.paddingLeft.slice(0, -2)); | ||
325 | + self.pt = ~~(cStyle.paddingTop.slice(0, -2)); | ||
326 | + self.pr = ~~(cStyle.paddingRight.slice(0, -2)); | ||
327 | + self.pb = ~~(cStyle.paddingBottom.slice(0, -2)); | ||
328 | + | ||
329 | + self.lastHeights.length = 0; | ||
330 | + self.colPriority.length = 0; //most left = most minimal column | ||
331 | + self.baseOrder.length = 0; | ||
332 | + | ||
333 | + self.colWidth = self.el.clientWidth - self.pl - self.pr; | ||
334 | + | ||
335 | + self.lastItems.length = ~~(self.colWidth / o.colMinWidth) || 1; //needed length | ||
336 | + console.log(o.colMinWidth) | ||
337 | + | ||
338 | + var top = o.useTranslate3d ? 0 : self.pt; | ||
339 | + for (i = 0; i < self.lastItems.length; i++) { | ||
340 | + self.lastHeights.push(top); | ||
341 | + self.baseOrder.push(i); | ||
342 | + self.colPriority.push(i); | ||
343 | + } | ||
344 | + | ||
345 | + self.colWidth /= self.lastItems.length; | ||
346 | + | ||
347 | + //console.log(prevCols + '->' + self.lastItems.length); | ||
348 | + if (!o.useCalc || prevCols !== self.lastItems.length) { | ||
349 | + //set item widths carefully - if columns changed or px widths used | ||
350 | + for (i = self.items.length; i--;) { | ||
351 | + this._setItemWidth(self.items[i]); | ||
352 | + } | ||
353 | + } | ||
354 | + | ||
355 | + return self.lastItems.length; | ||
356 | + }, | ||
357 | + | ||
358 | + //full update of layout | ||
359 | + _updateInterval: 0, | ||
360 | + _update: function(from, to) { | ||
361 | + //window.start = Date.now() | ||
362 | + var self = this, | ||
363 | + i = 0, | ||
364 | + start = from || 0, | ||
365 | + end = to || self.items.length, | ||
366 | + colsNeeded = self._initLayoutParams(); | ||
367 | + | ||
368 | + //console.log('beforePlace:' + this.lastItems.length) | ||
369 | + for (i = start; i < end; i++) { | ||
370 | + self._placeItem(self.items[i]); | ||
371 | + } | ||
372 | + //console.log('afterPlace:' + this.lastItems.length) | ||
373 | + | ||
374 | + self._maximizeHeight(); | ||
375 | + self._trigger('reflow'); | ||
376 | + //console.log('time elapsed: ' + (Date.now() - window.start) + 'ms') | ||
377 | + }, | ||
378 | + | ||
379 | + //set item width based on span/colWidth | ||
380 | + _setItemWidth: function(el) { | ||
381 | + var span = el.span > this.lastItems.length ? this.lastItems.length : el.span, | ||
382 | + cols = this.lastItems.length, | ||
383 | + colWeight = span / cols; | ||
384 | + if (this.options.useCalc) { | ||
385 | + el.w = (100 * colWeight); | ||
386 | + el.style.width = this.prefixedCalc + '(' + (100 * colWeight) + '% - ' + (el.mr + el.ml + (this.pl + this.pr) * colWeight) + 'px)'; | ||
387 | + } else { | ||
388 | + el.w = ~~(this.colWidth * span - (el.ml + el.mr)); | ||
389 | + el.style.width = el.w + 'px'; | ||
390 | + } | ||
391 | + }, | ||
392 | + | ||
393 | + _placeItem: function(e) { | ||
394 | + var self = this, | ||
395 | + o = self.options; | ||
396 | + | ||
397 | + var lastHeights = self.lastHeights, | ||
398 | + lastItems = self.lastItems, | ||
399 | + colPriority = self.colPriority, | ||
400 | + minCol = 0, | ||
401 | + minH = 0, | ||
402 | + h = 0, | ||
403 | + c = 0, | ||
404 | + t = 0, | ||
405 | + end = 0, | ||
406 | + start = 0, | ||
407 | + span = e.span > lastItems.length ? lastItems.length : e.span, | ||
408 | + newH = 0, | ||
409 | + spanCols = [], //numbers of spanned columns | ||
410 | + spanHeights = [], //heights of spanned columns | ||
411 | + style, | ||
412 | + floatCol = e.floatCol; | ||
413 | + | ||
414 | + //console.log('------ item:' + e.innerHTML) | ||
415 | + //console.log('span:'+span) | ||
416 | + | ||
417 | + //Find pro→per column to place item | ||
418 | + //console.log(colPriority) | ||
419 | + if (floatCol) { | ||
420 | + floatCol = floatCol > 0 ? Math.min(floatCol, lastItems.length - span) : (lastItems.length + floatCol); | ||
421 | + } | ||
422 | + if (span === 1) { | ||
423 | + //Single-span element | ||
424 | + if (floatCol === null) { | ||
425 | + //no align | ||
426 | + minCol = colPriority.shift(); | ||
427 | + } else { | ||
428 | + //predefined column to align | ||
429 | + minCol = floatCol; | ||
430 | + for (c = 0; c < colPriority.length; c++) { | ||
431 | + if (colPriority[c] == minCol) { | ||
432 | + colPriority.splice(c, 1); | ||
433 | + break; | ||
434 | + } | ||
435 | + } | ||
436 | + } | ||
437 | + spanCols.push(minCol); | ||
438 | + minH = lastHeights[minCol]; | ||
439 | + } else if (span >= lastItems.length) { //Full-span element | ||
440 | + minCol = 0; | ||
441 | + minH = lastHeights[colPriority[colPriority.length - 1]]; | ||
442 | + spanCols = self.baseOrder.slice(); | ||
443 | + spanCols.length = lastHeights.length; | ||
444 | + colPriority.length = 0; | ||
445 | + } else { //Some-span element | ||
446 | + if (floatCol !== null) { | ||
447 | + minCol = floatCol; | ||
448 | + minH = Math.max.apply(Math, lastHeights.slice(minCol, minCol + span)); | ||
449 | + //console.log(lastHeights.slice(minCol, span)) | ||
450 | + //console.log('fCol:' + floatCol + ' minH: ' + minH) | ||
451 | + } else { | ||
452 | + //Make span heights alternatives | ||
453 | + spanHeights.length = 0; | ||
454 | + minH = Infinity; | ||
455 | + minCol = 0; | ||
456 | + for (c = 0; c <= lastItems.length - span; c++) { | ||
457 | + spanHeights[c] = Math.max.apply(Math, lastHeights.slice(c, c + span)); | ||
458 | + if (spanHeights[c] < minH) { | ||
459 | + minCol = c; | ||
460 | + minH = spanHeights[c]; | ||
461 | + } | ||
462 | + } | ||
463 | + } | ||
464 | + //Replace priorities | ||
465 | + for (c = 0; c < colPriority.length;) { | ||
466 | + if (colPriority[c] >= minCol && colPriority[c] < minCol + span) { | ||
467 | + spanCols.push(colPriority.splice(c, 1)[0]); | ||
468 | + } else c++; | ||
469 | + } | ||
470 | + } | ||
471 | + | ||
472 | + //console.log(spanCols) | ||
473 | + //console.log(lastHeights) | ||
474 | + //console.log('↑ spanCols to ↓') | ||
475 | + | ||
476 | + //TODO: correct to work ok with options | ||
477 | + e.top = ~~minH; //stupid save value for translate3d | ||
478 | + if (o.useTranslate3d) { | ||
479 | + var offset = (100 * minCol / span) + '% + ' + ~~((e.ml + e.mr) * minCol / span) + 'px'; | ||
480 | + if (o.useCalc) { | ||
481 | + e.style[cssPrefix + 'transform'] = this.prefixedTranslate3d + '( ' + this.prefixedCalc + '(' + offset + '), ' + e.top + 'px, 0)'; | ||
482 | + } else { | ||
483 | + //Safari won't set -webkit-calc in element.style | ||
484 | + e.style[cssPrefix + 'transform'] = this.prefixedTranslate3d + '(' + ~~(self.colWidth * minCol) + 'px, ' + e.top + 'px, 0)'; | ||
485 | + } | ||
486 | + } else { | ||
487 | + e.style.top = e.top + 'px'; | ||
488 | + e.style.left = self.colWidth * minCol + self.pl + 'px'; | ||
489 | + } | ||
490 | + //console.log(e.style[cssPrefix + 'transform']) | ||
491 | + | ||
492 | + //if element was added first time and is out of flow - show it | ||
493 | + //e.style.opacity = 1; | ||
494 | + e.removeAttribute('hidden'); | ||
495 | + | ||
496 | + newH = self._getBottom(e); //this is the most difficult operation (e.clientHeight) | ||
497 | + for (t = 0; t < spanCols.length; t++) { | ||
498 | + lastItems[spanCols[t]] = e; | ||
499 | + self.lastHeights[spanCols[t]] = newH; | ||
500 | + } | ||
501 | + | ||
502 | + //console.log(lastItems) | ||
503 | + //console.log('↑ self.lastHeights to ↓') | ||
504 | + //console.log(self.lastHeights) | ||
505 | + //console.log('minCol:'+minCol+' minH:'+minH+' newH:'+newH) | ||
506 | + //console.log(colPriority) | ||
507 | + //console.log('↑ colPriorities to ↓') | ||
508 | + | ||
509 | + //Update colPriority | ||
510 | + for (c = colPriority.length; c--;) { | ||
511 | + h = self.lastHeights[colPriority[c]]; | ||
512 | + if (newH >= h) { | ||
513 | + Array.prototype.splice.apply(colPriority, [c + 1, 0].concat(spanCols)); | ||
514 | + break; | ||
515 | + } | ||
516 | + } | ||
517 | + if (colPriority.length < lastHeights.length) { | ||
518 | + Array.prototype.unshift.apply(colPriority, spanCols); | ||
519 | + //self.colPriority = spanCols.concat(colPriority) | ||
520 | + } | ||
521 | + }, | ||
522 | + | ||
523 | + _getBottom: function(e) { | ||
524 | + if (!e) return 0; //this.pt; | ||
525 | + //TODO: memrize height, look for height change to avoid reflow | ||
526 | + return e.top + e.clientHeight + e.bt + e.bb + e.mb + e.mt; | ||
527 | + }, | ||
528 | + | ||
529 | + _maximizeHeight: function() { | ||
530 | + var top = this.options.useTranslate3d ? this.pt : 0; | ||
531 | + this.el.style.minHeight = this.lastHeights[this.colPriority[this.colPriority.length - 1]] + this.pb + top + 'px'; | ||
532 | + } | ||
533 | + | ||
534 | + }); | ||
535 | + | ||
536 | + | ||
537 | + $.fn.waterfall = function(arg, arg2) { | ||
538 | + if (typeof arg == 'string') { //Call API method | ||
539 | + return $(this).each(function(i, el) { | ||
540 | + $(el).data('waterfall')[arg](arg2); | ||
541 | + }); | ||
542 | + } else { | ||
543 | + if (!this.length) { | ||
544 | + throw new Error("No element passed to waterfall") | ||
545 | + return false; | ||
546 | + }; | ||
547 | + var $this = $(this), | ||
548 | + opts = $.extend({}, {"colMinWidth": ~~$this[0].getAttribute("data-col-min-width") ||~~$this[0].getAttribute("data-width")}, arg); | ||
549 | + if (opts.width && !opts.colMinWidth) { | ||
550 | + opts.colMinWidth = opts.width; | ||
551 | + } | ||
552 | + var wf = new Waterfall($this, opts); | ||
553 | + if (!$this.data('waterfall')) $this.data('waterfall', wf); | ||
554 | + return wf; | ||
555 | + } | ||
556 | + }; | ||
557 | + | ||
558 | + //prefix/features detector | ||
559 | + | ||
560 | + function detectCSSPrefix(property) { | ||
561 | + if (!property) property = 'transform'; | ||
562 | + | ||
563 | + var style = document.defaultView.getComputedStyle(document.body, ''); | ||
564 | + if (style[property]) return ''; | ||
565 | + if (style['-webkit-' + property]) return '-webkit-'; | ||
566 | + if (style['-moz-' + property]) return '-moz-'; | ||
567 | + if (style['-o-' + property]) return '-o-'; | ||
568 | + if (style['-khtml-' + property]) return '-khtml-'; | ||
569 | + | ||
570 | + return false; | ||
571 | + } | ||
572 | + | ||
573 | + //autostart | ||
574 | + $(function() { | ||
575 | + var defClass = window.waterfall && window.waterfall.defaultClass || Waterfall.defaultClass; | ||
576 | + | ||
577 | + $('.' + defClass) | ||
578 | + .each(function(i, e) { | ||
579 | + var $e = $(e), | ||
580 | + opts = window.waterfall || {}; | ||
581 | + $e.waterfall(opts); | ||
582 | + }); | ||
583 | + }); | ||
584 | + | ||
585 | +})(window.jQuery || window.Zepto); |
1 | +++ a/js/zepto.js | ||
@@ -0,0 +1,2 @@ | @@ -0,0 +1,2 @@ | ||
1 | +/* Zepto v1.0-1-ga3cab6c - polyfill zepto detect event ajax form fx - zeptojs.com/license */ | ||
2 | +(function(a){String.prototype.trim===a&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),Array.prototype.reduce===a&&(Array.prototype.reduce=function(b){if(this===void 0||this===null)throw new TypeError;var c=Object(this),d=c.length>>>0,e=0,f;if(typeof b!="function")throw new TypeError;if(d==0&&arguments.length==1)throw new TypeError;if(arguments.length>=2)f=arguments[1];else do{if(e in c){f=c[e++];break}if(++e>=d)throw new TypeError}while(!0);while(e<d)e in c&&(f=b.call(a,f,c[e],e,c)),e++;return f})})();var Zepto=function(){function E(a){return a==null?String(a):y[z.call(a)]||"object"}function F(a){return E(a)=="function"}function G(a){return a!=null&&a==a.window}function H(a){return a!=null&&a.nodeType==a.DOCUMENT_NODE}function I(a){return E(a)=="object"}function J(a){return I(a)&&!G(a)&&a.__proto__==Object.prototype}function K(a){return a instanceof Array}function L(a){return typeof a.length=="number"}function M(a){return g.call(a,function(a){return a!=null})}function N(a){return a.length>0?c.fn.concat.apply([],a):a}function O(a){return a.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function P(a){return a in j?j[a]:j[a]=new RegExp("(^|\\s)"+a+"(\\s|$)")}function Q(a,b){return typeof b=="number"&&!l[O(a)]?b+"px":b}function R(a){var b,c;return i[a]||(b=h.createElement(a),h.body.appendChild(b),c=k(b,"").getPropertyValue("display"),b.parentNode.removeChild(b),c=="none"&&(c="block"),i[a]=c),i[a]}function S(a){return"children"in a?f.call(a.children):c.map(a.childNodes,function(a){if(a.nodeType==1)return a})}function T(c,d,e){for(b in d)e&&(J(d[b])||K(d[b]))?(J(d[b])&&!J(c[b])&&(c[b]={}),K(d[b])&&!K(c[b])&&(c[b]=[]),T(c[b],d[b],e)):d[b]!==a&&(c[b]=d[b])}function U(b,d){return d===a?c(b):c(b).filter(d)}function V(a,b,c,d){return F(b)?b.call(a,c,d):b}function W(a,b,c){c==null?a.removeAttribute(b):a.setAttribute(b,c)}function X(b,c){var d=b.className,e=d&&d.baseVal!==a;if(c===a)return e?d.baseVal:d;e?d.baseVal=c:b.className=c}function Y(a){var b;try{return a?a=="true"||(a=="false"?!1:a=="null"?null:isNaN(b=Number(a))?/^[\[\{]/.test(a)?c.parseJSON(a):a:b):a}catch(d){return a}}function Z(a,b){b(a);for(var c in a.childNodes)Z(a.childNodes[c],b)}var a,b,c,d,e=[],f=e.slice,g=e.filter,h=window.document,i={},j={},k=h.defaultView.getComputedStyle,l={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},m=/^\s*<(\w+|!)[^>]*>/,n=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,o=/^(?:body|html)$/i,p=["val","css","html","text","data","width","height","offset"],q=["after","prepend","before","append"],r=h.createElement("table"),s=h.createElement("tr"),t={tr:h.createElement("tbody"),tbody:r,thead:r,tfoot:r,td:s,th:s,"*":h.createElement("div")},u=/complete|loaded|interactive/,v=/^\.([\w-]+)$/,w=/^#([\w-]*)$/,x=/^[\w-]+$/,y={},z=y.toString,A={},B,C,D=h.createElement("div");return A.matches=function(a,b){if(!a||a.nodeType!==1)return!1;var c=a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.matchesSelector;if(c)return c.call(a,b);var d,e=a.parentNode,f=!e;return f&&(e=D).appendChild(a),d=~A.qsa(e,b).indexOf(a),f&&D.removeChild(a),d},B=function(a){return a.replace(/-+(.)?/g,function(a,b){return b?b.toUpperCase():""})},C=function(a){return g.call(a,function(b,c){return a.indexOf(b)==c})},A.fragment=function(b,d,e){b.replace&&(b=b.replace(n,"<$1></$2>")),d===a&&(d=m.test(b)&&RegExp.$1),d in t||(d="*");var g,h,i=t[d];return i.innerHTML=""+b,h=c.each(f.call(i.childNodes),function(){i.removeChild(this)}),J(e)&&(g=c(h),c.each(e,function(a,b){p.indexOf(a)>-1?g[a](b):g.attr(a,b)})),h},A.Z=function(a,b){return a=a||[],a.__proto__=c.fn,a.selector=b||"",a},A.isZ=function(a){return a instanceof A.Z},A.init=function(b,d){if(!b)return A.Z();if(F(b))return c(h).ready(b);if(A.isZ(b))return b;var e;if(K(b))e=M(b);else if(I(b))e=[J(b)?c.extend({},b):b],b=null;else if(m.test(b))e=A.fragment(b.trim(),RegExp.$1,d),b=null;else{if(d!==a)return c(d).find(b);e=A.qsa(h,b)}return A.Z(e,b)},c=function(a,b){return A.init(a,b)},c.extend=function(a){var b,c=f.call(arguments,1);return typeof a=="boolean"&&(b=a,a=c.shift()),c.forEach(function(c){T(a,c,b)}),a},A.qsa=function(a,b){var c;return H(a)&&w.test(b)?(c=a.getElementById(RegExp.$1))?[c]:[]:a.nodeType!==1&&a.nodeType!==9?[]:f.call(v.test(b)?a.getElementsByClassName(RegExp.$1):x.test(b)?a.getElementsByTagName(b):a.querySelectorAll(b))},c.contains=function(a,b){return a!==b&&a.contains(b)},c.type=E,c.isFunction=F,c.isWindow=G,c.isArray=K,c.isPlainObject=J,c.isEmptyObject=function(a){var b;for(b in a)return!1;return!0},c.inArray=function(a,b,c){return e.indexOf.call(b,a,c)},c.camelCase=B,c.trim=function(a){return a.trim()},c.uuid=0,c.support={},c.expr={},c.map=function(a,b){var c,d=[],e,f;if(L(a))for(e=0;e<a.length;e++)c=b(a[e],e),c!=null&&d.push(c);else for(f in a)c=b(a[f],f),c!=null&&d.push(c);return N(d)},c.each=function(a,b){var c,d;if(L(a)){for(c=0;c<a.length;c++)if(b.call(a[c],c,a[c])===!1)return a}else for(d in a)if(b.call(a[d],d,a[d])===!1)return a;return a},c.grep=function(a,b){return g.call(a,b)},window.JSON&&(c.parseJSON=JSON.parse),c.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){y["[object "+b+"]"]=b.toLowerCase()}),c.fn={forEach:e.forEach,reduce:e.reduce,push:e.push,sort:e.sort,indexOf:e.indexOf,concat:e.concat,map:function(a){return c(c.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return c(f.apply(this,arguments))},ready:function(a){return u.test(h.readyState)?a(c):h.addEventListener("DOMContentLoaded",function(){a(c)},!1),this},get:function(b){return b===a?f.call(this):this[b>=0?b:b+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){this.parentNode!=null&&this.parentNode.removeChild(this)})},each:function(a){return e.every.call(this,function(b,c){return a.call(b,c,b)!==!1}),this},filter:function(a){return F(a)?this.not(this.not(a)):c(g.call(this,function(b){return A.matches(b,a)}))},add:function(a,b){return c(C(this.concat(c(a,b))))},is:function(a){return this.length>0&&A.matches(this[0],a)},not:function(b){var d=[];if(F(b)&&b.call!==a)this.each(function(a){b.call(this,a)||d.push(this)});else{var e=typeof b=="string"?this.filter(b):L(b)&&F(b.item)?f.call(b):c(b);this.forEach(function(a){e.indexOf(a)<0&&d.push(a)})}return c(d)},has:function(a){return this.filter(function(){return I(a)?c.contains(this,a):c(this).find(a).size()})},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){var a=this[0];return a&&!I(a)?a:c(a)},last:function(){var a=this[this.length-1];return a&&!I(a)?a:c(a)},find:function(a){var b,d=this;return typeof a=="object"?b=c(a).filter(function(){var a=this;return e.some.call(d,function(b){return c.contains(b,a)})}):this.length==1?b=c(A.qsa(this[0],a)):b=this.map(function(){return A.qsa(this,a)}),b},closest:function(a,b){var d=this[0],e=!1;typeof a=="object"&&(e=c(a));while(d&&!(e?e.indexOf(d)>=0:A.matches(d,a)))d=d!==b&&!H(d)&&d.parentNode;return c(d)},parents:function(a){var b=[],d=this;while(d.length>0)d=c.map(d,function(a){if((a=a.parentNode)&&!H(a)&&b.indexOf(a)<0)return b.push(a),a});return U(b,a)},parent:function(a){return U(C(this.pluck("parentNode")),a)},children:function(a){return U(this.map(function(){return S(this)}),a)},contents:function(){return this.map(function(){return f.call(this.childNodes)})},siblings:function(a){return U(this.map(function(a,b){return g.call(S(b.parentNode),function(a){return a!==b})}),a)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(a){return c.map(this,function(b){return b[a]})},show:function(){return this.each(function(){this.style.display=="none"&&(this.style.display=null),k(this,"").getPropertyValue("display")=="none"&&(this.style.display=R(this.nodeName))})},replaceWith:function(a){return this.before(a).remove()},wrap:function(a){var b=F(a);if(this[0]&&!b)var d=c(a).get(0),e=d.parentNode||this.length>1;return this.each(function(f){c(this).wrapAll(b?a.call(this,f):e?d.cloneNode(!0):d)})},wrapAll:function(a){if(this[0]){c(this[0]).before(a=c(a));var b;while((b=a.children()).length)a=b.first();c(a).append(this)}return this},wrapInner:function(a){var b=F(a);return this.each(function(d){var e=c(this),f=e.contents(),g=b?a.call(this,d):a;f.length?f.wrapAll(g):e.append(g)})},unwrap:function(){return this.parent().each(function(){c(this).replaceWith(c(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(b){return this.each(function(){var d=c(this);(b===a?d.css("display")=="none":b)?d.show():d.hide()})},prev:function(a){return c(this.pluck("previousElementSibling")).filter(a||"*")},next:function(a){return c(this.pluck("nextElementSibling")).filter(a||"*")},html:function(b){return b===a?this.length>0?this[0].innerHTML:null:this.each(function(a){var d=this.innerHTML;c(this).empty().append(V(this,b,a,d))})},text:function(b){return b===a?this.length>0?this[0].textContent:null:this.each(function(){this.textContent=b})},attr:function(c,d){var e;return typeof c=="string"&&d===a?this.length==0||this[0].nodeType!==1?a:c=="value"&&this[0].nodeName=="INPUT"?this.val():!(e=this[0].getAttribute(c))&&c in this[0]?this[0][c]:e:this.each(function(a){if(this.nodeType!==1)return;if(I(c))for(b in c)W(this,b,c[b]);else W(this,c,V(this,d,a,this.getAttribute(c)))})},removeAttr:function(a){return this.each(function(){this.nodeType===1&&W(this,a)})},prop:function(b,c){return c===a?this[0]&&this[0][b]:this.each(function(a){this[b]=V(this,c,a,this[b])})},data:function(b,c){var d=this.attr("data-"+O(b),c);return d!==null?Y(d):a},val:function(b){return b===a?this[0]&&(this[0].multiple?c(this[0]).find("option").filter(function(a){return this.selected}).pluck("value"):this[0].value):this.each(function(a){this.value=V(this,b,a,this.value)})},offset:function(a){if(a)return this.each(function(b){var d=c(this),e=V(this,a,b,d.offset()),f=d.offsetParent().offset(),g={top:e.top-f.top,left:e.left-f.left};d.css("position")=="static"&&(g.position="relative"),d.css(g)});if(this.length==0)return null;var b=this[0].getBoundingClientRect();return{left:b.left+window.pageXOffset,top:b.top+window.pageYOffset,width:Math.round(b.width),height:Math.round(b.height)}},css:function(a,c){if(arguments.length<2&&typeof a=="string")return this[0]&&(this[0].style[B(a)]||k(this[0],"").getPropertyValue(a));var d="";if(E(a)=="string")!c&&c!==0?this.each(function(){this.style.removeProperty(O(a))}):d=O(a)+":"+Q(a,c);else for(b in a)!a[b]&&a[b]!==0?this.each(function(){this.style.removeProperty(O(b))}):d+=O(b)+":"+Q(b,a[b])+";";return this.each(function(){this.style.cssText+=";"+d})},index:function(a){return a?this.indexOf(c(a)[0]):this.parent().children().indexOf(this[0])},hasClass:function(a){return e.some.call(this,function(a){return this.test(X(a))},P(a))},addClass:function(a){return this.each(function(b){d=[];var e=X(this),f=V(this,a,b,e);f.split(/\s+/g).forEach(function(a){c(this).hasClass(a)||d.push(a)},this),d.length&&X(this,e+(e?" ":"")+d.join(" "))})},removeClass:function(b){return this.each(function(c){if(b===a)return X(this,"");d=X(this),V(this,b,c,d).split(/\s+/g).forEach(function(a){d=d.replace(P(a)," ")}),X(this,d.trim())})},toggleClass:function(b,d){return this.each(function(e){var f=c(this),g=V(this,b,e,X(this));g.split(/\s+/g).forEach(function(b){(d===a?!f.hasClass(b):d)?f.addClass(b):f.removeClass(b)})})},scrollTop:function(){if(!this.length)return;return"scrollTop"in this[0]?this[0].scrollTop:this[0].scrollY},position:function(){if(!this.length)return;var a=this[0],b=this.offsetParent(),d=this.offset(),e=o.test(b[0].nodeName)?{top:0,left:0}:b.offset();return d.top-=parseFloat(c(a).css("margin-top"))||0,d.left-=parseFloat(c(a).css("margin-left"))||0,e.top+=parseFloat(c(b[0]).css("border-top-width"))||0,e.left+=parseFloat(c(b[0]).css("border-left-width"))||0,{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||h.body;while(a&&!o.test(a.nodeName)&&c(a).css("position")=="static")a=a.offsetParent;return a})}},c.fn.detach=c.fn.remove,["width","height"].forEach(function(b){c.fn[b]=function(d){var e,f=this[0],g=b.replace(/./,function(a){return a[0].toUpperCase()});return d===a?G(f)?f["inner"+g]:H(f)?f.documentElement["offset"+g]:(e=this.offset())&&e[b]:this.each(function(a){f=c(this),f.css(b,V(this,d,a,f[b]()))})}}),q.forEach(function(a,b){var d=b%2;c.fn[a]=function(){var a,e=c.map(arguments,function(b){return a=E(b),a=="object"||a=="array"||b==null?b:A.fragment(b)}),f,g=this.length>1;return e.length<1?this:this.each(function(a,h){f=d?h:h.parentNode,h=b==0?h.nextSibling:b==1?h.firstChild:b==2?h:null,e.forEach(function(a){if(g)a=a.cloneNode(!0);else if(!f)return c(a).remove();Z(f.insertBefore(a,h),function(a){a.nodeName!=null&&a.nodeName.toUpperCase()==="SCRIPT"&&(!a.type||a.type==="text/javascript")&&!a.src&&window.eval.call(window,a.innerHTML)})})})},c.fn[d?a+"To":"insert"+(b?"Before":"After")]=function(b){return c(b)[a](this),this}}),A.Z.prototype=c.fn,A.uniq=C,A.deserializeValue=Y,c.zepto=A,c}();window.Zepto=Zepto,"$"in window||(window.$=Zepto),function(a){function b(a){var b=this.os={},c=this.browser={},d=a.match(/WebKit\/([\d.]+)/),e=a.match(/(Android)\s+([\d.]+)/),f=a.match(/(iPad).*OS\s([\d_]+)/),g=!f&&a.match(/(iPhone\sOS)\s([\d_]+)/),h=a.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),i=h&&a.match(/TouchPad/),j=a.match(/Kindle\/([\d.]+)/),k=a.match(/Silk\/([\d._]+)/),l=a.match(/(BlackBerry).*Version\/([\d.]+)/),m=a.match(/(BB10).*Version\/([\d.]+)/),n=a.match(/(RIM\sTablet\sOS)\s([\d.]+)/),o=a.match(/PlayBook/),p=a.match(/Chrome\/([\d.]+)/)||a.match(/CriOS\/([\d.]+)/),q=a.match(/Firefox\/([\d.]+)/);if(c.webkit=!!d)c.version=d[1];e&&(b.android=!0,b.version=e[2]),g&&(b.ios=b.iphone=!0,b.version=g[2].replace(/_/g,".")),f&&(b.ios=b.ipad=!0,b.version=f[2].replace(/_/g,".")),h&&(b.webos=!0,b.version=h[2]),i&&(b.touchpad=!0),l&&(b.blackberry=!0,b.version=l[2]),m&&(b.bb10=!0,b.version=m[2]),n&&(b.rimtabletos=!0,b.version=n[2]),o&&(c.playbook=!0),j&&(b.kindle=!0,b.version=j[1]),k&&(c.silk=!0,c.version=k[1]),!k&&b.android&&a.match(/Kindle Fire/)&&(c.silk=!0),p&&(c.chrome=!0,c.version=p[1]),q&&(c.firefox=!0,c.version=q[1]),b.tablet=!!(f||o||e&&!a.match(/Mobile/)||q&&a.match(/Tablet/)),b.phone=!b.tablet&&!!(e||g||h||l||m||p&&a.match(/Android/)||p&&a.match(/CriOS\/([\d.]+)/)||q&&a.match(/Mobile/))}b.call(a,navigator.userAgent),a.__detect=b}(Zepto),function(a){function g(a){return a._zid||(a._zid=d++)}function h(a,b,d,e){b=i(b);if(b.ns)var f=j(b.ns);return(c[g(a)]||[]).filter(function(a){return a&&(!b.e||a.e==b.e)&&(!b.ns||f.test(a.ns))&&(!d||g(a.fn)===g(d))&&(!e||a.sel==e)})}function i(a){var b=(""+a).split(".");return{e:b[0],ns:b.slice(1).sort().join(" ")}}function j(a){return new RegExp("(?:^| )"+a.replace(" "," .* ?")+"(?: |$)")}function k(b,c,d){a.type(b)!="string"?a.each(b,d):b.split(/\s/).forEach(function(a){d(a,c)})}function l(a,b){return a.del&&(a.e=="focus"||a.e=="blur")||!!b}function m(a){return f[a]||a}function n(b,d,e,h,j,n){var o=g(b),p=c[o]||(c[o]=[]);k(d,e,function(c,d){var e=i(c);e.fn=d,e.sel=h,e.e in f&&(d=function(b){var c=b.relatedTarget;if(!c||c!==this&&!a.contains(this,c))return e.fn.apply(this,arguments)}),e.del=j&&j(d,c);var g=e.del||d;e.proxy=function(a){var c=g.apply(b,[a].concat(a.data));return c===!1&&(a.preventDefault(),a.stopPropagation()),c},e.i=p.length,p.push(e),b.addEventListener(m(e.e),e.proxy,l(e,n))})}function o(a,b,d,e,f){var i=g(a);k(b||"",d,function(b,d){h(a,b,d,e).forEach(function(b){delete c[i][b.i],a.removeEventListener(m(b.e),b.proxy,l(b,f))})})}function t(b){var c,d={originalEvent:b};for(c in b)!r.test(c)&&b[c]!==undefined&&(d[c]=b[c]);return a.each(s,function(a,c){d[a]=function(){return this[c]=p,b[a].apply(b,arguments)},d[c]=q}),d}function u(a){if(!("defaultPrevented"in a)){a.defaultPrevented=!1;var b=a.preventDefault;a.preventDefault=function(){this.defaultPrevented=!0,b.call(this)}}}var b=a.zepto.qsa,c={},d=1,e={},f={mouseenter:"mouseover",mouseleave:"mouseout"};e.click=e.mousedown=e.mouseup=e.mousemove="MouseEvents",a.event={add:n,remove:o},a.proxy=function(b,c){if(a.isFunction(b)){var d=function(){return b.apply(c,arguments)};return d._zid=g(b),d}if(typeof c=="string")return a.proxy(b[c],b);throw new TypeError("expected function")},a.fn.bind=function(a,b){return this.each(function(){n(this,a,b)})},a.fn.unbind=function(a,b){return this.each(function(){o(this,a,b)})},a.fn.one=function(a,b){return this.each(function(c,d){n(this,a,b,null,function(a,b){return function(){var c=a.apply(d,arguments);return o(d,b,a),c}})})};var p=function(){return!0},q=function(){return!1},r=/^([A-Z]|layer[XY]$)/,s={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};a.fn.delegate=function(b,c,d){return this.each(function(e,f){n(f,c,d,b,function(c){return function(d){var e,g=a(d.target).closest(b,f).get(0);if(g)return e=a.extend(t(d),{currentTarget:g,liveFired:f}),c.apply(g,[e].concat([].slice.call(arguments,1)))}})})},a.fn.undelegate=function(a,b,c){return this.each(function(){o(this,b,c,a)})},a.fn.live=function(b,c){return a(document.body).delegate(this.selector,b,c),this},a.fn.die=function(b,c){return a(document.body).undelegate(this.selector,b,c),this},a.fn.on=function(b,c,d){return!c||a.isFunction(c)?this.bind(b,c||d):this.delegate(c,b,d)},a.fn.off=function(b,c,d){return!c||a.isFunction(c)?this.unbind(b,c||d):this.undelegate(c,b,d)},a.fn.trigger=function(b,c){if(typeof b=="string"||a.isPlainObject(b))b=a.Event(b);return u(b),b.data=c,this.each(function(){"dispatchEvent"in this&&this.dispatchEvent(b)})},a.fn.triggerHandler=function(b,c){var d,e;return this.each(function(f,g){d=t(typeof b=="string"?a.Event(b):b),d.data=c,d.target=g,a.each(h(g,b.type||b),function(a,b){e=b.proxy(d);if(d.isImmediatePropagationStopped())return!1})}),e},"focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(b){a.fn[b]=function(a){return a?this.bind(b,a):this.trigger(b)}}),["focus","blur"].forEach(function(b){a.fn[b]=function(a){return a?this.bind(b,a):this.each(function(){try{this[b]()}catch(a){}}),this}}),a.Event=function(a,b){typeof a!="string"&&(b=a,a=b.type);var c=document.createEvent(e[a]||"Events"),d=!0;if(b)for(var f in b)f=="bubbles"?d=!!b[f]:c[f]=b[f];return c.initEvent(a,d,!0,null,null,null,null,null,null,null,null,null,null,null,null),c.isDefaultPrevented=function(){return this.defaultPrevented},c}}(Zepto),function($){function triggerAndReturn(a,b,c){var d=$.Event(b);return $(a).trigger(d,c),!d.defaultPrevented}function triggerGlobal(a,b,c,d){if(a.global)return triggerAndReturn(b||document,c,d)}function ajaxStart(a){a.global&&$.active++===0&&triggerGlobal(a,null,"ajaxStart")}function ajaxStop(a){a.global&&!--$.active&&triggerGlobal(a,null,"ajaxStop")}function ajaxBeforeSend(a,b){var c=b.context;if(b.beforeSend.call(c,a,b)===!1||triggerGlobal(b,c,"ajaxBeforeSend",[a,b])===!1)return!1;triggerGlobal(b,c,"ajaxSend",[a,b])}function ajaxSuccess(a,b,c){var d=c.context,e="success";c.success.call(d,a,e,b),triggerGlobal(c,d,"ajaxSuccess",[b,c,a]),ajaxComplete(e,b,c)}function ajaxError(a,b,c,d){var e=d.context;d.error.call(e,c,b,a),triggerGlobal(d,e,"ajaxError",[c,d,a]),ajaxComplete(b,c,d)}function ajaxComplete(a,b,c){var d=c.context;c.complete.call(d,b,a),triggerGlobal(c,d,"ajaxComplete",[b,c]),ajaxStop(c)}function empty(){}function mimeToDataType(a){return a&&(a=a.split(";",2)[0]),a&&(a==htmlType?"html":a==jsonType?"json":scriptTypeRE.test(a)?"script":xmlTypeRE.test(a)&&"xml")||"text"}function appendQuery(a,b){return(a+"&"+b).replace(/[&?]{1,2}/,"?")}function serializeData(a){a.processData&&a.data&&$.type(a.data)!="string"&&(a.data=$.param(a.data,a.traditional)),a.data&&(!a.type||a.type.toUpperCase()=="GET")&&(a.url=appendQuery(a.url,a.data))}function parseArguments(a,b,c,d){var e=!$.isFunction(b);return{url:a,data:e?b:undefined,success:e?$.isFunction(c)?c:undefined:b,dataType:e?d||c:c}}function serialize(a,b,c,d){var e,f=$.isArray(b);$.each(b,function(b,g){e=$.type(g),d&&(b=c?d:d+"["+(f?"":b)+"]"),!d&&f?a.add(g.name,g.value):e=="array"||!c&&e=="object"?serialize(a,g,c,b):a.add(b,g)})}var jsonpID=0,document=window.document,key,name,rscript=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,scriptTypeRE=/^(?:text|application)\/javascript/i,xmlTypeRE=/^(?:text|application)\/xml/i,jsonType="application/json",htmlType="text/html",blankRE=/^\s*$/;$.active=0,$.ajaxJSONP=function(a){if("type"in a){var b="jsonp"+ ++jsonpID,c=document.createElement("script"),d=function(){clearTimeout(g),$(c).remove(),delete window[b]},e=function(c){d();if(!c||c=="timeout")window[b]=empty;ajaxError(null,c||"abort",f,a)},f={abort:e},g;return ajaxBeforeSend(f,a)===!1?(e("abort"),!1):(window[b]=function(b){d(),ajaxSuccess(b,f,a)},c.onerror=function(){e("error")},c.src=a.url.replace(/=\?/,"="+b),$("head").append(c),a.timeout>0&&(g=setTimeout(function(){e("timeout")},a.timeout)),f)}return $.ajax(a)},$.ajaxSettings={type:"GET",beforeSend:empty,success:empty,error:empty,complete:empty,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript",json:jsonType,xml:"application/xml, text/xml",html:htmlType,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0},$.ajax=function(options){var settings=$.extend({},options||{});for(key in $.ajaxSettings)settings[key]===undefined&&(settings[key]=$.ajaxSettings[key]);ajaxStart(settings),settings.crossDomain||(settings.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(settings.url)&&RegExp.$2!=window.location.host),settings.url||(settings.url=window.location.toString()),serializeData(settings),settings.cache===!1&&(settings.url=appendQuery(settings.url,"_="+Date.now()));var dataType=settings.dataType,hasPlaceholder=/=\?/.test(settings.url);if(dataType=="jsonp"||hasPlaceholder)return hasPlaceholder||(settings.url=appendQuery(settings.url,"callback=?")),$.ajaxJSONP(settings);var mime=settings.accepts[dataType],baseHeaders={},protocol=/^([\w-]+:)\/\//.test(settings.url)?RegExp.$1:window.location.protocol,xhr=settings.xhr(),abortTimeout;settings.crossDomain||(baseHeaders["X-Requested-With"]="XMLHttpRequest"),mime&&(baseHeaders.Accept=mime,mime.indexOf(",")>-1&&(mime=mime.split(",",2)[0]),xhr.overrideMimeType&&xhr.overrideMimeType(mime));if(settings.contentType||settings.contentType!==!1&&settings.data&&settings.type.toUpperCase()!="GET")baseHeaders["Content-Type"]=settings.contentType||"application/x-www-form-urlencoded";settings.headers=$.extend(baseHeaders,settings.headers||{}),xhr.onreadystatechange=function(){if(xhr.readyState==4){xhr.onreadystatechange=empty,clearTimeout(abortTimeout);var result,error=!1;if(xhr.status>=200&&xhr.status<300||xhr.status==304||xhr.status==0&&protocol=="file:"){dataType=dataType||mimeToDataType(xhr.getResponseHeader("content-type")),result=xhr.responseText;try{dataType=="script"?(1,eval)(result):dataType=="xml"?result=xhr.responseXML:dataType=="json"&&(result=blankRE.test(result)?null:$.parseJSON(result))}catch(e){error=e}error?ajaxError(error,"parsererror",xhr,settings):ajaxSuccess(result,xhr,settings)}else ajaxError(null,xhr.status?"error":"abort",xhr,settings)}};var async="async"in settings?settings.async:!0;xhr.open(settings.type,settings.url,async);for(name in settings.headers)xhr.setRequestHeader(name,settings.headers[name]);return ajaxBeforeSend(xhr,settings)===!1?(xhr.abort(),!1):(settings.timeout>0&&(abortTimeout=setTimeout(function(){xhr.onreadystatechange=empty,xhr.abort(),ajaxError(null,"timeout",xhr,settings)},settings.timeout)),xhr.send(settings.data?settings.data:null),xhr)},$.get=function(a,b,c,d){return $.ajax(parseArguments.apply(null,arguments))},$.post=function(a,b,c,d){var e=parseArguments.apply(null,arguments);return e.type="POST",$.ajax(e)},$.getJSON=function(a,b,c){var d=parseArguments.apply(null,arguments);return d.dataType="json",$.ajax(d)},$.fn.load=function(a,b,c){if(!this.length)return this;var d=this,e=a.split(/\s/),f,g=parseArguments(a,b,c),h=g.success;return e.length>1&&(g.url=e[0],f=e[1]),g.success=function(a){d.html(f?$("<div>").html(a.replace(rscript,"")).find(f):a),h&&h.apply(d,arguments)},$.ajax(g),this};var escape=encodeURIComponent;$.param=function(a,b){var c=[];return c.add=function(a,b){this.push(escape(a)+"="+escape(b))},serialize(c,a,b),c.join("&").replace(/%20/g,"+")}}(Zepto),function(a){a.fn.serializeArray=function(){var b=[],c;return a(Array.prototype.slice.call(this.get(0).elements)).each(function(){c=a(this);var d=c.attr("type");this.nodeName.toLowerCase()!="fieldset"&&!this.disabled&&d!="submit"&&d!="reset"&&d!="button"&&(d!="radio"&&d!="checkbox"||this.checked)&&b.push({name:c.attr("name"),value:c.val()})}),b},a.fn.serialize=function(){var a=[];return this.serializeArray().forEach(function(b){a.push(encodeURIComponent(b.name)+"="+encodeURIComponent(b.value))}),a.join("&")},a.fn.submit=function(b){if(b)this.bind("submit",b);else if(this.length){var c=a.Event("submit");this.eq(0).trigger(c),c.defaultPrevented||this.get(0).submit()}return this}}(Zepto),function(a,b){function s(a){return t(a.replace(/([a-z])([A-Z])/,"$1-$2"))}function t(a){return a.toLowerCase()}function u(a){return d?d+a:t(a)}var c="",d,e,f,g={Webkit:"webkit",Moz:"",O:"o",ms:"MS"},h=window.document,i=h.createElement("div"),j=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i,k,l,m,n,o,p,q,r={};a.each(g,function(a,e){if(i.style[a+"TransitionProperty"]!==b)return c="-"+t(a)+"-",d=e,!1}),k=c+"transform",r[l=c+"transition-property"]=r[m=c+"transition-duration"]=r[n=c+"transition-timing-function"]=r[o=c+"animation-name"]=r[p=c+"animation-duration"]=r[q=c+"animation-timing-function"]="",a.fx={off:d===b&&i.style.transitionProperty===b,speeds:{_default:400,fast:200,slow:600},cssPrefix:c,transitionEnd:u("TransitionEnd"),animationEnd:u("AnimationEnd")},a.fn.animate=function(b,c,d,e){return a.isPlainObject(c)&&(d=c.easing,e=c.complete,c=c.duration),c&&(c=(typeof c=="number"?c:a.fx.speeds[c]||a.fx.speeds._default)/1e3),this.anim(b,c,d,e)},a.fn.anim=function(c,d,e,f){var g,h={},i,t="",u=this,v,w=a.fx.transitionEnd;d===b&&(d=.4),a.fx.off&&(d=0);if(typeof c=="string")h[o]=c,h[p]=d+"s",h[q]=e||"linear",w=a.fx.animationEnd;else{i=[];for(g in c)j.test(g)?t+=g+"("+c[g]+") ":(h[g]=c[g],i.push(s(g)));t&&(h[k]=t,i.push(k)),d>0&&typeof c=="object"&&(h[l]=i.join(", "),h[m]=d+"s",h[n]=e||"linear")}return v=function(b){if(typeof b!="undefined"){if(b.target!==b.currentTarget)return;a(b.target).unbind(w,v)}a(this).css(r),f&&f.call(this)},d>0&&this.bind(w,v),this.size()&&this.get(0).clientLeft,this.css(h),d<=0&&setTimeout(function(){u.each(function(){v.call(this)})},0),this},i=null}(Zepto) | ||
0 | \ No newline at end of file | 3 | \ No newline at end of file |
1 | +++ a/message_list.html.erb | ||
@@ -0,0 +1,114 @@ | @@ -0,0 +1,114 @@ | ||
1 | +<div id="msg_list" class="task_list hide"> | ||
2 | + | ||
3 | + <ul class="task-list"> | ||
4 | + | ||
5 | + <div class="task_box" id="task-906"> | ||
6 | + | ||
7 | + <div class="task_icon"> | ||
8 | + <img src="/images/icons-app/community-minor.png" alt="Federalismo em debate"> | ||
9 | + </div> | ||
10 | + | ||
11 | + <div class="task_decisions"> | ||
12 | + <input class="task_accept_radio" id="decision-finish-906" name="tasks[906][decision]" task_id="906" type="radio" value="finish"> | ||
13 | + <label for="decision-finish-906">Responder</label> | ||
14 | + <input class="task_reject_radio" id="decision-cancel-906" name="tasks[906][decision]" task_id="906" type="radio" value="cancel"> | ||
15 | + <label for="decision-cancel-906">Apagar</label> | ||
16 | + <input checked="checked" class="task_skip_radio" id="decision-skip-906" name="tasks[906][decision]" task_id="906" type="radio" value="skip"> | ||
17 | + <label for="decision-skip-906">Pular</label> | ||
18 | + </div><!-- class="task_decisions" --> | ||
19 | + | ||
20 | + <strong class="task_title" style="margin-right: 175px;"> | ||
21 | + Nova Mensagem | ||
22 | + </strong> | ||
23 | + | ||
24 | + <div class="task_information"> | ||
25 | + <a href="http://hom.psocial.sg.gov.br/profile/gabrielbarbosa">Gabriel de Souza Barbosa</a> quer falar sobre <span class="task_target">Federalismo em debate</span> sem descrição. | ||
26 | + </div> | ||
27 | + | ||
28 | + <div id="on-reject-information-906" style="display: none"> | ||
29 | + <div class="formfieldline"> | ||
30 | + <label class="formlabel" for="tasks_906_task_reject_explanation">Explicação para a rejeição</label> | ||
31 | + <div class="formfield type-textarea"> | ||
32 | + <textarea cols="40" id="tasks_906_task_reject_explanation" name="tasks[906][task][reject_explanation]" rows="5"></textarea> | ||
33 | + </div> | ||
34 | + </div> | ||
35 | + </div> | ||
36 | + | ||
37 | + </div><!-- class="task_box" --> | ||
38 | + | ||
39 | +<div class="task_box" id="task-906"> | ||
40 | + | ||
41 | + <div class="task_icon"> | ||
42 | + <img src="/images/icons-app/community-minor.png" alt="Federalismo em debate"> | ||
43 | + </div> | ||
44 | + | ||
45 | + <div class="task_decisions"> | ||
46 | + <input class="task_accept_radio" id="decision-finish-906" name="tasks[906][decision]" task_id="906" type="radio" value="finish"> | ||
47 | + <label for="decision-finish-906">Responder</label> | ||
48 | + <input class="task_reject_radio" id="decision-cancel-906" name="tasks[906][decision]" task_id="906" type="radio" value="cancel"> | ||
49 | + <label for="decision-cancel-906">Apagar</label> | ||
50 | + <input checked="checked" class="task_skip_radio" id="decision-skip-906" name="tasks[906][decision]" task_id="906" type="radio" value="skip"> | ||
51 | + <label for="decision-skip-906">Pular</label> | ||
52 | + </div><!-- class="task_decisions" --> | ||
53 | + | ||
54 | + <strong class="task_title" style="margin-right: 175px;"> | ||
55 | + Mensagem da comunidade | ||
56 | + </strong> | ||
57 | + | ||
58 | + <div class="task_information"> | ||
59 | + <a href="http://hom.psocial.sg.gov.br/profile/gabrielbarbosa">Gabriel de Souza Barbosa</a> quer criar a comunidade <span class="task_target">Federalismo</span> sem descrição. | ||
60 | + </div> | ||
61 | + | ||
62 | + <div id="on-reject-information-906" style="display: none"> | ||
63 | + <div class="formfieldline"> | ||
64 | + <label class="formlabel" for="tasks_906_task_reject_explanation">Explicação para a rejeição</label> | ||
65 | + <div class="formfield type-textarea"> | ||
66 | + <textarea cols="40" id="tasks_906_task_reject_explanation" name="tasks[906][task][reject_explanation]" rows="5"></textarea> | ||
67 | + </div> | ||
68 | + </div> | ||
69 | + </div> | ||
70 | + | ||
71 | + </div><!-- class="task_box" --> | ||
72 | +<div class="task_box" id="task-906"> | ||
73 | + | ||
74 | + <div class="task_icon"> | ||
75 | + <img src="/images/icons-app/community-minor.png" alt="Federalismo em debate"> | ||
76 | + </div> | ||
77 | + | ||
78 | + <div class="task_decisions"> | ||
79 | + <input class="task_accept_radio" id="decision-finish-906" name="tasks[906][decision]" task_id="906" type="radio" value="finish"> | ||
80 | + <label for="decision-finish-906">Responder</label> | ||
81 | + <input class="task_reject_radio" id="decision-cancel-906" name="tasks[906][decision]" task_id="906" type="radio" value="cancel"> | ||
82 | + <label for="decision-cancel-906">Apagar</label> | ||
83 | + <input checked="checked" class="task_skip_radio" id="decision-skip-906" name="tasks[906][decision]" task_id="906" type="radio" value="skip"> | ||
84 | + <label for="decision-skip-906">Pular</label> | ||
85 | + </div><!-- class="task_decisions" --> | ||
86 | + | ||
87 | + <strong class="task_title" style="margin-right: 175px;"> | ||
88 | + Mensagem Nova | ||
89 | + </strong> | ||
90 | + | ||
91 | + <div class="task_information"> | ||
92 | + <a href="http://hom.psocial.sg.gov.br/profile/gabrielbarbosa">Gabriel de Souza Barbosa</a> falar com você sobre <span class="task_target">Debate</span> sem descrição. | ||
93 | + </div> | ||
94 | + | ||
95 | + <div id="on-reject-information-906" style="display: none"> | ||
96 | + <div class="formfieldline"> | ||
97 | + <label class="formlabel" for="tasks_906_task_reject_explanation">Explicação para a rejeição</label> | ||
98 | + <div class="formfield type-textarea"> | ||
99 | + <textarea cols="40" id="tasks_906_task_reject_explanation" name="tasks[906][task][reject_explanation]" rows="5"></textarea> | ||
100 | + </div> | ||
101 | + </div> | ||
102 | + </div> | ||
103 | + | ||
104 | + </div><!-- class="task_box" --> | ||
105 | + | ||
106 | +<div class="button-bar"> | ||
107 | + <input class="button with-text icon-save submit" name="commit" type="submit" value="Aplicar!"> | ||
108 | + <a href="#" class="button icon-text-plain with-text" title="Ver tarefas processadas"> <span>Ver Todas</span></a> | ||
109 | + <a href="#" id="close_msg" class="button icon-back with-text" title="Voltar ao painel de controle"> <span>Fechar</span></a> | ||
110 | + <br style="clear: left;"> | ||
111 | +</div> | ||
112 | + | ||
113 | + </ul> | ||
114 | +</div> |
1 | +++ a/navigation.html.erb | ||
@@ -0,0 +1,12 @@ | @@ -0,0 +1,12 @@ | ||
1 | +<!-- *************** Painel de controle da comunidade ************** --> | ||
2 | +<% if profile && user %> | ||
3 | + <li id="btn_settings">Configurações</li> | ||
4 | + <li id="btn_aparence">Aparência</li> | ||
5 | + <li id="btn_content">Conteúdo</li> | ||
6 | + <li id="btn_icon"><span> </span></li> | ||
7 | + <li id="btn_profile"><%= link_to(profile_image(profile, :icon) + content_tag(:span, profile.name), profile.public_profile_url) %></li> | ||
8 | + | ||
9 | + <%= theme_include 'content_menu' %> | ||
10 | + <%= theme_include 'appearance_menu' %> | ||
11 | + <%= theme_include 'settings_menu' %> | ||
12 | +<% end %> |
6 KB
1 | +++ a/settings_menu.html.erb | ||
@@ -0,0 +1,57 @@ | @@ -0,0 +1,57 @@ | ||
1 | +<div id="control_panel_bar" class="menu_settings controller-profile_editor"> | ||
2 | + | ||
3 | +<ul class="control-panel"> | ||
4 | + <li> | ||
5 | + <%= link_to(profile.control_panel_settings_button[:title], | ||
6 | + url_for(:controller => 'profile_editor', :action => 'edit'), | ||
7 | + :class => "control-panel-#{profile.control_panel_settings_button[:icon]}") %> | ||
8 | + </li> | ||
9 | + | ||
10 | + <li> | ||
11 | + <%= link_to(_('Location'), url_for(:controller => 'maps', :action => 'edit_location'), :class => 'control-panel-edit-location') %> | ||
12 | + </li> | ||
13 | + | ||
14 | + <%= content_tag(:li, link_to(_('Mail settings'), url_for(:controller => 'mailconf'), :class => 'control-panel-mail')) if profile.person? && MailConf.enabled? %> | ||
15 | + | ||
16 | + <li> | ||
17 | + <%= link_to(_('Tasks'), url_for(:controller => 'tasks', :action => 'index'), :class => 'control-panel-todo') %> | ||
18 | + </li> | ||
19 | + | ||
20 | + <%= content_tag(:li, link_to(_('Change Password'), url_for(:controller => 'account', :action => 'change_password'), :class => 'control-panel-change-password')) if profile.person? %> | ||
21 | + | ||
22 | + <%= content_tag(:li, link_to(_('Manage friends'), url_for(:controller => 'friends', :action => 'index'), :class => 'control-panel-friends')) if profile.person? %> | ||
23 | + | ||
24 | + <%= content_tag(:li, link_to(_('Manage Members'), url_for(:controller => 'profile_members'), :class => 'control-panel-members')) if profile.organization? && user.has_permission?(:manage_memberships, profile) %> | ||
25 | + | ||
26 | + <%= content_tag(:li, link_to(_('Manage Products/Services'), url_for(:controller => 'manage_products'), :class => 'control-panel-products')) if profile.enterprise? && environment.enabled?('products_for_enterprises') %> | ||
27 | + | ||
28 | + <% if !environment.enabled?('disable_asset_enterprises') %> | ||
29 | + <% if profile.is_validation_entity? %> | ||
30 | + <li><%= link_to(_('Enterprise Validation'), url_for(:controller => 'enterprise_validation'), :class => 'control-panel-validation') %></li> | ||
31 | + <% end %> | ||
32 | + <% if profile.person? %> | ||
33 | + <li><%= link_to(_('Favorite Enterprises'), url_for(:controller => 'favorite_enterprises'), :class => 'control-panel-favorites') %></li> | ||
34 | + <% end %> | ||
35 | + <% end %> | ||
36 | + | ||
37 | + <% if profile.enterprise? %> | ||
38 | + <% if profile.enabled? %> | ||
39 | + <li><%= link_to(_('Disable'), url_for(:action => 'disable'), :class => 'control-panel-disable') %></li> | ||
40 | + <% else %> | ||
41 | + <li><%= link_to(_('Enable'), url_for(:action => 'enable'), :class => 'control-panel-enable') %></li> | ||
42 | + <% end %> | ||
43 | + <% end %> | ||
44 | + | ||
45 | + <%= content_tag(:li, link_to(_('Manage my groups'), url_for(:controller => 'memberships'), :class => 'control-panel-groups')) if profile.person? %> | ||
46 | + | ||
47 | + <li> | ||
48 | + <%= link_to(_('Manage SPAM'), url_for(:controller => 'spam', :action => 'index'), :class => 'control-panel-manage-spam') %> | ||
49 | + </li> | ||
50 | + | ||
51 | + <% @plugins.dispatch(:control_panel_buttons).each do |button| %> | ||
52 | + <li><%= link_to(button[:title], button[:url], :class => "control-panel-#{button[:icon]}") %></li> | ||
53 | + <% end %> | ||
54 | + | ||
55 | +</ul> | ||
56 | + | ||
57 | +</div> |
1 | +++ a/style-25-09-2014.css | ||
@@ -0,0 +1,413 @@ | @@ -0,0 +1,413 @@ | ||
1 | +@import url(../base/style.css); | ||
2 | +/****************** ESTILO BASE ******************/ | ||
3 | +@import url(cabecalho.css); | ||
4 | +/****************** FIM cabecalho amarelo ******************/ | ||
5 | +@import url(style-core.css); | ||
6 | +@import url(user-menu.css); | ||
7 | + | ||
8 | +body, th, td, input { | ||
9 | +font-family: Arial, sans-serif; | ||
10 | +} | ||
11 | + | ||
12 | +#wrap-2 {background-color:#ebeff2;} | ||
13 | + | ||
14 | +#wrap-1 { | ||
15 | + min-width: 800px; | ||
16 | +} | ||
17 | + | ||
18 | +#site-title { | ||
19 | + position: relative; | ||
20 | + top: 0; | ||
21 | + width: auto; | ||
22 | + height: auto; | ||
23 | + display: none; | ||
24 | + visibility: hidden; | ||
25 | +} | ||
26 | + | ||
27 | +#site-title a { | ||
28 | + display: block; | ||
29 | + width: auto; | ||
30 | + height: auto; | ||
31 | + position: relative; | ||
32 | + top: 0; | ||
33 | + left: 0; | ||
34 | +} | ||
35 | + | ||
36 | +/*largura dos blocos lateral e principal*/ | ||
37 | + | ||
38 | +/*Largura dos blocos funciona somente para duas colunas*/ | ||
39 | +/*e somente com a barra lateral do lado direito*/ | ||
40 | +/* | ||
41 | +.box-1, | ||
42 | +.no-boxes { | ||
43 | +margin: 0 0 0 0; | ||
44 | +float: left; | ||
45 | +width: 80%; | ||
46 | +} | ||
47 | + | ||
48 | +.box-1 .blocks, | ||
49 | +.no-boxes .blocks { | ||
50 | + width: auto; | ||
51 | + float: none; | ||
52 | + padding: 0 1em; | ||
53 | +} | ||
54 | + | ||
55 | +.box-2, .box-3 { | ||
56 | + position: relative; | ||
57 | + float: left; | ||
58 | + width: 20%; | ||
59 | +} | ||
60 | + | ||
61 | +.box-2 .blocks{ | ||
62 | + padding: 0 1em; | ||
63 | +} | ||
64 | +*/ | ||
65 | + | ||
66 | +/**Nova largura dos blocos lateral e principal**/ | ||
67 | + | ||
68 | +.box {display: inline-block;} | ||
69 | + | ||
70 | +.box-1, .no-boxes { | ||
71 | +margin: 0 0 0 0; | ||
72 | +display: inline-block; | ||
73 | +position: relative; | ||
74 | +overflow: hidden; | ||
75 | +} | ||
76 | + | ||
77 | +.no-boxes{ | ||
78 | + margin: 0 0 0 0; | ||
79 | + display: block; | ||
80 | + /*position: absolute;*/ | ||
81 | + max-width: 100%; | ||
82 | + left: 0%; | ||
83 | + overflow: visible; | ||
84 | +} | ||
85 | + | ||
86 | +.box-1{ | ||
87 | + margin: 0 0 0 0; | ||
88 | + display: block; | ||
89 | + position: absolute; | ||
90 | + max-width: 60%; | ||
91 | + left: 20%; | ||
92 | + overflow: visible; | ||
93 | +} | ||
94 | + | ||
95 | +.box-2/*, .box-3 */{ | ||
96 | +position: relative; | ||
97 | +/*position: absolute;*/ | ||
98 | +/*display: block;*/ | ||
99 | +margin: 0; | ||
100 | +vertical-align: top; | ||
101 | +width: 20%; | ||
102 | +} | ||
103 | +.box-3{ | ||
104 | +min-width: 20%; | ||
105 | +position: absolute; | ||
106 | +right: 0px; | ||
107 | +} | ||
108 | + | ||
109 | + | ||
110 | +.box-1 .blocks, | ||
111 | +.no-boxes .blocks { | ||
112 | + width: auto; | ||
113 | + float: none; | ||
114 | + padding: 0 1em; | ||
115 | +} | ||
116 | + | ||
117 | +.box-2 .blocks, .box-3 .blocks{ | ||
118 | + padding: 0 1em; | ||
119 | +} | ||
120 | + | ||
121 | +#content .people-block ul, #content .profile-list-block ul, #content .enterprises-block ul, #content .members-block ul, #content .communities-block ul, #content .friends-block ul, #content .fans-block ul {min-width: auto;width: auto;} | ||
122 | + | ||
123 | +.box-2 .common-profile-list-block .vcard a.profile_link, .box-3 .common-profile-list-block .vcard a.profile_link {height: 112px;max-height: 112px;} | ||
124 | + | ||
125 | +.common-profile-list-block .vcard a, .comment-actions .vcard a{} | ||
126 | + | ||
127 | +/*estilo dos blocos*/ | ||
128 | + | ||
129 | +#main-content-wrapper-1, | ||
130 | +#main-content-wrapper-2, | ||
131 | +#main-content-wrapper-3, | ||
132 | +#main-content-wrapper-4, | ||
133 | +#main-content-wrapper-5, | ||
134 | +#main-content-wrapper-6, | ||
135 | +#main-content-wrapper-7, | ||
136 | +#main-content-wrapper-8 { | ||
137 | + background: url(images/no-image.gif) no-repeat; | ||
138 | +} | ||
139 | + | ||
140 | +#main-content-wrapper-8 { | ||
141 | + padding: 10px 20px; | ||
142 | +} | ||
143 | + | ||
144 | +#content .block { | ||
145 | + padding-bottom: 1em; | ||
146 | + margin: 0; | ||
147 | +} | ||
148 | + | ||
149 | +#content .block .block-inner-1 { | ||
150 | + background-color: #fff; | ||
151 | + box-shadow: 5px 5px 5px -2px #ddd; | ||
152 | +} | ||
153 | + | ||
154 | +#content .block .block-inner-2 h3~div {padding:1em;} | ||
155 | + | ||
156 | +#content .box-1 .block, | ||
157 | +#content .no-boxes .block{padding: 0;} | ||
158 | + | ||
159 | +#content .link-list-block{padding: 0;} | ||
160 | + | ||
161 | +#content .link-list-block li{margin: 0;} | ||
162 | + | ||
163 | +#content .link-list-block li a { | ||
164 | + border-radius: 0; | ||
165 | + padding: 10px 5px 10px 40px; | ||
166 | + border-bottom: 1px solid #ccc; | ||
167 | + background-color: #f7f9fa; | ||
168 | + border-left: 3px solid #f7f9fa; | ||
169 | +} | ||
170 | + | ||
171 | +/*bloco lateral de menu*/ | ||
172 | +#content .link-list-block li a.link-this-page{ | ||
173 | + max-width:100%; | ||
174 | + width: auto; | ||
175 | + border-right: 0px; | ||
176 | + background-color: #257CAD; | ||
177 | + color: white; | ||
178 | + border-left: 3px solid #003366; | ||
179 | + border-bottom: 0px solid gray; | ||
180 | +} | ||
181 | + | ||
182 | +#content .link-list-block li a.link-this-page:hover, | ||
183 | +#content .link-list-block li a:hover { | ||
184 | + background-color: #257CAD; | ||
185 | + border-left: 3px solid #ff0; | ||
186 | + border-right: 0px solid #fff; | ||
187 | +} | ||
188 | + | ||
189 | +#profile-header {margin-bottom: 20px;} | ||
190 | +#content .block-title { font-variant: inherit; margin-bottom: 0px;} | ||
191 | + | ||
192 | +/*cabeçalho dos blocos laterais*/ | ||
193 | +#content .block h3.block-title, | ||
194 | +#content #content-inner .login-block .logged-user-info h2{ | ||
195 | + font-size: 16px; | ||
196 | + text-align: left; | ||
197 | + border-bottom: 1px solid #AAA; | ||
198 | + padding: 0.5em; | ||
199 | + background-color: #257CAD; | ||
200 | + color: white; | ||
201 | + font-variant: inherit; | ||
202 | +} | ||
203 | + | ||
204 | +/*cabeçalho do blocos principal*/ | ||
205 | +#content .box-1 .block h3.block-title, | ||
206 | +#content .no-boxes .block h3.block-title { | ||
207 | + color: #333; | ||
208 | + font-size: 16px; | ||
209 | + text-align: left; | ||
210 | + border-bottom: 0px solid #AAA; | ||
211 | + padding: 0px; | ||
212 | + background-color: transparent; | ||
213 | +} | ||
214 | + | ||
215 | +/*ver todos blocos laterais*/ | ||
216 | +#content .tags-block .block-footer-content a, #content .people-block .block-footer-content a, #content .profile-list-block .block-footer-content a, #content .enterprises-block .block-footer-content a, #content .members-block .block-footer-content a, #content .communities-block .block-footer-content a, #content .friends-block .block-footer-content a { | ||
217 | + position: absolute; | ||
218 | + top: 5px; | ||
219 | + right: 5px; | ||
220 | + font-size: 12px; | ||
221 | + color: #000; | ||
222 | + text-decoration: none; | ||
223 | + background-color: #fff; | ||
224 | + padding: 6px 20px 6px 12px; | ||
225 | + border-radius: 12px; | ||
226 | + background-position-x: 90%; | ||
227 | +} | ||
228 | + | ||
229 | +#content .tags-block .block-footer-content a:hover, | ||
230 | +#content .people-block .block-footer-content a:hover, | ||
231 | +#content .profile-list-block .block-footer-content a:hover, | ||
232 | +#content .enterprises-block .block-footer-content a:hover, | ||
233 | +#content .members-block .block-footer-content a:hover, | ||
234 | +#content .communities-block .block-footer-content a:hover, | ||
235 | +#content .friends-block .block-footer-content a:hover { | ||
236 | + position: absolute; | ||
237 | + top: 5px; | ||
238 | + right: 5px; | ||
239 | + font-size: 12px; | ||
240 | + color: #000; | ||
241 | + text-decoration: none; | ||
242 | + background-color: #257CAD; | ||
243 | + color: white; | ||
244 | + padding: 6px 20px 6px 12px; | ||
245 | + border-radius: 12px; | ||
246 | + border: 1px solid white; | ||
247 | +} | ||
248 | + | ||
249 | +#content .main-block h1{ | ||
250 | + font-variant: inherit; | ||
251 | + color: #555753; | ||
252 | + text-align: left; | ||
253 | + border-bottom: 0px; | ||
254 | +/*font-family: 'Roboto',sans-serif;*/ | ||
255 | + margin: 0 0 5px; | ||
256 | + font-weight: 700; | ||
257 | + color: #4d4d4d; | ||
258 | +} | ||
259 | + | ||
260 | +.search_form input[type="text"], | ||
261 | +#public-profile-search input[type="text"]{ | ||
262 | + padding: 6px 0; | ||
263 | + font-size: 14px; | ||
264 | + line-height: 1.42857143; | ||
265 | + color: #555; | ||
266 | + background-color: #fff; | ||
267 | + background-image: none; | ||
268 | + border: 1px solid #ccc; | ||
269 | +} | ||
270 | + | ||
271 | +#content form input.button.submit { | ||
272 | + max-height: 34px; | ||
273 | + cursor: pointer; | ||
274 | + height: 34px; | ||
275 | + vertical-align: top; | ||
276 | + margin-top: 2px; | ||
277 | + margin-left: 16px; | ||
278 | +} | ||
279 | + | ||
280 | +#public-profile-search, #profile-search-results form, .profile-search-block form { | ||
281 | + padding: 10px; | ||
282 | + margin-bottom: 15px; | ||
283 | + background-color: transparent; | ||
284 | + -moz-border-radius: 5px; | ||
285 | + -webkit-border-radius: 0px; | ||
286 | +} | ||
287 | + | ||
288 | +/*telas de edição*/ | ||
289 | + | ||
290 | +/*Estilo dos campos - input*/ | ||
291 | +.formfield input, .formfield textarea { | ||
292 | + background: none; | ||
293 | + border: 2px solid #B0C4DE; | ||
294 | + color: #333; | ||
295 | + font-size: 16px; | ||
296 | + border-radius: 5px; | ||
297 | +} | ||
298 | + | ||
299 | +#content form input.button.submit {margin-left:0px; margin-right: 16px;} | ||
300 | + | ||
301 | +/*Campo inserir arquivo*/ | ||
302 | +input[type~="file"] {border: none;} | ||
303 | + | ||
304 | +/*formulário de criação de artigos - lado esquerdo*/ | ||
305 | +.controller-cms div.with_media_panel { | ||
306 | + float: left; | ||
307 | + width: 70%; | ||
308 | + display: inline-block; | ||
309 | + background-color: #FFF; | ||
310 | + padding: 1em; | ||
311 | + vertical-align: top; | ||
312 | +} | ||
313 | + | ||
314 | +/*caixas de formulário da direita - Inserir imagem e buscar imagem*/ | ||
315 | +.text-editor-sidebar{ | ||
316 | + float: left; | ||
317 | + position: relative; | ||
318 | + width: 20%; | ||
319 | + display: inline-block; | ||
320 | + vertical-align: top; | ||
321 | + margin-left: 3%; | ||
322 | + right: 0; | ||
323 | + top: 0; | ||
324 | +} | ||
325 | + | ||
326 | +/*Campo inserir arquivo - lado direito*/ | ||
327 | +.text-editor-sidebar .text-editor-sidebar-box #media-upload-form form input[type~="file"]{font-size: x-small;} | ||
328 | + | ||
329 | +/*campo de busca de mídia*/ | ||
330 | +.text-editor-sidebar #media-search-box .formfield input { | ||
331 | + display: inline-block; | ||
332 | + width: 85% !important; | ||
333 | +} | ||
334 | + | ||
335 | +/*botão de busca de mídia*/ | ||
336 | +#content .text-editor-sidebar #media-search-box form input.button.submit { | ||
337 | + max-height: 24px; | ||
338 | + cursor: pointer; | ||
339 | + height: 34px; | ||
340 | + vertical-align: top; | ||
341 | + margin-top: 2px; | ||
342 | + margin-left: 0; | ||
343 | + margin-right: 0; | ||
344 | + width: 0px; | ||
345 | + color: #EEE; | ||
346 | + display: inline-block; | ||
347 | +} | ||
348 | + | ||
349 | +/*botão cancelar*/ | ||
350 | +#content a.button.with-text { | ||
351 | +line-height: 32px; | ||
352 | +height: 32px; | ||
353 | +margin-top: 2px; | ||
354 | +} | ||
355 | + | ||
356 | +.comment-details .menu-submenu { | ||
357 | + right: 3px; | ||
358 | +} | ||
359 | + | ||
360 | +.vote-actions { | ||
361 | + top: 30px; | ||
362 | +} | ||
363 | + | ||
364 | +.ui-widget-header { | ||
365 | + background: none; | ||
366 | + border-width: 0px 0px 1px 0px; | ||
367 | +} | ||
368 | + | ||
369 | +#leave_scrap_content_left { | ||
370 | + float: none; | ||
371 | + text-align: left; | ||
372 | +} | ||
373 | + | ||
374 | +#leave_scrap textarea { | ||
375 | + float: left; | ||
376 | +} | ||
377 | + | ||
378 | +#profile-activity ul, #profile-network ul, #profile-wall ul { | ||
379 | + width: 100%; | ||
380 | +} | ||
381 | + | ||
382 | +.profile-activity-lead { | ||
383 | + width: 90%; | ||
384 | +} | ||
385 | + | ||
386 | +.ui-tabs #profile-wall.ui-tabs-panel{ padding: 10px;} | ||
387 | + | ||
388 | +.profile-activities { | ||
389 | + display: inline-block; | ||
390 | +} | ||
391 | + | ||
392 | +#profile_activities .profile-activity-item { | ||
393 | +/* width: 45%; | ||
394 | + display: block; | ||
395 | + float: left;*/ | ||
396 | + margin: 1em 5px; | ||
397 | + padding: 1em; | ||
398 | + box-shadow: 5px 5px 5px lightgray; | ||
399 | +} | ||
400 | + | ||
401 | +#leave_scrap { | ||
402 | +/* width: 45%; | ||
403 | + display: inline-block; | ||
404 | + float: none;*/ | ||
405 | +} | ||
406 | + | ||
407 | +#leave_scrap_response { | ||
408 | +/* width: 45%; | ||
409 | + display: inline-block;*/ | ||
410 | +} | ||
411 | +#profile-wall #leave_scrap textarea { | ||
412 | + width: 100%; | ||
413 | +} |
1 | +++ a/style-edit.css | ||
@@ -0,0 +1,1451 @@ | @@ -0,0 +1,1451 @@ | ||
1 | +@import url(cabecalho.css); | ||
2 | +/****************** FIM cabecalho amarelo ******************/ | ||
3 | + | ||
4 | +/* ==> button.css <== */ | ||
5 | + | ||
6 | +.button { | ||
7 | + -moz-border-radius: 3px; | ||
8 | + -webkit-border-radius: 3px; | ||
9 | +} | ||
10 | + | ||
11 | +#content input.button, #content a.button { | ||
12 | + background-repeat: no-repeat; | ||
13 | + background-color: #EEE; | ||
14 | + border: 1px solid #CCC; | ||
15 | + color: #555; | ||
16 | + line-height: 16px; | ||
17 | + height: 16px; | ||
18 | + text-decoration: none; | ||
19 | +} | ||
20 | + | ||
21 | +#content input.button.with-text, #content a.button.with-text { | ||
22 | + line-height: 20px; | ||
23 | + height: 20px; | ||
24 | +} | ||
25 | + | ||
26 | +input.button { | ||
27 | + max-height: 20px; | ||
28 | +} | ||
29 | +input.button.with-text { | ||
30 | + max-height: 22px; | ||
31 | +} | ||
32 | + | ||
33 | +#content input.button:hover, #content a.button:hover { | ||
34 | + color: #FFF; | ||
35 | + background-color: #555; | ||
36 | + border: 1px solid #2e3436; | ||
37 | + text-decoration: none; | ||
38 | +} | ||
39 | + | ||
40 | +/* ==> layout.css <== */ | ||
41 | + | ||
42 | +body { | ||
43 | + background: #EEE; | ||
44 | + font-family: Liberation Sans, Arial, sans-serif; | ||
45 | +} | ||
46 | + | ||
47 | +#wrap-1, #theme-footer { | ||
48 | +/* width: 960px;*/ | ||
49 | + margin: auto; | ||
50 | +} | ||
51 | + | ||
52 | +body, th, td, input { | ||
53 | + font-size: 12px; | ||
54 | +} | ||
55 | + | ||
56 | +#link-go-content { | ||
57 | + position: absolute; | ||
58 | + top: -100px; | ||
59 | +} | ||
60 | + | ||
61 | +#wrap-2 { | ||
62 | + padding: 10px; | ||
63 | + position: relative; | ||
64 | + border: 1px solid #d3d7cf; | ||
65 | + background-color: white; | ||
66 | +} | ||
67 | + | ||
68 | +.msie7 #wrap-2 { | ||
69 | + height: 100%; | ||
70 | +} | ||
71 | + | ||
72 | +#content { | ||
73 | + /* margin-top: 105px;*/ | ||
74 | +} | ||
75 | + | ||
76 | +/*************************** user bar ********************************/ | ||
77 | +/* | ||
78 | +#user { | ||
79 | + text-align: right; | ||
80 | + position: absolute; | ||
81 | + right: 10px; | ||
82 | + z-index: 10; | ||
83 | +}*/ | ||
84 | + | ||
85 | +#user { | ||
86 | + position: relative; | ||
87 | + z-index: 9; | ||
88 | +} | ||
89 | + | ||
90 | +#user #top-search {display: none;visibility:hidden;} | ||
91 | + | ||
92 | +#user a { | ||
93 | + position: relative; | ||
94 | + color: #888a85; | ||
95 | +} | ||
96 | + | ||
97 | +#user a strong { | ||
98 | + font-weight: bold; | ||
99 | + color: #555753; | ||
100 | +} | ||
101 | + | ||
102 | +#user .logged-in > * { | ||
103 | + margin-left: 25px; | ||
104 | +} | ||
105 | + | ||
106 | +#user a i { | ||
107 | + display: block; | ||
108 | + width: 16px; | ||
109 | + height: 16px; | ||
110 | + position: absolute; | ||
111 | + left: -17px; | ||
112 | + top: -1px; | ||
113 | +} | ||
114 | +.msie7 #user a i { | ||
115 | + top: 3px; | ||
116 | +} | ||
117 | + | ||
118 | +#user #homepage-link i { | ||
119 | + width: 18px; | ||
120 | + height: 18px; | ||
121 | + left: -20px; | ||
122 | + top: -2px; | ||
123 | + background-position: 50% 50%; | ||
124 | +} | ||
125 | + | ||
126 | +#user form { | ||
127 | + position: relative; | ||
128 | + display: inline; | ||
129 | + margin-left: 20px; | ||
130 | +} | ||
131 | + | ||
132 | +#user form input .blur { | ||
133 | + width: 160px; | ||
134 | + border: 1px solid #BBB; | ||
135 | + -moz-border-radius: 3px; | ||
136 | + -webkit-border-radius: 3px; | ||
137 | + color: #CCC; | ||
138 | +} | ||
139 | +#user form input { | ||
140 | + border: 1px solid #888; | ||
141 | + color: #555; | ||
142 | +} | ||
143 | + | ||
144 | +#user form div { | ||
145 | + font-size: 11px; | ||
146 | + color: #888; | ||
147 | + visibility: hidden; | ||
148 | +} | ||
149 | +#user form.focused div { | ||
150 | + visibility: visible; | ||
151 | +} | ||
152 | + | ||
153 | + | ||
154 | + | ||
155 | +/*************************** logo ************************************/ | ||
156 | + | ||
157 | +#site-title { | ||
158 | + margin: 0px; | ||
159 | + padding: 0px; | ||
160 | + position: absolute; | ||
161 | + top: 20px; | ||
162 | + left: 0px; | ||
163 | + z-index: 7; | ||
164 | + overflow: hidden; | ||
165 | + width: 310px; | ||
166 | + height: 90px; | ||
167 | +} | ||
168 | + | ||
169 | +#site-title a { | ||
170 | + display: block; | ||
171 | + width: 300px; | ||
172 | + height: 40px; | ||
173 | + position: absolute; | ||
174 | + top: 30px; | ||
175 | + left: 20px; | ||
176 | +} | ||
177 | + | ||
178 | +#site-title span { | ||
179 | + font-size: 1px; | ||
180 | + position: absolute; | ||
181 | + top: -200px; | ||
182 | +} | ||
183 | + | ||
184 | +/************************** navigation bar ***************************/ | ||
185 | + | ||
186 | +#navigation { | ||
187 | + position: absolute; | ||
188 | + top: 49px; | ||
189 | + right: 0px; | ||
190 | + width: 100%; | ||
191 | + text-align: right; | ||
192 | + background: #ccc url(imgs/menu-top-bg-left.png) no-repeat; | ||
193 | +} | ||
194 | + | ||
195 | +#navigation-end { | ||
196 | + position: absolute; | ||
197 | + top: 0px; | ||
198 | + right: 0px; | ||
199 | + width: 14px; | ||
200 | + height: 42px; | ||
201 | + background: url(imgs/menu-top-bg-right.png); | ||
202 | +} | ||
203 | + | ||
204 | +#navigation ul { | ||
205 | + height: 42px; | ||
206 | + margin: 0px; | ||
207 | + padding: 0px 10px 0px 0px; | ||
208 | + float: right; | ||
209 | +} | ||
210 | + | ||
211 | +#navigation li { | ||
212 | + list-style: none; | ||
213 | + display: block; | ||
214 | + height: auto; | ||
215 | + width: 125px; | ||
216 | + float: left; | ||
217 | + text-align: center; | ||
218 | + position: relative; | ||
219 | +} | ||
220 | + | ||
221 | +#navigation a { | ||
222 | + border-left: 1px solid #888a85; | ||
223 | + display: block; | ||
224 | + font-size: 15px; | ||
225 | + line-height: 42px; | ||
226 | + text-decoration: none; | ||
227 | + color: #000; | ||
228 | +} | ||
229 | +#navigation a:hover { | ||
230 | + background: url(imgs/menu-top-hilight.png); | ||
231 | + color: #FFF; | ||
232 | +} | ||
233 | + | ||
234 | +#navigation span { | ||
235 | + padding: 0px 0px 0px 30px; | ||
236 | + background-position: 5px 50%; | ||
237 | + background-repeat: no-repeat; | ||
238 | +} | ||
239 | + | ||
240 | +#navigation .menu-submenu ul, #navigation .menu-submenu li{ | ||
241 | + float: none; | ||
242 | + text-align: right; | ||
243 | + border-left: 0px; | ||
244 | +} | ||
245 | + | ||
246 | +#navigation .menu-submenu ul{ | ||
247 | + border: 1px solid #888a85; | ||
248 | + border-top: 0px; | ||
249 | + background-color: #ccc; | ||
250 | + padding-right: 2px; | ||
251 | + height: auto; | ||
252 | + display: block; | ||
253 | + padding-top: 20px; | ||
254 | +} | ||
255 | + | ||
256 | +#navigation .menu-submenu{ | ||
257 | + bottom: -75px; | ||
258 | + width: 126px; | ||
259 | + top: 0px; | ||
260 | + right: 0px; | ||
261 | + position: relative; | ||
262 | +} | ||
263 | + | ||
264 | +#navigation .menu-submenu a{ | ||
265 | + padding: 4px 5px; | ||
266 | + font-size: 12px; | ||
267 | + line-height: normal; | ||
268 | + border-left: 0; | ||
269 | +} | ||
270 | + | ||
271 | +#navigation .menu-submenu-trigger { | ||
272 | + background: #eee url(/images/down-arrow.png) center center no-repeat; | ||
273 | + border: 0px; | ||
274 | + height: 8px; | ||
275 | + width: 124px; | ||
276 | +} | ||
277 | +#navigation li:hover .menu-submenu-trigger:hover { | ||
278 | + background: #585858 url(imgs/down-arrow-light.png) center center no-repeat; | ||
279 | +} | ||
280 | + | ||
281 | +#navigation li:hover .menu-submenu-trigger{ | ||
282 | + display: block; | ||
283 | +} | ||
284 | + | ||
285 | +#navigation li .menu-submenu-trigger{ | ||
286 | + display: none; | ||
287 | + height: 16px; | ||
288 | + top: 42px; | ||
289 | + left: 0; | ||
290 | + border: 1px solid #888A85; | ||
291 | + outline: none; | ||
292 | +} | ||
293 | + | ||
294 | +#navigation .menu-submenu-header, #navigation .menu-submenu-footer, #navigation .menu-submenu h4{ | ||
295 | + display: none; | ||
296 | +} | ||
297 | + | ||
298 | +#navigation .common-profile-list-block .vcard .menu-submenu-trigger, | ||
299 | +.menu-submenu-trigger { | ||
300 | + left: 1px; | ||
301 | + top: 33px; | ||
302 | + -moz-border-radius: 0px; | ||
303 | + -webkit-border-radius: 0px; | ||
304 | +} | ||
305 | + | ||
306 | +/************************** main content *****************************/ | ||
307 | + | ||
308 | +#main-content-wrapper-1, #main-content-wrapper-2, | ||
309 | +#main-content-wrapper-3, #main-content-wrapper-4, | ||
310 | +#main-content-wrapper-5, #main-content-wrapper-6, | ||
311 | +#main-content-wrapper-7, #main-content-wrapper-8 { | ||
312 | + position: relative; | ||
313 | +} | ||
314 | + | ||
315 | +#main-content-wrapper-1 { background: url(imgs/content-bg-N.png) 0% 0% repeat-x } | ||
316 | +#main-content-wrapper-2 { background: url(imgs/content-bg-S.png) 0% 100% repeat-x } | ||
317 | +#main-content-wrapper-3 { background: url(imgs/content-bg-L.png) 100% 0% repeat-y } | ||
318 | +#main-content-wrapper-4 { background: url(imgs/content-bg-O.png) 0% 0% repeat-y } | ||
319 | +#main-content-wrapper-5 { background: url(imgs/content-bg-NL.png) 100% 0% no-repeat } | ||
320 | +#main-content-wrapper-6 { background: url(imgs/content-bg-NO.png) 0% 0% no-repeat } | ||
321 | +#main-content-wrapper-7 { background: url(imgs/content-bg-SL.png) 100% 100% no-repeat } | ||
322 | +#main-content-wrapper-8 { background: url(imgs/content-bg-SO.png) 0% 100% no-repeat } | ||
323 | +#main-content-wrapper-8 { | ||
324 | + padding: 10px 20px; | ||
325 | +} | ||
326 | + | ||
327 | +#content .main-block h1, #not-found h1, #access-denied h1 { | ||
328 | + font-variant: small-caps; | ||
329 | + color: #555753; | ||
330 | + text-align: left; | ||
331 | + border-bottom: 2px solid #2e3436; | ||
332 | +} | ||
333 | + | ||
334 | +.block { | ||
335 | + position: relative; | ||
336 | + padding: 10px 0; | ||
337 | + float: none; | ||
338 | +} | ||
339 | + | ||
340 | +/***************************** header ********************************/ | ||
341 | +#theme-header { | ||
342 | + /*height: 20px;*/ | ||
343 | +} | ||
344 | +#profile-header, #profile-footer{clear:left;} | ||
345 | +/***************************** footer ********************************/ | ||
346 | + | ||
347 | +#theme-footer #language-chooser { | ||
348 | + margin-top: 3em; | ||
349 | + text-align: center; | ||
350 | +} | ||
351 | + | ||
352 | + | ||
353 | +#theme-footer { | ||
354 | + padding: 0px; | ||
355 | + font-size: 11px; | ||
356 | + color: #555; | ||
357 | + margin-bottom: 20px; | ||
358 | +} | ||
359 | + | ||
360 | +#theme-footer a { | ||
361 | + color: #333; | ||
362 | + text-decoration: none; | ||
363 | +} | ||
364 | +#theme-footer a:hover { | ||
365 | + color: #222; | ||
366 | + text-decoration: underline; | ||
367 | +} | ||
368 | + | ||
369 | +#footer-links { | ||
370 | + text-align: left; | ||
371 | + float: left; | ||
372 | +} | ||
373 | + | ||
374 | +#link-to-doc { | ||
375 | + background-repeat: no-repeat; | ||
376 | + padding-left: 20px; | ||
377 | + padding-top: 2px; | ||
378 | + padding-bottom: 2px; | ||
379 | +} | ||
380 | + | ||
381 | +#copyright { | ||
382 | + text-align: right; | ||
383 | +} | ||
384 | + | ||
385 | +#noosfero-license { | ||
386 | + margin-bottom: 1em; | ||
387 | +} | ||
388 | + | ||
389 | +div.no_media_panel { | ||
390 | + margin: 0px; | ||
391 | +} | ||
392 | + | ||
393 | +div#notice { | ||
394 | + right: 50%; | ||
395 | + margin-right: -470px; | ||
396 | +} | ||
397 | + | ||
398 | +/* ==> blocks.css <== */ | ||
399 | + | ||
400 | +.block a { | ||
401 | + color: #555753; | ||
402 | +} | ||
403 | +.block a:visited { | ||
404 | + color: #888a85; | ||
405 | + font-weight: normal; | ||
406 | +} | ||
407 | +.block a:hover { | ||
408 | + color: #2e3436; | ||
409 | + text-decoration: underline; | ||
410 | +} | ||
411 | + | ||
412 | + | ||
413 | +#content .block { | ||
414 | + padding: 0px; | ||
415 | + margin: 0px 0px 20px 0px; | ||
416 | + position: relative; | ||
417 | +} | ||
418 | + | ||
419 | + | ||
420 | +#content .block-title { | ||
421 | + font-variant: small-caps; | ||
422 | + color: #AAA; | ||
423 | + font-size: 14px; | ||
424 | + text-align: left; | ||
425 | + border-bottom: 2px solid #AAA; | ||
426 | +} | ||
427 | + | ||
428 | +/*************************** Login block *****************************/ | ||
429 | + | ||
430 | +.login-box { | ||
431 | + padding: 0px; | ||
432 | +} | ||
433 | + | ||
434 | +.login-box-content { | ||
435 | + margin: 0px; | ||
436 | + border: none; | ||
437 | + background: none; | ||
438 | + padding: 0px; | ||
439 | +} | ||
440 | + | ||
441 | +.login-box-content .button-bar .button { | ||
442 | + position: relative; | ||
443 | +} | ||
444 | + | ||
445 | +.login-box .formfieldline input { | ||
446 | + width: 99%; | ||
447 | +} | ||
448 | + | ||
449 | +.login-box form { | ||
450 | + margin: 0px; | ||
451 | +} | ||
452 | +.msie7 .login-box form { | ||
453 | + padding: 0px 10px 0px 0px; | ||
454 | +} | ||
455 | + | ||
456 | +#content .login-block h2 { | ||
457 | + font-variant: small-caps; | ||
458 | + color: #AAA; | ||
459 | + font-size: 14px; | ||
460 | + text-align: left; | ||
461 | + border-bottom: 2px solid #AAA; | ||
462 | +} | ||
463 | + | ||
464 | +.login-box p { | ||
465 | + text-align: center; | ||
466 | + margin: 0px; | ||
467 | + padding: 0px; | ||
468 | +} | ||
469 | + | ||
470 | +.login-box .forgot-passwd a { | ||
471 | + color: #555753; | ||
472 | +} | ||
473 | + | ||
474 | +.want-to-be-an-user { | ||
475 | + font-size: 13px; | ||
476 | +} | ||
477 | + | ||
478 | +#content .logged-user-info h2 { | ||
479 | + font-size: none; | ||
480 | +} | ||
481 | + | ||
482 | +.logged-user-info ul { | ||
483 | + margin-top: 5px; | ||
484 | +} | ||
485 | + | ||
486 | +.logged-user-info .user-actions { | ||
487 | + padding-left: 50px; | ||
488 | +} | ||
489 | + | ||
490 | + | ||
491 | +/************************** Profile List *****************************/ | ||
492 | + | ||
493 | +#content .people-block ul, | ||
494 | +#content .profile-list-block ul, | ||
495 | +#content .enterprises-block ul, | ||
496 | +#content .members-block ul, | ||
497 | +#content .communities-block ul, | ||
498 | +#content .friends-block ul, | ||
499 | +#content .fans-block ul { | ||
500 | + min-width: 196px; | ||
501 | + width: 192px; | ||
502 | + margin: 0px 0px 0px -3px; | ||
503 | + padding: 0px; | ||
504 | +} | ||
505 | + | ||
506 | +#content .box-1 .people-block ul, | ||
507 | +#content .box-1 .profile-list-block ul, | ||
508 | +#content .box-1 .enterprises-block ul, | ||
509 | +#content .box-1 .members-block ul, | ||
510 | +#content .box-1 .communities-block ul, | ||
511 | +#content .box-1 .friends-block ul, | ||
512 | +#content .box-1 .fans-block ul { | ||
513 | + width: auto; | ||
514 | + display: block; | ||
515 | +} | ||
516 | + | ||
517 | +#content .tags-block .block-footer-content a, | ||
518 | +#content .people-block .block-footer-content a, | ||
519 | +#content .profile-list-block .block-footer-content a, | ||
520 | +#content .enterprises-block .block-footer-content a, | ||
521 | +#content .members-block .block-footer-content a, | ||
522 | +#content .communities-block .block-footer-content a, | ||
523 | +#content .friends-block .block-footer-content a { | ||
524 | + position: absolute; | ||
525 | + top: 2px; | ||
526 | + right: 0px; | ||
527 | + font-size: 11px; | ||
528 | + color: #000; | ||
529 | + text-decoration: none; | ||
530 | + padding-right: 15px; | ||
531 | +} | ||
532 | +#content .tags-block .block-footer-content a, | ||
533 | +#content .people-block .block-footer-content a, | ||
534 | +#content .profile-list-block .block-footer-content a, | ||
535 | +#content .enterprises-block .block-footer-content a, | ||
536 | +#content .communities-block .block-footer-content a, | ||
537 | +#content .friends-block .block-footer-content a { | ||
538 | + background: url(imgs/arrow-right-p.png) 100% 50% no-repeat; | ||
539 | +} | ||
540 | + | ||
541 | +#content .members-block .block-footer-content .join-leave-button a { | ||
542 | + position: relative; | ||
543 | + background-color: #EEE; | ||
544 | + border: 1px solid #CCC; | ||
545 | + color: #555; | ||
546 | + padding-right: inherit; | ||
547 | +} | ||
548 | + | ||
549 | +#content .members-block .block-footer-content .join-leave-button a:hover { | ||
550 | + color: #FFF; | ||
551 | + background-color: #555; | ||
552 | + border: 1px solid #2e3436; | ||
553 | + text-decoration: none; | ||
554 | +} | ||
555 | + | ||
556 | +#content .profile-list-block .block-title { | ||
557 | + text-align: left; | ||
558 | +} | ||
559 | + | ||
560 | +#content .profile-list li a, | ||
561 | +#content .common-profile-list-block .vcard li a { | ||
562 | + color: #555; | ||
563 | +} | ||
564 | +#content .profile-list li a:hover, | ||
565 | +#content .common-profile-list-block .vcard li a:hover { | ||
566 | + color: #000; | ||
567 | + text-decoration: none; | ||
568 | +} | ||
569 | + | ||
570 | +/************************* Recent Contents ***************************/ | ||
571 | + | ||
572 | +#content .feed-reader-block, | ||
573 | +#content .recent-documents-block { | ||
574 | + overflow: hidden; | ||
575 | +} | ||
576 | + | ||
577 | +.feed-reader-block li, | ||
578 | +.recent-documents-block li { | ||
579 | + list-style-image: url(imgs/li-recent.gif); | ||
580 | + padding: 5px 0px; | ||
581 | +} | ||
582 | + | ||
583 | +.feed-reader-block li a, | ||
584 | +.recent-documents-block li a { | ||
585 | + font-weight: bold; | ||
586 | +} | ||
587 | + | ||
588 | +.feed-reader-block li a:visited, | ||
589 | +.recent-documents-block li a:visited { | ||
590 | + font-weight: normal; | ||
591 | +} | ||
592 | + | ||
593 | +.feed-reader-block li a:hover, | ||
594 | +.recent-documents-block li a:hover { | ||
595 | + text-decoration: underline; | ||
596 | +} | ||
597 | + | ||
598 | +/************************* Profile Image *****************************/ | ||
599 | + | ||
600 | +#content .profile-image-block { | ||
601 | +} | ||
602 | +.profile-big-image-inner1 { | ||
603 | + text-align: center; | ||
604 | +} | ||
605 | + | ||
606 | +.profile-big-image { | ||
607 | +} | ||
608 | +.profile-big-image img { | ||
609 | + border: none; | ||
610 | + padding: 0px; | ||
611 | +} | ||
612 | + | ||
613 | +.profile-image-block p { | ||
614 | + margin: 0px; | ||
615 | + font-size: 17px; | ||
616 | + font-weight: bold; | ||
617 | + color: #555; | ||
618 | +} | ||
619 | + | ||
620 | +.profile-image-block .admin-link { | ||
621 | + text-align: center; | ||
622 | + font-size: 75%; | ||
623 | + clear: both; | ||
624 | +} | ||
625 | + | ||
626 | + | ||
627 | +/*************************** My Network ******************************/ | ||
628 | + | ||
629 | +#content .block.my-network-block { | ||
630 | + margin: 0px 0px 10px 0px; | ||
631 | +} | ||
632 | + | ||
633 | +.my-network-block ul { | ||
634 | + margin: 0px; | ||
635 | + padding: 0px 0px 10px 20px; | ||
636 | +} | ||
637 | +.my-network-block li { | ||
638 | + margin: 0px; | ||
639 | + padding: 0px; | ||
640 | + list-style: none; | ||
641 | +} | ||
642 | + | ||
643 | + | ||
644 | +/*************************** Link List *******************************/ | ||
645 | + | ||
646 | +.link-list-block .empty { | ||
647 | + display: none; | ||
648 | +} | ||
649 | + | ||
650 | +#content .box-1 .link-list-block { | ||
651 | + margin: 0px; | ||
652 | +} | ||
653 | + | ||
654 | +#content .link-list-block li { | ||
655 | + background: #FFF; | ||
656 | + padding: 0px; | ||
657 | + margin: 5px 0px; | ||
658 | +} | ||
659 | + | ||
660 | +#content .box-1 .link-list-block li { | ||
661 | + display: inline-block; | ||
662 | +} | ||
663 | + | ||
664 | +#content .link-list-block li a { | ||
665 | + font-size: 14px; | ||
666 | + line-height: 24px; | ||
667 | + color: #000; | ||
668 | + background-color: #EEE; | ||
669 | + background-position: 4px 50%; | ||
670 | + border-radius: 4px; | ||
671 | +} | ||
672 | + | ||
673 | +#content .box-1 .link-list-block li a { | ||
674 | + padding-left: 25px; | ||
675 | + padding-right: 10px; | ||
676 | + margin-right: 5px; | ||
677 | + background-position: 5px 50%; | ||
678 | +} | ||
679 | + | ||
680 | +#content .link-list-block li a.link-this-page { | ||
681 | + border-radius-topright: 0px; | ||
682 | + border-radius-bottomright: 0px; | ||
683 | + background-color: #cecece; | ||
684 | + max-width: 175px; | ||
685 | + width: 200px; | ||
686 | + border-right: 2px solid #555753; | ||
687 | +} | ||
688 | + | ||
689 | +#content .box-1 .link-list-block li a.link-this-page { | ||
690 | + width: auto; | ||
691 | + border: none; | ||
692 | + border-radius: 4px; | ||
693 | +} | ||
694 | + | ||
695 | +#content .link-list-block li a:hover { | ||
696 | + background-color: #555753; | ||
697 | + color: #FFF; | ||
698 | + text-decoration: none; | ||
699 | +} | ||
700 | +#content .link-list-block li a.link-this-page:hover { | ||
701 | + border-right: 2px solid #555753; | ||
702 | +} | ||
703 | + | ||
704 | + | ||
705 | +/************************** Communities ******************************/ | ||
706 | + | ||
707 | +.communities-block .profile-image { | ||
708 | + float: left; | ||
709 | + padding-left: 4px; | ||
710 | + max-width: 70px; | ||
711 | + width: 75px; | ||
712 | + height: auto; | ||
713 | +} | ||
714 | + | ||
715 | +.msie7 .communities-block .common-profile-list-block .vcard a { | ||
716 | + height: auto; | ||
717 | + width: 99%; | ||
718 | + padding-bottom: 1px; | ||
719 | +} | ||
720 | + | ||
721 | +.communities-block .vcard a .org { | ||
722 | + overflow: hidden; | ||
723 | +} | ||
724 | +.msie .communities-block .vcard a .org { | ||
725 | + height: 30px; | ||
726 | +} | ||
727 | + | ||
728 | +.communities-block .vcard a .may-clear { | ||
729 | + clear: left; | ||
730 | +} | ||
731 | + | ||
732 | +/****************************** Tags *********************************/ | ||
733 | + | ||
734 | +/* the style here is not only for #content .tags-block .tag_cloud */ | ||
735 | + | ||
736 | +.tag_cloud { | ||
737 | + text-align: center; | ||
738 | +} | ||
739 | + | ||
740 | +.tag_cloud a { | ||
741 | + text-decoration: none; | ||
742 | + white-space: nowrap; | ||
743 | +} | ||
744 | + | ||
745 | +.tag_cloud a small { | ||
746 | + opacity: 0.5; | ||
747 | + filter:alpha(opacity=50); | ||
748 | +} | ||
749 | + | ||
750 | + | ||
751 | +/********************* Product Categories Block **********************/ | ||
752 | + | ||
753 | +.product-categories-block .catalog-home-link { | ||
754 | + display: block; | ||
755 | + background: rgba(0,0,0,0.08); | ||
756 | + font-weight: bold; | ||
757 | + text-align: center; | ||
758 | + border-radius: 5px; | ||
759 | + padding: 0px; | ||
760 | + line-height: 200%; | ||
761 | + text-decoration: none; | ||
762 | + color: #000; | ||
763 | +} | ||
764 | +.product-categories-block .catalog-home-link:hover { | ||
765 | + background: rgba(0,0,0,0.6); | ||
766 | + color: #FFF; | ||
767 | + text-decoration: none; | ||
768 | +} | ||
769 | + | ||
770 | +.product-categories-block .catalog-categories-list { | ||
771 | + margin-top: 0.5em; | ||
772 | +} | ||
773 | + | ||
774 | +.product-categories-block ul { | ||
775 | + list-style-type: none; | ||
776 | + margin: 0px; | ||
777 | + padding: 0px; | ||
778 | + border-radius: 5px; | ||
779 | + color: rgba(0,0,0,0.4); | ||
780 | +} | ||
781 | + | ||
782 | +.product-categories-block li { | ||
783 | + margin: 0; | ||
784 | + padding: 0; | ||
785 | + white-space: nowrap; | ||
786 | +} | ||
787 | + | ||
788 | +.product-categories-block li li div { | ||
789 | + padding: 0 0 0 1.5em; | ||
790 | +} | ||
791 | + | ||
792 | +.product-categories-block .catalog-categories-list a { | ||
793 | + text-decoration: none; | ||
794 | + font-size: 120%; | ||
795 | + line-height: 150%; | ||
796 | + color: #333; | ||
797 | + overflow: hidden; | ||
798 | + text-overflow: ellipsis; | ||
799 | + display: inline-block; | ||
800 | + padding: 0 0.3em 0 0.5em; | ||
801 | + border-radius: 5px; | ||
802 | + max-width: 80%; | ||
803 | + vertical-align: middle; | ||
804 | +} | ||
805 | +.product-categories-block .catalog-categories-list ul a { | ||
806 | + text-decoration: none; | ||
807 | + font-size: 110%; | ||
808 | + line-height: 163.6%; | ||
809 | +} | ||
810 | +.product-categories-block .catalog-categories-list div:hover a:hover { | ||
811 | + background: rgba(0,0,0,0.6); | ||
812 | + color: #FFF; | ||
813 | + text-decoration: none; | ||
814 | +} | ||
815 | + | ||
816 | +.product-categories-block .catalog-categories-list div:hover a, | ||
817 | +.product-categories-block .catalog-categories-list div:hover .count { | ||
818 | + background: rgba(0,0,0,0.08); | ||
819 | +} | ||
820 | + | ||
821 | +.block.product-categories-block .catalog-categories-list a { | ||
822 | + font-weight: bold; | ||
823 | +} | ||
824 | + | ||
825 | +.block.product-categories-block .catalog-categories-list ul a { | ||
826 | + font-weight: normal; | ||
827 | +} | ||
828 | + | ||
829 | +.product-categories-block a:hover { | ||
830 | + text-decoration: underline; | ||
831 | +} | ||
832 | + | ||
833 | +.product-categories-block .count { | ||
834 | + display: inline-block; | ||
835 | + vertical-align: middle; | ||
836 | + margin-left: -0.2em; | ||
837 | + padding: 0 0.2em; | ||
838 | + line-height: 180%; | ||
839 | + border-radius: 5px; | ||
840 | +} | ||
841 | + | ||
842 | +.block.product-categories-block .count:before { | ||
843 | + content: "("; | ||
844 | +} | ||
845 | +.block.product-categories-block .count:after { | ||
846 | + content: ")"; | ||
847 | +} | ||
848 | + | ||
849 | +.catalog-categories-notice { | ||
850 | + color: rgba(0,0,0,0.3); | ||
851 | + padding: 0.5em 1em; | ||
852 | +} | ||
853 | + | ||
854 | +/********************* Environment Statistics ************************/ | ||
855 | + | ||
856 | +#content .environment-statistics-block ul { | ||
857 | + margin: 0px 20px; | ||
858 | + padding: 0px; | ||
859 | +} | ||
860 | +#content .environment-statistics-block li { | ||
861 | + list-style-image: url(imgs/li-gray.gif); | ||
862 | + padding: 3px 0px; | ||
863 | + color: #777 | ||
864 | +} | ||
865 | + | ||
866 | +/*************************** News Area *******************************/ | ||
867 | + | ||
868 | +.action-home-index #content h1 { | ||
869 | + color: #555753; | ||
870 | + border-bottom: 2px solid #555753; | ||
871 | +} | ||
872 | + | ||
873 | +.highlighted-news-item { | ||
874 | + border-top: 1px solid #CCC; | ||
875 | + padding-top: 5px; | ||
876 | +} | ||
877 | +.highlighted-news-item.post-1 { | ||
878 | + border: none; | ||
879 | + padding-top: 0px; | ||
880 | +} | ||
881 | + | ||
882 | +#highlighted-news h2 a { | ||
883 | + font-weight: bold; | ||
884 | + color: #2e3436; | ||
885 | +} | ||
886 | + | ||
887 | +.news-area { | ||
888 | + border: none; | ||
889 | + background: #FFF; | ||
890 | + height: auto; | ||
891 | + position: relative; | ||
892 | +} | ||
893 | + | ||
894 | +.news-area ul { | ||
895 | + border: 1px solid #CCC; | ||
896 | + border-top: 2px solid #07C; | ||
897 | + height: 125px; | ||
898 | + overflow: auto; | ||
899 | + margin: 0px; | ||
900 | + padding: 5px 10px; | ||
901 | + background: url(imgs/comment-bg-S.png) 0% 100% repeat-x; | ||
902 | + border-bottom: none; | ||
903 | +} | ||
904 | + | ||
905 | +.news-area li { | ||
906 | + margin-left: 15px; | ||
907 | + padding: 0px 0px; | ||
908 | + list-style-image: url(imgs/li-blue.gif); | ||
909 | +} | ||
910 | + | ||
911 | +#content .news-area h3 a { | ||
912 | + font-weight: bold; | ||
913 | + color: #2e3436; | ||
914 | +} | ||
915 | +#content .news-area h3 a:hover { | ||
916 | + text-decoration: none; | ||
917 | +} | ||
918 | + | ||
919 | +#content .news-area h3 { | ||
920 | + background: #FFF; | ||
921 | + margin: 0px; | ||
922 | + padding: 0px; | ||
923 | +} | ||
924 | + | ||
925 | +#content .news-area a { | ||
926 | + color: #000; | ||
927 | +} | ||
928 | + | ||
929 | +#content .news-area a.news-see-more { | ||
930 | + position: absolute; | ||
931 | + top: 3px; | ||
932 | + right: 0px; | ||
933 | + | ||
934 | + color: #000; | ||
935 | + padding-right: 10px; | ||
936 | + background: url(imgs/arrow-right-p.png) 100% 50% no-repeat; | ||
937 | +} | ||
938 | + | ||
939 | +#content .news-area a.news-see-more:hover { | ||
940 | + text-decoration: none; | ||
941 | + color: #07C; | ||
942 | +} | ||
943 | + | ||
944 | +#portal-news ul { | ||
945 | + padding: 0px; | ||
946 | + border-top: 1px solid #CCC; | ||
947 | +} | ||
948 | +#portal-news li { | ||
949 | + list-style: none; | ||
950 | + padding: 8px 0px; | ||
951 | + border-bottom: 1px solid #CCC; | ||
952 | +} | ||
953 | +#portal-news li a { | ||
954 | + font-weight: bold; | ||
955 | + color: #555753; | ||
956 | +} | ||
957 | +#portal-news .post-date, #highlighted-news .post-date { | ||
958 | + color: #555753; | ||
959 | +} | ||
960 | + | ||
961 | +#portal-news .post-date { | ||
962 | + float: left; | ||
963 | +} | ||
964 | +#portal-news .post-title { | ||
965 | + display: block; | ||
966 | + margin-left: 65px; | ||
967 | +} | ||
968 | + | ||
969 | +#highlighted-news .post-title { | ||
970 | + font-weight: bold; | ||
971 | + font-size: 20px; | ||
972 | +} | ||
973 | +#highlighted-news h2 { | ||
974 | + margin-bottom: 0px; | ||
975 | +} | ||
976 | + | ||
977 | +/* ==> search-results.css <== */ | ||
978 | + | ||
979 | + | ||
980 | +.msie .search-results-box { | ||
981 | + width: 48%; | ||
982 | +} | ||
983 | + | ||
984 | +#content .no-boxes h1 { | ||
985 | + font-variant: small-caps; | ||
986 | + color: #555753; | ||
987 | + text-align: left; | ||
988 | + border-bottom: 2px solid #2e3436; /*8C0*/ | ||
989 | +} | ||
990 | + | ||
991 | +.query { | ||
992 | + display: none; | ||
993 | +} | ||
994 | + | ||
995 | +.controller-search #content .search_form h3 { | ||
996 | + display: none; | ||
997 | +} | ||
998 | + | ||
999 | +.controller-search #content .search_form h4 { | ||
1000 | + background: #DDD; | ||
1001 | + color: #777; | ||
1002 | +} | ||
1003 | +.controller-search .search-options { | ||
1004 | + border: 1px solid #777; | ||
1005 | + -moz-border-radius: 5px; | ||
1006 | + -webkit-border-radius: 5px; | ||
1007 | +} | ||
1008 | +.controller-search .search-options ul li { | ||
1009 | + position: relative; | ||
1010 | +} | ||
1011 | + | ||
1012 | +.controller-search .search-within select { | ||
1013 | + display: block; | ||
1014 | + margin-bottom: 5px; | ||
1015 | +} | ||
1016 | + | ||
1017 | +.controller-search .search-within label { | ||
1018 | + display: block; | ||
1019 | + float: left; | ||
1020 | + width: 100px; | ||
1021 | + text-align: right; | ||
1022 | + padding-right: 10px; | ||
1023 | + position: relative; | ||
1024 | + top: 5px; | ||
1025 | +} | ||
1026 | + | ||
1027 | +.controller-search a { | ||
1028 | + color: #555753; | ||
1029 | +} | ||
1030 | + | ||
1031 | +#search-results h3 { | ||
1032 | + color: #555753; /*6A0*/ | ||
1033 | + font-variant: small-caps; | ||
1034 | + margin: 0px; | ||
1035 | +} | ||
1036 | + | ||
1037 | +.search-results-innerbox { | ||
1038 | + border: 1px solid #CCC; | ||
1039 | + border-top: 2px solid #2e3436; | ||
1040 | + border-bottom: none; | ||
1041 | + background: url(imgs/comment-bg-S.png) 0% 100% repeat-x; | ||
1042 | +} | ||
1043 | +.only-one-result-box .search-results-innerbox { | ||
1044 | + border-top: 1px solid #CCC; | ||
1045 | +} | ||
1046 | + | ||
1047 | +#content .search-results-type-article li, | ||
1048 | +#content .search-results-type-event li { | ||
1049 | + padding: 5px 0px; | ||
1050 | +} | ||
1051 | + | ||
1052 | +.search-results-type-article a, | ||
1053 | +.search-results-type-event a { | ||
1054 | + text-decoration: none; | ||
1055 | +} | ||
1056 | +.search-results-type-article a:hover, | ||
1057 | +.search-results-type-event a:hover { | ||
1058 | + text-decoration: underline; | ||
1059 | +} | ||
1060 | + | ||
1061 | +/* ==> article.css <== */ | ||
1062 | + | ||
1063 | +#article a { | ||
1064 | + text-decoration: underline; | ||
1065 | +} | ||
1066 | + | ||
1067 | +hr.pre-posts, hr.sep-posts { | ||
1068 | + display: none; | ||
1069 | +} | ||
1070 | + | ||
1071 | +.blog-post { | ||
1072 | + background: url(imgs/blog-sep.png) repeat-x; | ||
1073 | + padding: 15px 20px 5px 20px; | ||
1074 | + margin: 0px -19px; | ||
1075 | +} | ||
1076 | + | ||
1077 | +#article-actions a.button, | ||
1078 | +#article-actions a.button:hover { | ||
1079 | + border: none; | ||
1080 | + background-color: transparent; | ||
1081 | + color: #888; | ||
1082 | +} | ||
1083 | +#article-actions a.button:hover { | ||
1084 | + color: #555753; | ||
1085 | +} | ||
1086 | +#content a.disabled, | ||
1087 | +#content a.disabled:hover { | ||
1088 | + color: #888; | ||
1089 | + text-decoration: none; | ||
1090 | +} | ||
1091 | +#content a.button.disabled, | ||
1092 | +#content a.button.disabled:hover { | ||
1093 | + background-color: #CCC; | ||
1094 | + border-color: #CCC; | ||
1095 | +} | ||
1096 | + | ||
1097 | +#addThis { | ||
1098 | + text-align: right; | ||
1099 | +} | ||
1100 | + | ||
1101 | +#content .blog-post .title { | ||
1102 | + border-bottom-color: #CCC; | ||
1103 | +} | ||
1104 | +#content .blog-post .title a { | ||
1105 | + font-weight: bold; | ||
1106 | + color: #000; | ||
1107 | + text-decoration: none; | ||
1108 | +} | ||
1109 | + | ||
1110 | +#content .main-block .created-at { | ||
1111 | + text-align: left; | ||
1112 | + color: #AAA; | ||
1113 | +} | ||
1114 | +#content .main-block .created-at a { | ||
1115 | + color: #AAA; | ||
1116 | + text-decoration: none; | ||
1117 | +} | ||
1118 | +#content .main-block .created-at a:hover { | ||
1119 | + color: #555; | ||
1120 | + text-decoration: underline; | ||
1121 | +} | ||
1122 | + | ||
1123 | +#article-tags { | ||
1124 | + color: #FFF; | ||
1125 | +} | ||
1126 | +#article-tags a { | ||
1127 | + text-decoration: none; | ||
1128 | + padding: 0px 2px; | ||
1129 | + -moz-border-radius: 3px; | ||
1130 | + -webkit-border-radius: 3px; | ||
1131 | + background: #BBB; | ||
1132 | + color: #FFF; | ||
1133 | +} | ||
1134 | +#article-tags a:hover { | ||
1135 | + background: #555753; | ||
1136 | +} | ||
1137 | + | ||
1138 | +#article-hits { | ||
1139 | + text-align: left; | ||
1140 | + color: #AAA; | ||
1141 | +} | ||
1142 | + | ||
1143 | +.msie .post_comment_box { | ||
1144 | + padding-top: 15px; | ||
1145 | +} | ||
1146 | + | ||
1147 | +.post_comment_box.closed h4 { | ||
1148 | + -moz-border-radius: 4px; | ||
1149 | + -webkit-border-radius: 4px; | ||
1150 | +} | ||
1151 | + | ||
1152 | +.post_comment_box.opened h4 { | ||
1153 | + display: block; | ||
1154 | + background: #FFF; | ||
1155 | + padding: 0px; | ||
1156 | + font-variant: small-caps; | ||
1157 | + color: #555753; | ||
1158 | + font-size: 14px; | ||
1159 | + text-align: left; | ||
1160 | + border-bottom: 2px solid #888a85; | ||
1161 | +} | ||
1162 | + | ||
1163 | +.post_comment_box.opened { | ||
1164 | + border: none; | ||
1165 | + background: transparent; | ||
1166 | +} | ||
1167 | + | ||
1168 | +/************* uploaded file *****************/ | ||
1169 | + | ||
1170 | +#article .gallery-navigation { | ||
1171 | + padding: 10px 0; | ||
1172 | +} | ||
1173 | + | ||
1174 | +#article .gallery-navigation .previous { | ||
1175 | + margin-right: 10px; | ||
1176 | +} | ||
1177 | + | ||
1178 | +#article .gallery-navigation .next { | ||
1179 | + margin-left: 10px; | ||
1180 | +} | ||
1181 | + | ||
1182 | +#article .gallery-navigation .total-of-images { | ||
1183 | + font-weight: bold; | ||
1184 | +} | ||
1185 | + | ||
1186 | +#article .uploaded-file-description { | ||
1187 | + background: #f6f6f6; | ||
1188 | + border-top: 1px solid #ccc; | ||
1189 | + border-bottom: 1px solid #ccc; | ||
1190 | + padding: 1em; | ||
1191 | +} | ||
1192 | +#article .uploaded-file-description.empty { | ||
1193 | + display: none; | ||
1194 | +} | ||
1195 | + | ||
1196 | +#article.file-generic .download-link { | ||
1197 | + display: block; | ||
1198 | + margin-bottom: 10px; | ||
1199 | +} | ||
1200 | +#article.file-generic .download-link span { | ||
1201 | + font-size: 150%; | ||
1202 | + padding-right: 5px; | ||
1203 | +} | ||
1204 | +#article.file-generic .download-link a { | ||
1205 | + font-size: 180%; | ||
1206 | + text-decoration: none; | ||
1207 | +} | ||
1208 | + | ||
1209 | +/**************************** Comments *******************************/ | ||
1210 | + | ||
1211 | +#content .comments h3 { | ||
1212 | + font-variant: small-caps; | ||
1213 | + color: #555753; | ||
1214 | + font-size: 14px; | ||
1215 | + text-align: left; | ||
1216 | + border-bottom: 2px solid #888a85; | ||
1217 | +} | ||
1218 | + | ||
1219 | +.article-comment { | ||
1220 | + border: none; | ||
1221 | + background: #FFF; | ||
1222 | +} | ||
1223 | + | ||
1224 | +.comment-logged-out h4 { | ||
1225 | + color: #888; | ||
1226 | +} | ||
1227 | + | ||
1228 | +#content .comment-picture { | ||
1229 | + text-align: left; | ||
1230 | + text-decoration: none; | ||
1231 | + position: relative; | ||
1232 | +} | ||
1233 | + | ||
1234 | +.comment-wrapper-1 { | ||
1235 | + margin-left: 60px; | ||
1236 | + background: url(imgs/comment-bg-N.png) 0% 0% repeat-x; | ||
1237 | +} | ||
1238 | +.comment-wrapper-2 { | ||
1239 | + background: url(imgs/comment-bg-S.png) 0% 100% repeat-x; | ||
1240 | +} | ||
1241 | +.comment-wrapper-3 { | ||
1242 | + background: url(imgs/comment-bg-L.png) 100% 0% repeat-y; | ||
1243 | +} | ||
1244 | +.comment-wrapper-4 { | ||
1245 | + background: url(imgs/comment-bg-O.png) 0% 0% repeat-y; | ||
1246 | +} | ||
1247 | +.comment-wrapper-5 { | ||
1248 | + background: url(imgs/comment-bg-SL.png) 100% 100% no-repeat; | ||
1249 | +} | ||
1250 | +.comment-wrapper-6 { | ||
1251 | + background: url(imgs/comment-bg-SO.png) 0% 100% no-repeat; | ||
1252 | +} | ||
1253 | +.comment-wrapper-7 { | ||
1254 | + background: url(imgs/comment-bg-NL.png) 100% 0% no-repeat; | ||
1255 | +} | ||
1256 | +.comment-wrapper-8 { | ||
1257 | + background: url(imgs/comment-bg-NO.png) 0% 0% no-repeat; | ||
1258 | +} | ||
1259 | + | ||
1260 | +.comment-from-owner .comment-wrapper-1 { | ||
1261 | + background: #fbf7b5 url(/images/comment-owner-bg-N.png) repeat-x; | ||
1262 | +} | ||
1263 | +.comment-from-owner .comment-wrapper-2 { | ||
1264 | + background: url(/images/comment-owner-bg-S.png) 0% 100% repeat-x; | ||
1265 | +} | ||
1266 | +.comment-from-owner .comment-wrapper-3 { | ||
1267 | + background: url(/images/comment-owner-bg-L.png) 100% 0% repeat-y; | ||
1268 | +} | ||
1269 | +.comment-from-owner .comment-wrapper-4 { | ||
1270 | + background: url(/images/comment-owner-bg-O.png) 0% 0% repeat-y; | ||
1271 | +} | ||
1272 | +.comment-from-owner .comment-wrapper-5 { | ||
1273 | + background: url(/images/comment-owner-bg-SL.png) 100% 100% no-repeat; | ||
1274 | +} | ||
1275 | +.comment-from-owner .comment-wrapper-6 { | ||
1276 | + background: url(/images/comment-owner-bg-SO.png) 0% 100% no-repeat; | ||
1277 | +} | ||
1278 | +.comment-from-owner .comment-wrapper-7 { | ||
1279 | + background: url(/images/comment-owner-bg-NL.png) 100% 0% no-repeat; | ||
1280 | +} | ||
1281 | +.comment-from-owner .comment-wrapper-8 { | ||
1282 | + background: url(/images/comment-owner-bg-NO.png) 0% 0% no-repeat; | ||
1283 | +} | ||
1284 | + | ||
1285 | +.comment-created-at { | ||
1286 | + position: relative; | ||
1287 | + padding-right: 9px; | ||
1288 | +} | ||
1289 | + | ||
1290 | +.comment-order { | ||
1291 | + float: right; | ||
1292 | + display: block; | ||
1293 | +} | ||
1294 | + | ||
1295 | +.comment-from-owner .comment-created-at { | ||
1296 | + color: #333; | ||
1297 | +} | ||
1298 | + | ||
1299 | +.article-comment .button-bar { | ||
1300 | + position: relative; | ||
1301 | + top: 9px; | ||
1302 | + right: 8px; | ||
1303 | + z-index: 10px; | ||
1304 | +} | ||
1305 | + | ||
1306 | +.article-comment .button-bar a { | ||
1307 | + position: relative; | ||
1308 | +} | ||
1309 | + | ||
1310 | +.comment-details { | ||
1311 | + margin: 0px; | ||
1312 | + padding: 7px 12px 3px 26px; | ||
1313 | +} | ||
1314 | + | ||
1315 | +/* ==> controllers.css <== */ | ||
1316 | + | ||
1317 | +/******** controller-friends action-friends-index ********/ | ||
1318 | + | ||
1319 | +.action-friends-index .profile-list li, | ||
1320 | +.common-profile-list-block .vcard { | ||
1321 | + border: 1px solid transparent; | ||
1322 | +} | ||
1323 | + | ||
1324 | +.action-friends-index .profile-list li:hover, | ||
1325 | +.common-profile-list-block .vcard:hover { | ||
1326 | + border: 1px solid #CCC; | ||
1327 | + -moz-border-radius: 5px; | ||
1328 | + -webkit-border-radius: 5px; | ||
1329 | + background: #EEE; | ||
1330 | + text-decoration: none; | ||
1331 | +} | ||
1332 | + | ||
1333 | +.common-profile-list-block .vcard a, | ||
1334 | +.common-profile-list-block .vcard a:hover { | ||
1335 | + background: transparent; | ||
1336 | + border: 0; | ||
1337 | +} | ||
1338 | + | ||
1339 | +/******** controller-profile action-profile-index ********/ | ||
1340 | + | ||
1341 | +table.profile th { | ||
1342 | + font-size: 15px; | ||
1343 | + text-align: left; | ||
1344 | +} | ||
1345 | + | ||
1346 | +/**** controller-memberships action-memberships-index ****/ | ||
1347 | + | ||
1348 | +#memberships-index li { | ||
1349 | + background-color: #FFF; | ||
1350 | + border: 1px solid #EEE; | ||
1351 | + -moz-border-radius: 9px; | ||
1352 | + -webkit-border-radius: 9px; | ||
1353 | + margin-bottom: 10px; | ||
1354 | +} | ||
1355 | + | ||
1356 | +#memberships-index li .vcard a.profile_link.url { | ||
1357 | + border: 1px solid transparent; | ||
1358 | + background-color: #FFF; | ||
1359 | +} | ||
1360 | + | ||
1361 | +#memberships-index li .vcard a.profile_link.url:hover { | ||
1362 | + border: 1px solid #CCC; | ||
1363 | + background-color: #EEE; | ||
1364 | + -moz-border-radius: 4px; | ||
1365 | + -webkit-border-radius: 4px; | ||
1366 | +} | ||
1367 | + | ||
1368 | +/************************** Control Panel ****************************/ | ||
1369 | + | ||
1370 | +.control-panel a, | ||
1371 | +.control-panel a:visited { | ||
1372 | + color: #000; | ||
1373 | + font-weight: bold; | ||
1374 | + background-position: 2px 50%; | ||
1375 | +} | ||
1376 | +.control-panel a:hover { | ||
1377 | + text-decoration: none; | ||
1378 | + color: #2e3436; | ||
1379 | + background-color: #d3d7cf; | ||
1380 | +} | ||
1381 | + | ||
1382 | + | ||
1383 | + | ||
1384 | +/* ==> doc.css <== */ | ||
1385 | + | ||
1386 | +#online-doc-navigation h1 { | ||
1387 | + font-variant: small-caps; | ||
1388 | + color: #AAA; | ||
1389 | + border-bottom: 2px solid #AAA; | ||
1390 | +} | ||
1391 | + | ||
1392 | +#online-doc-text { | ||
1393 | + background: transparent url(imgs/blog-sep.png) repeat-x scroll 0 0; | ||
1394 | + padding: 15px 20px 5px 20px; | ||
1395 | + margin: 10px -19px; | ||
1396 | +} | ||
1397 | + | ||
1398 | +#online-doc-text h1, | ||
1399 | +#online-doc-text h2, | ||
1400 | +#online-doc-text h3, | ||
1401 | +#online-doc-text h4, | ||
1402 | +#online-doc-text h5, | ||
1403 | +#online-doc-text h6 { | ||
1404 | + font-variant: small-caps; | ||
1405 | +} | ||
1406 | + | ||
1407 | +#online-doc-text h2 { | ||
1408 | + border-bottom: 2px solid black; | ||
1409 | +} | ||
1410 | + | ||
1411 | +/**************************** Browse *******************************/ | ||
1412 | + | ||
1413 | +#content .search-results-type-article li { | ||
1414 | + padding: 5px 0px; | ||
1415 | +} | ||
1416 | + | ||
1417 | +.search-results-type-article a { | ||
1418 | + text-decoration: none; | ||
1419 | +} | ||
1420 | +.search-results-type-article a:hover { | ||
1421 | + text-decoration: underline; | ||
1422 | +} | ||
1423 | + | ||
1424 | +/* simplemenu */ | ||
1425 | + | ||
1426 | +.simplemenu-submenu { | ||
1427 | + background: #EEE; | ||
1428 | + border: 1px solid #AAA; | ||
1429 | + opacity: 0.9; | ||
1430 | + text-align: left; | ||
1431 | +} | ||
1432 | +.user-status .simplemenu-item a { | ||
1433 | + color: black; | ||
1434 | +} | ||
1435 | + | ||
1436 | +/* chat */ | ||
1437 | + | ||
1438 | +#chat-window .history .self-name { | ||
1439 | + color: #3F3F90; | ||
1440 | +} | ||
1441 | +#chat-window .history .other-name { | ||
1442 | + color: #7F1F1F; | ||
1443 | +} | ||
1444 | + | ||
1445 | +/* recaptcha*/ | ||
1446 | + | ||
1447 | +table#recaptcha_table tr:hover td { | ||
1448 | + background-color: #fff; | ||
1449 | +} | ||
1450 | + | ||
1451 | + |
1 | +++ a/style.css | ||
@@ -0,0 +1,406 @@ | @@ -0,0 +1,406 @@ | ||
1 | +@import url(../base/style.css); | ||
2 | +/****************** ESTILO BASE ******************/ | ||
3 | +@import url(cabecalho.css); | ||
4 | +/****************** FIM cabecalho amarelo ******************/ | ||
5 | +@import url(style-core.css); | ||
6 | +@import url(user-menu.css); | ||
7 | + | ||
8 | +body, th, td, input { | ||
9 | +font-family: Arial, sans-serif; | ||
10 | +} | ||
11 | + | ||
12 | +#wrap-2 {background-color:#ebeff2;} | ||
13 | + | ||
14 | +#wrap-1 { | ||
15 | + min-width: 800px; | ||
16 | +} | ||
17 | + | ||
18 | +#site-title { | ||
19 | + position: relative; | ||
20 | + top: 0; | ||
21 | + width: auto; | ||
22 | + height: auto; | ||
23 | + display: none; | ||
24 | + visibility: hidden; | ||
25 | +} | ||
26 | + | ||
27 | +#site-title a { | ||
28 | + display: block; | ||
29 | + width: auto; | ||
30 | + height: auto; | ||
31 | + position: relative; | ||
32 | + top: 0; | ||
33 | + left: 0; | ||
34 | +} | ||
35 | + | ||
36 | +/*largura dos blocos lateral e principal*/ | ||
37 | + | ||
38 | +/*Largura dos blocos funciona somente para duas colunas*/ | ||
39 | +/*e somente com a barra lateral do lado direito*/ | ||
40 | +/* | ||
41 | +.box-1, | ||
42 | +.no-boxes { | ||
43 | +margin: 0 0 0 0; | ||
44 | +float: left; | ||
45 | +width: 80%; | ||
46 | +} | ||
47 | + | ||
48 | +.box-1 .blocks, | ||
49 | +.no-boxes .blocks { | ||
50 | + width: auto; | ||
51 | + float: none; | ||
52 | + padding: 0 1em; | ||
53 | +} | ||
54 | + | ||
55 | +.box-2, .box-3 { | ||
56 | + position: relative; | ||
57 | + float: left; | ||
58 | + width: 20%; | ||
59 | +} | ||
60 | + | ||
61 | +.box-2 .blocks{ | ||
62 | + padding: 0 1em; | ||
63 | +} | ||
64 | +*/ | ||
65 | + | ||
66 | +/**Nova largura dos blocos lateral e principal**/ | ||
67 | + | ||
68 | +.box-1, .no-boxes { | ||
69 | +margin: 0 0 0 0; | ||
70 | +display: block; | ||
71 | +position: relative; | ||
72 | +overflow: hidden; | ||
73 | +} | ||
74 | + | ||
75 | +.box-1 .blocks, | ||
76 | +.no-boxes .blocks { | ||
77 | + width: auto; | ||
78 | + float: none; | ||
79 | + padding: 0 1em; | ||
80 | +} | ||
81 | + | ||
82 | + | ||
83 | +.box-2/*, .box-3 */{ | ||
84 | +position: relative; | ||
85 | +display: block; | ||
86 | +margin: 0; | ||
87 | +vertical-align: top; | ||
88 | +width: 20%; | ||
89 | +} | ||
90 | +.box-3{ | ||
91 | +min-width: 20%; | ||
92 | +} | ||
93 | + | ||
94 | +.box-2 .blocks, .box-3 .blocks{ | ||
95 | + padding: 0 1em; | ||
96 | +} | ||
97 | + | ||
98 | +#content .people-block ul, #content .profile-list-block ul, #content .enterprises-block ul, #content .members-block ul, #content .communities-block ul, #content .friends-block ul, #content .fans-block ul {min-width: auto;width: auto;} | ||
99 | + | ||
100 | +.box-2 .common-profile-list-block .vcard a.profile_link, .box-3 .common-profile-list-block .vcard a.profile_link {height: 112px;max-height: 112px;} | ||
101 | + | ||
102 | +.common-profile-list-block .vcard a, .comment-actions .vcard a{} | ||
103 | + | ||
104 | +/*estilo dos blocos*/ | ||
105 | + | ||
106 | +#main-content-wrapper-1, | ||
107 | +#main-content-wrapper-2, | ||
108 | +#main-content-wrapper-3, | ||
109 | +#main-content-wrapper-4, | ||
110 | +#main-content-wrapper-5, | ||
111 | +#main-content-wrapper-6, | ||
112 | +#main-content-wrapper-7, | ||
113 | +#main-content-wrapper-8 { | ||
114 | + background: url(images/no-image.gif) no-repeat; | ||
115 | +} | ||
116 | + | ||
117 | +#main-content-wrapper-8 { | ||
118 | + padding: 10px 20px; | ||
119 | +} | ||
120 | + | ||
121 | +#content .block { | ||
122 | + padding-bottom: 1em; | ||
123 | + margin: 0; | ||
124 | +} | ||
125 | + | ||
126 | +#content .block .block-inner-1 { | ||
127 | + background-color: #fff; | ||
128 | + box-shadow: 5px 5px 5px -2px #ddd; | ||
129 | +} | ||
130 | + | ||
131 | +#content .box-1 .block .block-inner-1, | ||
132 | +#content .no-boxes .block .no-boxes-inner-1 {padding:1em;} | ||
133 | + | ||
134 | +#content .block .block-inner-2 h3~div {padding:1em;} | ||
135 | + | ||
136 | +#content .box-1 .block, | ||
137 | +#content .no-boxes .block{padding: 0;} | ||
138 | + | ||
139 | +#content .link-list-block{padding: 0;} | ||
140 | + | ||
141 | +#content .link-list-block li{margin: 0;} | ||
142 | + | ||
143 | +#content .link-list-block li a { | ||
144 | + border-radius: 0; | ||
145 | + padding: 10px 5px 10px 40px; | ||
146 | + border-bottom: 1px solid #ccc; | ||
147 | + background-color: #f7f9fa; | ||
148 | + border-left: 3px solid #f7f9fa; | ||
149 | +} | ||
150 | + | ||
151 | +/*bloco lateral de menu*/ | ||
152 | +#content .link-list-block li a.link-this-page{ | ||
153 | + max-width:100%; | ||
154 | + width: auto; | ||
155 | + border-right: 0px; | ||
156 | + background-color: #257CAD; | ||
157 | + color: white; | ||
158 | + border-left: 3px solid #fff; | ||
159 | +} | ||
160 | + | ||
161 | +#content .link-list-block li a.link-this-page:hover, | ||
162 | +#content .link-list-block li a:hover { | ||
163 | + background-color: #257CAD; | ||
164 | + border-left: 3px solid #fff; | ||
165 | + border-right: 0px solid #fff; | ||
166 | +} | ||
167 | + | ||
168 | +#profile-header {margin-bottom: 20px;} | ||
169 | +#content .block-title { font-variant: inherit; margin-bottom: 0px;} | ||
170 | + | ||
171 | +/*cabeçalho dos blocos laterais*/ | ||
172 | +#content .block h3.block-title, | ||
173 | +#content #content-inner .login-block .logged-user-info h2{ | ||
174 | + font-size: 16px; | ||
175 | + text-align: left; | ||
176 | + border-bottom: 1px solid #AAA; | ||
177 | + padding: 0.5em; | ||
178 | + background-color: #257CAD; | ||
179 | + color: white; | ||
180 | + font-variant: inherit; | ||
181 | +} | ||
182 | + | ||
183 | +/*cabeçalho do blocos principal*/ | ||
184 | +#content .box-1 .block h3.block-title, | ||
185 | +#content .no-boxes .block h3.block-title { | ||
186 | + color: #333; | ||
187 | + font-size: 16px; | ||
188 | + text-align: left; | ||
189 | + border-bottom: 0px solid #AAA; | ||
190 | + padding: 0px; | ||
191 | + background-color: transparent; | ||
192 | +} | ||
193 | + | ||
194 | +/*ver todos blocos laterais*/ | ||
195 | +#content .tags-block .block-footer-content a, #content .people-block .block-footer-content a, #content .profile-list-block .block-footer-content a, #content .enterprises-block .block-footer-content a, #content .members-block .block-footer-content a, #content .communities-block .block-footer-content a, #content .friends-block .block-footer-content a { | ||
196 | + position: absolute; | ||
197 | + top: 5px; | ||
198 | + right: 5px; | ||
199 | + font-size: 12px; | ||
200 | + color: #000; | ||
201 | + text-decoration: none; | ||
202 | + background-color: #fff; | ||
203 | + padding: 6px 20px 6px 12px; | ||
204 | + border-radius: 12px; | ||
205 | + background-position-x: 90%; | ||
206 | +} | ||
207 | + | ||
208 | +#content .tags-block .block-footer-content a:hover, | ||
209 | +#content .people-block .block-footer-content a:hover, | ||
210 | +#content .profile-list-block .block-footer-content a:hover, | ||
211 | +#content .enterprises-block .block-footer-content a:hover, | ||
212 | +#content .members-block .block-footer-content a:hover, | ||
213 | +#content .communities-block .block-footer-content a:hover, | ||
214 | +#content .friends-block .block-footer-content a:hover { | ||
215 | + position: absolute; | ||
216 | + top: 5px; | ||
217 | + right: 5px; | ||
218 | + font-size: 12px; | ||
219 | + color: #000; | ||
220 | + text-decoration: none; | ||
221 | + background-color: #257CAD; | ||
222 | + color: white; | ||
223 | + padding: 6px 20px 6px 12px; | ||
224 | + border-radius: 12px; | ||
225 | + border: 1px solid white; | ||
226 | +} | ||
227 | + | ||
228 | +#content .main-block h1{ | ||
229 | + font-variant: inherit; | ||
230 | + color: #555753; | ||
231 | + text-align: left; | ||
232 | + border-bottom: 0px; | ||
233 | +/*font-family: 'Roboto',sans-serif;*/ | ||
234 | + margin: 0 0 5px; | ||
235 | + font-weight: 700; | ||
236 | + color: #4d4d4d; | ||
237 | +} | ||
238 | + | ||
239 | +.search_form input[type="text"], | ||
240 | +#public-profile-search input[type="text"]{ | ||
241 | + padding: 6px 0; | ||
242 | + font-size: 14px; | ||
243 | + line-height: 1.42857143; | ||
244 | + color: #555; | ||
245 | + background-color: #fff; | ||
246 | + background-image: none; | ||
247 | + border: 1px solid #ccc; | ||
248 | +} | ||
249 | + | ||
250 | +#content form input.button.submit { | ||
251 | + max-height: 34px; | ||
252 | + cursor: pointer; | ||
253 | + height: 34px; | ||
254 | + vertical-align: top; | ||
255 | + margin-top: 2px; | ||
256 | + margin-left: 16px; | ||
257 | +} | ||
258 | + | ||
259 | +.controller-search #content form input.button.submit{ | ||
260 | + height: 38px; | ||
261 | + max-height: 38px; | ||
262 | + background-position-x: 8px; | ||
263 | +} | ||
264 | + | ||
265 | +.controller-search .search-results-box{ | ||
266 | + float: none; | ||
267 | + width: 100%; | ||
268 | + margin-top: 2em; | ||
269 | + box-shadow: 5px 5px 5px -2px #ddd; | ||
270 | +} | ||
271 | + | ||
272 | +.controller-search .search-results-box h3{ | ||
273 | + font-size: 16px; | ||
274 | + text-align: left; | ||
275 | + border-bottom: 1px solid #AAA; | ||
276 | + padding: 0.5em; | ||
277 | + background-color: #257CAD; | ||
278 | + color: white !important; | ||
279 | + font-variant: none; | ||
280 | + margin-left: 0px !important; | ||
281 | + text-transform: uppercase; | ||
282 | +} | ||
283 | + | ||
284 | +.controller-search .search-results-innerbox { | ||
285 | + height: 100%; | ||
286 | + background-image: none; | ||
287 | + background-color: white; | ||
288 | + border: none; | ||
289 | +} | ||
290 | + | ||
291 | +.search-field-label {width: auto;} | ||
292 | + | ||
293 | +.search-article-body { | ||
294 | + width: 85%; | ||
295 | +} | ||
296 | + | ||
297 | +.search-article-tags .search-article-tag, .search-article-categories .search-article-category { | ||
298 | + padding: 5px 6px 3px; | ||
299 | +} | ||
300 | + | ||
301 | +#public-profile-search, #profile-search-results form, .profile-search-block form { | ||
302 | + padding: 10px; | ||
303 | + margin-bottom: 15px; | ||
304 | + background-color: transparent; | ||
305 | + -moz-border-radius: 5px; | ||
306 | + -webkit-border-radius: 0px; | ||
307 | +} | ||
308 | + | ||
309 | + | ||
310 | +/*telas de edição*/ | ||
311 | + | ||
312 | +/*Estilo dos campos - input*/ | ||
313 | +.formfield input, .formfield textarea { | ||
314 | + background: none; | ||
315 | + border: 2px solid #B0C4DE; | ||
316 | + color: #333; | ||
317 | + font-size: 16px; | ||
318 | + border-radius: 5px; | ||
319 | +} | ||
320 | + | ||
321 | +#content form input.button.submit {margin-left:0px; margin-right: 16px;} | ||
322 | + | ||
323 | +/*Campo inserir arquivo*/ | ||
324 | +input[type~="file"] {border: none;} | ||
325 | + | ||
326 | +/*formulário de criação de artigos - lado esquerdo*/ | ||
327 | +.controller-cms div.with_media_panel { | ||
328 | + float: left; | ||
329 | + width: 70%; | ||
330 | + display: inline-block; | ||
331 | + background-color: #FFF; | ||
332 | + padding: 1em; | ||
333 | + vertical-align: top; | ||
334 | +} | ||
335 | + | ||
336 | +/*caixas de formulário da direita - Inserir imagem e buscar imagem*/ | ||
337 | +.text-editor-sidebar{ | ||
338 | + float: left; | ||
339 | + position: relative; | ||
340 | + width: 20%; | ||
341 | + display: inline-block; | ||
342 | + vertical-align: top; | ||
343 | + margin-left: 3%; | ||
344 | + right: 0; | ||
345 | + top: 0; | ||
346 | +} | ||
347 | + | ||
348 | +/*Campo inserir arquivo - lado direito*/ | ||
349 | +.text-editor-sidebar .text-editor-sidebar-box #media-upload-form form input[type~="file"]{font-size: x-small;} | ||
350 | + | ||
351 | +/*campo de busca de mídia*/ | ||
352 | +.text-editor-sidebar #media-search-box .formfield input { | ||
353 | + display: inline-block; | ||
354 | + width: 85% !important; | ||
355 | +} | ||
356 | + | ||
357 | +/*botão de busca de mídia*/ | ||
358 | +#content .text-editor-sidebar #media-search-box form input.button.submit { | ||
359 | + max-height: 24px; | ||
360 | + cursor: pointer; | ||
361 | + height: 34px; | ||
362 | + vertical-align: top; | ||
363 | + margin-top: 2px; | ||
364 | + margin-left: 0; | ||
365 | + margin-right: 0; | ||
366 | + width: 0px; | ||
367 | + color: #EEE; | ||
368 | + display: inline-block; | ||
369 | +} | ||
370 | + | ||
371 | +/*botão cancelar*/ | ||
372 | +#content a.button.with-text { | ||
373 | +line-height: 32px; | ||
374 | +height: 32px; | ||
375 | +margin-top: 2px; | ||
376 | +} | ||
377 | + | ||
378 | +.comment-details .menu-submenu { | ||
379 | + right: 3px; | ||
380 | +} | ||
381 | + | ||
382 | +.vote-actions { | ||
383 | + top: 30px; | ||
384 | +} | ||
385 | + | ||
386 | +.ui-widget-header { | ||
387 | + background: none; | ||
388 | + border-width: 0px 0px 1px 0px; | ||
389 | +} | ||
390 | + | ||
391 | +#leave_scrap_content_left { | ||
392 | + float: none; | ||
393 | + text-align: left; | ||
394 | +} | ||
395 | + | ||
396 | +#leave_scrap textarea { | ||
397 | + float: left; | ||
398 | +} | ||
399 | + | ||
400 | +#profile-activity ul, #profile-network ul, #profile-wall ul { | ||
401 | + width: 100%; | ||
402 | +} | ||
403 | + | ||
404 | +.profile-activity-lead { | ||
405 | + width: 90%; | ||
406 | +} |
1 | +++ a/theme-25-09-2014.js | ||
@@ -0,0 +1,63 @@ | @@ -0,0 +1,63 @@ | ||
1 | +jQuery(document).ready(function($) { | ||
2 | + // Run code | ||
3 | + $("#profile_activities .profile-activity-item").addClass("waterfall"); | ||
4 | + | ||
5 | + $(".waterfall").waterfall(); | ||
6 | + | ||
7 | + | ||
8 | + $('.btn_control .logged-in #homepage-link').live('click', function(e){ | ||
9 | + e.preventDefault(); | ||
10 | + $("#wrap-0").toggleClass("menu"); | ||
11 | + $("#wrap-1").toggleClass("menu"); | ||
12 | + $("#theme-footer").toggleClass("menu"); | ||
13 | + }); | ||
14 | + | ||
15 | +//abrir e fechar tarefas pendentes na barra do usuário// | ||
16 | + $(".btn_tasks").click(function(){ | ||
17 | + $("#task_list").addClass("hide"); | ||
18 | + $("#msg_list").addClass("hide"); | ||
19 | + $("#task_list").toggleClass("hide"); | ||
20 | + }); | ||
21 | + | ||
22 | + $("#close_task").click(function(){ | ||
23 | + $("#task_list").toggleClass("hide"); | ||
24 | + }); | ||
25 | + | ||
26 | +//abrir e fechar mensagens não lidas na barra do usuário// | ||
27 | + $(".btn_msg").click(function(){ | ||
28 | + $("#task_list").addClass("hide"); | ||
29 | + $("#msg_list").addClass("hide"); | ||
30 | + $("#msg_list").toggleClass("hide"); | ||
31 | + }); | ||
32 | + | ||
33 | + $("#close_msg").click(function(){ | ||
34 | + $("#msg_list").toggleClass("hide"); | ||
35 | + }); | ||
36 | + | ||
37 | +//abrir e fechar Painel de controle da comunidade// | ||
38 | + $("#btn_open_control_panel span").click(function(){ | ||
39 | + $("#control_panel_bar").toggleClass("show"); | ||
40 | + $("#btn_open_control_panel").toggleClass("show"); | ||
41 | + }); | ||
42 | + | ||
43 | +//abrir e fechar Painel de controle da comunidade// | ||
44 | +//aba conteúdo// | ||
45 | + $("#navigation ul li#btn_content").click(function(){ | ||
46 | + $("#control_panel_bar.menu_aparence").removeClass("show"); | ||
47 | + $("#control_panel_bar.menu_settings").removeClass("show"); | ||
48 | + $("#control_panel_bar.menu_content").toggleClass("show", 200); | ||
49 | + }); | ||
50 | +//aba aparência// | ||
51 | + $("#navigation ul li#btn_aparence").click(function(){ | ||
52 | + $("#control_panel_bar.menu_settings").removeClass("show"); | ||
53 | + $("#control_panel_bar.menu_content").removeClass("show"); | ||
54 | + $("#control_panel_bar.menu_aparence").toggleClass("show", 200); | ||
55 | + }); | ||
56 | +//aba Configurações// | ||
57 | + $("#navigation ul li#btn_settings").click(function(){ | ||
58 | + $("#control_panel_bar.menu_content").removeClass("show"); | ||
59 | + $("#control_panel_bar.menu_aparence").removeClass("show"); | ||
60 | + $("#control_panel_bar.menu_settings").toggleClass("show", 200); | ||
61 | + }); | ||
62 | + | ||
63 | +}); |
1 | +++ a/theme.js | ||
@@ -0,0 +1,59 @@ | @@ -0,0 +1,59 @@ | ||
1 | +jQuery(document).ready(function($) { | ||
2 | + // Run code | ||
3 | + | ||
4 | + $('.btn_control .logged-in #homepage-link').live('click', function(e){ | ||
5 | + e.preventDefault(); | ||
6 | + $("#wrap-0").toggleClass("menu"); | ||
7 | + $("#wrap-1").toggleClass("menu"); | ||
8 | + $("#theme-footer").toggleClass("menu"); | ||
9 | + }); | ||
10 | + | ||
11 | +//abrir e fechar tarefas pendentes na barra do usuário// | ||
12 | + $(".btn_tasks").click(function(){ | ||
13 | + $("#task_list").addClass("hide"); | ||
14 | + $("#msg_list").addClass("hide"); | ||
15 | + $("#task_list").toggleClass("hide"); | ||
16 | + }); | ||
17 | + | ||
18 | + $("#close_task").click(function(){ | ||
19 | + $("#task_list").toggleClass("hide"); | ||
20 | + }); | ||
21 | + | ||
22 | +//abrir e fechar mensagens não lidas na barra do usuário// | ||
23 | + $(".btn_msg").click(function(){ | ||
24 | + $("#task_list").addClass("hide"); | ||
25 | + $("#msg_list").addClass("hide"); | ||
26 | + $("#msg_list").toggleClass("hide"); | ||
27 | + }); | ||
28 | + | ||
29 | + $("#close_msg").click(function(){ | ||
30 | + $("#msg_list").toggleClass("hide"); | ||
31 | + }); | ||
32 | + | ||
33 | +//abrir e fechar Painel de controle da comunidade// | ||
34 | + $("#btn_open_control_panel span").click(function(){ | ||
35 | + $("#control_panel_bar").toggleClass("show"); | ||
36 | + $("#btn_open_control_panel").toggleClass("show"); | ||
37 | + }); | ||
38 | + | ||
39 | +//abrir e fechar Painel de controle da comunidade// | ||
40 | +//aba conteúdo// | ||
41 | + $("#navigation ul li#btn_content").click(function(){ | ||
42 | + $("#control_panel_bar.menu_aparence").removeClass("show"); | ||
43 | + $("#control_panel_bar.menu_settings").removeClass("show"); | ||
44 | + $("#control_panel_bar.menu_content").toggleClass("show", 200); | ||
45 | + }); | ||
46 | +//aba aparência// | ||
47 | + $("#navigation ul li#btn_aparence").click(function(){ | ||
48 | + $("#control_panel_bar.menu_settings").removeClass("show"); | ||
49 | + $("#control_panel_bar.menu_content").removeClass("show"); | ||
50 | + $("#control_panel_bar.menu_aparence").toggleClass("show", 200); | ||
51 | + }); | ||
52 | +//aba Configurações// | ||
53 | + $("#navigation ul li#btn_settings").click(function(){ | ||
54 | + $("#control_panel_bar.menu_content").removeClass("show"); | ||
55 | + $("#control_panel_bar.menu_aparence").removeClass("show"); | ||
56 | + $("#control_panel_bar.menu_settings").toggleClass("show", 200); | ||
57 | + }); | ||
58 | + | ||
59 | +}); |
1 | +++ a/user_menu.html.erb | ||
@@ -0,0 +1,21 @@ | @@ -0,0 +1,21 @@ | ||
1 | +<div id="wrap-0"> | ||
2 | + <div id="navigation-control"> | ||
3 | + <div class="perfil"> | ||
4 | + <ul class="profile_menu"> | ||
5 | + <li class="name"><h1 class="title"><%= person.name %></h1></li> | ||
6 | + <li class="picture"><%= link_to(profile_image(person, :big), person.public_profile_url) %></li> | ||
7 | + <!--<li class="user_status online"><span>●</span> Disponível</li>--> | ||
8 | + </ul> | ||
9 | + </div> | ||
10 | + <%#= render :partial => 'layouts/user' %> | ||
11 | + <div class="menu_user"> | ||
12 | + <ul class="activity_menu"> | ||
13 | + <li class="activity_menu_item"><%= link_to _("Network"), url_for(person.public_profile_url.merge(:anchor => 'profile-network')) %></li> | ||
14 | + <li class="activity_menu_item"><%= link_to _("Wall"), url_for(person.public_profile_url.merge(:anchor => 'profile-wall')) %></li> | ||
15 | + <li class="activity_menu_item"><%= link_to _("Friends"), url_for(:controller => :profile, :action => :friends, :profile => person.identifier) %></li> | ||
16 | + <li class="activity_menu_item"><%= link_to _("Communities"), url_for(:controller => :profile, :action => :communities, :profile => person.identifier) %></li> | ||
17 | + <li class="activity_menu_item"><%= link_to _("Agenda"), url_for(:controller => :profile, :action => :events, :profile => person.identifier) %></li> | ||
18 | + </ul> | ||
19 | + </div> | ||
20 | + </div> | ||
21 | +</div> |