Bladeren bron

use new version of featherlight, including possibility to create galleries

master
Dom SP 3 jaren geleden
bovenliggende
commit
b98dc51119
3 gewijzigde bestanden met toevoegingen van 19 en 3 verwijderingen
  1. +17
    -3
      app/views/tpl/index.html
  2. +1
    -0
      rsc/js/detect_swipe
  3. +1
    -0
      rsc/js/featherlight

+ 17
- 3
app/views/tpl/index.html Bestand weergeven

@@ -19,12 +19,13 @@

<link href="/{{ @RESOURCES }}featherlight.min.css" type="text/css" rel="stylesheet" />
<link href="/{{ @RESOURCES }}js/featherlight/release/featherlight.min.css" type="text/css" rel="stylesheet" />
<link href="/{{ @RESOURCES }}js/featherlight/release/featherlight.gallery.min.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/{{ @RESOURCES }}jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="/{{ @RESOURCES }}freaWebAudio.js"></script>
<script type="text/javascript" src="/{{ @RESOURCES }}script.js"></script>
<link type="text/css" href="/{{ @RESOURCES }}{{ @theme }}" rel="stylesheet" />
<title>{{ @title }}</title>
<style>
@@ -42,7 +43,20 @@
<div id="admin-panel">{{ @backend | raw }}</div>
</check>
<script type="text/javascript" src="/{{ @RESOURCES }}featherlight.min.js"></script>
<script type="text/javascript" src="/{{ @RESOURCES }}js/featherlight/release/featherlight.min.js"></script>
<script type="text/javascript" src="/{{ @RESOURCES }}js/featherlight/release/featherlight.gallery.min.js"></script>
<script type="text/javascript" src="/{{ @RESOURCES }}init_audio.js"></script>
<script type="text/javascript" src="/{{ @RESOURCES }}{{ @themepath }}script.js"></script>
<script>
$('a.fl').featherlight({
targetAttr: 'href'
});
$('a.gallery').featherlightGallery({
previousIcon: '&lt;', /* Code that is used as previous icon */
nextIcon: '&gt;', /* Code that is used as next icon */
galleryFadeIn: 10, /* fadeIn speed when slide is loaded */
galleryFadeOut: 10
});
</script>
</body>
</html>

+ 1
- 0
rsc/js/detect_swipe

@@ -0,0 +1 @@
Subproject commit a451680f05244ca584970159eed7ca5365c702f8

+ 1
- 0
rsc/js/featherlight

@@ -0,0 +1 @@
Subproject commit ea47cb6b5713b146bb8980bafc3be03ce63e932e

Laden…
Annuleren
Opslaan