File size: 4.79Kb
<div class="modal cookie-alert-modal" tabindex="-1" role="dialog" data-app="cookie-alert-app" data-backdrop="static">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<span>
<svg height="512pt" viewBox="0 0 512 512" width="512pt" xmlns="http://www.w3.org/2000/svg"><path d="m386 256c0 5.523438-4.476562 10-10 10s-10-4.476562-10-10 4.476562-10 10-10 10 4.476562 10 10zm0 0"/><path d="m286 196c0 5.523438-4.476562 10-10 10s-10-4.476562-10-10 4.476562-10 10-10 10 4.476562 10 10zm0 0"/><path d="m266 406c0 5.523438-4.476562 10-10 10s-10-4.476562-10-10 4.476562-10 10-10 10 4.476562 10 10zm0 0"/><path d="m116 226c0 5.523438-4.476562 10-10 10s-10-4.476562-10-10 4.476562-10 10-10 10 4.476562 10 10zm0 0"/><path d="m146 396c22.054688 0 40-17.945312 40-40s-17.945312-40-40-40-40 17.945312-40 40 17.945312 40 40 40zm0-60c11.027344 0 20 8.972656 20 20s-8.972656 20-20 20-20-8.972656-20-20 8.972656-20 20-20zm0 0"/><path d="m236 126c0-22.054688-17.945312-40-40-40s-40 17.945312-40 40 17.945312 40 40 40 40-17.945312 40-40zm-60 0c0-11.027344 8.972656-20 20-20s20 8.972656 20 20-8.972656 20-20 20-20-8.972656-20-20zm0 0"/><path d="m306 346c0 22.054688 17.945312 40 40 40s40-17.945312 40-40-17.945312-40-40-40-40 17.945312-40 40zm60 0c0 11.027344-8.972656 20-20 20s-20-8.972656-20-20 8.972656-20 20-20 20 8.972656 20 20zm0 0"/><path d="m236 306c16.542969 0 30-13.457031 30-30s-13.457031-30-30-30-30 13.457031-30 30 13.457031 30 30 30zm0-40c5.515625 0 10 4.484375 10 10s-4.484375 10-10 10-10-4.484375-10-10 4.484375-10 10-10zm0 0"/><path d="m266 502c0 5.523438-4.476562 10-10 10s-10-4.476562-10-10 4.476562-10 10-10 10 4.476562 10 10zm0 0"/><path d="m494.398438 210.425781c-6.492188 3.28125-16.9375 5.574219-25.398438 5.574219-19.875 0-39.453125-11.484375-47.613281-27.925781-2.164063-4.359375-7.15625-6.527344-11.820313-5.136719-6.992187 2.089844-12.890625 3.0625-18.566406 3.0625-35.839844 0-65-29.160156-65-65 0-5.671875.972656-11.574219 3.0625-18.566406 1.394531-4.667969-.773438-9.65625-5.136719-11.820313-16.441406-8.160156-27.925781-27.738281-27.925781-47.613281 0-8.460938 2.292969-18.90625 5.574219-25.398438 1.445312-2.859374 1.433593-6.238281-.03125-9.085937-1.464844-2.847656-4.207031-4.824219-7.375-5.308594-14.242188-2.1875-26.367188-3.207031-38.167969-3.207031-137.980469 0-256 117.800781-256 256 0 120.019531 89.976562 228.125 209.289062 251.464844 5.421876 1.058594 10.675782-2.476563 11.734376-7.894532 1.058593-5.421874-2.472657-10.675781-7.894532-11.734374-110.101562-21.535157-193.128906-121.203126-193.128906-231.835938 0-127.925781 108.074219-236 236-236 7.300781 0 14.789062.4375 22.980469 1.351562-1.886719 7.011719-2.980469 14.667969-2.980469 21.648438 0 24.269531 12.796875 48.351562 31.902344 61.347656-1.289063 5.839844-1.902344 11.257813-1.902344 16.652344 0 46.867188 38.132812 85 85 85 5.394531 0 10.8125-.613281 16.652344-1.902344 12.996094 19.105469 37.078125 31.902344 61.347656 31.902344 6.980469 0 14.636719-1.09375 21.648438-2.980469.914062 8.191407 1.351562 15.679688 1.351562 22.980469 0 110.632812-83.027344 210.300781-193.128906 231.835938-5.421875 1.058593-8.953125 6.3125-7.894532 11.730468 1.058594 5.421875 6.3125 8.957032 11.734376 7.898438 119.3125-23.339844 209.289062-131.445313 209.289062-251.464844 0-11.800781-1.019531-23.925781-3.207031-38.167969-1.027344-6.710937-8.324219-10.476562-14.394531-7.40625zm0 0"/></svg>
</span>
</div>
<div class="modal-body">
<h4>
<?php echo cl_translate("This website uses cookies."); ?>
</h4>
<p>
<?php echo cl_translate("_cookies_alert_", array(
"link" => cl_html_el("a", cl_translate("Learn more"), array(
"href" => cl_link("cookies_policy"),
"target" => "_blank"
))
)); ?>
</p>
</div>
<div class="modal-footer">
<button class="btn btn-custom main-outline lg">
<?php echo cl_translate("Got it!"); ?>
</button>
</div>
</div>
</div>
<script>
$(document).ready(function($) {
setTimeout(function() {
$('[data-app="cookie-alert-app"]').modal("show");
}, 1);
$('[data-app="cookie-alert-app"]').find("button").on('click', function(e) {
$.ajax({
url: '<?php echo cl_link("native_api/main/cua"); ?>',
type: 'GET',
dataType: 'json'
}).done(function() {
$('[data-app="cookie-alert-app"]').modal("hide").remove();
});
});
});
</script>
</div>