Skip to content

Commit

Permalink
Reimplement carousel using bxSlider from npm
Browse files Browse the repository at this point in the history
  • Loading branch information
SaillantNicolas committed Oct 25, 2023
1 parent d0c55f6 commit c5e7239
Show file tree
Hide file tree
Showing 48 changed files with 6,997 additions and 67 deletions.
26 changes: 22 additions & 4 deletions _includes/themes/cgal/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<link rel="icon" type="image/png" href="{{ BASE_PATH }}/images/cgal_logo/g-196x196-y.png">
<link rel="stylesheet" href="{{ site.baseurl }}/node_modules/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="{{ ASSET_PATH }}/bootstrap/css/icomoon-social.css">
<link rel="stylesheet" href="{{ site.baseurl }}/node_modules/bxslider/dist/jquery.bxslider.css">
<link rel="stylesheet" href="{{ site.baseurl }}/style.css">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,600,800' rel='stylesheet' type='text/css'>

Expand Down Expand Up @@ -142,10 +143,27 @@ <h1>{{ page.title }} {% if page.tagline %} <small>{{ page.tagline }}</small>{% e
<script src="{{ site.baseurl }}/node_modules/jquery/dist/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="{{ site.baseurl }}/node_modules/jquery/dist/jquery.min.js"><\/script>')</script>
<script src="{{ site.baseurl }}/node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="{{ ASSET_PATH }}/bootstrap/js/jquery.fitvids.js"></script>
<script src="{{ ASSET_PATH }}/bootstrap/js/jquery.sequence-min.js"></script>
<script src="{{ ASSET_PATH }}/bootstrap/js/jquery.bxslider.js"></script>
<script src="{{ ASSET_PATH }}/bootstrap/js/template.js"></script>
<script src="{{ site.baseurl }}/node_modules/bxslider/dist/jquery.bxslider.min.js"></script>
<script>
$(function () {
$('.bxslider').bxSlider({
auto: true,
speed: 0,
pause: 5000,
infiniteLoop: true,
touchEnabled: false,
pager: true,
pagerCustom: '.custom-pager',
controls: false,
onSlideBefore: function ($slideElement, oldIndex, newIndex) {
$($slideElement).siblings().find('.slideTitle, .slideSubTitle').removeClass('animatedTitle');
$($slideElement).find('.slideTitle, .slideSubTitle').addClass('animatedTitle');
$($slideElement).siblings().find('.slide').removeClass('slideInFromRight');
$($slideElement).find('.slide').addClass('slideInFromRight');
}
});
});
</script>
<script src="{{ site.baseurl }}/node_modules/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js"></script>
</body>
</html>
117 changes: 54 additions & 63 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,77 +4,68 @@
tagline:
---
{% include JB/setup %}


<div class="homepage-slider">
<div id="sequence">
<ul class="sequence-canvas">
<!-- Base container model by sablebadger, https://www.thingiverse.com/thing:2934997 -->
<li style="background-image: url({{ BASE_PATH }}/images/david_bool_op.png); -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;">
<h2 class="title">Boolean Operations</h2>
<h3 class="subtitle"><pre style='text-shadow:none'>CGAL::corefine_and_compute_boolean_operations(statue, container);</pre></h3>
</li>

<li style="background-image: url({{ BASE_PATH }}/images/alpha_wrap.png); -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;">
<h2 class="title">Wrapping</h2>
<h3 class="subtitle"><pre style='text-shadow:none'>CGAL::alpha_wrap();</pre></h3>
<div class="carrousel-wrapper">
<div class="carrousel">

<ul class="bxslider">
<li><img class="slide" src="{{ site.baseurl }}/images/david_bool_op.png" />
<h2 class="slideTitle">Boolean Operations</h2>
<h3 class="slideSubTitle">
<pre>CGAL::corefine_and_compute_boolean_operations(statue, container);</pre>
</h3>
</li>

<li style="background-image: url({{ BASE_PATH }}/images/ToS2porto.png); -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;">
<h2 class="title">Triangulations</h2>
<h3 class="subtitle"><pre style='text-shadow:none'>CGAL::make_triangulation();</pre></h3>
</li>

<li style="background-image: url({{ BASE_PATH }}/images/aabb_tree.png); -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;">
<h2 class="title">Axis Aligned Bounding Box Tree</h2>
<h3 class="subtitle"><pre style='text-shadow:none'>CGAL::AABB_tree tree(faces(surface_mesh));</pre></h3>
<li><img class="slide" src="{{ site.baseurl }}/images/alpha_wrap.png" />
<h2 class="slideTitle">Wrapping</h2>
<h3 class="slideSubTitle">
<pre>CGAL::alpha_wrap();</pre>
</h3>
</li>

<li style="background-image: url({{ BASE_PATH }}/images/octo_0.png); -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;">
<h2 class="title">The Heat Method</h2>
<h3 class="subtitle"><pre style='text-shadow:none'>CGAL::Heat_method_3::estimate_geodesic_distances();</pre></h3>
<li><img class="slide" src="{{ site.baseurl }}/images/ToS2porto.png" />
<h2 class="slideTitle">Triangulations</h2>
<h3 class="slideSubTitle">
<pre>CGAL::make_triangulation();</pre>
</h3>
</li>

<li style="background-image: url({{ BASE_PATH }}/images/segmentation.png); -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;">
<h2 class="title">Mesh Segmentation</h2>
<h3 class="subtitle"><pre style='text-shadow:none'>CGAL::sdf_values(surface_mesh);</pre></h3>
<li><img class="slide" src="{{ site.baseurl }}/images/aabb_tree.png" />
<h2 class="slideTitle">Axis Aligned Bounding Box Tree</h2>
<h3 class="slideSubTitle">
<pre>CGAL::AABB_tree tree(faces(surface_mesh));</pre>
</h3>
</li>

<li style="background-image: url({{ BASE_PATH }}/images/classif_header_cgal.png); -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;">
<h2 class="title">Classification</h2>
<h3 class="subtitle"><pre style='text-shadow:none'>CGAL::Classification::classify(las_points);</pre></h3>
<li><img class="slide" src="{{ site.baseurl }}/images/octo_0.png" />
<h2 class="slideTitle">The Heat Method</h2>
<h3 class="slideSubTitle">
<pre>CGAL::Heat_method_3::estimate_geodesic_distances();</pre>
</h3>
</li>

<li style="background-image: url({{ BASE_PATH }}/images/periodic_banner.png); -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;">
<h2 class="title">Periodic Mesh Generation</h2>
<h3 class="subtitle"><pre style='text-shadow:none'>CGAL::Periodic_tet_mesh mesh = CGAL::make_periodic_mesh();</pre></h3>
<li><img class="slide" src="{{ site.baseurl }}/images/segmentation.png" />
<h2 class="slideTitle">Mesh Segmentation</h2>
<h3 class="slideSubTitle">
<pre>CGAL::sdf_values(surface_mesh);</pre>
</h3>
</li>

<!--
<li style="background-image: url({{ BASE_PATH }}/images/voronoi.png); -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;">
<h2 class="title">Voronoi Diagram</h2>
<h3 class="subtitle"><pre style='text-shadow:none'>VD = CGAL::make_voronoi(points);</pre></h3>
<li><img class="slide" src="{{ site.baseurl }}/images/classif_header_cgal.png" />
<h2 class="slideTitle">Classification</h2>
<h3 class="slideSubTitle">
<pre>CGAL::Classification::classify(las_points);</pre>
</h3>
</li>
-->

<!--
<li style="background-image: url({{ BASE_PATH }}/images/polygonal_surface_reconstruction_banner.png); -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;">
<h2 class="title">Surface Reconstruction</h2>
<h3 class="subtitle"><pre style='text-shadow:none'>CGAL::Polygonal_surface_reconstruction(points);</pre></h3>
<li><img class="slide" src="{{ site.baseurl }}/images/periodic_banner.png" />
<h2 class="slideTitle">Periodic Mesh Generation</h2>
<h3 class="slideSubTitle">
<pre>CGAL::Periodic_tet_mesh mesh = CGAL::make_periodic_mesh();</pre>
</h3>
</li>
-->
</ul>
<div class="sequence-pagination-wrapper">
<ul class="sequence-pagination">
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li>6</li>
<li>7</li>
<li>8</li>
</ul>
<div class="custom-pager">
<a data-slide-index="0" href=""></a>
<a data-slide-index="1" href=""></a>
<a data-slide-index="2" href=""></a>
<a data-slide-index="3" href=""></a>
<a data-slide-index="4" href=""></a>
<a data-slide-index="5" href=""></a>
<a data-slide-index="6" href=""></a>
<a data-slide-index="7" href=""></a>
</div>
</div>
</div>
Expand Down Expand Up @@ -190,4 +181,4 @@ <h4>Previous Releases</h4>
</ul>
<a href="{{ BASE_PATH}}/releases.html" class="btn">Older releases...</a>
</div>
</div>
</div>
8 changes: 8 additions & 0 deletions node_modules/.package-lock.json

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

118 changes: 118 additions & 0 deletions node_modules/bxslider/CONTRIBUTING.md

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

58 changes: 58 additions & 0 deletions node_modules/bxslider/Gulpfile.js

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

12 changes: 12 additions & 0 deletions node_modules/bxslider/LICENSE.md

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

Loading

0 comments on commit c5e7239

Please sign in to comment.