HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/straffer.komma.nl/wwwroot/js/circleAnimation.js
/**
 * Created by Pascal on 16/03/16.
 */

$(function () {
    var tempHeight = 0;
    resizeAbout();

    $(window).resize(function () {
        resizeAbout();
    });

    $(window).scroll(function () {
        if (isElementPartExtraInViewport($('.person'), 100)) {
            $('.person').addClass('show');
        }
        if (isElementFullInViewport($('.circle .container'))) {
            $('.circle').addClass('show');
            resizeAbout();
        }
    });

    // $('.services-blocks .block').click(function () {
    //     $(this).toggleClass('clicked');
    // });

    function resizeAbout() {
        if ($('.circle .container').length > 0) {
            var svg = $('.circle .container svg')[0];
            $('.circle .container').height(svg.getBoundingClientRect().height);

            // tempHeight = 0;
            // $('.services-blocks .block').css('height', 'initial');
            // $('.services-blocks .block').each(function () {
            //     if ($(this).height() > tempHeight) {
            //         tempHeight = $(this).height();
            //     }
            // });
            // $('.services-blocks .block').height(tempHeight);
        }
    }

});