Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/demo.cartinsight.co/resources/views/vendor/charts/justgage/realtime/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/demo.cartinsight.co/resources/views/vendor/charts/justgage/realtime/gauge.blade.php
@include('charts::_partials.container.div')

<script type="text/javascript">
    var {{ $model->id }};
    $(function() {
        {{ $model->id }} = new JustGage({
            id: "{{ $model->id }}",
            value: {{ $model->values ? $model->values[0] : '0' }},

            @if(count($model->values) >= 2 and $model->values[1] <= $model->values[0])
                @php($min = $model->values[1])
                min: {{ $min }},
            @else
                @php($min = 0)
            @endif

            @if(count($model->values) >= 3 and $model->values[2] >= $model->values[0])
                @php($max = $model->values[2])
                max: {{ $max }},
            @else
                @php($max = 100)
            @endif

            gaugeWidthScale: 0.6,
            pointer: true,
            counter: true,
            @if($model->title)
                title:  "{!! $model->title !!}",
            @endif
            label: "{!! $model->element_label !!}",
            hideInnerShadow: true
        })
        $.getJSON("{!! $model->url !!}", function( jdata ) {
            {{ $model->id }}.refresh(jdata["{{ $model->value_name }}"])
        })
        setInterval(function() {
            $.getJSON("{!! $model->url !!}", function( jdata ) {
                {{ $model->id }}.refresh(jdata["{{ $model->value_name }}"])
            })
        }, {{ $model->interval }})
    });
</script>

Spamworldpro Mini