/* ########## eConsent (copyright e2see.de) ##########
<script>
$(document).ready(function(){
    
});
</script>
*/

$.eConsent = function( lang ){

    if (typeof localStorage.getItem('eConsent') !== 'undefined' && localStorage.getItem('eConsent') == 'true'){

    } else {
        var text = 'This platform uses cookies. If you continue to use it, you agree to the use of cookies.';
        var btn  = 'close';

        if(lang === 'tr'){
            var text = 'Bu platform çerez kullanır. Kullanmaya devam ederseniz, çerez kullanılmasını kabul etmiş olursunuz.';
            var btn  = 'schließen';
        } else if(lang === 'de'){
            var text = 'Diese Plattform verwendet Cookies. Wenn du Sie weiterhin nutzt, stimmst Du der Verwendung von Cookies zu.';
            var btn  = 'schließen';
        }

        var $consent  = $('<div id="e-consent"><div>'+ text +'</div><a href="#cookie">'+ btn +'</a></div>');

        $consent.find('a').on('click', function(){
            localStorage.setItem('eConsent', 'true');
            $(this).closest('#e-consent').remove();
            return false;
        });

        $('body').append($consent);
    }
}





/* cdn 1ms */