https://kriesi.at/documentation/enfold/privacy-cookies/#developer-info
can i use aviaPrivacyVideoEmbedsDisabled them f.e. in jQuery scripts to do something.
I like to place an overlay with detailed Privacy instructions on avia-video youtube ( vimeo ) embeds that hampers the click event.
i want to place on that page a [av_privacy_video_embeds]
– and if it is set all overlays are set to opacity 0 and pointer-events none.
And can i remove those “av-toggle-switch” if the concerning rule is enabled before f.e. on first page load by accepting all cookies.
ok – i see there is a hidden checkbox with id and class – so i can use
$('.aviaPrivacyVideoEmbedsDisabled:checkbox').change(function() {
if (this.checked) {
// do something
}
});
// or :
if ($('.aviaPrivacyVideoEmbedsDisabled:checkbox').is(':checked')) {
// do something
}