2 lines
1.9 KiB
JavaScript
Vendored
2 lines
1.9 KiB
JavaScript
Vendored
$(function(){"use strict";lineColors:["#009688","#fdb93e","#148cca"],xkey:"y",ykeys:["a","b","c"],labels:["a","b","c"],pointSize:0,lineWidth:0,resize:!0,fillOpacity:.8,behaveLikeLine:!0,gridLineColor:"rgba(108, 120, 151, 0.2)",hideHover:"auto"}),Morris.Bar({element:"morris-bar-chart",data:[{y:"Project-1",a:1e4,b:8e3,c:7800},{y:"Project-2",a:8500,b:7e3,c:6500},{y:"Project-3",a:9e3,b:7500,c:7e3},{y:"Project-4",a:9500,b:8500,c:7500},{y:"Project-5",a:7500,b:5500,c:5e3}],barGap:8,barSizeRatio:.3,barShape:"soft",barRadius:[5,5,5,5],xkey:"y",ykeys:["a","b","c"],labels:["Total","Used","Target"],barColors:["#44a2d2","#98d4ce","#c1d1de"],hideHover:"auto",preUnits:"$",gridLineColor:"rgba(108, 120, 151, 0.2)",resize:!0}),$(".knob").knob({format:function(e){return e+"%"}}),$(".knob").each(function(){var e=$(this),a=e.attr("rel");e.knob(),$({value:0}).animate({value:a},{duration:2e3,easing:"swing",step:function(){e.val(Math.ceil(this.value)).trigger("change")}})}),$(".live-tile, .flip-list").not(".exclude").liveTile(),Morris.Donut({element:"donut-example",data:[{label:"P1",value:50},{label:"P3",value:114},{label:"P2",value:230}],resize:!0,colors:["#e3eaef","#ff679b","#777edd"],labelColor:"#888",backgroundColor:"transparent",fillOpacity:.1,formatter:function(e){return e+"h"}}),$(function(){var t=$(".todo-list"),o=$(".todo-list-input");$(".add-new-todo-btn").on("click",function(e){e.preventDefault();var a=$(this).prevAll(".todo-list-input").val();a&&(t.append("<div class='todo-box'><i class='remove far fa-trash-alt'></i><div class='todo-task'><label class='ckbox'><input type='checkbox'/><span>"+a+"</span><i class='input-helper'></i></label></div></div>"),o.val(""))}),t.on("change",".ckbox",function(){$(this).attr("checked")?$(this).removeAttr("checked"):$(this).attr("checked","checked"),$(this).closest(".todo-box").toggleClass("completed")}),t.on("click",".remove",function(){$(this).parent().remove()})})});
|