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
df08d75a
Commit
df08d75a
authored
Aug 28, 2017
by
imac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix]JIRA : Nap-39 -> open icon bloc && Nap-38 -> Click on show commercial
parent
922b2dda
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
+18
-4
map.js
wp-content/themes/nap/assets/js/map.js
+11
-3
contact.php
wp-content/themes/nap/contact.php
+7
-1
No files found.
wp-content/themes/nap/assets/js/map.js
View file @
df08d75a
...
@@ -68,10 +68,18 @@ function selectZone(zone, initialClassDep, initialClassNum) {
...
@@ -68,10 +68,18 @@ function selectZone(zone, initialClassDep, initialClassNum) {
window
.
selectedZone
=
zone
;
window
.
selectedZone
=
zone
;
}
}
function
showMap
(){
function
showMap
(){
jQuery
(
document
).
find
(
'.show-filter'
).
on
(
'click'
,
function
(){
jQuery
(
document
).
find
(
'.filter-wrapper .header-filter-contact .open-filter'
).
on
(
'click'
,
function
(){
var
toggleButton
=
$
(
this
).
parent
().
find
(
'h2'
);
toggleButton
.
toggleClass
(
'on'
);
$
(
'.filter'
).
appendMap
();
$
(
'.filter'
).
appendMap
();
$
(
'.filter, .details, .active-com, .map'
).
slideToggle
();
if
(
toggleButton
.
hasClass
(
'on'
)){
$
(
this
).
toggleClass
(
'on'
);
$
(
'.filter, .details, .active-com, .map'
).
slideDown
();
$
(
'.map'
).
fadeIn
();
}
else
{
$
(
'.filter, .details, .active-com'
).
slideUp
();
$
(
'.map'
).
fadeOut
();
}
checkFilterContactWrapper
();
})
})
}
}
jQuery
(
"#map-search"
).
bind
(
'submit'
,
function
(
e
)
{
jQuery
(
"#map-search"
).
bind
(
'submit'
,
function
(
e
)
{
...
...
wp-content/themes/nap/contact.php
View file @
df08d75a
...
@@ -20,7 +20,10 @@ $post_ID = 157;
...
@@ -20,7 +20,10 @@ $post_ID = 157;
</div>
</div>
<div
class=
"right-panel full-height right"
>
<div
class=
"right-panel full-height right"
>
<div
class=
"filter-wrapper search-filter fixed full-height form-wrapper border-l row"
>
<div
class=
"filter-wrapper search-filter fixed full-height form-wrapper border-l row"
>
<h2>
Trouver mon contact commercial
</h2>
<div
class=
"header-filter-contact"
>
<h2>
Trouver mon contact commercial
</h2>
<span
class=
"open-filter abs-full display--only-mobile"
></span>
</div>
<div
class=
"filter"
>
<div
class=
"filter"
>
<form
id=
"map-search"
method=
"get"
action=
'contact.php'
>
<form
id=
"map-search"
method=
"get"
action=
'contact.php'
>
<p
class=
"form-element"
>
<p
class=
"form-element"
>
...
@@ -97,7 +100,10 @@ $post_ID = 157;
...
@@ -97,7 +100,10 @@ $post_ID = 157;
</div>
</div>
<div
class=
"contact-form right border-l row gray-bg"
>
<div
class=
"contact-form right border-l row gray-bg"
>
<div
class=
"form-wrapper inner-form"
>
<div
class=
"form-wrapper inner-form"
>
<div
class=
"header-filter-contact"
>
<h2
class=
"on"
>
Je souhaite être
<br>
contacté
</h2>
<h2
class=
"on"
>
Je souhaite être
<br>
contacté
</h2>
<span
class=
"open-filter abs-full display--only-mobile"
></span>
</div>
<!--<form method="POST">
<!--<form method="POST">
<div class="clearfix">
<div class="clearfix">
<div class="row left half-col">
<div class="row left half-col">
...
...
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