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
aef0f5f4
Commit
aef0f5f4
authored
Jun 10, 2022
by
Александр Чаплыгин
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Исключил из навигации по клавшиам неактивные фото (при выбранном первым из пары)
parent
909363bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
9 deletions
+25
-9
script-main.js
src/public/js/script-main.js
+25
-9
No files found.
src/public/js/script-main.js
View file @
aef0f5f4
...
@@ -489,11 +489,6 @@ $(document).ready(function(){
...
@@ -489,11 +489,6 @@ $(document).ready(function(){
if
(
$fotoFocused
.
length
>
0
)
{
if
(
$fotoFocused
.
length
>
0
)
{
$
(
'.b-foto_inner'
,
$fotoFocused
).
click
();
$
(
'.b-foto_inner'
,
$fotoFocused
).
click
();
}
}
}
}
// Вниз
// Вниз
...
@@ -543,13 +538,19 @@ $(document).ready(function(){
...
@@ -543,13 +538,19 @@ $(document).ready(function(){
if
(
$fotoFocused
.
length
>
0
)
{
if
(
$fotoFocused
.
length
>
0
)
{
var
var
$double
=
$fotoFocused
.
parents
(
'.b-foto-double'
),
$double
=
$fotoFocused
.
parents
(
'.b-foto-double'
),
$prevDouble
=
$double
.
prev
(
'.b-foto-double'
);
$prevDouble
;
if
(
$folderContent
.
hasClass
(
'has-selected'
))
{
$prevDouble
=
$double
.
prev
(
'.b-foto-double:not(.pair)'
);
}
else
{
$prevDouble
=
$double
.
prev
(
'.b-foto-double'
);
}
if
(
$fotoFocused
.
index
(
$
(
'.b-foto'
,
$double
))
==
0
)
{
if
(
$fotoFocused
.
index
(
$
(
'.b-foto'
,
$double
))
==
0
)
{
if
(
$prevDouble
.
length
>
0
)
{
if
(
$prevDouble
.
length
>
0
)
{
$prevFoto
=
$
(
'.b-foto'
,
$prevDouble
).
first
();
$prevFoto
=
$
(
'.b-foto'
,
$prevDouble
).
first
();
}
else
{
}
else
{
//$prevFoto = $fotoFocused;
unFocusAll
=
true
;
unFocusAll
=
true
;
}
}
}
else
{
}
else
{
...
@@ -557,10 +558,13 @@ $(document).ready(function(){
...
@@ -557,10 +558,13 @@ $(document).ready(function(){
$prevFoto
=
$
(
'.b-foto'
,
$prevDouble
).
last
();
$prevFoto
=
$
(
'.b-foto'
,
$prevDouble
).
last
();
if
(
$prevFoto
.
hasClass
(
'fict'
))
$prevFoto
=
$fotoFocused
;
if
(
$prevFoto
.
hasClass
(
'fict'
))
$prevFoto
=
$fotoFocused
;
}
else
{
}
else
{
//console.log('AAA Переход на 1-ю строку');
$prevDouble
=
$
(
'.b-foto-double'
,
$folderContent
).
last
();
$prevDouble
=
$
(
'.b-foto-double'
,
$folderContent
).
last
();
$prevFoto
=
$
(
'.b-foto'
,
$prevDouble
).
first
();
$prevFoto
=
$
(
'.b-foto'
,
$prevDouble
).
first
();
}
}
}
}
}
else
{
return
false
;
}
}
$
(
'.b-foto'
,
$folderContent
).
removeClass
(
'focus'
);
$
(
'.b-foto'
,
$folderContent
).
removeClass
(
'focus'
);
...
@@ -587,7 +591,12 @@ $(document).ready(function(){
...
@@ -587,7 +591,12 @@ $(document).ready(function(){
if
(
$nextDouble
.
length
>
0
)
{
if
(
$nextDouble
.
length
>
0
)
{
$nextFoto
=
$
(
'.b-foto'
,
$nextDouble
).
first
();
$nextFoto
=
$
(
'.b-foto'
,
$nextDouble
).
first
();
}
else
{
}
else
{
$nextDouble
=
$
(
'.b-foto-double'
,
$folderContent
).
first
();
//console.log('AAA Переход на 2-ю строку');
if
(
$folderContent
.
hasClass
(
'has-selected'
))
{
$nextDouble
=
$
(
'.b-foto-double:not(.pair)'
,
$folderContent
).
first
();
}
else
{
$nextDouble
=
$
(
'.b-foto-double'
,
$folderContent
).
first
();
}
$nextFoto
=
$
(
'.b-foto'
,
$nextDouble
).
last
();
$nextFoto
=
$
(
'.b-foto'
,
$nextDouble
).
last
();
}
}
}
else
{
}
else
{
...
@@ -600,7 +609,14 @@ $(document).ready(function(){
...
@@ -600,7 +609,14 @@ $(document).ready(function(){
}
}
}
else
{
}
else
{
$nextFoto
=
$
(
'.b-foto'
,
$folderContent
).
first
();
if
(
$folderContent
.
hasClass
(
'has-selected'
))
{
$nextFoto
=
$
(
'.b-foto-double:not(.pair) .b-foto'
,
$folderContent
).
first
();
}
else
{
$nextFoto
=
$
(
'.b-foto'
,
$folderContent
).
first
();
}
}
}
$
(
'.b-foto'
,
$folderContent
).
removeClass
(
'focus'
);
$
(
'.b-foto'
,
$folderContent
).
removeClass
(
'focus'
);
...
...
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