Commit cf42abfc authored by imac's avatar imac

[Bugfix]JIRA : Nap-33 -> Responsive contact page

parent 23d4e802
...@@ -6,7 +6,7 @@ $(function(){ ...@@ -6,7 +6,7 @@ $(function(){
$(document).find('a[href^="#"], .easyzoom a').click(function(e){ $(document).find('a[href^="#"], .easyzoom a').click(function(e){
e.preventDefault(); 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(); $('.contact-form form').slideToggle();
$(this).parent().toggleClass('on'); $(this).parent().toggleClass('on');
checkFilterContactWrapper(); checkFilterContactWrapper();
...@@ -19,7 +19,7 @@ $(function(){ ...@@ -19,7 +19,7 @@ $(function(){
toggleHandler(toggle); toggleHandler(toggle);
}; };
function toggleHandler(toggle) { function toggleHandler(toggle) {
toggle.addEventListener( "click", function(e) { toggle.addEventListener( "click touchend", function(e) {
var nav = $('.main-nav .nav-content'); var nav = $('.main-nav .nav-content');
//(this.classList.contains("is-active") === true) ? this.classList.remove("is-active") : this.classList.add("is-active"); //(this.classList.contains("is-active") === true) ? this.classList.remove("is-active") : this.classList.add("is-active");
$(".c-hamburger").toggleClass('is-active'); $(".c-hamburger").toggleClass('is-active');
...@@ -81,7 +81,7 @@ $(function(){ ...@@ -81,7 +81,7 @@ $(function(){
$( ".c-hamburger" ).trigger( "click" ); $( ".c-hamburger" ).trigger( "click" );
}); });
var div = $('.nav-content'); 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'); TweenMax.killTweensOf('.nav-content');
var mainHeight = $('.main').outerHeight(); var mainHeight = $('.main').outerHeight();
$(this).addClass('scrolled'); $(this).addClass('scrolled');
......
...@@ -68,7 +68,7 @@ function selectZone(zone, initialClassDep, initialClassNum) { ...@@ -68,7 +68,7 @@ function selectZone(zone, initialClassDep, initialClassNum) {
window.selectedZone = zone; window.selectedZone = zone;
} }
function showMap(){ 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(); var toggleButton = $(this).parent();
toggleButton.toggleClass('on'); toggleButton.toggleClass('on');
$('.filter').appendMap(); $('.filter').appendMap();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment