KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
User : www-data ( 33)
PHP Version : 8.2.12
Disable Function : NONE
Directory :  /var/www/liminfinity.edukrypt.in/public/admin/js/examples/charts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/liminfinity.edukrypt.in/public/admin/js/examples/charts/justgage.js
'use strict';
$(document).ready(function () {

    function init() {
        new JustGage({
            id: "justgage_one",
            value: 90,
            min: 0,
            max: 100,
            counter: true,
            donut: true,
            gaugeWidthScale: 0.3,
            label: "Users",
        });

        // Delete the extra added element when the page is resized.
        $('#justgage_one > svg + svg').remove();

        new JustGage({
            id: "justgage_two",
            value: 46,
            min: 0,
            max: 100,
            counter: true,
            donut: true,
            gaugeWidthScale: 0.3,
            label: "Customers",
        });

        // Delete the extra added element when the page is resized.
        $('#justgage_two > svg + svg').remove();

        new JustGage({
            id: "justgage_three",
            value: 10,
            min: 0,
            max: 100,
            counter: true,
            donut: true,
            gaugeWidthScale: 0.3,
            label: "Visitor",
        });

        // Delete the extra added element when the page is resized.
        $('#justgage_three > svg + svg').remove();

        new JustGage({
            id: 'justgage_four',
            value: 155,
            min: 0,
            max: 250,
            symbol: 'mph',
            pointer: true,
            gaugeWidthScale: 0.3,
            counter: true,
            relativeGaugeSize: true,
            donut: true
        });

        // Delete the extra added element when the page is resized.
        $('#justgage_four > svg + svg').remove();

        new JustGage({
            id: 'justgage_five',
            value: 25,
            min: 0,
            max: 100,
            symbol: '%',
            pointer: true,
            pointerOptions: {
                toplength: -15,
                bottomlength: 10,
                bottomwidth: 12,
                color: '#8e8e93',
                stroke: '#ffffff',
                stroke_width: 3,
                stroke_linecap: 'round'
            },
            gaugeWidthScale: 0.3,
            counter: true,
            relativeGaugeSize: true,
            donut: true,
        });

        // Delete the extra added element when the page is resized.
        $('#justgage_five > svg + svg').remove();

        new JustGage({
            id: 'justgage_six',
            value: 86,
            min: 0,
            max: 100,
            symbol: 'kWh',
            pointer: true,
            gaugeWidthScale: 0.3,
            pointerOptions: {
                toplength: 10,
                bottomlength: 10,
                bottomwidth: 8,
                color: '#000'
            },
            counter: true,
            relativeGaugeSize: true,
            donut: true
        });

        // Delete the extra added element when the page is resized.
        $('#justgage_six > svg + svg').remove();

        var justgage_seven = new JustGage({
            id: "justgage_seven",
            value: 275,
            min: 0,
            max: 500,
            label: "Visitors On Site"
        });

        // Delete the extra added element when the page is resized.
        $('#justgage_seven > svg + svg').remove();

        var justgage_eight = new JustGage({
            id: "justgage_eight",
            value: 120,
            min: 0,
            max: 500,
            label: "Memory Usage",
            pointer: true,
            pointerOptions: {
                toplength: -15,
                bottomlength: 10,
                bottomwidth: 12,
                color: '#8e8e93',
                stroke: '#ffffff',
                stroke_width: 3,
                stroke_linecap: 'round'
            },
        });

        // Delete the extra added element when the page is resized.
        $('#justgage_eight > svg + svg').remove();

        var justgage_nine = new JustGage({
            id: 'justgage_nine',
            value: 25,
            min: 0,
            max: 100,
            symbol: '%',
            pointer: true,
            pointerOptions: {
                toplength: -15,
                bottomlength: 10,
                bottomwidth: 12,
                color: '#8e8e93',
                stroke: '#ffffff',
                stroke_width: 3,
                stroke_linecap: 'round'
            },
            gaugeWidthScale: 0.3,
            counter: true,
            relativeGaugeSize: true
        });

        // Delete the extra added element when the page is resized.
        $('#justgage_nine > svg + svg').remove();

        var justgage_ten = new JustGage({
            id: 'justgage_ten',
            value: 70,
            min: 0,
            max: 100,
            symbol: 'Kg',
            pointerOptions: {
                toplength: 8,
                bottomlength: -20,
                bottomwidth: 6,
                color: '#8e8e93'
            },
            gaugeWidthScale: 0.1,
            counter: true,
            relativeGaugeSize: true
        });

        // Delete the extra added element when the page is resized.
        $('#justgage_ten > svg + svg').remove();

        setInterval(function () {
            justgage_seven.refresh(getRandomInt(0, 500));
            justgage_eight.refresh(getRandomInt(0, 500));
            justgage_nine.refresh(getRandomInt(0, 100));
            justgage_ten.refresh(getRandomInt(0, 100));
        }, 2000);
    }

    init();

    $(window).on('resize', function () {
        init();
    });

});

Anon7 - 2021