Skip to content
This repository has been archived by the owner on Oct 16, 2019. It is now read-only.

carousel implemented on Initiatives page #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions _includes/carousel-script.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<link rel="stylesheet" href="../slick/slick.min.css">
<link rel="stylesheet" href="../slick/slick-theme.min.css">
<script src="../slick/slick.min.js"></script>
<script>
document.onreadystatechange = function(){
if(document.readyState === "complete"){
$(".carousel").slick({
adaptiveHeight: false,
autoplay: true,
autoplaySpeed: 1000,
dots: true,
draggable: true
});
}
};
</script>
2 changes: 1 addition & 1 deletion _includes/eventlbody.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="card col-sm-6 md-6">
<div >
{% if post.img %}
<img class="card-img-top" src="{{site.baseurl}}/assets/eventsimages/{{post.img}}" alt="{{post.title}}">
{% endif %}
Expand Down
7 changes: 2 additions & 5 deletions _layouts/hackathons.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@
permalink: /hackathons/
---

<div class="row">
<div class="row carousel">
{% for post in site.posts %}
{% if post.categories contains "hackathons" %}

{% include eventlbody.html %}

{% endif %}
<br>
{% endfor %}
</div>
</div>
7 changes: 2 additions & 5 deletions _layouts/talks.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@
layout: page
---

<div class="row">

<div class="row carousel">
{% for post in site.posts %}
{% if post.categories contains "talk_session" %}

{% include eventlbody.html %}

{% endif %}
<br>
{% endfor %}
</div>

7 changes: 2 additions & 5 deletions _layouts/workshops.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@
permalink: /workshops/
---

<div class="row">

<div class="row carousel">
{% for post in site.posts %}
{% if post.categories contains "workshops" %}

{% include eventlbody.html %}

{% endif %}
<br>
{% endfor %}
</div>

6 changes: 6 additions & 0 deletions _layouts/wrapper.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
{% include footer.html %}

{% include js.html %}

{% if page.carousel == true %}
{% include carousel-script.html %}
{% endif %}


</body>

</html>
11 changes: 11 additions & 0 deletions css/custom-bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -870,3 +870,14 @@ pre {
.transparent-banner {
background-color: rgba(0, 0, 0, 0);
}

.carousel {
width: 50%;
margin: auto;
margin-top: 50px;
}

.slick-next::before,
.slick-prev::before {
color: black !important;
}
5 changes: 3 additions & 2 deletions hackathons.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: hackathons
title : Hackathons
permalink : /hackathons/
title: Hackathons
permalink: /hackathons/
carousel: true
---
Binary file added slick/ajax-loader.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added slick/fonts/slick.woff
Binary file not shown.
2 changes: 2 additions & 0 deletions slick/slick-theme.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions slick/slick-theme.min.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions slick/slick.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions slick/slick.min.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions slick/slick.min.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions talks.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: talks
title : Talk Sessions
permalink : /talks/
title: Talk Sessions
permalink: /talks/
carousel: true
---
5 changes: 3 additions & 2 deletions workshops.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: workshops
title : Workshops
permalink : /workshops/
title: Workshops
permalink: /workshops/
carousel: true
---