Merge branch 'enh/banner-dynamic' into develop
BIN
assets/banner/2010er.jpeg
Normal file
After Width: | Height: | Size: 888 KiB |
BIN
assets/banner/80s.jpeg
Normal file
After Width: | Height: | Size: 759 KiB |
BIN
assets/banner/90s.jpeg
Normal file
After Width: | Height: | Size: 622 KiB |
BIN
assets/banner/Baggypants.jpeg
Normal file
After Width: | Height: | Size: 780 KiB |
BIN
assets/banner/Cowboyhut.jpeg
Normal file
After Width: | Height: | Size: 814 KiB |
BIN
assets/banner/DS-Trainerinnen.jpeg
Normal file
After Width: | Height: | Size: 776 KiB |
BIN
assets/banner/Erwachsenentanz.jpeg
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
assets/banner/Gründung Jazzdance.jpeg
Normal file
After Width: | Height: | Size: 753 KiB |
BIN
assets/banner/Hochzeitskleid.jpeg
Normal file
After Width: | Height: | Size: 1021 KiB |
BIN
assets/banner/Kindertanzen.jpeg
Normal file
After Width: | Height: | Size: 878 KiB |
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 140 KiB |
BIN
assets/banner/Putzkolonne.jpeg
Normal file
After Width: | Height: | Size: 892 KiB |
BIN
assets/banner/Renote.jpeg
Normal file
After Width: | Height: | Size: 997 KiB |
BIN
assets/banner/Schlusstanz.jpeg
Normal file
After Width: | Height: | Size: 1.0 MiB |
BIN
assets/banner/Traum-Alptraum.jpeg
Normal file
After Width: | Height: | Size: 618 KiB |
BIN
assets/banner/Turnierpaare.jpeg
Normal file
After Width: | Height: | Size: 818 KiB |
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
22
themes/tsc_vfl/layouts/partials/page/banner-images.html
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{{- $images := resources.Match "banner/*" -}}
|
||||||
|
{{- $first := true -}}
|
||||||
|
{{- range $images }}
|
||||||
|
{{- $img := .Fit "1220x340 webp" -}}
|
||||||
|
{{ if $first }}
|
||||||
|
<img src="{{ $img.RelPermalink }}" class="placeholder">
|
||||||
|
{{ $first = false }}
|
||||||
|
{{ end }}
|
||||||
|
<img src="{{ $img.RelPermalink }}" class="hidden slider-img">
|
||||||
|
{{ end -}}
|
||||||
|
<div class="dots">
|
||||||
|
{{- $count := (len $images) -}}
|
||||||
|
{{- $first := true -}}
|
||||||
|
{{- range (seq 0 (sub $count 1)) }}
|
||||||
|
<div data-index="{{ . }}" class="dot {{ if $first }}active{{ end }}"></div>
|
||||||
|
{{ $first = false }}
|
||||||
|
{{- end }}
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
const numImages = {{ $count }};
|
||||||
|
</script>
|
||||||
|
<script defer src="{{ relURL "js/slider.js" }}"></script>
|
@ -19,7 +19,6 @@
|
|||||||
<title>{{ $title }}</title>
|
<title>{{ $title }}</title>
|
||||||
<link rel="canonical" href="{{ .Permalink }}" />
|
<link rel="canonical" href="{{ .Permalink }}" />
|
||||||
<script defer src="{{ relURL "js/jquery-3.6.3.min.js" }}"></script>
|
<script defer src="{{ relURL "js/jquery-3.6.3.min.js" }}"></script>
|
||||||
<script defer src="{{ relURL "js/slider.js" }}"></script>
|
|
||||||
<script defer src="{{ relURL "js/gallery.js" }}"></script>
|
<script defer src="{{ relURL "js/gallery.js" }}"></script>
|
||||||
<script defer src="{{ (resources.Get "js/mails.js" ).RelPermalink }}"></script>
|
<script defer src="{{ (resources.Get "js/mails.js" ).RelPermalink }}"></script>
|
||||||
</head>
|
</head>
|
||||||
|
@ -8,21 +8,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="slider">
|
<div class="slider">
|
||||||
<img src="{{ relURL "img/banner/Banner-RENOTE.jpg" }}" class="placeholder">
|
{{ partial "page/banner-images.html" . }}
|
||||||
<img src="{{ relURL "img/banner/Banner-RENOTE.jpg" }}" class="hidden slider-img">
|
|
||||||
<img src="{{ relURL "img/banner/Banner-Show2016.jpg" }}" class="hidden slider-img">
|
|
||||||
<img src="{{ relURL "img/banner/Banner2019.jpg" }}" class="hidden slider-img">
|
|
||||||
<img src="{{ relURL "img/banner/Fotobanner2.jpg" }}" class="hidden slider-img">
|
|
||||||
<img src="{{ relURL "img/banner/Paare_2019.jpg" }}" class="hidden slider-img">
|
|
||||||
<img src="{{ relURL "img/banner/slider-turnier.jpg" }}" class="hidden slider-img">
|
|
||||||
<div class="dots">
|
|
||||||
<div data-index="0" class="dot active"></div>
|
|
||||||
<div data-index="1" class="dot"></div>
|
|
||||||
<div data-index="2" class="dot"></div>
|
|
||||||
<div data-index="3" class="dot"></div>
|
|
||||||
<div data-index="4" class="dot"></div>
|
|
||||||
<div data-index="5" class="dot"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div id="nav-border" class="container nav">
|
<div id="nav-border" class="container nav">
|
||||||
<nav id="nav" class="nav justify-content-center">
|
<nav id="nav" class="nav justify-content-center">
|
||||||
|
Before Width: | Height: | Size: 65 KiB |
Before Width: | Height: | Size: 78 KiB |
Before Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 33 KiB |
@ -1,6 +1,6 @@
|
|||||||
$(function () {
|
$(function () {
|
||||||
var index = 0
|
var index = 0
|
||||||
const maxIndex = 5
|
const maxIndex = numImages - 1
|
||||||
const delay = 6000
|
const delay = 6000
|
||||||
const shuffeledIndices = []
|
const shuffeledIndices = []
|
||||||
|
|
||||||
|