{"size": 846, "ext": "js", "max_stars_repo_path": "src/BlazorBoilerplate.CommonUI/wwwroot/javascript/SvgLogoLoadingAnimationSsb.js", "max_stars_repo_name": "mobinseven/blazorboilerplate.customized", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/BlazorBoilerplate.CommonUI/wwwroot/javascript/SvgLogoLoadingAnimationSsb.js", "max_issues_repo_name": "mobinseven/blazorboilerplate.customized", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/BlazorBoilerplate.CommonUI/wwwroot/javascript/SvgLogoLoadingAnimationSsb.js", "max_forks_repo_name": "mobinseven/blazorboilerplate.customized", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 36.7826086957, "max_line_length": 109, "alphanum_fraction": 0.5437352246}
﻿/* TODO: Server Side Dummy Loader */
var logo = null;
$("body").bind("DOMNodeInserted", function (e) {
    if (e.target.id == "LogoSVG") {
        logo = document.getElementById("LogoSVG");
        var paths = logo.getElementsByTagName('path');
        for (var i = 0; i < paths.length; i++) {
            var length = paths[i].getTotalLength();

            // The start position of the drawing
            paths[i].style.strokeDasharray = length;

            // Hide the triangle by offsetting dash. Remove this line to show the triangle before scroll draw
            paths[i].style.strokeDashoffset = length;
        }
        $('#LogoSVG').find('path').each(function (i, elem) {
            $(this).animate({ 'stroke-dashoffset': 0 }, {
                duration: 4000,
                easing: 'linear'
            });
        });
    }
});