{"size": 1705, "ext": "js", "max_stars_repo_path": "app/src/assets/js/scripts.js", "max_stars_repo_name": "DbugTech/DT-Ofiicial-Website", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/src/assets/js/scripts.js", "max_issues_repo_name": "DbugTech/DT-Ofiicial-Website", "max_issues_repo_issues_event_min_datetime": "2019-02-17T15:22:28.000Z", "max_issues_repo_issues_event_max_datetime": "2019-02-21T18:46:39.000Z", "max_forks_repo_path": "app/src/assets/js/scripts.js", "max_forks_repo_name": "DbugTech/DT-Ofiicial-Website", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 20, "max_forks_count": null, "avg_line_length": 27.5, "max_line_length": 74, "alphanum_fraction": 0.3565982405}
(function () {

    'use strict';

    /*-------------------------------------
     window...
     --------------------------------------*/

    var window_w = $(window).width(); // Window Width
    var window_h = $(window).height(); // Window Height
    var window_s = $(window).scrollTop(); // Window Scroll Top

    var $html = $('html'); // HTML
    var $body = $('body'); // Body


    if ($("#docs").length) {
        $('#docs').popover('show');
    }

    /*-------------------------------------
     Smooth Scroll
     --------------------------------------*/

    if ($(".scroll").length > 0 || $(".scroll a[href^='#']").length > 0) {
        $('.scroll, .scroll a[href^="#"]').on('click', function () {
            $('html, body').animate({
                scrollTop: $($.attr(this, 'href')).offset().top - 30
            }, 1500, function () {
            });
            return false;
        });
    }

    /*-------------------------------------
     Woo-Quantity
     --------------------------------------*/

    $("body").on("click", ".xv-qyt", function (e) {
        e.preventDefault();
        var $add = parseInt($(this).attr("data-value")),
            $input = $(this).siblings("input.qty"),
            cVal = parseInt($input.val());
        if (cVal >= 1) {
            if ($add === -1 && cVal === 1)
                return false;
            $input.val(cVal + $add);
        }
    });

    /*-------------------------------------
     Custom Select
     --------------------------------------*/
    $('.custome-select select').on('change', function () {
        var p = $(this).parent(".custome-select");
        p.find('span').html($(this).val());
    });


    goToTop();

}());