-
Notifications
You must be signed in to change notification settings - Fork 1
/
galerija.html
145 lines (127 loc) · 4.38 KB
/
galerija.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
---
layout: default
title: Galerija
active: galerija
styles:
- /assets/css/galleryStyle.css
scripts:
- /assets/js/anime.min.js
---
<div class = "container">
<div class='desktop-layout d-none d-md-block'>
<div class="row mt-1">
<div class='col-5'>
<div class='album'
onclick='onAlbumClicked(0)'
onmouseenter='onMouseEnter(0)'
onmouseleave='onMouseEnter(0)'
>
Sve
</div>
<div class='album-underline'></div>
{% assign len = site.photos.size %}
{% assign len = len | minus:1 %}
{% for it in (0..len) %}
<div class='album'
onclick='onAlbumClicked({{it|plus:1}})'
onmouseenter='onMouseEnter({{it|plus:1}})'
onmouseleave='onMouseEnter({{it|plus:1}})'
>
{{site.photos[it].name}}
</div>
<div class='album-underline'></div>
{% endfor %}
</div>
<div class='col' style='height: 100%;overflow-x: hidden;overflow-y: auto'>
<div class='row justify-content-center'>
<div class='col'>
<h3 id='album_title'></h3>
</div>
</div>
<div class='row justify-content-end'>
<div class='col-auto'>
<h5 id='album_date'></h5>
</div>
</div>
<div class='row'>
<div class='col' id='main_image'>
</div>
</div>
<div class='row justify-content-between' id='other_images'>
</div>
</div>
</div>
</div>
<div class='cover-all' style='overflow: auto' onclick='onCoverAllClicked(event)'
>
<div class='row justify-content-end'>
<div class='col-auto' style='color:white;font-weight: bold; cursor: pointer'
onclick='onImageViewToggled(-1)'
>
X
</div>
</div>
<div class='row'>
<div class='offset-1 d-none d-md-block'></div>
<div class='col-12 col-md-10'>
<div id='imageview' class='carousel slide' data-pause='true' >
<div class='carousel-inner'></div>
<a class="carousel-control-prev" href='#imageview'
role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href='#imageview'
role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</div>
</div>
<div class='mobile-layout d-md-none d-sm-block'>
<div class='list-group'>
<div class='list-group-item list-group-item-action' style='text-align: center'
onclick='onAlbumClickedMobile(0);'>
Sve
</div>
{% assign len = site.photos.size %}
{% assign len = len | minus:1 %}
{% for it in (0..len)%}
<div class='list-group-item-action list-group-item ' style='text-align: center'
onclick='onAlbumClickedMobile({{it|plus:1}});'>
{{site.photos[it].name}}
</div>
{% endfor %}
</div>
</div>
</div>
<script type='text/javascript'>
albums = [
{
name:'Sve',
date:'',
images:
[
{% for album in site.photos %}
{% for img in album.images %}
'{{img}}',
{% endfor %}
{% endfor %}
]
},
{% for album in site.photos %}
{
name:'{{album.name}}',
date:'{{album.date | date: "%d.%m.%Y."}}',
images:[
{%for img in album.images%}
'{{img}}',
{%endfor%}
]
},
{% endfor%}
];
</script>
<script type='text/javascript' src='/assets/js/galleryScript.js'></script>