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
dd2bc4d8
Commit
dd2bc4d8
authored
Aug 29, 2017
by
imac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix]JIRA :
NAP-55
-> Click to show map on mobile
parent
874d536d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
map.js
wp-content/themes/nap/assets/js/map.js
+5
-6
No files found.
wp-content/themes/nap/assets/js/map.js
View file @
dd2bc4d8
...
...
@@ -16,7 +16,6 @@ function initMap(){
var
initialClassNum
=
'st5'
;
var
proceed
=
false
;
if
(
svg
.
find
(
"#nap-carte-dep-"
+
dep
).
length
)
{
console
.
log
(
'inside map'
);
svg
.
find
(
"#nap-carte-dep-"
+
dep
).
attr
(
'class'
,
initialClassDep
+
' '
+
zone
+
' zonedep'
);
svg
.
find
(
"#nap-carte-numero-dep-"
+
dep
).
attr
(
'class'
,
initialClassNum
+
' '
+
zone
+
'num zonenum'
);
proceed
=
true
;
...
...
@@ -68,16 +67,16 @@ function selectZone(zone, initialClassDep, initialClassNum) {
window
.
selectedZone
=
zone
;
}
function
showMap
(){
jQuery
(
document
).
find
(
'.filter-wrapper .header-filter-contact .open-filter'
).
on
(
'click
touchend
'
,
function
(){
jQuery
(
document
).
find
(
'.filter-wrapper .header-filter-contact .open-filter'
).
on
(
'click'
,
function
(){
var
toggleButton
=
$
(
this
).
parent
();
toggleButton
.
toggleClass
(
'on'
);
$
(
'.filter'
).
appendMap
();
if
(
toggleButton
.
hasClass
(
'on'
)){
$
(
'.filter, .details, .active-com
, .map'
).
slideDown
();
$
(
'.map'
).
fadeIn
(
);
$
(
'.filter, .details, .active-com
'
).
stop
(
).
slideDown
();
setTimeout
(
function
(){
$
(
'.map'
).
fadeIn
()
},
1000
);
}
else
{
$
(
'.filter, .details, .active-com'
).
slideUp
();
$
(
'.map'
).
fadeOut
(
);
$
(
'.filter, .details, .active-com'
).
s
top
().
s
lideUp
();
setTimeout
(
function
(){
$
(
'.map'
).
fadeOut
()
},
1000
);
}
checkFilterContactWrapper
();
})
...
...
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