Browse Source

use new version of featherlight, including possibility to create galleries

master
Dom SP 3 years ago
parent
commit
b98dc51119
3 changed files with 19 additions and 3 deletions
  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 View File



<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 }}jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="/{{ @RESOURCES }}freaWebAudio.js"></script> <script type="text/javascript" src="/{{ @RESOURCES }}freaWebAudio.js"></script>
<script type="text/javascript" src="/{{ @RESOURCES }}script.js"></script> <script type="text/javascript" src="/{{ @RESOURCES }}script.js"></script>
<link type="text/css" href="/{{ @RESOURCES }}{{ @theme }}" rel="stylesheet" /> <link type="text/css" href="/{{ @RESOURCES }}{{ @theme }}" rel="stylesheet" />
<title>{{ @title }}</title> <title>{{ @title }}</title>
<style> <style>
<div id="admin-panel">{{ @backend | raw }}</div> <div id="admin-panel">{{ @backend | raw }}</div>
</check> </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 }}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> </body>
</html> </html>

+ 1
- 0
rsc/js/detect_swipe

Subproject commit a451680f05244ca584970159eed7ca5365c702f8

+ 1
- 0
rsc/js/featherlight

Subproject commit ea47cb6b5713b146bb8980bafc3be03ce63e932e

Loading…
Cancel
Save