Tagged: x
-
AuthorPosts
-
December 6, 2016 at 5:01 am #1282900
ChristianModeratorAs posted previously, your map shows up in Cornerstone and in the live page on my end.
Thanks.
December 7, 2016 at 12:42 pm #1284942
arthurdupuyParticipantHello ?
December 7, 2016 at 12:51 pm #1284948
arthurdupuyParticipantSorry Christian !
Thank you for you’re answer. I really don’t understand, I trying on several laptop, cleaning cache etc. nothing work
December 7, 2016 at 6:17 pm #1285284
RadModeratorHi there,
Please add this custom javascript too,
jQuery( function($) { $('a[href="#"][class^="read_more_"]').on('click', function(){ console.log('Triggered'); setTimeout( function(){ $(window).trigger('resize'); }, 2000 ); } ); } );Then please change this existing code,
(function($){ $(document).ready(function(){ /*prepa boutton hover*/ $('a.read_more_prepa').hover(function() { $('.prepa_font').css("color", "#08203B"); $('.repere_prepa').addClass("hexagon_prepa_hover").removeclass("hexagon_prepa"); }, function() { $('.repere_prepa').removeClass("hexagon_prepa_hover").addClass("hexagon_prepa"); $('.prepa_font').css("color", "#FFFFFF"); }); }); })(jQuery);to this
(function($){ $(document).ready(function(){ /*prepa boutton hover*/ $('a.read_more_prepa').hover(function() { $('.prepa_font').css("color", "#08203B"); $('.repere_prepa').addClass("hexagon_prepa_hover").removeClass("hexagon_prepa"); }, function() { $('.repere_prepa').removeClass("hexagon_prepa_hover").addClass("hexagon_prepa"); $('.prepa_font').css("color", "#FFFFFF"); }); }); })(jQuery);Thanks!
December 9, 2016 at 8:26 am #1287368
arthurdupuyParticipantThank you for your answer Rad. It smelt good but it still doesn’t work…
One not :
It seems their is no difference between your code and mine. 1re your sure that there is no modification to do on my Java ?Thanks again for your help and waiting for your help !
December 9, 2016 at 4:17 pm #1287800
RadModeratorHi there,
Yes, there is a difference. Check this code
.removeclass("hexagon_prepa");and this code.removeClass("hexagon_prepa");and compare them. This will not fix the map, but we’re trying to narrow it down what causing it. The first step is minimizing the errors.And seems that there are many instances of removeclass, please change them to removeClass.
Thanks!
December 15, 2016 at 5:04 am #1294058
arthurdupuyParticipantI have always removeClass and addClasse with capital C if it is that you mean.
But maps still not loading…
December 15, 2016 at 2:23 pm #1294702
RadModeratorHi,
Nope, you didn’t change them all. The code is long one, and you just changed some of it.
Please use Chrome developer tool’s console to see if there are still remnants of removeclass.
I also noticed that some links are changed, please change this code
jQuery( function($) { $('a[href="#"][class^="read_more_"]').on('click', function(){ console.log('Triggered'); setTimeout( function(){ $(window).trigger('resize'); }, 2000 ); } ); } );to this
jQuery( function($) { $('.page-id-2608 #x-section-3 a[href="#"]').on('click', function(){ console.log('Triggered'); setTimeout( function(){ $(window).trigger('resize'); }, 2000 ); } ); } );Thanks!
December 16, 2016 at 2:48 am #1295410
arthurdupuyParticipantSo sorry Rad to forget some capitale C.
I did what you tell me to do. It still not working as you can see…
December 16, 2016 at 5:47 am #1295512
RadModeratorHi there,
I can still see them, I went ahead and fixed removeClass(). I also changed the code to this
jQuery( function($) { $('.page-id-2608 #x-section-3 a[href="#"]').on('click', function(){ console.log('Triggered'); setTimeout( function(){ window.dispatchEvent(new Event('resize')); }, 2000 ); } ); } );Because jQuery’s trigger(“resize”) is not working. Something is blocking it, could be from your custom code or plugin.
The 2000 is 2 seconds delay since your toggles and content have animation. Map works on a container with fixed dimension upon load, and animation has varying size.
And the main issue why the maps aren’t displaying is because of the custom code, you hide them and the map needs a dimension while loading. Hidden container means 0px width and 0px height. The custom codes should be modified to make it compatible with the map.
Thanks!
December 16, 2016 at 7:42 am #1295591
arthurdupuyParticipantOk, Thank you Rad. So what I have to do to make the toggle immediate ?
Do you have a solution ?December 16, 2016 at 1:25 pm #1295892
RadModeratorHi there,
It lies within your custom code, the solution is to rework everything in it. It’s quite long and I can’t cover that kind of custom code. But my recommendation is instead of hiding the content, use the Class name toggle to hide and display them.
Example,
.hide_content { height: 0; width: 100%; overflow: hidden; }Then
.toggleClass('hide_content');Do not use
display: none;, the width will result to 0px.Thanks!
January 4, 2017 at 5:19 am #1315586
arthurdupuyParticipantThanks a lot !
I have found the solution with your orientation !
Have a good day
January 4, 2017 at 6:08 am #1315643
ChristopherModeratorYou’re welcome.
Have a nice day too. -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1279018 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
