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
cf42abfc
Commit
cf42abfc
authored
Aug 28, 2017
by
imac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix]JIRA : Nap-33 -> Responsive contact page
parent
23d4e802
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
main.js
wp-content/themes/nap/assets/js/main.js
+3
-3
map.js
wp-content/themes/nap/assets/js/map.js
+1
-1
No files found.
wp-content/themes/nap/assets/js/main.js
View file @
cf42abfc
...
...
@@ -6,7 +6,7 @@ $(function(){
$
(
document
).
find
(
'a[href^="#"], .easyzoom a'
).
click
(
function
(
e
){
e
.
preventDefault
();
});
$
(
document
).
find
(
'.contact-form .open-filter'
).
on
(
'click'
,
function
(){
$
(
document
).
find
(
'.contact-form .open-filter'
).
on
(
'click
touchend
'
,
function
(){
$
(
'.contact-form form'
).
slideToggle
();
$
(
this
).
parent
().
toggleClass
(
'on'
);
checkFilterContactWrapper
();
...
...
@@ -19,7 +19,7 @@ $(function(){
toggleHandler
(
toggle
);
};
function
toggleHandler
(
toggle
)
{
toggle
.
addEventListener
(
"click"
,
function
(
e
)
{
toggle
.
addEventListener
(
"click
touchend
"
,
function
(
e
)
{
var
nav
=
$
(
'.main-nav .nav-content'
);
//(this.classList.contains("is-active") === true) ? this.classList.remove("is-active") : this.classList.add("is-active");
$
(
".c-hamburger"
).
toggleClass
(
'is-active'
);
...
...
@@ -81,7 +81,7 @@ $(function(){
$
(
".c-hamburger"
).
trigger
(
"click"
);
});
var
div
=
$
(
'.nav-content'
);
$
(
'.footer-home-content'
).
on
(
'click'
,
'.home-down:not(.scrolled)'
,
function
(
e
){
$
(
'.footer-home-content'
).
on
(
'click
touchend
'
,
'.home-down:not(.scrolled)'
,
function
(
e
){
TweenMax
.
killTweensOf
(
'.nav-content'
);
var
mainHeight
=
$
(
'.main'
).
outerHeight
();
$
(
this
).
addClass
(
'scrolled'
);
...
...
wp-content/themes/nap/assets/js/map.js
View file @
cf42abfc
...
...
@@ -68,7 +68,7 @@ function selectZone(zone, initialClassDep, initialClassNum) {
window
.
selectedZone
=
zone
;
}
function
showMap
(){
jQuery
(
document
).
find
(
'.filter-wrapper .header-filter-contact .open-filter'
).
on
(
'click'
,
function
(){
jQuery
(
document
).
find
(
'.filter-wrapper .header-filter-contact .open-filter'
).
on
(
'click
touchend
'
,
function
(){
var
toggleButton
=
$
(
this
).
parent
();
toggleButton
.
toggleClass
(
'on'
);
$
(
'.filter'
).
appendMap
();
...
...
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