Sha256: 3bfeb3cb17c6ab2e959de9c51563048cb9b412896888aa827350652205e1c810
Contents?: true
Size: 1.25 KB
Versions: 5
Compression:
Stored size: 1.25 KB
Contents
/* Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 5 Version: 5.1.5 Author: Sean Ngu Website: http://www.seantheme.com/color-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: '30px', width: '100%', fillColor: 'transparent', type: 'bar', barWidth: 8, barColor: app.color.success }; var value = getRandomValue(); $('#sidebar-sparkline-1').sparkline(value, options); value = getRandomValue(); options.barColor = app.color.blue; $('#sidebar-sparkline-2').sparkline(value, options); value = getRandomValue(); options.barColor = app.color.purple; $('#sidebar-sparkline-3').sparkline(value, options); value = getRandomValue(); options.barColor = app.color.red; $('#sidebar-sparkline-4').sparkline(value, options); }; var PageWithTwoSidebar = function () { "use strict"; return { //main function init: function () { handleRenderKnobDonutChart(); handleRenderSparkline(); } }; }(); $(document).ready(function() { PageWithTwoSidebar.init(); });
Version data entries
5 entries across 5 versions & 1 rubygems