beautified html & js

This commit is contained in:
Open-Steps.org 2015-02-13 18:11:24 +01:00
parent fe460c0a2e
commit a777ddada6
15 changed files with 648 additions and 753 deletions

View file

@ -5,16 +5,29 @@
<div class="col-md-7 col-md-offset-3">
<div class="footer-social">
<ul>
<li><a href="mailto:{{ site.email }}"><i class="fa fa-envelope-o"></i></a></li>
<li><a href="{{ "/feed.xml" | prepend: site.baseurl }}"><i class="fa fa-rss-square"></i></a></li>
<li><a href="{{site.facebook_link}}"><i class="fa fa-facebook-square"></i></a></li>
<li><a href="mailto:{{ site.email }}"><i class="fa fa-envelope-o"></i></a>
</li>
<li><a href="{{ " /feed.xml " | prepend: site.baseurl }}"><i class="fa fa-rss-square"></i></a>
</li>
<li><a href="{{site.facebook_link}}"><i class="fa fa-facebook-square"></i></a>
</li>
</ul>
</div>
<div class="footer-support">
<ul>
<li><h4>Support from</h4></li>
<li><a href="http://pankeculture.com" target="_blank"><img src="/assets/panke_logo.png"></img></a></li>
<li><a href="http://pankeculture.com" target="_blank"><img src="/assets/troika_logo.png"></img></a></li>
<li>
<h4>Support from</h4>
</li>
<li>
<a href="http://pankeculture.com" target="_blank">
<img src="/assets/panke_logo.png"></img>
</a>
</li>
<li>
<a href="http://pankeculture.com" target="_blank">
<img src="/assets/troika_logo.png"></img>
</a>
</li>
</ul>
</div>
</div>

View file

@ -6,13 +6,13 @@
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<link rel="alternate" type="application/atom+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />
<link rel="alternate" type="application/atom+xml" title="{{ site.title }}" href="{{ " /feed.xml " | prepend: site.baseurl | prepend: site.url }}" />
<link rel="stylesheet" type="text/css" href="/bower_components/bootstrap/dist/css/bootstrap.min.css"/>
<link rel="stylesheet" type="text/css" href="/bower_components/vegas/dist/jquery.vegas.min.css"/>
<link rel="stylesheet" type="text/css" href="/bower_components/fontawesome/css/font-awesome.min.css"/>
<link rel="stylesheet" href="{{ "/css/custom.css" | prepend: site.baseurl }}">
<link rel="stylesheet" href="{{ "/css/hover.css" | prepend: site.baseurl }}">
<link rel="stylesheet" type="text/css" href="/bower_components/bootstrap/dist/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="/bower_components/vegas/dist/jquery.vegas.min.css" />
<link rel="stylesheet" type="text/css" href="/bower_components/fontawesome/css/font-awesome.min.css" />
<link rel="stylesheet" href="{{ " /css/custom.css " | prepend: site.baseurl }}">
<link rel="stylesheet" href="{{ " /css/hover.css " | prepend: site.baseurl }}">
<link href='http://fonts.googleapis.com/css?family=Abel' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="/bower_components/jquery/dist/jquery.min.js"></script>
@ -26,22 +26,20 @@
<script type="text/javascript" src="/js/scrollit.js-master/scrollit.min.js"></script>
<script type="text/javascript">
var rnd=Math.floor(Math.random()*6);
var rnd = Math.floor(Math.random() * 6);
$(function() {
$.vegas({
src:'/assets/bgphotos/'+rnd+'.png'
src: '/assets/bgphotos/' + rnd + '.png'
});
$.vegas('overlay', {
src:'/assets/bgphotos/overlay.png'
src: '/assets/bgphotos/overlay.png'
});
});
// $( document ).ready(function() {
$('.artist-media').centerImage('inside');
// });
</script>
</head>

View file

@ -11,15 +11,17 @@
<!-- Collect the nav links, forms, and other content for toggling -->
<div>
<ul class="nav navbar-nav navbar-right">
<li><a href="#" class="navigator-toggle"><i class="fa fa-caret-square-o-down"></i> Upcoming session & more</a></li>
{% for page in site.pages %}
{% if page.title %}
<li><a class="header-btn" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a></li>
{% endif %}
{% endfor %}
<li><a class="top-button" data-scroll-nav="0">TOP</a></li>
<li><a href="#" class="navigator-toggle"><i class="fa fa-caret-square-o-down"></i> Upcoming session & more</a>
</li>
{% for page in site.pages %} {% if page.title %}
<li><a class="header-btn" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a>
</li>
{% endif %} {% endfor %}
<li><a class="top-button" data-scroll-nav="0">TOP</a>
</li>
</ul>
</div><!-- /.navbar-collapse -->
</div>
<!-- /.navbar-collapse -->
</div>
@ -29,12 +31,8 @@
<div class="row">
<div class="col-md-7">
<h4><i class="fa fa-search"></i> Browse by topic</h4>
{% for post in site.posts %}
{% assign pos = 39 | minus: post.number %}
{% for topic in post.topics | split:"," %}
<a class="topic" data-scroll-nav="{{pos}}">{{topic}}</a>
{% endfor %}
{% endfor %}
{% for post in site.posts %} {% assign pos = 39 | minus: post.number %} {% for topic in post.topics | split:"," %}
<a class="topic" data-scroll-nav="{{pos}}">{{topic}}</a> {% endfor %} {% endfor %}
</div>
<div class="col-md-4">
<h4><i class="fa fa-calendar"></i> Upcoming session</h4>
@ -42,9 +40,7 @@
<!-- <div class="container-fluid navigator"> -->
<h3>#{{post.number}}{{post.date_text}} ({{post.location}})</h3>
{% for topic in post.topics | split:"," %}
<a class="topic">{{topic}}</a>
{% endfor %}
{% for talk in post.talks %}
<a class="topic">{{topic}}</a> {% endfor %} {% for talk in post.talks %}
<div class="upcoming row">
<div class="upcoming-media">

View file

@ -1,9 +1,9 @@
<!DOCTYPE html>
<html>
{% include head.html %}
{% include head.html %}
<body>
<body>
{% include header.html %}
@ -13,6 +13,6 @@
{% include footer.html %}
</body>
</body>
</html>

View file

@ -1,8 +1,6 @@
---
layout: default
---
--- layout: default ---
<div class="content container-fluid">
<div class="content container-fluid">
<article>
@ -14,15 +12,16 @@ layout: default
<h3>#{{page.number}}</h3>
<h4>{{page.date_text}}</h4>
{% if page.topics %}
<p><ul>
{% assign tags = (page.topics | split:",") %}
{% for tag in tags %}
<p>
<ul>
{% assign tags = (page.topics | split:",") %} {% for tag in tags %}
<li>{{tag}}</li>
{% endfor%}
</ul></p>
{% endif %}
{% if page.location %}
<p><a class="highlight button hvr-sweep-to-top" href={{page.location_website}} target="_blank">{{page.location}}</a></p>
</ul>
</p>
{% endif %} {% if page.location %}
<p><a class="highlight button hvr-sweep-to-top" href={{page.location_website}} target="_blank">{{page.location}}</a>
</p>
{% endif %}
</p>
@ -32,10 +31,7 @@ layout: default
<div class="event event-{{page.number}} dark_bg col-md-7">
{% capture talks_number %}{{ page.talks | size }}{% endcapture %}
{% capture col_width %}{{ 12 | divided_by:talks_number }}{% endcapture %}
{% for talk in page.talks %}
{% capture talks_number %}{{ page.talks | size }}{% endcapture %} {% capture col_width %}{{ 12 | divided_by:talks_number }}{% endcapture %} {% for talk in page.talks %}
<div class="talk col-md-{{col_width}}">
@ -51,24 +47,15 @@ layout: default
<h4>{{talk.artist}} / {{talk.title}}</h4>
{% if talk.description %}
<p>{{talk.description}}</p>
{% endif %}
{% if talk.artist_bio %}
{% endif %} {% if talk.artist_bio %}
<h5>About {{talk.artist}}</h5>
<p>{{talk.artist_bio}}</p>
{% endif %}
{% if talk.artist_website || talk.video_artist_url || talk.video_url %}
{% if talk.artist_website %}
<a class="button hvr-sweep-to-top" href={{talk.artist_website}} target="_blank">{{talk.artist_website}}</a>
{% endif %}
{% if talk.video_artist_url %}
{% endif %} {% if talk.artist_website || talk.video_artist_url || talk.video_url %} {% if talk.artist_website %}
<a class="button hvr-sweep-to-top" href={{talk.artist_website}} target="_blank">{{talk.artist_website}}</a> {% endif %} {% if talk.video_artist_url %}
<br>
<a class="button hvr-sweep-to-top" href={{talk.video_artist_url}} target="_blank">Artist's Video</a>
{% endif %}
{% if talk.video_url %}
<a class="button hvr-sweep-to-top" href={{talk.video_artist_url}} target="_blank">Artist's Video</a> {% endif %} {% if talk.video_url %}
<br>
<a class="button hvr-sweep-to-top" href={{talk.video_url}} target="_blank">Talk's Video</a>
{% endif %}
{% endif %}
<a class="button hvr-sweep-to-top" href={{talk.video_url}} target="_blank">Talk's Video</a> {% endif %} {% endif %}
</div>
</div>
@ -92,12 +79,8 @@ layout: default
<h4>Discover more</h4>
{% if page.previous %}
<a class="button hvr-sweep-to-top" href={{page.previous.url | prepend: site.baseurl }}>{{page.previous.title}}</a>
{% endif %}
{% if page.next %}
<a class="button hvr-sweep-to-top" href={{page.next.url | prepend: site.baseurl }}>{{page.next.title}}</a>
{% endif %}
<a class="button hvr-sweep-to-top" href={{page.previous.url | prepend: site.baseurl }}>{{page.previous.title}}</a> {% endif %} {% if page.next %}
<a class="button hvr-sweep-to-top" href={{page.next.url | prepend: site.baseurl }}>{{page.next.title}}</a> {% endif %}
</div>
@ -105,4 +88,4 @@ layout: default
</article>
</div>
</div>

View file

@ -1,14 +1,8 @@
---
layout: default
---
--- layout: default ---
<div class="post">
<div class="wrapper">
<!-- <header class="post-header">
<h1 class="post-title">{{ page.title }}</h1>
</header> -->
<article class="post-content">
{{ content }}
</article>

View file

@ -1,6 +1,4 @@
---
layout: default
---
--- layout: default ---
<div class="post">
<div class="wrapper">
@ -11,8 +9,7 @@ layout: default
</header>
<article class="post-content">
<a> test </a>
{{ content }}
<a> test </a> {{ content }}
</article>
</div>

View file

@ -1,8 +1,4 @@
---
layout: page
title: About
permalink: /about/
---
--- layout: page title: About permalink: /about/ ---
<div class="content container-fluid">
@ -30,22 +26,26 @@ permalink: /about/
<div class="col-md-7">
<h5>How to find us</h5>
<p>S-Bahn: S41/S42 (Ring) Wedding
U-Bahn: U6 Wedding, U8 Gesundbrunnen
Bus: M27 Wedding</p>
<p>S-Bahn: S41/S42 (Ring) Wedding U-Bahn: U6 Wedding, U8 Gesundbrunnen Bus: M27 Wedding</p>
<p>Panke e.V.
Gerichtstr. 23, Hof 5
13347 Berlin Wedding</p>
<p>Panke e.V. Gerichtstr. 23, Hof 5 13347 Berlin Wedding</p>
</div>
<div class="col-md-5">
<h5>Supported by</h5>
<div class="supporters">
<p>Thanks <a class="button hvr-sweep-to-top" href="http://pankeculture.com"target="_blank">Panke</a> and <a class="button hvr-sweep-to-top" href="http://www.troikaranch.org/"target="_blank">Troika Ranch</a> for the valuable support</p>
<p>Thanks <a class="button hvr-sweep-to-top" href="http://pankeculture.com" target="_blank">Panke</a> and <a class="button hvr-sweep-to-top" href="http://www.troikaranch.org/" target="_blank">Troika Ranch</a> for the valuable support</p>
<ul>
<li><a href="http://pankeculture.com" target="_blank"><img src="/assets/panke_logo.png"></img></a></li>
<li><a href="http://www.troikaranch.org/" target="_blank"><img src="/assets/troika_logo.png"></img></a></li>
<li>
<a href="http://pankeculture.com" target="_blank">
<img src="/assets/panke_logo.png"></img>
</a>
</li>
<li>
<a href="http://www.troikaranch.org/" target="_blank">
<img src="/assets/troika_logo.png"></img>
</a>
</li>
</ul>
</div>
</div>
@ -68,17 +68,35 @@ permalink: /about/
<ul>
<li><p><a class="button hvr-sweep-to-top" target="_blank" href="http://alexcorbi.com">Alex Corbi aka Axel Orbit</a></br>programming, app development</p></li>
<li>
<p><a class="button hvr-sweep-to-top" target="_blank" href="http://alexcorbi.com">Alex Corbi aka Axel Orbit</a>
</br>programming, app development</p>
</li>
<li><p><a class="button hvr-sweep-to-top" target="_blank" href="http://aude-f.com/">Aude François aka Auderose</a></br>video, performance, photography</p></li>
<li>
<p><a class="button hvr-sweep-to-top" target="_blank" href="http://aude-f.com/">Aude François aka Auderose</a>
</br>video, performance, photography</p>
</li>
<li><p><a class="button hvr-sweep-to-top" target="_blank" href="http://kiritanflux.de/">Tobias Last aka Kiritan Flux</a></br>visualist, media artist, cultural manager</p></li>
<li>
<p><a class="button hvr-sweep-to-top" target="_blank" href="http://kiritanflux.de/">Tobias Last aka Kiritan Flux</a>
</br>visualist, media artist, cultural manager</p>
</li>
<li><p><a class="button hvr-sweep-to-top" target="_blank" href="http://kopiloten.com/">Silke Müller aka Eklis Rellüm</a></br>culture consulting, project manager, producer</p></li>
<li>
<p><a class="button hvr-sweep-to-top" target="_blank" href="http://kopiloten.com/">Silke Müller aka Eklis Rellüm</a>
</br>culture consulting, project manager, producer</p>
</li>
<li><p><a class="button hvr-sweep-to-top" target="_blank" href="http://morishuz.com/">Mauritius Seeger aka dr. mo</a></br>programming, interactive environments</p></li>
<li>
<p><a class="button hvr-sweep-to-top" target="_blank" href="http://morishuz.com/">Mauritius Seeger aka dr. mo</a>
</br>programming, interactive environments</p>
</li>
<li><p><a class="button hvr-sweep-to-top" target="_blank" href="http://chrs-smthng.com/">Christian Sonntag aka chrs smthng</a></br>projection services, event management</p></li>
<li>
<p><a class="button hvr-sweep-to-top" target="_blank" href="http://chrs-smthng.com/">Christian Sonntag aka chrs smthng</a>
</br>projection services, event management</p>
</li>
</ul>

View file

@ -1,8 +1,4 @@
---
layout: page
title: Artists
permalink: /artists/
---
--- layout: page title: Artists permalink: /artists/ ---
<div class="content container-fluid">
@ -15,12 +11,7 @@ permalink: /artists/
<div class="about dark_bg col-md-7">
{% capture counter %}{{ '0' }}{% endcapture %}
{% for post in site.posts %}
{% for talk in post.talks %}
{% if counter == '0' %}
{% capture counter %}{{ '0' }}{% endcapture %} {% for post in site.posts %} {% for talk in post.talks %} {% if counter == '0' %}
<div class="row">
{% endif %}
@ -41,16 +32,9 @@ permalink: /artists/
</div>
{% capture counter %}{{ counter | plus:'1' }}{% endcapture %}
{% if counter == '4' %}
{% capture counter %}{{ '0' }}{% endcapture %}
{% capture counter %}{{ counter | plus:'1' }}{% endcapture %} {% if counter == '4' %} {% capture counter %}{{ '0' }}{% endcapture %}
</div>
{% endif %}
{% endfor %}
{% endfor %}
{% endif %} {% endfor %} {% endfor %}
</div>

View file

@ -1,8 +1,4 @@
---
layout: page
title: Call for talks
permalink: /call-for-talks/
---
--- layout: page title: Call for talks permalink: /call-for-talks/ ---
<div class="container-fluid">

View file

@ -1,40 +1,33 @@
/*blue 2098d1
lila 9775af*/
body{
color:#fff;
body {
color: #fff;
font-family: 'Abel', sans-serif;
font-size: 16px;
}
h3{
color:#fff;
h3 {
color: #fff;
}
a{
a {
color: #9775af;
}
a:hover{
a:hover {
text-decoration: none;
color: #9775af;
cursor: pointer;
}
.top-button{
display:none;
float:right;
.top-button {
display: none;
float: right;
}
.navbar-header{
.navbar-header {
padding-left: 20px;
}
.navbar-options{
.navbar-options {
padding: 10px;
float:right;
float: right;
}
/*.navbar-options a{
margin-left: 10px;
color: #000;
@ -43,273 +36,213 @@ a:hover{
font-size: 18px;
}*/
.navbar-brand img{
.navbar-brand img {
height: 30px;
}
.navbar-header a{
color:#000;
}
.navbar-nav li a{
color:#000;
border-bottom: 4px solid #f8f8f8;
}
.navbar-nav li a:hover{
color:#9775af;
border-bottom: 4px solid #9775af;
}
.navigator{
padding:20px;
background: #fff;
margin-top:40px;
border-top: 1px solid #333;
display:none;
}
.navigator a{
.navbar-header a {
color: #000;
}
.navigator a:hover{
.navbar-nav li a {
color: #000;
border-bottom: 4px solid #f8f8f8;
}
.navbar-nav li a:hover {
color: #9775af;
border-bottom: 4px solid #9775af;
}
.navigator {
padding: 20px;
background: #fff;
margin-top: 40px;
border-top: 1px solid #333;
display: none;
}
.navigator a {
color: #000;
}
.navigator a:hover {
color: #9775af;
}
.navigator li{
.navigator li {
float: left;
margin: 4px;
}
.navigator h3{
color:#9775af;
.navigator h3 {
color: #9775af;
}
.navigator h4{
color:#000;
padding-left:0px;
.navigator h4 {
color: #000;
padding-left: 0px;
}
.upcoming{
.upcoming {
padding: 10px;
}
.upcoming-media img{
.upcoming-media img {
height: 80px;
float: left;
margin-right:10px;
margin-right: 10px;
}
.site-header{
background:#fff;
.site-header {
background: #fff;
}
.site-footer{
.site-footer {
color: #fff;
}
.content{
.content {
margin-top: 40px;
}
.event-date{
.event-date {
text-align: right;
padding-right: 10px;
}
.event-date a{
.event-date a {
margin-right: 10px;
}
.event-date p{
.event-date p {
color: #fff;
}
.event-date h3{
.event-date h3 {
font-size: 96px;
padding-right: 10px;
}
.event-date h4{
.event-date h4 {
font-size: 18px;
font-weight: normal;
padding-right: 10px;
}
.event-date li{
list-style:none;
.event-date li {
list-style: none;
padding-right: 10px;
}
.artist-media {
width: 100%;
height: 140px;
background: #000;
}
.artist-media{
.artist-media {
background: #000;
text-align:center;
text-align: center;
}
.artist-media img{
width:100%;
.artist-media img {
width: 100%;
}
.event{
#padding:10px;
.event {
#padding: 10px;
margin-bottom: 10px;
}
.highlight{
.highlight {
background: #fff;
color: #000;
padding: 2px 10px;
}
.dark_bg{
.dark_bg {
#padding: 10px;
background: rgb(0, 0, 0) transparent;
background: rgba(0, 0, 0, 0.6);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#66000000, endColorstr=#66000000);
filter: progid: DXImageTransform.Microsoft.gradient(startColorstr=#66000000, endColorstr=#66000000);
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#66000000, endColorstr=#66000000)";
}
.talk{
padding:20px 5px;
.talk {
padding: 20px 5px;
}
.talk :hover{
}
.talk-detail{
}
.talk-detail h3{
.talk:hover {} .talk-detail {} .talk-detail h3 {
font-size: 24px;
}
.talk-detail h4{
.talk-detail h4 {
font-size: 20px;
background: #fff;
color: #000;
padding: 4px;
}
.talk-detail h5{
.talk-detail h5 {
font-size: 18px;
background: #fff;
color: #000;
padding: 4px;
}
.talk-detail a{
.talk-detail a {
margin: 0 auto;
padding: 2px;
float: center;
text-weight: bold;
}
.event-selector{
.event-selector {
text-align: center;
}
.event-selector ul{
list-style:none;
.event-selector ul {
list-style: none;
}
.event-selector li{
float:left;
.event-selector li {
float: left;
margin: 10px;
}
.event-selector a{
.event-selector a {
display: block;
color: #fff;
font-size: 20px;
}
.gallery{
margin-bottom:10px;
.gallery {
margin-bottom: 10px;
}
.team li{
list-style-type:none;
.team li {
list-style-type: none;
}
.team-image img{
.team-image img {
width: 100%;
}
.team-list{
.team-list {
text-align: left;
}
.nav_bottom{
margin-bottom:10px;
.nav_bottom {
margin-bottom: 10px;
}
.page-title{
.page-title {
text-align: right;
padding-right: 20px;
}
.page-title h3{
.page-title h3 {
margin-top: 0px;
font-size: 48px;
}
.about h5{
.about h5 {
font-size: 18px;
background: #fff;
color: #000;
padding: 4px;
}
.footer{
margin-top:10px;
.footer {
margin-top: 10px;
background: #fff;
}
.footer li{
list-style-type:none;
.footer li {
list-style-type: none;
float: left;
margin: 10px;
}
.footer h4{
list-style-type:none;
.footer h4 {
list-style-type: none;
background: #fff;
color: #000;
padding: 4px;
}
.supporters li{
.supporters li {
list-style: none;
float: left;
}
.supporters li img{
.supporters li img {
height: 60px;
margin: 10px;
}
.footer-support{
.footer-support {
float: right;
}
.footer li {
font-size: 32px;
}
.footer li a:hover{
.footer li a:hover {
color: #000;
font-size: 32px;
}
.footer li img{
height:40px;
.footer li img {
height: 40px;
}

View file

@ -1,13 +1,11 @@
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
--- layout: null ---
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.title | xml_escape }}</title>
<description>{{ site.description | xml_escape }}</description>
<link>{{ site.url }}{{ site.baseurl }}/</link>
<atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml"/>
<atom:link href="{{ " /feed.xml " | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml" />
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
<generator>Jekyll v{{ jekyll.version }}</generator>
@ -20,8 +18,7 @@ layout: null
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
{% for tag in post.tags %}
<category>{{ tag | xml_escape }}</category>
{% endfor %}
{% for cat in post.categories %}
{% endfor %} {% for cat in post.categories %}
<category>{{ cat | xml_escape }}</category>
{% endfor %}
</item>

View file

@ -1,11 +1,7 @@
---
layout: default
---
--- layout: default ---
<div class="content container-fluid">
{% for post in site.posts %}
{% if forloop.first != true %}
{% for post in site.posts %} {% if forloop.first != true %}
<!-- TODO parametrize this, no hardcoded numbers -->
{% assign pos = 39 | minus: post.number %}
@ -20,26 +16,23 @@ layout: default
</a>
{% if post.topics %}
<p><ul>
{% assign tags = (post.topics | split:",") %}
{% for tag in tags %}
<p>
<ul>
{% assign tags = (post.topics | split:",") %} {% for tag in tags %}
<li>{{tag}}</li>
{% endfor%}
</ul></p>
{% endif %}
{% if post.location %}
<p><a class="highlight button hvr-sweep-to-top" href={{post.location_website}} target="_blank">{{post.location}}</a></p>
</ul>
</p>
{% endif %} {% if post.location %}
<p><a class="highlight button hvr-sweep-to-top" href={{post.location_website}} target="_blank">{{post.location}}</a>
</p>
{% endif %}
</div>
<div class="event event-{{post.number}} dark_bg col-md-7">
{% capture talks_number %}{{ post.talks | size }}{% endcapture %}
{% capture col_width %}{{ 12 | divided_by:talks_number }}{% endcapture %}
{% for talk in post.talks %}
{% capture talks_number %}{{ post.talks | size }}{% endcapture %} {% capture col_width %}{{ 12 | divided_by:talks_number }}{% endcapture %} {% for talk in post.talks %}
<div class="talk col-md-{{col_width}}">
@ -55,16 +48,11 @@ layout: default
<h4>{{talk.artist}} / {{talk.title}}</h4>
<p>{{talk.description}}</p>
{% if talk.artist_website %}
<a class="button hvr-sweep-to-top" href={{talk.artist_website}} target="_blank">{{talk.artist_website}}</a>
{% endif %}
{% if talk.video_artist_url %}
<a class="button hvr-sweep-to-top" href={{talk.artist_website}} target="_blank">{{talk.artist_website}}</a> {% endif %} {% if talk.video_artist_url %}
<br>
<a class="button hvr-sweep-to-top" href={{talk.video_artist_url}} target="_blank">Artist's Video</a>
{% endif %}
{% if talk.video_url %}
<a class="button hvr-sweep-to-top" href={{talk.video_artist_url}} target="_blank">Artist's Video</a> {% endif %} {% if talk.video_url %}
<br>
<a class="button hvr-sweep-to-top" href={{talk.video_url}} target="_blank">Talk's Video</a>
{% endif %}
<a class="button hvr-sweep-to-top" href={{talk.video_url}} target="_blank">Talk's Video</a> {% endif %}
</div>
</div>
@ -75,8 +63,6 @@ layout: default
</div>
{% endif %}
{% endfor %}
{% endif %} {% endfor %}
</div>

View file

@ -2,17 +2,17 @@ var scrolling = false;
var navigatorOpen = false;
var topButtonVisible = true;
$(document).ready(function(){
$(document).ready(function() {
$(function(){
$(function() {
$.scrollIt();
});
$(".navigator-toggle").click(function() {
if (navigatorOpen){
if (navigatorOpen) {
closeTopMenu();
}else{
} else {
openTopMenu();
}
navigatorOpen = !navigatorOpen;
@ -22,39 +22,39 @@ $(document).ready(function(){
closeTopMenu();
});
function openTopMenu(){
if (!scrolling && !navigatorOpen){
function openTopMenu() {
if (!scrolling && !navigatorOpen) {
scrolling = true;
$(".navigator").slideDown( "slow", function() {
$(".navigator").slideDown("slow", function() {
scrolling = false;
navigatorOpen = true;
});
}
}
function closeTopMenu(){
if (!scrolling && navigatorOpen){
function closeTopMenu() {
if (!scrolling && navigatorOpen) {
scrolling = true;
$('.navigator').slideUp( "slow", function() {
$('.navigator').slideUp("slow", function() {
scrolling = false;
navigatorOpen = false;
});
}
}
function showTopButton(){
function showTopButton() {
console.log('showTopButton');
if (!topButtonVisible){
$('.top-button').show( "slow", function() {
if (!topButtonVisible) {
$('.top-button').show("slow", function() {
topButtonVisible = true;
});
}
}
function hideTopButton(){
function hideTopButton() {
console.log('hideTopButton');
if (topButtonVisible){
$('.top-button').hide( "slow", function() {
if (topButtonVisible) {
$('.top-button').hide("slow", function() {
topButtonVisible = false;
});
}
@ -63,15 +63,15 @@ $(document).ready(function(){
var timeout = null;
var navbarHeight = $('.navbar').height();
$(window).scroll(function () {
$(window).scroll(function() {
if (!timeout) {
timeout = setTimeout(function () {
timeout = setTimeout(function() {
clearTimeout(timeout);
timeout = null;
if ($(window).scrollTop() >= navbarHeight) {
closeTopMenu();
showTopButton();
}else{
} else {
hideTopButton();
}
}, 250);