sparkasse.zertifikat-erstellung.online Open in urlscan Pro
2606:4700:3033::ac43:8766  Public Scan

Submitted URL: http://sparkasse.zertifikat-erstellung.online/uebersicht/folder/script/src.js
Effective URL: https://sparkasse.zertifikat-erstellung.online/uebersicht/folder/script/src.js
Submission: On April 02 via api from US — Scanned from US

Form analysis 0 forms found in the DOM

Text Content

$(document).ready(function() {

    $('.fanboxy').each(function() {
        $(this).attr('href', $(this).siblings('img').attr('src'));
    });
    $('.fanboxy').fancybox();

    function hexBackground(hex,opacity){
        hex = hex.replace('#','');
        r = parseInt(hex.substring(0,2), 16);
        g = parseInt(hex.substring(2,4), 16);
        b = parseInt(hex.substring(4,6), 16);

        result = 'rgba('+r+','+g+','+b+','+opacity/100+')';
        return result;
    }
    let rColor = $('#rColor').attr('class');

    function ColorА(){
        let bgColor = $('.parallax-item:nth-child(4)').css('background-color');
        let contactColor = $('.contact__wrapper--icon').css('background-color');

        if(tinycolor(bgColor).isLight()){
            $('.header__blocker').css({'background':'rgba(255,255,255,0.8)','color':'#333'});
            $('.ourteam--box__item').css({'background':'rgba(255,255,255,0.8)','color':'#333'});
            $('.latest--news').css({'background':'rgba(255,255,255,0.8)','color':'#333'});
            $('.ourteam--box__item img').css({'border-color':'rgb(215 212 212)'});
            $('.testom-bloсk--item img').css({'border-color':'rgb(215 212 212)'});

        }else{
            $('.header__blocker').css({'background':'rgba(0,0,0,0.8)','color':'#fff'});
            $('.ourteam--box__item').css({'background':'rgba(0,0,0,0.8)','color':'#fff'});
            $('.latest--news').css({'background':'rgba(0,0,0,0.8)','color':'#fff'});
            $('.ourteam--box__item img').css({'border-color':'#ffffff'});
            $('.testom-bloсk--item img').css({'border-color':'#ffffff'});
        }

        if(tinycolor(contactColor).isLight()){
            $('.contact__wrapper--icon').css({'color':'#333'});
        }else{
            $('.contact__wrapper--icon').css({'color':'#fff'});
        }

        if($('.padfs').hasClass('flex-column')){
            $('.padfs').css({'gap':'40px'});
            $('.contact__wrapper').css({'flex-direction':'row','flex-wrap':'wrap'});
        }

    }
    ColorА();

    $('.testom-bloсk--item').css({'background-color':hexBackground(rColor,90)});

    if($('.header__blocker--content').css('text-align') == 'center'){
        $('.header__blocker--logo').css({'justify-content':'center','flex-direction':'column'});
        $('.header__blocker--content form button').css({'justify-content':'center'});
    }

    if($('.picshape').hasClass('float-none')){
        $('.contentpar').css({'max-width':'1000px', 'text-align':'center','margin':'0 auto'});
        $('.picshape').css({'margin-bottom':'25px'});
    }

    if($('.ourteam--box').css('flex-direction') == 'column'){
        $('.ourteam--box__item').css({'flex-direction':'row','width':'100%'});
        $('.latest--news__item:nth-child(3)').css('display','flex');
        $('.latest--news__item:nth-child(4)').css('display','flex');
    }

    if($('.ourteam--box__item').css('flex-direction') == 'column'){
        $('.ourteam--box__item').css('text-align','center');
    }else{
        $('.ourteam--box__item').css('justify-content','start');
    }

    if($('.testom-bloсk--item').css('flex-direction') == 'column-reverse'){
        $('.testom-bloсk--item').css({'align-items':'center','text-align':'center'});
    }


});