Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
NAP-wordpress
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marwa Sfari
NAP-wordpress
Commits
26dc47a6
Commit
26dc47a6
authored
Sep 20, 2017
by
imac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update]Redmine #649 : Structural change + fixed menu
parent
2fc92e00
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
main.js
wp-content/themes/nap/assets/js/main.js
+3
-6
nap.js
wp-content/themes/nap/assets/js/nap.js
+1
-1
No files found.
wp-content/themes/nap/assets/js/main.js
View file @
26dc47a6
...
...
@@ -80,7 +80,7 @@ var initFunction = function() {
$
(
'.main-list-nav>li'
).
removeClass
(
'current'
);
$
(
this
).
parent
().
addClass
(
'current'
);
$
(
'.main-list-nav .subcat'
).
stop
().
slideUp
(
'slow'
);
$
(
this
).
parent
().
find
(
'.subcat'
).
stop
().
slideDown
(
'slow'
);
//
$(this).parent().find('.subcat').stop().slideDown('slow');
});
setTimeout
(
function
()
{
$
(
'.gallery-wrapper'
).
removeClass
(
'hidden-elem'
).
addClass
(
'animated visible-elem fadeInUp'
);
...
...
@@ -144,9 +144,6 @@ var initFunction = function() {
})
$
(
this
).
parent
().
find
(
'.subcat'
).
addClass
(
'current'
);
$
(
'.img-wrapper'
).
hide
();
/* $('nav ul').each(function(){
$(this).find('li').removeClass('current').addClass('off');
})*/
var
clickedElem
=
$
(
this
).
parent
();
$
(
'.right-container'
).
load
(
link
,
{
'ajax'
:
1
},
function
()
{
// $('#fullpage').fullpageSlide(); //Stories
...
...
@@ -182,9 +179,9 @@ var initFunction = function() {
}
$
(
'.main .container-bg'
).
removeClass
(
'hidden'
);
//$('.main').css('padding-top', $('.nav-header').outerHeight());
}
}
// IF HOME
$
(
'.loading-container-subpage'
).
hide
();
});
});
//END load
history
.
pushState
(
null
,
null
,
link
);
});
//}
...
...
wp-content/themes/nap/assets/js/nap.js
View file @
26dc47a6
...
...
@@ -24,7 +24,7 @@ jQuery(document).ready(function() {
});
jQuery
(
"#search-btn"
).
on
(
'click
'
,
function
()
{
jQuery
(
document
).
on
(
'click'
,
'#search-btn
'
,
function
()
{
jQuery
(
'article'
).
show
();
jQuery
(
'.list-animation section'
).
show
();
jQuery
(
'article'
).
removeClass
(
'selected'
);
...
...
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