Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #967469

    Dear team,

    I am using Borlabs Cookie on my websites in order to comply with GDPR. However, the Google Maps in .avia-google-map-container, there are scripts loaded before the user can decide.

    I have set all .avia-google-map-container to .av_gmaps_show_delayed and wrote a script, which checks the Borlabs Cookie and then shall trigger a click on .av_gmaps_confirm_link, but I can’t get the event fired, neither with .click() nor triggerHandler(‘click’).

    I disabled Javascript and see, the element is there from the beginning. Any idea how to get it fired?

        // Load Google Maps, if Borlabs Cookie = All Cookies accepted
    	$(document).ready(function() {
    		var bc = window.getCookie('borlabsCookie');
    		if (bc != undefined && bc.slice(-4) == ',all') {
    			$('div[id^=av_gmap]').each(function() {
    				$(this).find('.av_gmaps_confirm_link').triggerHandler('click');
    			});
    		}
    	});
    
    #969834

    Hey mailworm,

    Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)

    Best regards,
    Basilis

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.