Skip to content

Instantly share code, notes, and snippets.

View FabianSchmick's full-sized avatar
💭
¯\_(ツ)_/¯

Fabian Schmick FabianSchmick

💭
¯\_(ツ)_/¯
View GitHub Profile
@FabianSchmick
FabianSchmick / index.html
Created September 18, 2017 10:01
Pagination - Javascript - jQuery
<ul id="listitems" class="list-unstyled">
<li>May</li>
<li>The</li>
<li>Force</li>
<li>Be</li>
<li>With</li>
<li>Foo</li>
</ul>
<ul class="pagination" id="listitems-pagination">
<li><a id="listitems-previous" href="#" class="disabled"><i class="fa fa-angle-double-left" aria-hidden="true"></i> Prev</a></li>
@FabianSchmick
FabianSchmick / index.html
Last active December 13, 2018 13:17
Collapsing with jQuery
<div id="collapse-group">
<div data-toggle="collapse" data-target="#jedi" data-group="#collapse-group">
<span>Jedi <i class="fa fa-angle-down"></i></span>
</div>
<div id="jedi" class="collapse">
<p>
May the force be with you
</p>
</div>
@FabianSchmick
FabianSchmick / script.js
Last active July 26, 2017 09:37
Synchronize two owlCarousel
syncCarousel();
function syncCarousel() {
var sync1 = jQuery('#sync1'),
sync2 = jQuery('#sync2'),
flag = false,
realindex = 0,
loop = true; // For loop true see workaround
sync1.owlCarousel({
@FabianSchmick
FabianSchmick / Thumbnail-img-owl.js
Last active February 21, 2018 10:28
Thumbnail pictures for Owl-Carousel
$(document).ready(function() {
$("#slider").owlCarousel({
navigation : true, // Show next and prev buttons
slideSpeed : 300,
paginationSpeed : 400,
singleItem:true,
navigationText: false,
pagination : true
});