| Server IP : 66.29.146.62 / Your IP : 216.73.216.152 Web Server : LiteSpeed System : Linux premium231.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64 User : dokkdzvi ( 925) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/dokkdzvi/goldenmayar-omn.store/controlPanel/assets/pages/ |
Upload File : |
/**
* Theme: Adminto Admin Template
* Author: Coderthemes
* Component: Peity Chart
*
*/
!function($) {
"use strict";
var PeityChart = function() {};
//create line
PeityChart.prototype.createLine = function ($element, $strokeColor, $fillColor, $width ,$height) {
$($element).peity("line", {
fill: $strokeColor,
stroke: $fillColor,
width: $width,
height: $height
});
return $($element);
},
//init
PeityChart.prototype.init = function() {
//live graph
var updatingChart = this.createLine(".updating-chart",'#5fbeaa','#5fbeaa', 120,40);
setInterval(function() {
var random = Math.round(Math.random() * 10)
var values = updatingChart.text().split(",")
values.shift()
values.push(random)
updatingChart
.text(values.join(","))
.change()
}, 1000);
},
//init
$.PeityChart = new PeityChart, $.PeityChart.Constructor = PeityChart
}(window.jQuery),
//initializing
function($) {
"use strict";
$.PeityChart.init()
}(window.jQuery);