Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
neuro-images
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Александр Чаплыгин
neuro-images
Commits
ef1d50d0
Commit
ef1d50d0
authored
Jun 07, 2022
by
Александр Чаплыгин
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Правки для размера и позиционирования картинок
parent
bbc4cddd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
9 deletions
+30
-9
styles-main.css
src/public/css/styles-main.css
+19
-3
fotos.dat
src/public/fotos.dat
+0
-2
script-main.js
src/public/js/script-main.js
+11
-4
No files found.
src/public/css/styles-main.css
View file @
ef1d50d0
...
@@ -65,12 +65,14 @@
...
@@ -65,12 +65,14 @@
{
{
padding
:
0px
;
padding
:
0px
;
height
:
calc
(
100vh
-
40px
);
height
:
calc
(
100vh
-
40px
);
background-color
:
#303030
;
overflow
:
auto
;
overflow
:
auto
;
}
}
.b-preview_inner
.b-preview_inner
{
{
display
:
none
;
display
:
none
;
height
:
100%
;
}
}
.b-preview_inner.active
.b-preview_inner.active
...
@@ -88,15 +90,16 @@
...
@@ -88,15 +90,16 @@
background-image
:
url(../img/loading.gif)
;
background-image
:
url(../img/loading.gif)
;
background-position
:
center
center
;
background-position
:
center
center
;
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
background-color
:
#
FFF
;
background-color
:
#
303030
;
z-index
:
9999
;
z-index
:
9999
;
}
}
.b-folder-content
.sorted
.b-folder-content
{
{
margin
:
0
;
height
:
100%
;
}
}
.b-folder-content
.sorted
,
.b-folder-content
.not-sorted
.b-folder-content
.not-sorted
{
{
margin
:
0
;
margin
:
0
;
...
@@ -142,6 +145,7 @@
...
@@ -142,6 +145,7 @@
.b-foto
{
.b-foto
{
padding
:
4px
;
padding
:
4px
;
}
}
.b-foto_inner
{
.b-foto_inner
{
...
@@ -149,8 +153,18 @@
...
@@ -149,8 +153,18 @@
border-radius
:
4px
;
border-radius
:
4px
;
overflow
:
hidden
;
overflow
:
hidden
;
cursor
:
pointer
;
cursor
:
pointer
;
height
:
450px
;
}
.b-foto_inner-emul
{
height
:
450px
;
}
}
.b-foto_inner.single-row
{
height
:
auto
;
}
.b-folder-content.has-selected
.b-foto_inner.paired
{
.b-folder-content.has-selected
.b-foto_inner.paired
{
cursor
:
default
;
cursor
:
default
;
...
@@ -159,6 +173,8 @@
...
@@ -159,6 +173,8 @@
.b-foto_img
{
.b-foto_img
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
object-fit
:
contain
;
}
}
.b-foto_border
.b-foto_border
...
...
src/public/fotos.dat
View file @
ef1d50d0
{"B-KazwCAcxM":{"1":["a1654550658-1.jpg","a1654550658-2.jpg"],"2":["a1654550658-5.jpg","a1654550658-3.jpg"]},"BtbMz-iFHDk":"","B24WGzEo8v_":{"1":["a1654549054-2.jpg","a1654549054-3.jpg"]},"BzGTAELIyX_":{
\ No newline at end of file
src/public/js/script-main.js
View file @
ef1d50d0
...
@@ -70,7 +70,7 @@ $(document).ready(function(){
...
@@ -70,7 +70,7 @@ $(document).ready(function(){
folder
,
folder
,
templateFolderContent
,
templateFolderContent
,
templateFolderContentCommon
=
_
.
template
(
''
+
templateFolderContentCommon
=
_
.
template
(
''
+
'<div class="b-folder-content row active" data-folder="<%= folderName %>">'
+
'<div class="b-folder-content row a
lign-items-center a
ctive" data-folder="<%= folderName %>">'
+
' <div class="b-foto-double col">'
+
' <div class="b-foto-double col">'
+
' <% _.each(files, function(item, ind) { %>
\
n'
+
' <% _.each(files, function(item, ind) { %>
\
n'
+
' <div class="b-foto" data-id="<%= item %>" data-ind="<%= ind+1 %>">'
+
' <div class="b-foto" data-id="<%= item %>" data-ind="<%= ind+1 %>">'
+
...
@@ -85,15 +85,22 @@ $(document).ready(function(){
...
@@ -85,15 +85,22 @@ $(document).ready(function(){
' <div class="b-foto-double col">'
+
' <div class="b-foto-double col">'
+
' <% } %>'
+
' <% } %>'
+
' <% }) %>
\
n'
+
' <% }) %>
\
n'
+
' <% if ((files.length % 2) != 0) { %>'
+
' <div class="b-foto"><div class="b-foto_inner-emul"></div></div>'
+
' <% } %>'
+
' </div>'
+
' </div>'
+
'</div>'
'</div>'
),
),
templateFolderContent23
=
_
.
template
(
''
+
templateFolderContent23
=
_
.
template
(
''
+
'<div class="b-folder-content row active" data-folder="<%= folderName %>">'
+
'<div class="b-folder-content row a
lign-items-center a
ctive" data-folder="<%= folderName %>">'
+
' <% _.each(files, function(item, ind) { %>
\
n'
+
' <% _.each(files, function(item, ind) { %>
\
n'
+
' <div class="b-foto-double col">'
+
' <div class="b-foto-double col">'
+
' <div class="b-foto" data-id="<%= item %>" data-ind="<%= ind+1 %>">'
+
' <div class="b-foto" data-id="<%= item %>" data-ind="<%= ind+1 %>">'
+
' <div class="b-foto_inner" data-foto="<%= item %>" data-num="">'
+
' <div class="b-foto_inner
single-row
" data-foto="<%= item %>" data-num="">'
+
' <img class="b-foto_img" src="<%= folder %>/<%= item %>" >'
+
' <img class="b-foto_img" src="<%= folder %>/<%= item %>" >'
+
' <div class="b-foto_border"></div>'
+
' <div class="b-foto_border"></div>'
+
' <div class="b-foto_number"></div>'
+
' <div class="b-foto_number"></div>'
+
...
@@ -134,7 +141,7 @@ $(document).ready(function(){
...
@@ -134,7 +141,7 @@ $(document).ready(function(){
if
(
folderType
==
'new'
)
{
if
(
folderType
==
'new'
)
{
if
(
dataStorage
[
folderName
])
sourceData
=
dataStorage
[
folderName
];
if
(
dataStorage
&&
dataStorage
[
folderName
])
sourceData
=
dataStorage
[
folderName
];
if
(
sourceData
)
{
if
(
sourceData
)
{
var
pairs
=
Object
.
keys
(
dataStorage
[
folderName
]);
var
pairs
=
Object
.
keys
(
dataStorage
[
folderName
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment