Remove unused js, css and font

This commit is contained in:
Ibnu Maksum
2024-02-26 11:43:57 +07:00
parent 35d679ed2c
commit 617e628b04
85 changed files with 52 additions and 1390 deletions

View File

@ -1 +0,0 @@
jQuery(function(){"use strict";function initC3Chart(){c3.generate({bindto:"#c3chartline",data:{columns:[["data1",30,200,100,200,150,250],["data2",50,20,10,40,15,25]]}}),c3.generate({bindto:"#c3chartspline",data:{columns:[["data1",30,200,100,400,150,250],["data2",130,100,140,200,150,50],["data3",50,20,10,40,15,25]],type:"spline"}}),c3.generate({bindto:"#c3chartstep",data:{columns:[["data1",300,350,300,0,0,100],["data2",130,100,140,200,150,50]],types:{data1:"step",data2:"area-step"}}}),c3.generate({bindto:"#c3chartbar",data:{columns:[["data1",30,200,100,400,150,250],["data2",130,100,140,200,150,50]],type:"bar"},bar:{width:{ratio:.5}}}),c3.generate({bindto:"#c3chartarea",data:{columns:[["data1",300,350,300,0,0,120],["data2",130,100,140,200,150,50]],types:{data1:"area-spline",data2:"area-spline"},groups:[["data1","data2"]]}}),c3.generate({bindto:"#c3chartstackedbar",data:{columns:[["data1",-30,200,200,400,-150,250],["data2",130,100,-100,200,-150,50],["data3",-230,200,200,-300,250,250]],type:"bar",groups:[["data1","data2"]]},grid:{y:{lines:[{value:0}]}}}),c3.generate({bindto:"#c3chartpie",data:{columns:[["setosa",.2,.2,.2,.2,.2,.4,.3,.2,.2,.1,.2,.2,.1,.1,.2,.4,.4,.3,.3,.3,.2,.4,.2,.5,.2,.2,.4,.2,.2,.2,.2,.4,.1,.2,.2,.2,.2,.1,.2,.2,.3,.3,.2,.6,.4,.3,.2,.2,.2,.2],["versicolor",1.4,1.5,1.5,1.3,1.5,1.3,1.6,1,1.3,1.4,1,1.5,1,1.4,1.3,1.4,1.5,1,1.5,1.1,1.8,1.3,1.5,1.2,1.3,1.4,1.4,1.7,1.5,1,1.1,1,1.2,1.6,1.5,1.6,1.5,1.3,1.3,1.3,1.2,1.4,1.2,1,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,1.9,2.1,2,2.4,2.3,1.8,2.2,2.3,1.5,2.3,2,2,1.8,2.1,1.8,1.8,1.8,2.1,1.6,1.9,2,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,2.3,1.8]],type:"pie"}}),c3.generate({bindto:"#c3chartdonut",data:{columns:[["setosa",.2,.2,.2,.2,.2,.4,.3,.2,.2,.1,.2,.2,.1,.1,.2,.4,.4,.3,.3,.3,.2,.4,.2,.5,.2,.2,.4,.2,.2,.2,.2,.4,.1,.2,.2,.2,.2,.1,.2,.2,.3,.3,.2,.6,.4,.3,.2,.2,.2,.2],["versicolor",1.4,1.5,1.5,1.3,1.5,1.3,1.6,1,1.3,1.4,1,1.5,1,1.4,1.3,1.4,1.5,1,1.5,1.1,1.8,1.3,1.5,1.2,1.3,1.4,1.4,1.7,1.5,1,1.1,1,1.2,1.6,1.5,1.6,1.5,1.3,1.3,1.3,1.2,1.4,1.2,1,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,1.9,2.1,2,2.4,2.3,1.8,2.2,2.3,1.5,2.3,2,2,1.8,2.1,1.8,1.8,1.8,2.1,1.6,1.9,2,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,2.3,1.8]],type:"donut"}}),$("#easypiechartDemo").easyPieChart({size:180,lineWidth:12,lineCap:"square",barColor:"#E91E63"})}function _init(){initC3Chart(),$(".site-head").find(".nav-trigger").on("click touchstart",function(){$(this).toggleClass("nav-expand"),".nav-wrap"==this&&$(this).toggleClass("nav-offcanvas"),setTimeout(function(){initC3Chart()})})}_init()});

View File

@ -1 +0,0 @@
jQuery(function(){"use strict";function initFullCalendar(){function addEvent(name,date,index){var html='<li data-index="'+index+'"> <input class="event-name" value="'+name+'"> <div class="event-date">'+date+'</div> <div class="event-remove-icon ion ion-trash-a removeEventBtn"></div> </li>';$("#calevents").append(html)}function removeEvent(calEvent){calEvent.remove(),FC.fullCalendar("removeEvents",function(eventObject){return eventObject.title===calEvent.find(".event-name").attr("value")})}function changeView(view){FC.fullCalendar("changeView",view),calToolbar.find(".current-date").html(FC.fullCalendar("getView").title)}function prev(){FC.fullCalendar("prev"),calToolbar.find(".current-date").html(FC.fullCalendar("getView").title)}function next(){FC.fullCalendar("next"),calToolbar.find(".current-date").html(FC.fullCalendar("getView").title)}function today(){FC.fullCalendar("today"),calToolbar.find(".current-date").html(FC.fullCalendar("getView").title)}var date=new Date,d=date.getDate(),m=date.getMonth(),y=date.getFullYear(),calEvents=[{title:"All Day Event",start:new Date(y,m,1)},{title:"Very Long Event",start:new Date(y,m,d+10,11,22),end:new Date(y,m,d+13),className:"bg-primary",description:"Short description about event"},{id:999,title:"Repeating Event",start:new Date(y,m,d-3,16,33),allDay:!1,className:"bg-danger"},{title:"Repeating Event",start:new Date(y,m,d+4,13,45),className:"bg-warning"},{title:"Birthday Party",start:new Date(y,m,d+1,19,0),end:new Date(y,m,d+1,22,30),allDay:!1,description:"Come to my birthday.",className:"bg-info"},{title:"Click for Google",start:new Date(y,m,28),end:new Date(y,m,29),url:"http://google.com/",className:"bg-success"}],FC=$("#fullCalendar").fullCalendar({height:480,editable:!0,defaultView:"month",header:!1,eventLimit:!0,events:calEvents}),calToolbar=$(".calendar-toolbar");calToolbar.find(".current-date").html(moment().format("MMMM YYYY")),calEvents.forEach(function(event,index){addEvent(event.title,moment(event.start).format("MMM DD")+" - "+moment(event.end).format("MMM DD"),index)}),calToolbar.find(".prev-btn").on("click touchstart",prev),calToolbar.find(".next-btn").on("click touchstart",next),calToolbar.find(".today-btn").on("click touchstart",today),calToolbar.find(".view-month").on("click touhstart",function(){changeView("month")}),calToolbar.find(".view-week").on("click touhstart",function(){changeView("agendaWeek")}),calToolbar.find(".view-day").on("click touhstart",function(){changeView("agendaDay")}),$(".addEventBtn").on("click touchstart",function(e){var startDate=new Date(y,m,d);addEvent("New Event",moment(startDate).format("MMM DD")+" - "),FC.fullCalendar("renderEvent",{start:startDate,title:"New Event"}),e.preventDefault(),$(".removeEventBtn").on("click touchstart",function(e){e.preventDefault();var calEvent=$(this).parent("li");removeEvent(calEvent)})}),$(".removeEventBtn").on("click touchstart",function(e){e.preventDefault();var calEvent=$(this).parent("li");removeEvent(calEvent)})}function _init(){initFullCalendar()}_init()});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
!function(a,b){"use strict";var c=5;a.fn.rating=function(d){return this.each(function(){var e=a(this);if(!e.data("rating")){e.data("rating",!0);var f=a.extend({},e.data(),d);f.start=parseInt(f.start,10),f.start=isNaN(f.start)?b:f.start,f.stop=parseInt(f.stop,10),f.stop=isNaN(f.stop)?f.start+c||b:f.stop,f.step=parseInt(f.step,10)||b,f.fractions=Math.abs(parseInt(f.fractions,10))||b,f.scale=Math.abs(parseInt(f.scale,10))||b,f=a.extend({},a.fn.rating.defaults,f),f.filledSelected=f.filledSelected||f.filled;for(var g=function(a){var b=Math.floor(a);n.find(".rating-symbol-background").css("visibility","visible").slice(0,b).css("visibility","hidden");var c=n.find(".rating-symbol-foreground");c.width(0),c.slice(0,b).width("auto").find("span").attr("class",f.filled),c.eq(a%1?b:b-1).find("span").attr("class",f.filledSelected),c.eq(b).width(a%1*100+"%")},h=function(a){return f.start+Math.floor(a)*f.step+f.step*j(a%1)},i=function(a){return(a-f.start)/f.step},j=function(a){var b=Math.ceil(a%1*f.fractions)/f.fractions,c=Math.pow(10,f.scale);return Math.floor(a)+Math.floor(b*c)/c},k=function(a){var b=f.step>0?f.start:f.stop,c=f.step>0?f.stop:f.start;return a>=b&&c>=a},l=function(a){var b=parseFloat(a);k(b)&&g(i(b))},m=function(a){return function(b){e.prop("disabled")||e.prop("readonly")||a.call(this,b)}},n=a("<span></span>").insertBefore(e),o=1;o<=i(f.stop);o++){var p=a('<div class="rating-symbol"></div>').css({display:"inline-block",position:"relative"});a('<div class="rating-symbol-background '+f.empty+'"></div>').appendTo(p),a('<div class="rating-symbol-foreground"></div>').append("<span></span>").css({display:"inline-block",position:"absolute",overflow:"hidden",left:0,width:0}).appendTo(p),n.append(p),f.extendSymbol.call(p,h(o))}l(e.val()),e.on("change",function(){l(a(this).val())});var q,r=function(b){var c=a(b.currentTarget),d=(b.pageX||b.originalEvent.touches[0].pageX)-c.offset().left;return d=d>0?d:.1*f.scale,c.index()+d/c.width()};n.on("mousedown touchstart",".rating-symbol",m(function(a){e.val(h(r(a))).change()})).on("mousemove touchmove",".rating-symbol",m(function(c){var d=j(r(c));d!==q&&(q!==b&&a(this).trigger("rating.rateleave"),q=d,a(this).trigger("rating.rateenter",[h(q)])),g(d)})).on("mouseleave touchend",".rating-symbol",m(function(){q=b,a(this).trigger("rating.rateleave"),g(i(parseFloat(e.val())))}))}})},a.fn.rating.defaults={filled:"glyphicon glyphicon-star",filledSelected:b,empty:"glyphicon glyphicon-star-empty",start:0,stop:c,step:1,fractions:1,scale:3,extendSymbol:function(){}},a(function(){a("input.rating").rating()})}(jQuery);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
!function(a,b){"object"==typeof exports?module.exports=b(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],b):b(a.jQuery)}(this,function(a){var b=function(a,b){var c,d=document.createElement("canvas");a.appendChild(d),"undefined"!=typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(d);var e=d.getContext("2d");d.width=d.height=b.size;var f=1;window.devicePixelRatio>1&&(f=window.devicePixelRatio,d.style.width=d.style.height=[b.size,"px"].join(""),d.width=d.height=b.size*f,e.scale(f,f)),e.translate(b.size/2,b.size/2),e.rotate((-.5+b.rotate/180)*Math.PI);var g=(b.size-b.lineWidth)/2;b.scaleColor&&b.scaleLength&&(g-=b.scaleLength+2),Date.now=Date.now||function(){return+new Date};var h=function(a,b,c){c=Math.min(Math.max(-1,c||0),1);var d=0>=c?!0:!1;e.beginPath(),e.arc(0,0,g,0,2*Math.PI*c,d),e.strokeStyle=a,e.lineWidth=b,e.stroke()},i=function(){var a,c;e.lineWidth=1,e.fillStyle=b.scaleColor,e.save();for(var d=24;d>0;--d)d%6===0?(c=b.scaleLength,a=0):(c=.6*b.scaleLength,a=b.scaleLength-c),e.fillRect(-b.size/2+a,0,c,1),e.rotate(Math.PI/12);e.restore()},j=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(a){window.setTimeout(a,1e3/60)}}(),k=function(){b.scaleColor&&i(),b.trackColor&&h(b.trackColor,b.trackWidth||b.lineWidth,1)};this.getCanvas=function(){return d},this.getCtx=function(){return e},this.clear=function(){e.clearRect(b.size/-2,b.size/-2,b.size,b.size)},this.draw=function(a){b.scaleColor||b.trackColor?e.getImageData&&e.putImageData?c?e.putImageData(c,0,0):(k(),c=e.getImageData(0,0,b.size*f,b.size*f)):(this.clear(),k()):this.clear(),e.lineCap=b.lineCap;var d;d="function"==typeof b.barColor?b.barColor(a):b.barColor,h(d,b.lineWidth,a/100)}.bind(this),this.animate=function(a,c){var d=Date.now();b.onStart(a,c);var e=function(){var f=Math.min(Date.now()-d,b.animate.duration),g=b.easing(this,f,a,c-a,b.animate.duration);this.draw(g),b.onStep(a,c,g),f>=b.animate.duration?b.onStop(a,c):j(e)}.bind(this);j(e)}.bind(this)},c=function(a,c){var d={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,trackWidth:void 0,size:110,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(a,b,c,d,e){return b/=e/2,1>b?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},onStart:function(){},onStep:function(){},onStop:function(){}};if("undefined"!=typeof b)d.renderer=b;else{if("undefined"==typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");d.renderer=SVGRenderer}var e={},f=0,g=function(){this.el=a,this.options=e;for(var b in d)d.hasOwnProperty(b)&&(e[b]=c&&"undefined"!=typeof c[b]?c[b]:d[b],"function"==typeof e[b]&&(e[b]=e[b].bind(this)));e.easing="string"==typeof e.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[e.easing])?jQuery.easing[e.easing]:d.easing,"number"==typeof e.animate&&(e.animate={duration:e.animate,enabled:!0}),"boolean"!=typeof e.animate||e.animate||(e.animate={duration:1e3,enabled:e.animate}),this.renderer=new e.renderer(a,e),this.renderer.draw(f),a.dataset&&a.dataset.percent?this.update(parseFloat(a.dataset.percent)):a.getAttribute&&a.getAttribute("data-percent")&&this.update(parseFloat(a.getAttribute("data-percent")))}.bind(this);this.update=function(a){return a=parseFloat(a),e.animate.enabled?this.renderer.animate(f,a):this.renderer.draw(a),f=a,this}.bind(this),this.disableAnimation=function(){return e.animate.enabled=!1,this},this.enableAnimation=function(){return e.animate.enabled=!0,this},g()};a.fn.easyPieChart=function(b){return this.each(function(){var d;a.data(this,"easyPieChart")||(d=a.extend({},b,a(this).data()),a.data(this,"easyPieChart",new c(this,d)))})}});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,37 +0,0 @@
!function(){
"use strict";
var isCommonjs="undefined"!=typeof module&&module.exports,
keyboardAllowed="undefined"!=typeof Element&&"ALLOW_KEYBOARD_INPUT"in Element,
fn=function(){
for(
var val,
valLength,
fnMap=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],
["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],
["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],
["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],
["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],
i=0,
l=fnMap.length,
ret={};
l>i;
i++
)
if(val=fnMap[i],
val&&val[1]in document){
for(i=0,valLength=val.length;valLength>i;i++)
ret[fnMap[0][i]]=val[i];
return ret
}
return!1
}(),
screenfull={
request:function(elem){
var request=fn.requestFullscreen;
elem=elem||document.documentElement,/5\.1[\.\d]* Safari/.test(navigator.userAgent)?elem[request]():elem[request](keyboardAllowed&&Element.ALLOW_KEYBOARD_INPUT)
},
exit:function(){
document[fn.exitFullscreen]()
},
toggle:function(elem){this.isFullscreen?this.exit():this.request(elem)},raw:fn
};return fn?(Object.defineProperties(screenfull,{isFullscreen:{get:function(){return!!document[fn.fullscreenElement]}},element:{enumerable:!0,get:function(){return document[fn.fullscreenElement]}},enabled:{enumerable:!0,get:function(){return!!document[fn.fullscreenEnabled]}}}),void(isCommonjs?module.exports=screenfull:window.screenfull=screenfull)):void(isCommonjs?module.exports=!1:window.screenfull=!1)}();

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
jQuery(function(){"use strict";function initSparklines(){$(".content-container").find(".sparkline").sparkline("html",{enableTagOptions:!0,tagOptionsPrefix:"data-"})}function _init(){initSparklines()}_init()});

View File

@ -1 +0,0 @@
jQuery(function(){"use strict";function toggleBasicTableFns(){var $btable=$(".basic-table"),btns=[".btable-bordered",".btable-striped",".btable-condensed",".btable-hover"];btns.forEach(function(btn){$btable.find(btn).on("click touchstart",function(e){var tableClass=$(this).data("table-class");e.preventDefault(),$(this).toggleClass("active"),$btable.find("table").toggleClass(tableClass)})})}function initDataTable(){for(var $dataTable=$(".data-table"),$table=$dataTable.find("table"),datas=[{engine:"Gecko",browser:"Firefox 3.0",platform:"Win 98+/OSX.2+",version:1.7,grade:"A"},{engine:"Gecko",browser:"Firefox 5.0",platform:"Win 98+/OSX.2+",version:1.8,grade:"A"},{engine:"KHTML",browser:"Konqureror 3.5",platform:"KDE 3.5",version:3.5,grade:"A"},{engine:"Presto",browser:"Opera 8.0",platform:"Win 95+/OS.2+",version:"-",grade:"A"},{engine:"Misc",browser:"IE Mobile",platform:"Windows Mobile 6",version:"-",grade:"C"},{engine:"Trident",browser:"IE 5.5",platform:"Win 95+",version:5,grade:"A"},{engine:"Trident",browser:"IE 6",platform:"Win 98+",version:7,grade:"A"},{engine:"Webkit",browser:"Safari 3.0",platform:"OSX.4+",version:419.3,grade:"A"},{engine:"Webkit",browser:"iPod Touch / iPhone",platform:"OSX.4+",version:420,grade:"B"}],prelength=datas.length,i=prelength;100>i;i++){var rand=Math.floor(Math.random()*prelength);datas.push(datas[rand])}var table=$table.DataTable({data:datas,columns:[{data:"engine"},{data:"browser"},{data:"platform"},{data:"version"},{data:"grade"}],searching:!0,dom:"rtip",pageLength:10});$dataTable.find(".searchInput").on("keyup",function(){table.search(this.value).draw()}),$dataTable.find(".lengthSelect").on("change",function(){table.page.len(this.value).draw()}),$dataTable.find(".dataTables_info").css({"margin-left":"20px","font-size":"12px"})}function _init(){toggleBasicTableFns(),initDataTable()}_init()});