Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sam
website
Commits
a8b4ba6a
Commit
a8b4ba6a
authored
7 years ago
by
Hakkel Tamás
Browse files
Options
Downloads
Patches
Plain Diff
lightbox added
parent
782e6f9b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
selection/index.html
+15
-9
15 additions, 9 deletions
selection/index.html
with
15 additions
and
9 deletions
selection/index.html
+
15
−
9
View file @
a8b4ba6a
...
...
@@ -37,10 +37,14 @@
crossorigin=
"anonymous"
></script>
<!-- Luminous Lightbox js plugin: https://github.com/imgix/luminous -->
<script
<script
async
src=
"https://cdnjs.cloudflare.com/ajax/libs/luminous-lightbox/2.0.0/Luminous.min.js"
integrity=
"sha256-CJMPaJ2QPWYx2oq/FqbYkyOsSQbWWAQmklkgcVpn3Sw="
crossorigin=
"anonymous"
></script>
<link
rel=
"stylesheet"
href=
"https://cdnjs.cloudflare.com/ajax/libs/luminous-lightbox/2.0.0/luminous-basic.min.css"
integrity=
"sha256-uCdaKiNzZUXz+QXd2W48tXdSDRmaWc7SxYe1xTc3A94="
crossorigin=
"anonymous"
/>
<style>
body
{
...
...
@@ -297,10 +301,10 @@
var
photos
=
parsed
[
'
photos
'
];
last_timestamp
=
parsed
[
'
last_timestamp
'
];
// global variable!
var
html
=
""
;
for
(
var
date
of
Object
.
keys
(
photos
)
.
reverse
()
)
{
for
(
var
date
of
Object
.
keys
(
photos
))
{
html
+=
`<div style="overflow: auto">
<div class="mb-
1
mt-3">
<p class="font-weight-bold">
${
date
}
</p>
<div class="mb-
2
mt-3">
<p class="font-weight-bold
mb-1
">
${
date
}
</p>
<a class="group-select ok" data-group="
${
date
}
">accept all<a>
<a class="group-select nok" data-group="
${
date
}
">reject all</a>
<a class="group-select idn" data-group="
${
date
}
">deselect all</a>
...
...
@@ -308,12 +312,12 @@
for
(
var
photo
of
photos
[
date
].
reverse
())
{
html
+=
`
<div class="w-33 w-sm-25 w-md-20 w-lg-16 w-xl-8 img-div">
<
a href="
${
photo
[
'
photo_path
'
]}
">
<
span class="lightbox" href="../img/
${
photo
[
'
photo_path
'
]}
">
<input type="checkbox" id="
${
photo
[
'
thumbnail_ID
'
]}
" data-group="
${
date
}
" />
<label for="
${
photo
[
'
thumbnail_ID
'
]}
" class="img-outer">
<img class="img-inner" data-src="../img/
${
photo
[
'
thumb_path
'
]}
&
10
0" />
</label>
</
a
>
<img class="img-inner" data-src="../img/
${
photo
[
'
thumb_path
'
]}
&
8
0" />
</label>
</
span
>
</div>`
;
}
html
+=
'
</div>
'
...
...
@@ -328,7 +332,9 @@
.
prop
(
"
checked
"
,
$
(
this
).
hasClass
(
"
ok
"
));
});
waitFor
(
"
LazyLoad
"
,
()
=>
myLazyLoad
=
new
LazyLoad
());
waitFor
(
"
Luminous
"
,
()
=>
new
Luminous
(
document
.
querySelector
(
'
a
'
))
);
waitFor
(
"
Luminous
"
,
()
=>
new
LuminousGallery
(
document
.
querySelectorAll
(
'
.lightbox
'
),{},{
openTrigger
:
'
contextmenu
'
})
);
})
.
fail
((
error
)
=>
{
console
.
log
(
error
);
$
(
"
#error-setup
"
).
show
();})
.
always
(
()
=>
$
(
"
#loader
"
).
hide
()
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment