PHP Classes

File: public/assets/js/demo/page-with-two-sidebar.demo.js

Recommend this page to a friend!
  Classes of Wang   Tagydes   public/assets/js/demo/page-with-two-sidebar.demo.js   Download  
File: public/assets/js/demo/page-with-two-sidebar.demo.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Tagydes
E-commerce Web administration panel and API
Author: By
Last change:
Date: 1 year ago
Size: 1,213 bytes
 

Contents

Class file image Download
/* Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 4 Version: 4.3.0 Author: Sean Ngu Website: http://www.seantheme.com/color-admin-v4.3/admin/ */ var getRandomValue = function() { var value = []; for (var i = 0; i<= 19; i++) { value.push(Math.floor((Math.random() * 10) + 1)); } return value; }; var handleRenderKnobDonutChart = function() { $('.knob').knob(); }; var handleRenderSparkline = function() { var options = { height: '50px', width: '100%', fillColor: 'transparent', type: 'bar', barWidth: 8, barColor: COLOR_GREEN }; var value = getRandomValue(); $('#sidebar-sparkline-1').sparkline(value, options); value = getRandomValue(); options.barColor = COLOR_BLUE; $('#sidebar-sparkline-2').sparkline(value, options); value = getRandomValue(); options.barColor = COLOR_PURPLE; $('#sidebar-sparkline-3').sparkline(value, options); value = getRandomValue(); options.barColor = COLOR_RED; $('#sidebar-sparkline-4').sparkline(value, options); }; var PageWithTwoSidebar = function () { "use strict"; return { //main function init: function () { handleRenderKnobDonutChart(); handleRenderSparkline(); } }; }();