forked from kevinowino869/mitrobill
PHPMixBill v5.0 - First Upload
This commit is contained in:
160
ui/theme/default/scripts/app.js
Normal file
160
ui/theme/default/scripts/app.js
Normal file
@ -0,0 +1,160 @@
|
||||
jQuery(function(){
|
||||
"use strict";
|
||||
var MateriaApp=function(){
|
||||
this.isMobile=null,
|
||||
this.navHorizontal=!1,
|
||||
this.fixedHeader=!0,
|
||||
this.themeActive="theme-zero",
|
||||
this.navFull=!1,
|
||||
this.navOffCanvas=!1,
|
||||
this.mainContainer=$(".main-container"),
|
||||
this.siteHead=$(".site-head"),
|
||||
this.siteSettings=$(".site-settings"),
|
||||
this.app=$(".app"),
|
||||
this.navWrap=$(".nav-wrap"),
|
||||
this.contentContainer=$(".content-container"),
|
||||
this._init()
|
||||
};
|
||||
MateriaApp.prototype._init=function(){
|
||||
this._checkMobile(),
|
||||
this.toggleSiteNav(),
|
||||
this.initDefaultSettings(),
|
||||
this.initRipple(),
|
||||
this.toggleSettingsBox(),
|
||||
this.initPerfectScrollbars(),
|
||||
this.toggleFullScreen(),
|
||||
this.toggleFloatingSidebar(),
|
||||
this.initNavAccordion()
|
||||
},
|
||||
MateriaApp.prototype.initDefaultSettings=function(){
|
||||
function onNavHorizontal(){
|
||||
this.checked?(that.navHorizontal=!0,
|
||||
that.mainContainer.addClass("nav-horizontal")):(that.navHorizontal=!1,
|
||||
that.mainContainer.removeClass("nav-horizontal")),
|
||||
setTimeout(function(){
|
||||
sQuery.navHorizontal=that.navHorizontal,
|
||||
statesQuery.put(sQuery)})
|
||||
}
|
||||
function onFixedHeader(){
|
||||
this.checked?(that.fixedHeader=!0,that.siteHead.addClass("fixedHeader"),
|
||||
that.contentContainer.addClass("fixedHeader")):(that.fixedHeader=!1,
|
||||
that.siteHead.removeClass("fixedHeader"),
|
||||
that.contentContainer.removeClass("fixedHeader")),
|
||||
setTimeout(function(){
|
||||
sQuery.fixedHeader=that.fixedHeader,
|
||||
statesQuery.put(sQuery)
|
||||
})
|
||||
}
|
||||
function onNavFull(){
|
||||
var elems=["body",".main-container",".nav-wrap",".content-container"];
|
||||
this.checked?(that.navFull=!0,elems.forEach(
|
||||
function(el){$(el).addClass("nav-expand")})):(that.navFull=!1,
|
||||
elems.forEach(function(el){$(el).removeClass("nav-expand")})),
|
||||
setTimeout(function(){sQuery.navFull=that.navFull,statesQuery.put(sQuery)})
|
||||
}
|
||||
function onThemeChange(e){
|
||||
var $t=$(this),
|
||||
$list=that.siteSettings.find("#themeColor li");
|
||||
$list.removeClass("active"),
|
||||
$t.addClass("active"),
|
||||
that.app.removeClass(that.themeActive),
|
||||
that.themeActive=$t.data("theme"),
|
||||
sQuery.themeActive=that.themeActive,
|
||||
statesQuery.put(sQuery),
|
||||
that.app.addClass(that.themeActive),
|
||||
e.preventDefault()
|
||||
}
|
||||
var that=this,
|
||||
SETTINGS_STATES="_setting-states",
|
||||
statesQuery={get:function(){return JSON.parse(localStorage.getItem(SETTINGS_STATES))},
|
||||
put:function(states){localStorage.setItem(SETTINGS_STATES,JSON.stringify(states))}},
|
||||
sQuery=statesQuery.get()||{navHorizontal:that.navHorizontal,fixedHeader:that.fixedHeader,navFull:that.navFull,themeActive:that.themeActive};
|
||||
if(sQuery&&(this.navHorizontal=sQuery.navHorizontal,
|
||||
this.fixedHeader=sQuery.fixedHeader,
|
||||
this.navFull=sQuery.navFull,
|
||||
this.themeActive=sQuery.themeActive),
|
||||
this.siteSettings.find("#navHorizontal").on("change",onNavHorizontal),
|
||||
this.siteSettings.find("#fixedHeader").on("change",onFixedHeader),
|
||||
this.siteSettings.find("#navFull").on("change",onNavFull),
|
||||
this.siteSettings.find("#themeColor li").on("click touchstart",onThemeChange),
|
||||
this.app.addClass(this.themeActive),
|
||||
this.navFull){
|
||||
this.siteSettings.find("#navFull")[0].checked=!0;
|
||||
var elems=["body",".main-container",".nav-wrap",".content-container"];
|
||||
elems.forEach(function(el){$(el).addClass("nav-expand")})
|
||||
}
|
||||
this.navHorizontal&&(this.siteSettings.find("#navHorizontal")[0].checked=!0,
|
||||
this.mainContainer.addClass("nav-horizontal")),
|
||||
this.fixedHeader&&(this.siteSettings.find("#fixedHeader")[0].checked=!0,
|
||||
this.siteHead.addClass("fixedHeader"),
|
||||
this.contentContainer.addClass("fixedHeader")),
|
||||
this.navOffCanvas&&this.navWrap.addClass("nav-offcanvas")
|
||||
},
|
||||
MateriaApp.prototype.initRipple=function(){
|
||||
Waves.attach(".btn"),
|
||||
Waves.init({duration:900,delay:300}),
|
||||
Waves.attach(".nav-wrap .site-nav .nav-list li"),
|
||||
Waves.attach(".md-button:not(.md-no-ink)")
|
||||
},
|
||||
MateriaApp.prototype._checkMobile=function(){
|
||||
var mm=window.matchMedia("(max-width: 767px)");
|
||||
this.isMobile=mm.matches?!0:!1;
|
||||
var that=this;mm.addListener(function(m){that.isMobile=m.matches?!0:!1})
|
||||
},
|
||||
MateriaApp.prototype.toggleSiteNav=function(){
|
||||
this.siteHead.find(".nav-trigger").on("click touchstart",function(e){
|
||||
var elems=["body",".main-container",".nav-wrap",".content-container"];
|
||||
elems.forEach(function(el){
|
||||
$(el).toggleClass("nav-expand"),".nav-wrap"==el&&$(el).toggleClass("nav-offcanvas")
|
||||
}),e.preventDefault()
|
||||
})
|
||||
},
|
||||
MateriaApp.prototype.toggleSettingsBox=function(){
|
||||
this.siteSettings.find(".trigger").on("click touchstart",
|
||||
function(e){$(".site-settings").toggleClass("open"),e.preventDefault()})
|
||||
},
|
||||
MateriaApp.prototype.initPerfectScrollbars=function(){
|
||||
var $el=$("[data-perfect-scrollbar]");
|
||||
$el.each(function(){
|
||||
var $t=$(this);
|
||||
$t.perfectScrollbar({suppressScrollX:!0}),
|
||||
setInterval(function(){
|
||||
$t[0].scrollHeight>=$t[0].clientHeight&&$t.perfectScrollbar("update")
|
||||
},400)
|
||||
})
|
||||
},
|
||||
MateriaApp.prototype.toggleFullScreen=function(){
|
||||
$(".site-head .fullscreen").on("click",function(e){screenfull.toggle(),e.preventDefault()})
|
||||
},
|
||||
MateriaApp.prototype.toggleFloatingSidebar=function(){
|
||||
$(".site-head .floating-sidebar > a").on("click",function(e){$(this).parent().toggleClass("open"),e.preventDefault()})
|
||||
},
|
||||
MateriaApp.prototype.initNavAccordion=function(){
|
||||
var el=$(".site-nav .nav-list"),lists=el.find("ul").parent("li"),
|
||||
a=lists.children("a"),aul=lists.find("ul a"),
|
||||
listsRest=el.children("li").not(lists),
|
||||
aRest=listsRest.children("a"),
|
||||
stopClick=0,that=this;a.on("click",function(e){
|
||||
if(!that.navHorizontal){
|
||||
if(e.timeStamp-stopClick>300){
|
||||
var self=$(this),
|
||||
parent=self.parent("li");
|
||||
lists.not(parent).removeClass("open"),
|
||||
parent.toggleClass("open"),
|
||||
stopClick=e.timeStamp
|
||||
}
|
||||
e.preventDefault()
|
||||
}
|
||||
e.stopPropagation(),
|
||||
e.stopImmediatePropagation()
|
||||
}),
|
||||
aul.on("touchend",function(e){
|
||||
that.isMobile&&that.navWrap.toggleClass("nav-offcanvas"),
|
||||
e.stopPropagation(),
|
||||
e.stopImmediatePropagation()
|
||||
}),
|
||||
aRest.on("touchend",function(){that.isMobile&&that.navWrap.toggleClass("nav-offcanvas")}),
|
||||
aRest.on("click",function(e){if(!that.navHorizontal){var parent=aRest.parent("li");lists.not(parent).removeClass("open")}e.stopPropagation(),e.stopImmediatePropagation()})
|
||||
};
|
||||
window.MateriaApp=new MateriaApp
|
||||
});
|
2363
ui/theme/default/scripts/bootstrap.js
vendored
Normal file
2363
ui/theme/default/scripts/bootstrap.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
ui/theme/default/scripts/bootstrap.min.js
vendored
Normal file
7
ui/theme/default/scripts/bootstrap.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
ui/theme/default/scripts/c3.init.js
Normal file
1
ui/theme/default/scripts/c3.init.js
Normal file
@ -0,0 +1 @@
|
||||
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()});
|
1
ui/theme/default/scripts/calendar.init.js
Normal file
1
ui/theme/default/scripts/calendar.init.js
Normal file
@ -0,0 +1 @@
|
||||
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()});
|
106
ui/theme/default/scripts/custom.js
Normal file
106
ui/theme/default/scripts/custom.js
Normal file
@ -0,0 +1,106 @@
|
||||
// radio checked - hotspot plan
|
||||
$(document).ready(function () {
|
||||
$('input[type=radio]').change(function(){
|
||||
|
||||
if ($('#Time_Limit').is(':checked')) {
|
||||
$('#DataLimit').hide();
|
||||
$('#TimeLimit').show();
|
||||
}
|
||||
if ($('#Data_Limit').is(':checked')) {
|
||||
$('#TimeLimit').hide();
|
||||
$('#DataLimit').show();
|
||||
}
|
||||
if ($('#Both_Limit').is(':checked')) {
|
||||
$('#TimeLimit').show();
|
||||
$('#DataLimit').show();
|
||||
}
|
||||
|
||||
if ($('#Unlimited').is(':checked')) {
|
||||
$('#Type').hide();
|
||||
$('#TimeLimit').hide();
|
||||
$('#DataLimit').hide();
|
||||
} else {
|
||||
$('#Type').show();
|
||||
}
|
||||
|
||||
if ($('#Hotspot').is(':checked')) {
|
||||
$('#p').hide();
|
||||
$('#h').show();
|
||||
}
|
||||
if ($('#PPPOE').is(':checked')) {
|
||||
$('#p').show();
|
||||
$('#h').hide();
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
$("#Hotspot").prop("checked", true).change();
|
||||
|
||||
|
||||
//auto load pool - pppoe plan
|
||||
var htmlobjek;
|
||||
$(document).ready(function(){
|
||||
$("#routers").change(function(){
|
||||
var routers = $("#routers").val();
|
||||
$.ajax({
|
||||
url: "index.php?_route=autoload/pool",
|
||||
data: "routers="+routers,
|
||||
cache: false,
|
||||
success: function(msg){
|
||||
$("#pool_name").html(msg);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
//auto load plans data - recharge user
|
||||
$(function() {
|
||||
$('input[type=radio]').change(function(){
|
||||
if ($('#Hot').is(':checked')) {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
dataType: "html",
|
||||
url: "index.php?_route=autoload/server",
|
||||
success: function(msg){
|
||||
$("#server").html(msg);
|
||||
}
|
||||
});
|
||||
|
||||
$("#server").change(getAjaxAlamat);
|
||||
function getAjaxAlamat(){
|
||||
var server = $("#server").val();
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
dataType: "html",
|
||||
url: "index.php?_route=autoload/plan",
|
||||
data: "jenis=Hotspot&server="+server,
|
||||
success: function(msg){
|
||||
$("#plan").html(msg);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
}else{
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
dataType: "html",
|
||||
url: "index.php?_route=autoload/server",
|
||||
success: function(msg){
|
||||
$("#server").html(msg);
|
||||
}
|
||||
});
|
||||
$("#server").change(function(){
|
||||
var server = $("#server").val();
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
dataType: "html",
|
||||
url: "index.php?_route=autoload/plan",
|
||||
data: "jenis=PPPOE&server="+server,
|
||||
success: function(msg){
|
||||
$("#plan").html(msg);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
35
ui/theme/default/scripts/form-elements.init.js
Normal file
35
ui/theme/default/scripts/form-elements.init.js
Normal file
@ -0,0 +1,35 @@
|
||||
jQuery(function(){
|
||||
"use strict";
|
||||
function initSelect2(){
|
||||
$("#personSelect").select2(),
|
||||
$("#stateSelect").select2(),
|
||||
$("#multiSelect").select2(),
|
||||
$("#templatingSelect").select2({
|
||||
templateResult:function(state){
|
||||
return state.id?$('<span><img src="images/flags/'+state.element.value.toLowerCase()+'.png" class="img-flag" style="margin-right: 3px; height: 12px; width: 12px;"/> '+state.text+"</span>"):state.text},
|
||||
templateSelection:function(state){
|
||||
return $('<span><img src="images/flags/'+state.element.value.toLowerCase()+'.png" class="img-flag" style="margin-right: 3px; height: 12px; width: 12px;"/> '+state.text+"</span>")}
|
||||
})
|
||||
}
|
||||
function initColorpicker(){$("#colorpickerDemo").colorpicker(),$("#colorpickerDemo1").colorpicker()}
|
||||
function initTextEditor(){$("#textEditorDemo").summernote({height:300})}
|
||||
function initRangeSlider(){
|
||||
var ids=["#sliderEx1","#sliderEx2","#sliderEx3","#sliderEx4","#sliderEx5","#sliderEx6","#sliderEx7"];
|
||||
ids.forEach(function(id){
|
||||
$(id).slider()
|
||||
})
|
||||
}
|
||||
function initDatepicker(){
|
||||
$("#datepicker1").datepicker({autoclose:!0}),
|
||||
$("#datepicker2").datepicker({autoclose:!0}),
|
||||
$("#datepicker3").datepicker({todayHighlight:!0})
|
||||
}
|
||||
function _init(){
|
||||
initSelect2(),
|
||||
initColorpicker(),
|
||||
initTextEditor(),
|
||||
initRangeSlider(),
|
||||
initDatepicker()
|
||||
}
|
||||
_init()
|
||||
});
|
1
ui/theme/default/scripts/inbox.init.js
Normal file
1
ui/theme/default/scripts/inbox.init.js
Normal file
@ -0,0 +1 @@
|
||||
jQuery(function(){"use strict";function initReplyBox(){$("#replyBox").summernote({height:280}),$("#composeMailBox").summernote({height:300})}function _init(){initReplyBox()}_init()});
|
8
ui/theme/default/scripts/index.html
Normal file
8
ui/theme/default/scripts/index.html
Normal file
@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Directory access is forbidden.</p>
|
||||
</body>
|
||||
</html>
|
1
ui/theme/default/scripts/index.init.js
Normal file
1
ui/theme/default/scripts/index.init.js
Normal file
File diff suppressed because one or more lines are too long
6
ui/theme/default/scripts/jquery-1.10.2.js
vendored
Normal file
6
ui/theme/default/scripts/jquery-1.10.2.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
ui/theme/default/scripts/maps.init.js
Normal file
1
ui/theme/default/scripts/maps.init.js
Normal file
@ -0,0 +1 @@
|
||||
jQuery(function(){"use strict";function initGoogleMaps(){function mapMarker(){{var gmap02=new google.maps.Map(document.getElementById("gmap02"),{zoom:4,center:new google.maps.LatLng(-33,151)});new google.maps.Marker({map:gmap02,icon:"https://developers.google.com/maps/documentation/javascript/examples/full/images/beachflag.png",animation:google.maps.Animation.DROP,title:"You are here",position:new google.maps.LatLng(-33.890542,151.274856)})}}function mapStreetView(){new google.maps.StreetViewPanorama(document.querySelector("#street-view"),{position:new google.maps.LatLng(40.688738,-74.043871)})}function mapShapesDraw(){var gmap04=new google.maps.Map(document.getElementById("gmap04"),{zoom:11,center:new google.maps.LatLng(40.74,-74.18)}),polyline=new google.maps.Polyline({path:[new google.maps.LatLng(40.74,-74.18),new google.maps.LatLng(40.64,-74.1),new google.maps.LatLng(40.54,-74.05),new google.maps.LatLng(40.44,-74)],geodesic:!0,strokeColor:"#FF0000",strokeOpacity:1,strokeWeight:2});polyline.setMap(gmap04);var polygon=new google.maps.Polygon({path:[new google.maps.LatLng(40.74,-74.18),new google.maps.LatLng(40.64,-74.18),new google.maps.LatLng(40.84,-74.08),new google.maps.LatLng(40.74,-74.18)],geodesic:!0,strokeColor:"#FF0000",strokeOpacity:1,strokeWeight:2});polygon.setMap(gmap04);var circle=new google.maps.Circle({strokeColor:"#FF0000",strokeOpacity:.8,strokeWeight:2,center:new google.maps.LatLng(40.7,-74.14),radius:4e3,editable:!0});circle.setMap(gmap04)}google.maps.event.addDomListener(window,"load",function(){new google.maps.Map(document.getElementById("gmap01"),{zoom:3,center:new google.maps.LatLng(40.74,-74.18)})}),google.maps.event.addDomListener(window,"load",mapMarker),google.maps.event.addDomListener(window,"load",mapStreetView),google.maps.event.addDomListener(window,"load",mapShapesDraw)}function _init(){initGoogleMaps()}_init()});
|
2
ui/theme/default/scripts/plugins/bootstrap-datepicker.min.js
vendored
Normal file
2
ui/theme/default/scripts/plugins/bootstrap-datepicker.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
ui/theme/default/scripts/plugins/bootstrap-rating.min.js
vendored
Normal file
1
ui/theme/default/scripts/plugins/bootstrap-rating.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
!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);
|
1
ui/theme/default/scripts/plugins/bootstrap-slider.min.js
vendored
Normal file
1
ui/theme/default/scripts/plugins/bootstrap-slider.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
5
ui/theme/default/scripts/plugins/c3.min.js
vendored
Normal file
5
ui/theme/default/scripts/plugins/c3.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
5
ui/theme/default/scripts/plugins/d3.min.js
vendored
Normal file
5
ui/theme/default/scripts/plugins/d3.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
3
ui/theme/default/scripts/plugins/fullcalendar.min.js
vendored
Normal file
3
ui/theme/default/scripts/plugins/fullcalendar.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
8
ui/theme/default/scripts/plugins/index.html
Normal file
8
ui/theme/default/scripts/plugins/index.html
Normal file
@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Directory access is forbidden.</p>
|
||||
</body>
|
||||
</html>
|
3
ui/theme/default/scripts/plugins/jquery.dataTables.min.js
vendored
Normal file
3
ui/theme/default/scripts/plugins/jquery.dataTables.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
ui/theme/default/scripts/plugins/jquery.easypiechart.min.js
vendored
Normal file
1
ui/theme/default/scripts/plugins/jquery.easypiechart.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
!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)))})}});
|
2
ui/theme/default/scripts/plugins/jquery.sparkline.min.js
vendored
Normal file
2
ui/theme/default/scripts/plugins/jquery.sparkline.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
2
ui/theme/default/scripts/plugins/moment.min.js
vendored
Normal file
2
ui/theme/default/scripts/plugins/moment.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
ui/theme/default/scripts/plugins/perfect-scrollbar.min.js
vendored
Normal file
1
ui/theme/default/scripts/plugins/perfect-scrollbar.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
37
ui/theme/default/scripts/plugins/screenfull.js
Normal file
37
ui/theme/default/scripts/plugins/screenfull.js
Normal file
@ -0,0 +1,37 @@
|
||||
!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)}();
|
2
ui/theme/default/scripts/plugins/select2.min.js
vendored
Normal file
2
ui/theme/default/scripts/plugins/select2.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
3
ui/theme/default/scripts/plugins/summernote.min.js
vendored
Normal file
3
ui/theme/default/scripts/plugins/summernote.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
ui/theme/default/scripts/plugins/waves.min.js
vendored
Normal file
1
ui/theme/default/scripts/plugins/waves.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
ui/theme/default/scripts/sparklines.init.js
Normal file
1
ui/theme/default/scripts/sparklines.init.js
Normal file
@ -0,0 +1 @@
|
||||
jQuery(function(){"use strict";function initSparklines(){$(".content-container").find(".sparkline").sparkline("html",{enableTagOptions:!0,tagOptionsPrefix:"data-"})}function _init(){initSparklines()}_init()});
|
1
ui/theme/default/scripts/tables.init.js
Normal file
1
ui/theme/default/scripts/tables.init.js
Normal file
@ -0,0 +1 @@
|
||||
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()});
|
98
ui/theme/default/scripts/vendors.js
Normal file
98
ui/theme/default/scripts/vendors.js
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user