jekyll-theme-pirati 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/LICENSE.txt +21 -0
- data/README.md +55 -0
- data/_includes/accordeon/accordeon-column.html +8 -0
- data/_includes/accordeon/accordeon.html +12 -0
- data/_includes/article-list/featured_article.html +55 -0
- data/_includes/article-list/list-3col.html +55 -0
- data/_includes/article-list/pagination.html +36 -0
- data/_includes/article-list/standard_article.html +45 -0
- data/_includes/disqus_comments.html +20 -0
- data/_includes/footer.html +23 -0
- data/_includes/google-analytics.html +12 -0
- data/_includes/head.html +60 -0
- data/_includes/header.html +115 -0
- data/_includes/icon-github.html +1 -0
- data/_includes/icon-github.svg +1 -0
- data/_includes/icon-twitter.html +1 -0
- data/_includes/icon-twitter.svg +1 -0
- data/_includes/js/custom.js +245 -0
- data/_includes/js/fb.js +15 -0
- data/_includes/js/main.html +18 -0
- data/_includes/js/piwik.js +11 -0
- data/_includes/js/tw.js +15 -0
- data/_includes/people/item.html +31 -0
- data/_includes/people/list-2col.html +25 -0
- data/_includes/right-bar/bar_cal.html +15 -0
- data/_includes/right-bar/bar_fb.html +23 -0
- data/_includes/right-bar/bar_foto.html +20 -0
- data/_includes/right-bar/bar_map.html +37 -0
- data/_includes/right-bar/bar_people.html +25 -0
- data/_includes/right-bar/bar_program.html +35 -0
- data/_includes/right-bar/bar_teams_summary.html +22 -0
- data/_includes/right-bar/bar_teams_toc.html +31 -0
- data/_includes/right-bar/bar_textbox.html +23 -0
- data/_includes/right-bar/bar_toc.html +77 -0
- data/_includes/right-bar/bar_tw.html +16 -0
- data/_includes/right-bar/bar_video.html +23 -0
- data/_includes/right-bar/rbar.html +39 -0
- data/_includes/right-bar/social-bar.html +16 -0
- data/_includes/social.html +14 -0
- data/_includes/submenu.html +22 -0
- data/_includes/title/title_header.html +9 -0
- data/_layouts/blank.html +14 -0
- data/_layouts/compress.html +10 -0
- data/_layouts/default.html +23 -0
- data/_layouts/home.html +34 -0
- data/_layouts/page.html +34 -0
- data/_layouts/post.html +110 -0
- data/_layouts/redirected.html +13 -0
- data/_layouts/team.html +45 -0
- data/_sass/_base.scss +24 -0
- data/_sass/_settings.scss +569 -0
- data/_sass/_sprites.scss +0 -0
- data/_sass/components/BasicPage.scss +464 -0
- data/_sass/components/BlogPosting.scss +274 -0
- data/_sass/components/Person.scss +42 -0
- data/_sass/components/Slider.scss +0 -0
- data/_sass/components/banner.scss +75 -0
- data/_sass/components/blockquote.scss +53 -0
- data/_sass/components/card.scss +154 -0
- data/_sass/components/contact-bar.scss +93 -0
- data/_sass/components/content-card.scss +31 -0
- data/_sass/components/cta-button.scss +54 -0
- data/_sass/components/header-bar.scss +108 -0
- data/_sass/components/hero.scss +164 -0
- data/_sass/components/highlight.scss +60 -0
- data/_sass/components/icon.scss +25 -0
- data/_sass/components/pagination.scss +75 -0
- data/_sass/components/pripoj-se.scss +97 -0
- data/_sass/components/scroll-top.scss +32 -0
- data/_sass/components/simple-accordion.scss +85 -0
- data/_sass/components/tag.scss +30 -0
- data/_sass/components/top-bar.scss +492 -0
- data/_sass/components/top-sub-nav.scss +186 -0
- data/_sass/components/vertical-navigation.scss +68 -0
- data/_sass/components/welcome-header.scss +188 -0
- data/_sass/components/widget-accordion.scss +293 -0
- data/_sass/components/widget-share-box.scss +57 -0
- data/_sass/components/widget-simple-text.scss +15 -0
- data/_sass/foundation/_global.scss +638 -0
- data/_sass/foundation/components/_accordion-menu.scss +32 -0
- data/_sass/foundation/components/_accordion.scss +129 -0
- data/_sass/foundation/components/_badge.scss +55 -0
- data/_sass/foundation/components/_breadcrumbs.scss +95 -0
- data/_sass/foundation/components/_button-group.scss +195 -0
- data/_sass/foundation/components/_button.scss +265 -0
- data/_sass/foundation/components/_callout.scss +105 -0
- data/_sass/foundation/components/_close-button.scss +61 -0
- data/_sass/foundation/components/_drilldown.scss +79 -0
- data/_sass/foundation/components/_dropdown-menu.scss +221 -0
- data/_sass/foundation/components/_dropdown.scss +65 -0
- data/_sass/foundation/components/_flex-video.scss +63 -0
- data/_sass/foundation/components/_flex.scss +28 -0
- data/_sass/foundation/components/_float.scss +27 -0
- data/_sass/foundation/components/_label.scss +55 -0
- data/_sass/foundation/components/_media-object.scss +115 -0
- data/_sass/foundation/components/_menu-icon.scss +9 -0
- data/_sass/foundation/components/_menu.scss +314 -0
- data/_sass/foundation/components/_off-canvas.scss +177 -0
- data/_sass/foundation/components/_orbit.scss +193 -0
- data/_sass/foundation/components/_pagination.scss +162 -0
- data/_sass/foundation/components/_progress-bar.scss +64 -0
- data/_sass/foundation/components/_reveal.scss +172 -0
- data/_sass/foundation/components/_slider.scss +133 -0
- data/_sass/foundation/components/_sticky.scss +38 -0
- data/_sass/foundation/components/_switch.scss +232 -0
- data/_sass/foundation/components/_table.scss +234 -0
- data/_sass/foundation/components/_tabs.scss +165 -0
- data/_sass/foundation/components/_thumbnail.scss +54 -0
- data/_sass/foundation/components/_title-bar.scss +89 -0
- data/_sass/foundation/components/_tooltip.scss +104 -0
- data/_sass/foundation/components/_top-bar.scss +168 -0
- data/_sass/foundation/components/_visibility.scss +132 -0
- data/_sass/foundation/forms/_checkbox.scss +40 -0
- data/_sass/foundation/forms/_error.scss +84 -0
- data/_sass/foundation/forms/_fieldset.scss +54 -0
- data/_sass/foundation/forms/_forms.scss +34 -0
- data/_sass/foundation/forms/_help-text.scss +30 -0
- data/_sass/foundation/forms/_input-group.scss +128 -0
- data/_sass/foundation/forms/_label.scss +48 -0
- data/_sass/foundation/forms/_meter.scss +109 -0
- data/_sass/foundation/forms/_progress.scss +85 -0
- data/_sass/foundation/forms/_range.scss +144 -0
- data/_sass/foundation/forms/_select.scss +67 -0
- data/_sass/foundation/forms/_text.scss +163 -0
- data/_sass/foundation/foundation.scss +102 -0
- data/_sass/foundation/grid/_classes.scss +151 -0
- data/_sass/foundation/grid/_column.scss +126 -0
- data/_sass/foundation/grid/_flex-grid.scss +274 -0
- data/_sass/foundation/grid/_grid.scss +60 -0
- data/_sass/foundation/grid/_gutter.scss +34 -0
- data/_sass/foundation/grid/_layout.scss +51 -0
- data/_sass/foundation/grid/_position.scss +73 -0
- data/_sass/foundation/grid/_row.scss +95 -0
- data/_sass/foundation/grid/_size.scss +24 -0
- data/_sass/foundation/settings/_settings.scss +567 -0
- data/_sass/foundation/typography/_alignment.scss +22 -0
- data/_sass/foundation/typography/_base.scss +443 -0
- data/_sass/foundation/typography/_helpers.scss +77 -0
- data/_sass/foundation/typography/_print.scss +77 -0
- data/_sass/foundation/typography/_typography.scss +28 -0
- data/_sass/foundation/util/_breakpoint.scss +275 -0
- data/_sass/foundation/util/_color.scss +60 -0
- data/_sass/foundation/util/_flex.scss +68 -0
- data/_sass/foundation/util/_mixins.scss +235 -0
- data/_sass/foundation/util/_selector.scss +40 -0
- data/_sass/foundation/util/_unit.scss +90 -0
- data/_sass/foundation/util/_util.scss +11 -0
- data/_sass/foundation/util/_value.scss +107 -0
- data/_sass/main.scss +40 -0
- data/_sass/minima.scss +51 -0
- data/_sass/minima/_base.scss +254 -0
- data/_sass/minima/_layout.scss +255 -0
- data/_sass/minima/_syntax-highlighting.scss +71 -0
- data/_sass/objects/media.scss +55 -0
- data/_sass/objects/section.scss +247 -0
- data/_sass/objects/space.scss +7 -0
- data/_sass/scroll-top.scss +31 -0
- data/_sass/utilities/utilities.scss +190 -0
- data/assets/css/main.scss +110 -0
- data/assets/favicon/apple-touch-icon-114x114.png +0 -0
- data/assets/favicon/apple-touch-icon-120x120.png +0 -0
- data/assets/favicon/apple-touch-icon-144x144.png +0 -0
- data/assets/favicon/apple-touch-icon-152x152.png +0 -0
- data/assets/favicon/apple-touch-icon-57x57.png +0 -0
- data/assets/favicon/apple-touch-icon-60x60.png +0 -0
- data/assets/favicon/apple-touch-icon-72x72.png +0 -0
- data/assets/favicon/apple-touch-icon-76x76.png +0 -0
- data/assets/favicon/favicon-128.png +0 -0
- data/assets/favicon/favicon-16x16.png +0 -0
- data/assets/favicon/favicon-196x196.png +0 -0
- data/assets/favicon/favicon-32x32.png +0 -0
- data/assets/favicon/favicon-96x96.png +0 -0
- data/assets/favicon/favicon.ico +0 -0
- data/assets/favicon/mstile-144x144.png +0 -0
- data/assets/favicon/mstile-150x150.png +0 -0
- data/assets/favicon/mstile-310x150.png +0 -0
- data/assets/favicon/mstile-310x310.png +0 -0
- data/assets/favicon/mstile-70x70.png +0 -0
- data/assets/fonts/bebasneue_regular-webfont.eot +0 -0
- data/assets/fonts/bebasneue_regular-webfont.svg +3906 -0
- data/assets/fonts/bebasneue_regular-webfont.ttf +0 -0
- data/assets/fonts/bebasneue_regular-webfont.woff +0 -0
- data/assets/fonts/bebasneue_regular-webfont.woff2 +0 -0
- data/assets/icons/blog.png +0 -0
- data/assets/icons/compass.png +0 -0
- data/assets/icons/facebook.png +0 -0
- data/assets/icons/github.png +0 -0
- data/assets/icons/googleplus.png +0 -0
- data/assets/icons/instagram.png +0 -0
- data/assets/icons/linkedin.png +0 -0
- data/assets/icons/pinterest.png +0 -0
- data/assets/icons/piratewiki.png +0 -0
- data/assets/icons/redmine.png +0 -0
- data/assets/icons/twitter.png +0 -0
- data/assets/icons/vkontakte.png +0 -0
- data/assets/icons/youtube.png +0 -0
- data/assets/img/brand/logo-group.png +0 -0
- data/assets/img/brand/logo-group.svg +27 -0
- data/assets/img/brand/logo-round.png +0 -0
- data/assets/img/brand/logo-round.svg +104 -0
- data/assets/img/brand/logo.ai +5083 -16
- data/assets/img/brand/logo.pdf +1405 -4
- data/assets/img/brand/logo.png +0 -0
- data/assets/img/brand/logo.svg +10 -0
- data/assets/img/brand/logo_easy.png +0 -0
- data/assets/img/brand/logo_napis.ai +5003 -21
- data/assets/img/brand/logo_napis.pdf +1482 -3
- data/assets/img/brand/logo_napis.png +0 -0
- data/assets/img/brand/logo_napis.svg +48 -0
- data/assets/img/brand/logo_napis_male.png +0 -0
- data/assets/img/brand/logo_napis_white.ai +5106 -16
- data/assets/img/brand/logo_napis_white.pdf +1532 -2
- data/assets/img/brand/logo_napis_white.png +0 -0
- data/assets/img/brand/logo_napis_white.svg +51 -0
- data/assets/img/brand/logo_white.ai +5194 -23
- data/assets/img/brand/logo_white.pdf +1388 -4
- data/assets/img/brand/logo_white.png +0 -0
- data/assets/img/brand/logo_white.svg +14 -0
- data/assets/img/brand/logotyp_email.png +0 -0
- data/assets/img/brand/logow.svg +19 -0
- data/assets/img/header/background.jpg +0 -0
- data/assets/img/people/jakub-pirat.jpg +0 -0
- data/assets/img/posts/obrazek.u.tohoto.postu.jpg +0 -0
- data/assets/img/tiles/lightGrey.png +0 -0
- data/assets/img/tiles/tableOfContent.png +0 -0
- data/assets/js/common-libs.min.js +1 -0
- data/assets/js/custom.min.js +1 -0
- data/assets/people/piratska-strana.png +0 -0
- data/assets/people/ppp.jpg +0 -0
- metadata +316 -0
@@ -0,0 +1,115 @@
|
|
1
|
+
<div class='thetop'></div>
|
2
|
+
<aside class="o-section o-section--smaller c-header-bar u-inverted u-inverted--darker u-center-860-down">
|
3
|
+
<div class="row">
|
4
|
+
<div class="o-section-inner" style="padding: 3px;">
|
5
|
+
<div class="medium-12 columns">
|
6
|
+
<ul class="c-header-bar-items">
|
7
|
+
<li class="c-header-bar__item c-header-bar__item--smallerSpace">
|
8
|
+
<a href="{{site.fb}}" rel="noopener noreferrer" target="_blank" title="Facebook - Česká pirátská strana">
|
9
|
+
<i class="fa fa-facebook" aria-hidden="true"></i>
|
10
|
+
</a></li>
|
11
|
+
<li class="c-header-bar__item c-header-bar__item--smallerSpace">
|
12
|
+
<a href="https://www.twitter.com/{{site.tw}}" rel="noopener noreferrer" target="_blank" title="Twitter - Česká pirátská strana">
|
13
|
+
<i class="fa fa-twitter" aria-hidden="true"></i>
|
14
|
+
</a>
|
15
|
+
</li>
|
16
|
+
<li class="c-header-bar__item c-header-bar__item--smallerSpace">
|
17
|
+
<a href="https://www.instagram.com/pirati.cz/" rel="noopener noreferrer" target="_blank" title="Instagram - Česká pirátská strana">
|
18
|
+
<i class="fa fa-instagram" aria-hidden="true"></i>
|
19
|
+
</a></li>
|
20
|
+
<li class="c-header-bar__item c-header-bar__item--smallerSpace">
|
21
|
+
<a href="https://plus.google.com/u/0/+piratskastrana" rel="noopener noreferrer" target="_blank" title="Google Plus - Česká pirátská strana">
|
22
|
+
<i class="fa fa-google-plus" aria-hidden="true"></i>
|
23
|
+
</a>
|
24
|
+
</li>
|
25
|
+
<li class="c-header-bar__item c-header-bar__item--smallerSpace">
|
26
|
+
<a href="https://www.flickr.com/photos/pirati/" rel="noopener noreferrer" target="_blank" title="Flickr - Česká pirátská strana">
|
27
|
+
<i class="fa fa-flickr" aria-hidden="true"></i>
|
28
|
+
</a>
|
29
|
+
</li>
|
30
|
+
</ul>
|
31
|
+
<div class="c-header-bar-divider"></div>
|
32
|
+
<ul class="c-header-bar-items c-header-bar-items--bigLh">
|
33
|
+
{% for item in site.data.top-menu %}
|
34
|
+
<li class="c-header-bar__item">
|
35
|
+
<a href="{{ item.url }}" rel="noopener noreferrer" target="_blank">
|
36
|
+
<i class="{{ item.icon }}" aria-hidden="true"></i>
|
37
|
+
<span class="c-header-bar__itemDescription">{{ item.link }}</span>
|
38
|
+
</a>
|
39
|
+
</li>
|
40
|
+
{% endfor %}
|
41
|
+
</ul>
|
42
|
+
</div>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
</aside>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div class="c-top-bar">
|
50
|
+
<div class="row">
|
51
|
+
<div class="c-top-bar-inner u-cf">
|
52
|
+
|
53
|
+
{% if page.url != '/' %}
|
54
|
+
<div class="top-bar-title">
|
55
|
+
<a href="{{ '/' | relative_url }}">
|
56
|
+
<img src="{{ '/assets/img/brand/logo_napis.svg' | relative_url }}" alt="Pirátská strana">
|
57
|
+
</a>
|
58
|
+
</div>
|
59
|
+
{% endif %}
|
60
|
+
|
61
|
+
<ul class="c-top-bar-searchbar c-top-bar-searchbar--asTitle menu">
|
62
|
+
<li>
|
63
|
+
<input type="search" id="search" placeholder="Hledaný výraz">
|
64
|
+
</li>
|
65
|
+
<li class="c-top-bar-searchbar__submit">
|
66
|
+
<button type="button" class="button" id="searchsub">
|
67
|
+
<i class="fa fa-search" aria-hidden="true"></i>
|
68
|
+
</button>
|
69
|
+
</li>
|
70
|
+
</ul>
|
71
|
+
|
72
|
+
<div class="menu-toggle-container hide-for-large">
|
73
|
+
<span data-responsive-toggle="responsive-menu" id="menuTogge" data-hide-for="large">
|
74
|
+
<button class="" type="button" data-toggle="">
|
75
|
+
<span class="menu-toggle-inner">
|
76
|
+
<span class="menu-toggle-description">Menu</span>
|
77
|
+
<i class="menu-icon dark"></i>
|
78
|
+
</span>
|
79
|
+
</button>
|
80
|
+
</span>
|
81
|
+
</div>
|
82
|
+
<div id="responsive-menu" class="c-top-bar-menu">
|
83
|
+
<div class="responsive-menu-inner">
|
84
|
+
<div class="top-bar-left top-bar-footer-group">
|
85
|
+
<ul class="dropdown menu" data-dropdown-menu="">
|
86
|
+
|
87
|
+
<li {% if page.url contains 'aktuality' %} class="is-active"{% endif %}>
|
88
|
+
<a href="{{'/aktuality/' | relative_url }}">Aktuality</a>
|
89
|
+
</li>
|
90
|
+
|
91
|
+
<li{% if page.url contains 'o-nas' or page.url contains 'lide' or page.url contains 'regiony'%} class="is-active"{% endif %}>
|
92
|
+
<a href="{{ '/lide/' | relative_url }}">O nás</a>
|
93
|
+
<ul class="menu vertical">
|
94
|
+
<li{% if page.url contains 'lide'%} class="is-active"{% endif %}>
|
95
|
+
<a href="{{ '/lide/' | relative_url }}">Naši lidé</a>
|
96
|
+
</li>
|
97
|
+
</ul>
|
98
|
+
</li>
|
99
|
+
|
100
|
+
<li{% if page.url contains 'program' %} class="is-active"{% endif %}>
|
101
|
+
<a href="{{ '/program/' | relative_url }}">Program</a>
|
102
|
+
</li>
|
103
|
+
|
104
|
+
|
105
|
+
</ul>
|
106
|
+
</div>
|
107
|
+
</div>
|
108
|
+
</div>
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
</div>
|
113
|
+
</div>
|
114
|
+
</div>
|
115
|
+
<div class="c-top-bar-border"> </div>
|
@@ -0,0 +1 @@
|
|
1
|
+
<a href="https://github.com/{{ include.username }}"><span class="icon icon--github">{% include icon-github.svg %}</span><span class="username">{{ include.username }}</span></a>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg viewBox="0 0 16 16" width="16px" height="16px"><path fill="#828282" d="M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761 c0,3.428,2.223,6.337,5.307,7.363c0.388,0.071,0.53-0.168,0.53-0.374c0-0.184-0.007-0.672-0.01-1.32 c-2.159,0.469-2.614-1.04-2.614-1.04c-0.353-0.896-0.862-1.135-0.862-1.135c-0.705-0.481,0.053-0.472,0.053-0.472 c0.779,0.055,1.189,0.8,1.189,0.8c0.692,1.186,1.816,0.843,2.258,0.645c0.071-0.502,0.271-0.843,0.493-1.037 C4.86,11.425,3.049,10.76,3.049,7.786c0-0.847,0.302-1.54,0.799-2.082C3.768,5.507,3.501,4.718,3.924,3.65 c0,0,0.652-0.209,2.134,0.796C6.677,4.273,7.34,4.187,8,4.184c0.659,0.003,1.323,0.089,1.943,0.261 c1.482-1.004,2.132-0.796,2.132-0.796c0.423,1.068,0.157,1.857,0.077,2.054c0.497,0.542,0.798,1.235,0.798,2.082 c0,2.981-1.814,3.637-3.543,3.829c0.279,0.24,0.527,0.713,0.527,1.437c0,1.037-0.01,1.874-0.01,2.129 c0,0.208,0.14,0.449,0.534,0.373c3.081-1.028,5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z"/></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<a href="https://twitter.com/{{ include.username }}"><span class="icon icon--twitter">{% include icon-twitter.svg %}</span><span class="username">{{ include.username }}</span></a>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg viewBox="0 0 16 16" width="16px" height="16px"><path fill="#828282" d="M15.969,3.058c-0.586,0.26-1.217,0.436-1.878,0.515c0.675-0.405,1.194-1.045,1.438-1.809c-0.632,0.375-1.332,0.647-2.076,0.793c-0.596-0.636-1.446-1.033-2.387-1.033c-1.806,0-3.27,1.464-3.27,3.27 c0,0.256,0.029,0.506,0.085,0.745C5.163,5.404,2.753,4.102,1.14,2.124C0.859,2.607,0.698,3.168,0.698,3.767 c0,1.134,0.577,2.135,1.455,2.722C1.616,6.472,1.112,6.325,0.671,6.08c0,0.014,0,0.027,0,0.041c0,1.584,1.127,2.906,2.623,3.206 C3.02,9.402,2.731,9.442,2.433,9.442c-0.211,0-0.416-0.021-0.615-0.059c0.416,1.299,1.624,2.245,3.055,2.271 c-1.119,0.877-2.529,1.4-4.061,1.4c-0.264,0-0.524-0.015-0.78-0.046c1.447,0.928,3.166,1.469,5.013,1.469 c6.015,0,9.304-4.983,9.304-9.304c0-0.142-0.003-0.283-0.009-0.423C14.976,4.29,15.531,3.714,15.969,3.058z"/></svg>
|
@@ -0,0 +1,245 @@
|
|
1
|
+
Foundation.Interchange.SPECIAL_QUERIES['medium down'] = 'screen and (max-width: 63.9375em)';
|
2
|
+
$(document).foundation();
|
3
|
+
$(document).on('replaced.zf.interchange', function(e)
|
4
|
+
{
|
5
|
+
$(this).foundation();
|
6
|
+
});
|
7
|
+
$("button[data-toggle]").on("click", function()
|
8
|
+
{
|
9
|
+
if ($(this).parent().hasClass("js-button-toggled"))
|
10
|
+
{
|
11
|
+
$(this).parent().removeClass("js-button-toggled");
|
12
|
+
}
|
13
|
+
else
|
14
|
+
{
|
15
|
+
$(this).parent().addClass("js-button-toggled");
|
16
|
+
}
|
17
|
+
});
|
18
|
+
window.onload = function() {};
|
19
|
+
|
20
|
+
/**
|
21
|
+
* Choice n random items from collection
|
22
|
+
* @param {collection} data - collection
|
23
|
+
* @param {integer} n -number of choicen
|
24
|
+
**/
|
25
|
+
var choice_n_random = function(data, n) {
|
26
|
+
n = (typeof n !== 'undefined') ? n : 3;
|
27
|
+
var choice = [];
|
28
|
+
while(true) {
|
29
|
+
var value = data[Math.floor(Math.random()*data.length)];
|
30
|
+
if(value.description) {
|
31
|
+
choice.push(value);
|
32
|
+
if(choice.length == n) {
|
33
|
+
break;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
return choice;
|
38
|
+
};
|
39
|
+
|
40
|
+
/**
|
41
|
+
* Choice one person by uid
|
42
|
+
* @param {collection} data
|
43
|
+
* @param {string} uid
|
44
|
+
**/
|
45
|
+
var choice_person = function(data, uid, role) {
|
46
|
+
role = (typeof role !== 'undefined') ? role : null;
|
47
|
+
var person = null;
|
48
|
+
var result = null;
|
49
|
+
$.each(data, function(index, person){
|
50
|
+
if(person.uid==uid) {
|
51
|
+
result=person;
|
52
|
+
result['role'] = role;
|
53
|
+
return;
|
54
|
+
}
|
55
|
+
});
|
56
|
+
if(result) {
|
57
|
+
return [result];
|
58
|
+
} else {
|
59
|
+
return [{'name': uid, 'role': role}];
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
/** @param {collection} data **/
|
64
|
+
var choice_garant = function(data) { return choice_person(data, page_garant, 'garant'); };
|
65
|
+
/** @param {collection} data **/
|
66
|
+
var choice_leader = function(data) { return choice_person(data, page_leader, 'vedoucí týmu'); };
|
67
|
+
/** @param {collection} data **/
|
68
|
+
var choice_contact= function(data) { return choice_person(data, page_contact, 'kontaktní osoba'); };
|
69
|
+
|
70
|
+
/**
|
71
|
+
* Show people in the #people
|
72
|
+
* @param {collection} data
|
73
|
+
* @param {callback} who
|
74
|
+
* @param {string} where - #id
|
75
|
+
**/
|
76
|
+
var show_people = function(data, who, where) {
|
77
|
+
if(where.length) { /* Only if proper div exists */
|
78
|
+
choice = who(data);
|
79
|
+
$.get(snippet_profile, function (template) {
|
80
|
+
var template=Handlebars.compile(template);
|
81
|
+
$.each(choice, function(index, value) {
|
82
|
+
var html = template(value);
|
83
|
+
$(where).append(html);
|
84
|
+
});
|
85
|
+
}, 'html')
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
/**
|
90
|
+
* @param {collection} data
|
91
|
+
**/
|
92
|
+
var search = function(data) {
|
93
|
+
$("#searchsub").click(function() {
|
94
|
+
var exp = search.val();
|
95
|
+
var url = "https://www.google.cz/?q=inurl:pirati.cz+" + exp;
|
96
|
+
window.location.href = url;
|
97
|
+
});
|
98
|
+
$("#search").autocomplete({
|
99
|
+
source: data,
|
100
|
+
select: function( event, ui ) {
|
101
|
+
window.location.href = ui.item.value;
|
102
|
+
}
|
103
|
+
});
|
104
|
+
}
|
105
|
+
|
106
|
+
var back_top = function() {
|
107
|
+
$(window).scroll(function() {
|
108
|
+
if ($(this).scrollTop() > 50 ) {
|
109
|
+
$('.scrolltop:hidden').stop(true, true).fadeIn();
|
110
|
+
} else {
|
111
|
+
$('.scrolltop').stop(true, true).fadeOut();
|
112
|
+
}
|
113
|
+
});
|
114
|
+
$(function(){
|
115
|
+
$(".scroll").click(function(){
|
116
|
+
$("html,body").animate(
|
117
|
+
{scrollTop: $(".thetop").offset().top}, "1000");
|
118
|
+
return false
|
119
|
+
}
|
120
|
+
)});
|
121
|
+
}
|
122
|
+
|
123
|
+
/**
|
124
|
+
* @param {collection} data
|
125
|
+
**/
|
126
|
+
var show_relatives = function(data) {
|
127
|
+
var ul = $("#relatives");
|
128
|
+
if(ul.length) {
|
129
|
+
var global_tags = data[0];
|
130
|
+
|
131
|
+
if(!page_tags.length) {
|
132
|
+
$('#relatives-box').hide();
|
133
|
+
}
|
134
|
+
|
135
|
+
$.each(page_tags, function(index, tag) {
|
136
|
+
$.each(global_tags[tag], function(index, post) {
|
137
|
+
if(post.url != page_url) {
|
138
|
+
var li = $('<li/>').appendTo(ul);
|
139
|
+
var a = $('<a/>').text(post.title).attr('href',post.url).appendTo(li);
|
140
|
+
}
|
141
|
+
});
|
142
|
+
});
|
143
|
+
}
|
144
|
+
}
|
145
|
+
|
146
|
+
/**
|
147
|
+
* Make map of czech regions for pirati.cz/regiony
|
148
|
+
* @param {collection} data
|
149
|
+
**/
|
150
|
+
var makemap = function(data) {
|
151
|
+
var settings = data[0].settings;
|
152
|
+
|
153
|
+
$(settings.id).width(settings.size.width);
|
154
|
+
$(settings.id).height(settings.size.height);
|
155
|
+
var R = Raphael(settings.id, settings.size.width, settings.size.height);
|
156
|
+
|
157
|
+
$("#region-description>div").hide();
|
158
|
+
|
159
|
+
var marked = null;
|
160
|
+
var i = 0;
|
161
|
+
var reg_list = $('#regions-list');
|
162
|
+
var reg_list2 = $('#regions-list-2');
|
163
|
+
|
164
|
+
var regions = data[0].regions;
|
165
|
+
$.each(regions, function(index, region) {
|
166
|
+
if(i < 7 ) {
|
167
|
+
var li = $('<li/>').appendTo(reg_list);
|
168
|
+
var span = $('<a/>').text(region.name).attr('href',region.url).appendTo(li);
|
169
|
+
} else {
|
170
|
+
var li2 = $('<li/>').appendTo(reg_list2);
|
171
|
+
var span2 = $('<a/>').text(region.name).attr('href',region.url).appendTo(li2);
|
172
|
+
}
|
173
|
+
i++;
|
174
|
+
|
175
|
+
var custom_attrs = {"title": region.name};
|
176
|
+
var attrs = $.extend(settings.region_attrs, custom_attrs);
|
177
|
+
|
178
|
+
if(settings.colors) {
|
179
|
+
region.color = Raphael.getColor();
|
180
|
+
} else {
|
181
|
+
region.color = "#666";
|
182
|
+
}
|
183
|
+
var path_def = null;
|
184
|
+
var reg_id = region.id;
|
185
|
+
|
186
|
+
$.each(region.paths, function(index, path) {
|
187
|
+
path = R.path(path).scale(
|
188
|
+
settings.size.scale,
|
189
|
+
settings.size.scale,
|
190
|
+
0,0).attr(attrs);
|
191
|
+
|
192
|
+
var click = function() {
|
193
|
+
window.open(region.url);
|
194
|
+
};
|
195
|
+
var dblclick = function() {
|
196
|
+
window.open(region.url);
|
197
|
+
};
|
198
|
+
var over = function() {
|
199
|
+
path.animate({fill: region.color}, 500).attr({'cursor': "pointer"});
|
200
|
+
};
|
201
|
+
var out = function() {
|
202
|
+
path.animate({fill: "#333"}, 500);
|
203
|
+
};
|
204
|
+
|
205
|
+
path[0].onclick = click;
|
206
|
+
path[0].ondblclick = dblclick;
|
207
|
+
path[0].onmouseover = over;
|
208
|
+
path[0].onmouseout = out;
|
209
|
+
});
|
210
|
+
});
|
211
|
+
};
|
212
|
+
|
213
|
+
$(function() {
|
214
|
+
/* Search */
|
215
|
+
$.get(api_search)
|
216
|
+
.done(search)
|
217
|
+
.fail(function(data) { console.log('Error in search:', data); });
|
218
|
+
|
219
|
+
/* Back to top */
|
220
|
+
back_top();
|
221
|
+
|
222
|
+
/* People and garant */
|
223
|
+
$.get(api_people)
|
224
|
+
.done(function(data) {
|
225
|
+
show_people(data, choice_n_random, $('#people'));
|
226
|
+
show_people(data, choice_garant, $('#garant'));
|
227
|
+
show_people(data, choice_leader, $('#leader'));
|
228
|
+
show_people(data, choice_contact, $('#contact'));
|
229
|
+
})
|
230
|
+
.fail(function(data) { console.log('Error in relatives articles:', data); });
|
231
|
+
|
232
|
+
/* Relatives */
|
233
|
+
if($("#relatives").length) {
|
234
|
+
$.get(api_tags)
|
235
|
+
.done(function(data) { show_relatives(data) })
|
236
|
+
.fail(function(data) { console.log('Error in relatives articles:', data); });
|
237
|
+
}
|
238
|
+
|
239
|
+
/* Regions */
|
240
|
+
if($('#regions-map').length) {
|
241
|
+
$.get(api_regions)
|
242
|
+
.done(function(data) { makemap(data); })
|
243
|
+
.fail(function(data) { console.log("Error: map"); });
|
244
|
+
}
|
245
|
+
});
|
data/_includes/js/fb.js
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
window.fbAsyncInit = function() {
|
2
|
+
FB.init({
|
3
|
+
appId : '1526197851008996',
|
4
|
+
xfbml : true,
|
5
|
+
version : 'v2.5'
|
6
|
+
});
|
7
|
+
};
|
8
|
+
|
9
|
+
(function(d, s, id){
|
10
|
+
var js, fjs = d.getElementsByTagName(s)[0];
|
11
|
+
if (d.getElementById(id)) {return;}
|
12
|
+
js = d.createElement(s); js.id = id;
|
13
|
+
js.src = "//connect.facebook.net/en_US/sdk.js";
|
14
|
+
fjs.parentNode.insertBefore(js, fjs);
|
15
|
+
}(document, 'script', 'facebook-jssdk'));
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<script>
|
2
|
+
/* Global variables from jekyll */
|
3
|
+
var api_people = "{{'api/people.json' | relative_url}}";
|
4
|
+
var api_search = "{{'api/search.json' | relative_url}}";
|
5
|
+
var api_tags = "{{'api/tags.json' | relative_url}}";
|
6
|
+
var api_regions = "{{'api/regions.json' | relative_url}}";
|
7
|
+
var snippet_profile = "{{'assets/snippet/profile.html' | relative_url}}";
|
8
|
+
var page_url = "{{page.url}}";
|
9
|
+
var page_garant = "{{page.garant}}";
|
10
|
+
var page_leader = "{{page.leader}}";
|
11
|
+
var page_contact ="{{page.contact | first}}";
|
12
|
+
var page_tags = {% if page.tags %}{{page.tags | split: ' '}}{% else %}[]{%endif%};
|
13
|
+
</script>
|
14
|
+
<script src="{{'assets/js/common-libs.min.js' | relative_url}}"></script>
|
15
|
+
<script src="{{'assets/js/custom.min.js' | relative_url}}"></script>
|
16
|
+
<!-- Piwik -->
|
17
|
+
<noscript><p><img src="//piwik.pirati.cz/piwik.php?idsite=3&rec=1" style="border:0;" alt="" /></p></noscript>
|
18
|
+
<!-- End Piwik Code -->
|
@@ -0,0 +1,11 @@
|
|
1
|
+
var _paq = _paq || [];
|
2
|
+
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
3
|
+
_paq.push(['trackPageView']);
|
4
|
+
_paq.push(['enableLinkTracking']);
|
5
|
+
(function() {
|
6
|
+
var u="//piwik.pirati.cz/";
|
7
|
+
_paq.push(['setTrackerUrl', u+'piwik.php']);
|
8
|
+
_paq.push(['setSiteId', '3']);
|
9
|
+
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
10
|
+
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
|
11
|
+
})();
|
data/_includes/js/tw.js
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
/* Twitter */
|
2
|
+
window.twttr = (function(d, s, id) {
|
3
|
+
var js, fjs = d.getElementsByTagName(s)[0],
|
4
|
+
t = window.twttr || {};
|
5
|
+
if (d.getElementById(id)) return t;
|
6
|
+
js = d.createElement(s);
|
7
|
+
js.id = id;
|
8
|
+
js.src = "https://platform.twitter.com/widgets.js";
|
9
|
+
fjs.parentNode.insertBefore(js, fjs);
|
10
|
+
t._e = [];
|
11
|
+
t.ready = function(f) {
|
12
|
+
t._e.push(f);
|
13
|
+
};
|
14
|
+
return t;
|
15
|
+
}(document, "script", "twitter-wjs"));
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<div class="large-6 small-12 small-collapse columns end o-section-mediumdown-divided-small">
|
2
|
+
<div class="o-media o-media--top">
|
3
|
+
<div class="o-media__image o-media__image--lgspace">
|
4
|
+
<img src="{{ item.img | prepend: '/assets/img/' | relative_url }}" alt="{{item.name}}{{item.title}}"> </div>
|
5
|
+
<div class="o-media__body">
|
6
|
+
<h2 class="o-media__headline">
|
7
|
+
{% if item.url contains 'http' %}
|
8
|
+
{% assign url = item.url %}
|
9
|
+
{% else %}
|
10
|
+
{% assign url = item.url | relative_url %}
|
11
|
+
{% endif %}
|
12
|
+
<a href="{{url}}">{% if item.name %}{{item.name}}{% else %}{{item.title}}{% endif %}</a>
|
13
|
+
</h2>
|
14
|
+
<p>{{item.description}}</p>
|
15
|
+
{% if item.asistent %}
|
16
|
+
<p>
|
17
|
+
Asistent/ka: {{item.asistent.name}}<br />
|
18
|
+
{{item.asistent.tel}}<br />
|
19
|
+
<a href="mailto:{{item.asistent.mail}}">{{item.asistent.mail}}</a><br>
|
20
|
+
</p>
|
21
|
+
{% else %}
|
22
|
+
{% if item.mob or item.mail %}
|
23
|
+
<p>
|
24
|
+
{{item.mob}}<br>
|
25
|
+
<a href="mailto:{{item.mail | first}}">{{item.mail | first}}</a><br>
|
26
|
+
</p>
|
27
|
+
{% endif %}
|
28
|
+
{% endif %}
|
29
|
+
</div>
|
30
|
+
</div>
|
31
|
+
</div>
|