custom.js 155 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320
  1. /**
  2. * Resize function without multiple trigger
  3. *
  4. * Usage:
  5. * $(window).smartresize(function(){
  6. * // code here
  7. * });
  8. */
  9. (function($,sr){
  10. // debouncing function from John Hann
  11. // http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/
  12. var debounce = function (func, threshold, execAsap) {
  13. var timeout;
  14. return function debounced () {
  15. var obj = this, args = arguments;
  16. function delayed () {
  17. if (!execAsap)
  18. func.apply(obj, args);
  19. timeout = null;
  20. }
  21. if (timeout)
  22. clearTimeout(timeout);
  23. else if (execAsap)
  24. func.apply(obj, args);
  25. timeout = setTimeout(delayed, threshold || 100);
  26. };
  27. };
  28. // smartresize
  29. jQuery.fn[sr] = function(fn){ return fn ? this.bind('resize', debounce(fn)) : this.trigger(sr); };
  30. })(jQuery,'smartresize');
  31. /**
  32. * To change this license header, choose License Headers in Project Properties.
  33. * To change this template file, choose Tools | Templates
  34. * and open the template in the editor.
  35. */
  36. /* SIDEBAR */
  37. $(document).ready(function() {
  38. // TODO: This is some kind of easy fix, maybe we can improve this
  39. var setContentHeight = function () {
  40. // reset height
  41. $RIGHT_COL.css('min-height', $(window).height());
  42. var bodyHeight = $BODY.outerHeight(),
  43. footerHeight = $BODY.hasClass('footer_fixed') ? -10 : $FOOTER.height(),
  44. leftColHeight = $LEFT_COL.eq(1).height() + $SIDEBAR_FOOTER.height(),
  45. contentHeight = bodyHeight < leftColHeight ? leftColHeight : bodyHeight;
  46. // normalize content
  47. contentHeight -= $NAV_MENU.height() + footerHeight;
  48. $RIGHT_COL.css('min-height', contentHeight);
  49. };
  50. $SIDEBAR_MENU.find('a').on('click', function(ev) {
  51. var $li = $(this).parent();
  52. if ($li.is('.active')) {
  53. $li.removeClass('active active-sm');
  54. $('ul:first', $li).slideUp(function() {
  55. setContentHeight();
  56. });
  57. }
  58. else
  59. {
  60. // prevent closing menu if we are on child menu
  61. if (!$li.parent().is('.child_menu')) {
  62. $SIDEBAR_MENU.find('li').removeClass('active active-sm');
  63. $SIDEBAR_MENU.find('li ul').slideUp();
  64. }else
  65. {
  66. if ( $BODY.is( ".nav-sm" ) )
  67. {
  68. if (!$li.parent().is('.child_menu')) {
  69. $SIDEBAR_MENU.find('li').removeClass('active active-sm');
  70. $SIDEBAR_MENU.find('li ul').slideUp();
  71. }
  72. }
  73. }
  74. $li.addClass('active');
  75. $('ul:first', $li).slideDown(function() {
  76. });
  77. }
  78. });
  79. // toggle small or large menu
  80. $MENU_TOGGLE.on('click', function() {
  81. if ($BODY.hasClass('nav-md')) {
  82. $SIDEBAR_MENU.find('li.active ul').hide();
  83. $SIDEBAR_MENU.find('li.active').addClass('active-sm').removeClass('active');
  84. $('.main_container > .left_col').removeClass('col-md-2').addClass('col-md-1');
  85. $('.main_container > .left_col').next('div').removeClass('col-md-10').addClass('col-md-11');
  86. } else {
  87. $SIDEBAR_MENU.find('li.active-sm ul').show();
  88. $SIDEBAR_MENU.find('li.active-sm').addClass('active').removeClass('active-sm');
  89. $('.main_container > .left_col').removeClass('col-md-1').addClass('col-md-2');
  90. $('.main_container > .left_col').next('div').removeClass('col-md-11').addClass('col-md-10');
  91. }
  92. $BODY.toggleClass('nav-md nav-sm');
  93. setContentHeight();
  94. $('.dataTable').each ( function () { $(this).dataTable().fnDraw(); });
  95. });
  96. // check active menu
  97. var $cur_menu = $SIDEBAR_MENU.find('a').filter(function () { // find nav element with exact match
  98. return this.href == CURRENT_URL;
  99. });
  100. if ($cur_menu.length == 0) { // if no exact match, try to find best match
  101. var $cur_menu = $SIDEBAR_MENU.find('a').filter(function () {
  102. return CURRENT_URL.startsWith(this.href) && this.href != '';
  103. });
  104. if ($cur_menu.length > 1) { // get ONLY one with longest href as best match
  105. var l = 0;
  106. for (var i = 0; i < $cur_menu.length; i++) {
  107. if ($cur_menu.eq(l).attr('href').length < $cur_menu.eq(i).attr('href').length) l = i;
  108. }
  109. $cur_menu = $cur_menu.eq(l);
  110. }
  111. }
  112. // original code below, but executed for $cur_menu
  113. $cur_menu.parent('li').addClass('current-page').parents('ul').slideDown(function() {
  114. setContentHeight();
  115. }).parent().addClass('active');
  116. // recompute content when resizing
  117. $(window).smartresize(function(){
  118. setContentHeight();
  119. });
  120. setContentHeight();
  121. // fixed sidebar
  122. if ($.fn.mCustomScrollbar) {
  123. $('.menu_fixed').mCustomScrollbar({
  124. autoHideScrollbar: true,
  125. theme: 'minimal',
  126. mouseWheel:{ preventDefault: true }
  127. });
  128. }
  129. });
  130. /* SIDEBAR - end */
  131. function countChecked() {
  132. "all" === checkState && $(".bulk_action input[name='table_records']").iCheck("check"), "none" === checkState && $(".bulk_action input[name='table_records']").iCheck("uncheck");
  133. var a = $(".bulk_action input[name='table_records']:checked").length;
  134. a ? ($(".column-title").hide(), $(".bulk-actions").show(), $(".action-cnt").html(a + " Records Selected")) : ($(".column-title").show(), $(".bulk-actions").hide())
  135. }
  136. function gd(a, b, c) {
  137. return new Date(a, b - 1, c).getTime()
  138. }
  139. function init_flot_chart() {
  140. if ("undefined" != typeof $.plot) {
  141. console.log("init_flot_chart");
  142. for (var a = [
  143. [gd(2012, 1, 1), 17],
  144. [gd(2012, 1, 2), 74],
  145. [gd(2012, 1, 3), 6],
  146. [gd(2012, 1, 4), 39],
  147. [gd(2012, 1, 5), 20],
  148. [gd(2012, 1, 6), 85],
  149. [gd(2012, 1, 7), 7]
  150. ], b = [
  151. [gd(2012, 1, 1), 82],
  152. [gd(2012, 1, 2), 23],
  153. [gd(2012, 1, 3), 66],
  154. [gd(2012, 1, 4), 9],
  155. [gd(2012, 1, 5), 119],
  156. [gd(2012, 1, 6), 6],
  157. [gd(2012, 1, 7), 9]
  158. ], d = [], e = [
  159. [0, 1],
  160. [1, 9],
  161. [2, 6],
  162. [3, 10],
  163. [4, 5],
  164. [5, 17],
  165. [6, 6],
  166. [7, 10],
  167. [8, 7],
  168. [9, 11],
  169. [10, 35],
  170. [11, 9],
  171. [12, 12],
  172. [13, 5],
  173. [14, 3],
  174. [15, 4],
  175. [16, 9]
  176. ], f = 0; f < 30; f++) d.push([new Date(Date.today().add(f).days()).getTime(), randNum() + f + f + 10]);
  177. var g = {
  178. series: {
  179. lines: {
  180. show: !1,
  181. fill: !0
  182. },
  183. splines: {
  184. show: !0,
  185. tension: .4,
  186. lineWidth: 1,
  187. fill: .4
  188. },
  189. points: {
  190. radius: 0,
  191. show: !0
  192. },
  193. shadowSize: 2
  194. },
  195. grid: {
  196. verticalLines: !0,
  197. hoverable: !0,
  198. clickable: !0,
  199. tickColor: "#d5d5d5",
  200. borderWidth: 1,
  201. color: "#fff"
  202. },
  203. colors: ["rgba(38, 185, 154, 0.38)", "rgba(3, 88, 106, 0.38)"],
  204. xaxis: {
  205. tickColor: "rgba(51, 51, 51, 0.06)",
  206. mode: "time",
  207. tickSize: [1, "day"],
  208. axisLabel: "Date",
  209. axisLabelUseCanvas: !0,
  210. axisLabelFontSizePixels: 12,
  211. axisLabelFontFamily: "Verdana, Arial",
  212. axisLabelPadding: 10
  213. },
  214. yaxis: {
  215. ticks: 8,
  216. tickColor: "rgba(51, 51, 51, 0.06)"
  217. },
  218. tooltip: !1
  219. },
  220. h = {
  221. grid: {
  222. show: !0,
  223. aboveData: !0,
  224. color: "#3f3f3f",
  225. labelMargin: 10,
  226. axisMargin: 0,
  227. borderWidth: 0,
  228. borderColor: null,
  229. minBorderMargin: 5,
  230. clickable: !0,
  231. hoverable: !0,
  232. autoHighlight: !0,
  233. mouseActiveRadius: 100
  234. },
  235. series: {
  236. lines: {
  237. show: !0,
  238. fill: !0,
  239. lineWidth: 2,
  240. steps: !1
  241. },
  242. points: {
  243. show: !0,
  244. radius: 4.5,
  245. symbol: "circle",
  246. lineWidth: 3
  247. }
  248. },
  249. legend: {
  250. position: "ne",
  251. margin: [0, -25],
  252. noColumns: 0,
  253. labelBoxBorderColor: null,
  254. labelFormatter: function(a, b) {
  255. return a + "&nbsp;&nbsp;"
  256. },
  257. width: 40,
  258. height: 1
  259. },
  260. colors: ["#96CA59", "#3F97EB", "#72c380", "#6f7a8a", "#f7cb38", "#5a8022", "#2c7282"],
  261. shadowSize: 0,
  262. tooltip: !0,
  263. tooltipOpts: {
  264. content: "%s: %y.0",
  265. xDateFormat: "%d/%m",
  266. shifts: {
  267. x: -30,
  268. y: -50
  269. },
  270. defaultTheme: !1
  271. },
  272. yaxis: {
  273. min: 0
  274. },
  275. xaxis: {
  276. mode: "time",
  277. minTickSize: [1, "day"],
  278. timeformat: "%d/%m/%y",
  279. min: d[0][0],
  280. max: d[20][0]
  281. }
  282. },
  283. i = {
  284. series: {
  285. curvedLines: {
  286. apply: !0,
  287. active: !0,
  288. monotonicFit: !0
  289. }
  290. },
  291. colors: ["#26B99A"],
  292. grid: {
  293. borderWidth: {
  294. top: 0,
  295. right: 0,
  296. bottom: 1,
  297. left: 1
  298. },
  299. borderColor: {
  300. bottom: "#7F8790",
  301. left: "#7F8790"
  302. }
  303. }
  304. };
  305. $("#chart_plot_01").length && (console.log("Plot1"), $.plot($("#chart_plot_01"), [a, b], g)), $("#chart_plot_02").length && (console.log("Plot2"), $.plot($("#chart_plot_02"), [{
  306. label: "Email Sent",
  307. data: d,
  308. lines: {
  309. fillColor: "rgba(150, 202, 89, 0.12)"
  310. },
  311. points: {
  312. fillColor: "#fff"
  313. }
  314. }], h)), $("#chart_plot_03").length && (console.log("Plot3"), $.plot($("#chart_plot_03"), [{
  315. label: "Registrations",
  316. data: e,
  317. lines: {
  318. fillColor: "rgba(150, 202, 89, 0.12)"
  319. },
  320. points: {
  321. fillColor: "#fff"
  322. }
  323. }], i))
  324. }
  325. }
  326. /* flot - end */
  327. function init_starrr() {
  328. "undefined" != typeof starrr && (console.log("init_starrr"), $(".stars").starrr(), $(".stars-existing").starrr({
  329. rating: 4
  330. }), $(".stars").on("starrr:change", function(a, b) {
  331. $(".stars-count").html(b)
  332. }), $(".stars-existing").on("starrr:change", function(a, b) {
  333. $(".stars-count-existing").html(b)
  334. }))
  335. }
  336. function init_JQVmap() {
  337. "undefined" != typeof jQuery.fn.vectorMap && (console.log("init_JQVmap"), $("#world-map-gdp").length && $("#world-map-gdp").vectorMap({
  338. map: "world_en",
  339. backgroundColor: null,
  340. color: "#ffffff",
  341. hoverOpacity: .7,
  342. selectedColor: "#666666",
  343. enableZoom: !0,
  344. showTooltip: !0,
  345. values: sample_data,
  346. scaleColors: ["#E6F2F0", "#149B7E"],
  347. normalizeFunction: "polynomial"
  348. }), $("#usa_map").length && $("#usa_map").vectorMap({
  349. map: "usa_en",
  350. backgroundColor: null,
  351. color: "#ffffff",
  352. hoverOpacity: .7,
  353. selectedColor: "#666666",
  354. enableZoom: !0,
  355. showTooltip: !0,
  356. values: sample_data,
  357. scaleColors: ["#E6F2F0", "#149B7E"],
  358. normalizeFunction: "polynomial"
  359. }))
  360. }
  361. function init_skycons() {
  362. if ("undefined" != typeof Skycons) {
  363. console.log("init_skycons");
  364. var c, a = new Skycons({
  365. color: "#73879C"
  366. }),
  367. b = ["clear-day", "clear-night", "partly-cloudy-day", "partly-cloudy-night", "cloudy", "rain", "sleet", "snow", "wind", "fog"];
  368. for (c = b.length; c--;) a.set(b[c], b[c]);
  369. a.play()
  370. }
  371. }
  372. function init_chart_doughnut() {
  373. if ("undefined" != typeof Chart && (console.log("init_chart_doughnut"), $(".canvasDoughnut").length)) {
  374. var a = {
  375. type: "doughnut",
  376. tooltipFillColor: "rgba(51, 51, 51, 0.55)",
  377. data: {
  378. labels: ["Symbian", "Blackberry", "Other", "Android", "IOS"],
  379. datasets: [{
  380. data: [15, 20, 30, 10, 30],
  381. backgroundColor: ["#BDC3C7", "#9B59B6", "#E74C3C", "#26B99A", "#3498DB"],
  382. hoverBackgroundColor: ["#CFD4D8", "#B370CF", "#E95E4F", "#36CAAB", "#49A9EA"]
  383. }]
  384. },
  385. options: {
  386. legend: !1,
  387. responsive: !1
  388. }
  389. };
  390. $(".canvasDoughnut").each(function() {
  391. var b = $(this);
  392. new Chart(b, a)
  393. })
  394. }
  395. }
  396. function init_gauge() {
  397. if ("undefined" != typeof Gauge) {
  398. console.log("init_gauge [" + $(".gauge-chart").length + "]"), console.log("init_gauge");
  399. var a = {
  400. lines: 12,
  401. angle: 0,
  402. lineWidth: .4,
  403. pointer: {
  404. length: .75,
  405. strokeWidth: .042,
  406. color: "#1D212A"
  407. },
  408. limitMax: "false",
  409. colorStart: "#1ABC9C",
  410. colorStop: "#1ABC9C",
  411. strokeColor: "#F0F3F3",
  412. generateGradient: !0
  413. };
  414. if ($("#chart_gauge_01").length) var b = document.getElementById("chart_gauge_01"),
  415. c = new Gauge(b).setOptions(a);
  416. if ($("#gauge-text").length && (c.maxValue = 6e3, c.animationSpeed = 32, c.set(3200), c.setTextField(document.getElementById("gauge-text"))), $("#chart_gauge_02").length) var d = document.getElementById("chart_gauge_02"),
  417. e = new Gauge(d).setOptions(a);
  418. $("#gauge-text2").length && (e.maxValue = 9e3, e.animationSpeed = 32, e.set(2400), e.setTextField(document.getElementById("gauge-text2")))
  419. }
  420. }
  421. function init_sparklines() {
  422. "undefined" != typeof jQuery.fn.sparkline && (console.log("init_sparklines"), $(".sparkline_one").sparkline([2, 4, 3, 4, 5, 4, 5, 4, 3, 4, 5, 6, 4, 5, 6, 3, 5, 4, 5, 4, 5, 4, 3, 4, 5, 6, 7, 5, 4, 3, 5, 6], {
  423. type: "bar",
  424. height: "125",
  425. barWidth: 13,
  426. colorMap: {
  427. 7: "#a1a1a1"
  428. },
  429. barSpacing: 2,
  430. barColor: "#26B99A"
  431. }), $(".sparkline_two").sparkline([2, 4, 3, 4, 5, 4, 5, 4, 3, 4, 5, 6, 7, 5, 4, 3, 5, 6], {
  432. type: "bar",
  433. height: "40",
  434. barWidth: 9,
  435. colorMap: {
  436. 7: "#a1a1a1"
  437. },
  438. barSpacing: 2,
  439. barColor: "#26B99A"
  440. }), $(".sparkline_three").sparkline([2, 4, 3, 4, 5, 4, 5, 4, 3, 4, 5, 6, 7, 5, 4, 3, 5, 6], {
  441. type: "line",
  442. width: "200",
  443. height: "40",
  444. lineColor: "#26B99A",
  445. fillColor: "rgba(223, 223, 223, 0.57)",
  446. lineWidth: 2,
  447. spotColor: "#26B99A",
  448. minSpotColor: "#26B99A"
  449. }), $(".sparkline11").sparkline([2, 4, 3, 4, 5, 4, 5, 4, 3, 4, 6, 2, 4, 3, 4, 5, 4, 5, 4, 3], {
  450. type: "bar",
  451. height: "40",
  452. barWidth: 8,
  453. colorMap: {
  454. 7: "#a1a1a1"
  455. },
  456. barSpacing: 2,
  457. barColor: "#26B99A"
  458. }), $(".sparkline22").sparkline([2, 4, 3, 4, 7, 5, 4, 3, 5, 6, 2, 4, 3, 4, 5, 4, 5, 4, 3, 4, 6], {
  459. type: "line",
  460. height: "40",
  461. width: "200",
  462. lineColor: "#26B99A",
  463. fillColor: "#ffffff",
  464. lineWidth: 3,
  465. spotColor: "#34495E",
  466. minSpotColor: "#34495E"
  467. }), $(".sparkline_bar").sparkline([2, 4, 3, 4, 5, 4, 5, 4, 3, 4, 5, 6, 4, 5, 6, 3, 5], {
  468. type: "bar",
  469. colorMap: {
  470. 7: "#a1a1a1"
  471. },
  472. barColor: "#26B99A"
  473. }), $(".sparkline_area").sparkline([5, 6, 7, 9, 9, 5, 3, 2, 2, 4, 6, 7], {
  474. type: "line",
  475. lineColor: "#26B99A",
  476. fillColor: "#26B99A",
  477. spotColor: "#4578a0",
  478. minSpotColor: "#728fb2",
  479. maxSpotColor: "#6d93c4",
  480. highlightSpotColor: "#ef5179",
  481. highlightLineColor: "#8ba8bf",
  482. spotRadius: 2.5,
  483. width: 85
  484. }), $(".sparkline_line").sparkline([2, 4, 3, 4, 5, 4, 5, 4, 3, 4, 5, 6, 4, 5, 6, 3, 5], {
  485. type: "line",
  486. lineColor: "#26B99A",
  487. fillColor: "#ffffff",
  488. width: 85,
  489. spotColor: "#34495E",
  490. minSpotColor: "#34495E"
  491. }), $(".sparkline_pie").sparkline([1, 1, 2, 1], {
  492. type: "pie",
  493. sliceColors: ["#26B99A", "#ccc", "#75BCDD", "#D66DE2"]
  494. }), $(".sparkline_discreet").sparkline([4, 6, 7, 7, 4, 3, 2, 1, 4, 4, 2, 4, 3, 7, 8, 9, 7, 6, 4, 3], {
  495. type: "discrete",
  496. barWidth: 3,
  497. lineColor: "#26B99A",
  498. width: "85"
  499. }))
  500. }
  501. function init_autocomplete() {
  502. if ("undefined" != typeof autocomplete) {
  503. console.log("init_autocomplete");
  504. var a = {
  505. AD: "Andorra",
  506. A2: "Andorra Test",
  507. AE: "United Arab Emirates",
  508. AF: "Afghanistan",
  509. AG: "Antigua and Barbuda",
  510. AI: "Anguilla",
  511. AL: "Albania",
  512. AM: "Armenia",
  513. AN: "Netherlands Antilles",
  514. AO: "Angola",
  515. AQ: "Antarctica",
  516. AR: "Argentina",
  517. AS: "American Samoa",
  518. AT: "Austria",
  519. AU: "Australia",
  520. AW: "Aruba",
  521. AX: "Åland Islands",
  522. AZ: "Azerbaijan",
  523. BA: "Bosnia and Herzegovina",
  524. BB: "Barbados",
  525. BD: "Bangladesh",
  526. BE: "Belgium",
  527. BF: "Burkina Faso",
  528. BG: "Bulgaria",
  529. BH: "Bahrain",
  530. BI: "Burundi",
  531. BJ: "Benin",
  532. BL: "Saint Barthélemy",
  533. BM: "Bermuda",
  534. BN: "Brunei",
  535. BO: "Bolivia",
  536. BQ: "British Antarctic Territory",
  537. BR: "Brazil",
  538. BS: "Bahamas",
  539. BT: "Bhutan",
  540. BV: "Bouvet Island",
  541. BW: "Botswana",
  542. BY: "Belarus",
  543. BZ: "Belize",
  544. CA: "Canada",
  545. CC: "Cocos [Keeling] Islands",
  546. CD: "Congo - Kinshasa",
  547. CF: "Central African Republic",
  548. CG: "Congo - Brazzaville",
  549. CH: "Switzerland",
  550. CI: "Côte d’Ivoire",
  551. CK: "Cook Islands",
  552. CL: "Chile",
  553. CM: "Cameroon",
  554. CN: "China",
  555. CO: "Colombia",
  556. CR: "Costa Rica",
  557. CS: "Serbia and Montenegro",
  558. CT: "Canton and Enderbury Islands",
  559. CU: "Cuba",
  560. CV: "Cape Verde",
  561. CX: "Christmas Island",
  562. CY: "Cyprus",
  563. CZ: "Czech Republic",
  564. DD: "East Germany",
  565. DE: "Germany",
  566. DJ: "Djibouti",
  567. DK: "Denmark",
  568. DM: "Dominica",
  569. DO: "Dominican Republic",
  570. DZ: "Algeria",
  571. EC: "Ecuador",
  572. EE: "Estonia",
  573. EG: "Egypt",
  574. EH: "Western Sahara",
  575. ER: "Eritrea",
  576. ES: "Spain",
  577. ET: "Ethiopia",
  578. FI: "Finland",
  579. FJ: "Fiji",
  580. FK: "Falkland Islands",
  581. FM: "Micronesia",
  582. FO: "Faroe Islands",
  583. FQ: "French Southern and Antarctic Territories",
  584. FR: "France",
  585. FX: "Metropolitan France",
  586. GA: "Gabon",
  587. GB: "United Kingdom",
  588. GD: "Grenada",
  589. GE: "Georgia",
  590. GF: "French Guiana",
  591. GG: "Guernsey",
  592. GH: "Ghana",
  593. GI: "Gibraltar",
  594. GL: "Greenland",
  595. GM: "Gambia",
  596. GN: "Guinea",
  597. GP: "Guadeloupe",
  598. GQ: "Equatorial Guinea",
  599. GR: "Greece",
  600. GS: "South Georgia and the South Sandwich Islands",
  601. GT: "Guatemala",
  602. GU: "Guam",
  603. GW: "Guinea-Bissau",
  604. GY: "Guyana",
  605. HK: "Hong Kong SAR China",
  606. HM: "Heard Island and McDonald Islands",
  607. HN: "Honduras",
  608. HR: "Croatia",
  609. HT: "Haiti",
  610. HU: "Hungary",
  611. ID: "Indonesia",
  612. IE: "Ireland",
  613. IL: "Israel",
  614. IM: "Isle of Man",
  615. IN: "India",
  616. IO: "British Indian Ocean Territory",
  617. IQ: "Iraq",
  618. IR: "Iran",
  619. IS: "Iceland",
  620. IT: "Italy",
  621. JE: "Jersey",
  622. JM: "Jamaica",
  623. JO: "Jordan",
  624. JP: "Japan",
  625. JT: "Johnston Island",
  626. KE: "Kenya",
  627. KG: "Kyrgyzstan",
  628. KH: "Cambodia",
  629. KI: "Kiribati",
  630. KM: "Comoros",
  631. KN: "Saint Kitts and Nevis",
  632. KP: "North Korea",
  633. KR: "South Korea",
  634. KW: "Kuwait",
  635. KY: "Cayman Islands",
  636. KZ: "Kazakhstan",
  637. LA: "Laos",
  638. LB: "Lebanon",
  639. LC: "Saint Lucia",
  640. LI: "Liechtenstein",
  641. LK: "Sri Lanka",
  642. LR: "Liberia",
  643. LS: "Lesotho",
  644. LT: "Lithuania",
  645. LU: "Luxembourg",
  646. LV: "Latvia",
  647. LY: "Libya",
  648. MA: "Morocco",
  649. MC: "Monaco",
  650. MD: "Moldova",
  651. ME: "Montenegro",
  652. MF: "Saint Martin",
  653. MG: "Madagascar",
  654. MH: "Marshall Islands",
  655. MI: "Midway Islands",
  656. MK: "Macedonia",
  657. ML: "Mali",
  658. MM: "Myanmar [Burma]",
  659. MN: "Mongolia",
  660. MO: "Macau SAR China",
  661. MP: "Northern Mariana Islands",
  662. MQ: "Martinique",
  663. MR: "Mauritania",
  664. MS: "Montserrat",
  665. MT: "Malta",
  666. MU: "Mauritius",
  667. MV: "Maldives",
  668. MW: "Malawi",
  669. MX: "Mexico",
  670. MY: "Malaysia",
  671. MZ: "Mozambique",
  672. NA: "Namibia",
  673. NC: "New Caledonia",
  674. NE: "Niger",
  675. NF: "Norfolk Island",
  676. NG: "Nigeria",
  677. NI: "Nicaragua",
  678. NL: "Netherlands",
  679. NO: "Norway",
  680. NP: "Nepal",
  681. NQ: "Dronning Maud Land",
  682. NR: "Nauru",
  683. NT: "Neutral Zone",
  684. NU: "Niue",
  685. NZ: "New Zealand",
  686. OM: "Oman",
  687. PA: "Panama",
  688. PC: "Pacific Islands Trust Territory",
  689. PE: "Peru",
  690. PF: "French Polynesia",
  691. PG: "Papua New Guinea",
  692. PH: "Philippines",
  693. PK: "Pakistan",
  694. PL: "Poland",
  695. PM: "Saint Pierre and Miquelon",
  696. PN: "Pitcairn Islands",
  697. PR: "Puerto Rico",
  698. PS: "Palestinian Territories",
  699. PT: "Portugal",
  700. PU: "U.S. Miscellaneous Pacific Islands",
  701. PW: "Palau",
  702. PY: "Paraguay",
  703. PZ: "Panama Canal Zone",
  704. QA: "Qatar",
  705. RE: "Réunion",
  706. RO: "Romania",
  707. RS: "Serbia",
  708. RU: "Russia",
  709. RW: "Rwanda",
  710. SA: "Saudi Arabia",
  711. SB: "Solomon Islands",
  712. SC: "Seychelles",
  713. SD: "Sudan",
  714. SE: "Sweden",
  715. SG: "Singapore",
  716. SH: "Saint Helena",
  717. SI: "Slovenia",
  718. SJ: "Svalbard and Jan Mayen",
  719. SK: "Slovakia",
  720. SL: "Sierra Leone",
  721. SM: "San Marino",
  722. SN: "Senegal",
  723. SO: "Somalia",
  724. SR: "Suriname",
  725. ST: "São Tomé and Príncipe",
  726. SU: "Union of Soviet Socialist Republics",
  727. SV: "El Salvador",
  728. SY: "Syria",
  729. SZ: "Swaziland",
  730. TC: "Turks and Caicos Islands",
  731. TD: "Chad",
  732. TF: "French Southern Territories",
  733. TG: "Togo",
  734. TH: "Thailand",
  735. TJ: "Tajikistan",
  736. TK: "Tokelau",
  737. TL: "Timor-Leste",
  738. TM: "Turkmenistan",
  739. TN: "Tunisia",
  740. TO: "Tonga",
  741. TR: "Turkey",
  742. TT: "Trinidad and Tobago",
  743. TV: "Tuvalu",
  744. TW: "Taiwan",
  745. TZ: "Tanzania",
  746. UA: "Ukraine",
  747. UG: "Uganda",
  748. UM: "U.S. Minor Outlying Islands",
  749. US: "United States",
  750. UY: "Uruguay",
  751. UZ: "Uzbekistan",
  752. VA: "Vatican City",
  753. VC: "Saint Vincent and the Grenadines",
  754. VD: "North Vietnam",
  755. VE: "Venezuela",
  756. VG: "British Virgin Islands",
  757. VI: "U.S. Virgin Islands",
  758. VN: "Vietnam",
  759. VU: "Vanuatu",
  760. WF: "Wallis and Futuna",
  761. WK: "Wake Island",
  762. WS: "Samoa",
  763. YD: "People's Democratic Republic of Yemen",
  764. YE: "Yemen",
  765. YT: "Mayotte",
  766. ZA: "South Africa",
  767. ZM: "Zambia",
  768. ZW: "Zimbabwe",
  769. ZZ: "Unknown or Invalid Region"
  770. },
  771. b = $.map(a, function(a, b) {
  772. return {
  773. value: a,
  774. data: b
  775. }
  776. });
  777. $("#autocomplete-custom-append").autocomplete({
  778. lookup: b
  779. })
  780. }
  781. }
  782. function init_autosize() {
  783. "undefined" != typeof $.fn.autosize && autosize($(".resizable_textarea"))
  784. }
  785. function init_parsley() {
  786. if ("undefined" != typeof parsley) {
  787. console.log("init_parsley"), $("parsley:field:validate", function() {
  788. a()
  789. }), $("#demo-form .btn").on("click", function() {
  790. $("#demo-form").parsley().validate(), a()
  791. });
  792. var a = function() {
  793. !0 === $("#demo-form").parsley().isValid() ? ($(".bs-callout-info").removeClass("hidden"), $(".bs-callout-warning").addClass("hidden")) : ($(".bs-callout-info").addClass("hidden"), $(".bs-callout-warning").removeClass("hidden"))
  794. };
  795. $("parsley:field:validate", function() {
  796. a()
  797. }), $("#demo-form2 .btn").on("click", function() {
  798. $("#demo-form2").parsley().validate(), a()
  799. });
  800. var a = function() {
  801. !0 === $("#demo-form2").parsley().isValid() ? ($(".bs-callout-info").removeClass("hidden"), $(".bs-callout-warning").addClass("hidden")) : ($(".bs-callout-info").addClass("hidden"), $(".bs-callout-warning").removeClass("hidden"))
  802. };
  803. try {
  804. hljs.initHighlightingOnLoad()
  805. } catch (a) {}
  806. }
  807. }
  808. function onAddTag(a) {
  809. alert("Added a tag: " + a)
  810. }
  811. function onRemoveTag(a) {
  812. alert("Removed a tag: " + a)
  813. }
  814. function onChangeTag(a, b) {
  815. alert("Changed a tag: " + b)
  816. }
  817. function init_TagsInput() {
  818. "undefined" != typeof $.fn.tagsInput && $("#tags_1").tagsInput({
  819. width: "auto"
  820. })
  821. }
  822. function init_select2() {
  823. "undefined" != typeof select2 && (console.log("init_toolbox"), $(".select2_single").select2({
  824. placeholder: "Select a state",
  825. allowClear: !0
  826. }), $(".select2_group").select2({}), $(".select2_multiple").select2({
  827. maximumSelectionLength: 4,
  828. placeholder: "With Max Selection limit 4",
  829. allowClear: !0
  830. }))
  831. }
  832. function init_wysiwyg() {
  833. function b(a, b) {
  834. var c = "";
  835. "unsupported-file-type" === a ? c = "Unsupported format " + b : console.log("error uploading file", a, b), $('<div class="alert"> <button type="button" class="close" data-dismiss="alert">&times;</button><strong>File upload error</strong> ' + c + " </div>").prependTo("#alerts")
  836. }
  837. "undefined" != typeof $.fn.wysiwyg && (console.log("init_wysiwyg"), $(".editor-wrapper").each(function() {
  838. var a = $(this).attr("id");
  839. $(this).wysiwyg({
  840. toolbarSelector: '[data-target="#' + a + '"]',
  841. fileUploadError: b
  842. })
  843. }), window.prettyPrint, prettyPrint())
  844. }
  845. function init_cropper() {
  846. if ("undefined" != typeof $.fn.cropper) {
  847. console.log("init_cropper");
  848. var a = $("#image"),
  849. b = $("#download"),
  850. c = $("#dataX"),
  851. d = $("#dataY"),
  852. e = $("#dataHeight"),
  853. f = $("#dataWidth"),
  854. g = $("#dataRotate"),
  855. h = $("#dataScaleX"),
  856. i = $("#dataScaleY"),
  857. j = {
  858. aspectRatio: 16 / 9,
  859. preview: ".img-preview",
  860. crop: function(a) {
  861. c.val(Math.round(a.x)), d.val(Math.round(a.y)), e.val(Math.round(a.height)), f.val(Math.round(a.width)), g.val(a.rotate), h.val(a.scaleX), i.val(a.scaleY)
  862. }
  863. };
  864. $('[data-toggle="tooltip"]').tooltip(), a.on({
  865. "build.cropper": function(a) {
  866. console.log(a.type)
  867. },
  868. "built.cropper": function(a) {
  869. console.log(a.type)
  870. },
  871. "cropstart.cropper": function(a) {
  872. console.log(a.type, a.action)
  873. },
  874. "cropmove.cropper": function(a) {
  875. console.log(a.type, a.action)
  876. },
  877. "cropend.cropper": function(a) {
  878. console.log(a.type, a.action)
  879. },
  880. "crop.cropper": function(a) {
  881. console.log(a.type, a.x, a.y, a.width, a.height, a.rotate, a.scaleX, a.scaleY)
  882. },
  883. "zoom.cropper": function(a) {
  884. console.log(a.type, a.ratio)
  885. }
  886. }).cropper(j), $.isFunction(document.createElement("canvas").getContext) || $('button[data-method="getCroppedCanvas"]').prop("disabled", !0), "undefined" == typeof document.createElement("cropper").style.transition && ($('button[data-method="rotate"]').prop("disabled", !0), $('button[data-method="scale"]').prop("disabled", !0)), "undefined" == typeof b[0].download && b.addClass("disabled"), $(".docs-toggles").on("change", "input", function() {
  887. var e, f, b = $(this),
  888. c = b.attr("name"),
  889. d = b.prop("type");
  890. a.data("cropper") && ("checkbox" === d ? (j[c] = b.prop("checked"), e = a.cropper("getCropBoxData"), f = a.cropper("getCanvasData"), j.built = function() {
  891. a.cropper("setCropBoxData", e), a.cropper("setCanvasData", f)
  892. }) : "radio" === d && (j[c] = b.val()), a.cropper("destroy").cropper(j))
  893. }), $(".docs-buttons").on("click", "[data-method]", function() {
  894. var e, f, c = $(this),
  895. d = c.data();
  896. if (!c.prop("disabled") && !c.hasClass("disabled") && a.data("cropper") && d.method) {
  897. if (d = $.extend({}, d), "undefined" != typeof d.target && (e = $(d.target), "undefined" == typeof d.option)) try {
  898. d.option = JSON.parse(e.val())
  899. } catch (a) {
  900. console.log(a.message)
  901. }
  902. switch (f = a.cropper(d.method, d.option, d.secondOption), d.method) {
  903. case "scaleX":
  904. case "scaleY":
  905. $(this).data("option", -d.option);
  906. break;
  907. case "getCroppedCanvas":
  908. f && ($("#getCroppedCanvasModal").modal().find(".modal-body").html(f), b.hasClass("disabled") || b.attr("href", f.toDataURL()))
  909. }
  910. if ($.isPlainObject(f) && e) try {
  911. e.val(JSON.stringify(f))
  912. } catch (a) {
  913. console.log(a.message)
  914. }
  915. }
  916. }), $(document.body).on("keydown", function(b) {
  917. if (a.data("cropper") && !(this.scrollTop > 300)) switch (b.which) {
  918. case 37:
  919. b.preventDefault(), a.cropper("move", -1, 0);
  920. break;
  921. case 38:
  922. b.preventDefault(), a.cropper("move", 0, -1);
  923. break;
  924. case 39:
  925. b.preventDefault(), a.cropper("move", 1, 0);
  926. break;
  927. case 40:
  928. b.preventDefault(), a.cropper("move", 0, 1)
  929. }
  930. });
  931. var m, k = $("#inputImage"),
  932. l = window.URL || window.webkitURL;
  933. l ? k.change(function() {
  934. var c, b = this.files;
  935. a.data("cropper") && b && b.length && (c = b[0], /^image\/\w+$/.test(c.type) ? (m = l.createObjectURL(c), a.one("built.cropper", function() {
  936. l.revokeObjectURL(m)
  937. }).cropper("reset").cropper("replace", m), k.val("")) : window.alert("Please choose an image file."))
  938. }) : k.prop("disabled", !0).parent().addClass("disabled")
  939. }
  940. }
  941. function init_knob() {
  942. if ("undefined" != typeof $.fn.knob) {
  943. console.log("init_knob"), $(".knob").knob({
  944. change: function(a) {},
  945. release: function(a) {
  946. console.log("release : " + a)
  947. },
  948. cancel: function() {
  949. console.log("cancel : ", this)
  950. },
  951. draw: function() {
  952. if ("tron" == this.$.data("skin")) {
  953. this.cursorExt = .3;
  954. var b, a = this.arc(this.cv),
  955. c = 1;
  956. return this.g.lineWidth = this.lineWidth, this.o.displayPrevious && (b = this.arc(this.v), this.g.beginPath(), this.g.strokeStyle = this.pColor, this.g.arc(this.xy, this.xy, this.radius - this.lineWidth, b.s, b.e, b.d), this.g.stroke()), this.g.beginPath(), this.g.strokeStyle = c ? 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 + 2 * this.lineWidth / 3, 0, 2 * Math.PI, !1), this.g.stroke(), !1
  957. }
  958. }
  959. });
  960. var a, b = 0,
  961. c = 0,
  962. d = 0,
  963. e = $("div.idir"),
  964. f = $("div.ival"),
  965. g = function() {
  966. d++, e.show().html("+").fadeOut(), f.html(d)
  967. },
  968. h = function() {
  969. d--, e.show().html("-").fadeOut(), f.html(d)
  970. };
  971. $("input.infinite").knob({
  972. min: 0,
  973. max: 20,
  974. stopper: !1,
  975. change: function() {
  976. a > this.cv ? b ? (h(), b = 0) : (b = 1, c = 0) : a < this.cv && (c ? (g(), c = 0) : (c = 1, b = 0)), a = this.cv
  977. }
  978. })
  979. }
  980. }
  981. function init_InputMask() {
  982. "undefined" != typeof $.fn.inputmask && (console.log("init_InputMask"), $(":input").inputmask())
  983. }
  984. function init_ColorPicker() {
  985. "undefined" != typeof $.fn.colorpicker && (console.log("init_ColorPicker"), $(".demo1").colorpicker(), $(".demo2").colorpicker(), $("#demo_forceformat").colorpicker({
  986. format: "rgba",
  987. horizontal: !0
  988. }), $("#demo_forceformat3").colorpicker({
  989. format: "rgba"
  990. }), $(".demo-auto").colorpicker())
  991. }
  992. function init_IonRangeSlider() {
  993. "undefined" != typeof $.fn.ionRangeSlider && (console.log("init_IonRangeSlider"), $("#range_27").ionRangeSlider({
  994. type: "double",
  995. min: 1e6,
  996. max: 2e6,
  997. grid: !0,
  998. force_edges: !0
  999. }), $("#range").ionRangeSlider({
  1000. hide_min_max: !0,
  1001. keyboard: !0,
  1002. min: 0,
  1003. max: 5e3,
  1004. from: 1e3,
  1005. to: 4e3,
  1006. type: "double",
  1007. step: 1,
  1008. prefix: "$",
  1009. grid: !0
  1010. }), $("#range_25").ionRangeSlider({
  1011. type: "double",
  1012. min: 1e6,
  1013. max: 2e6,
  1014. grid: !0
  1015. }), $("#range_26").ionRangeSlider({
  1016. type: "double",
  1017. min: 0,
  1018. max: 1e4,
  1019. step: 500,
  1020. grid: !0,
  1021. grid_snap: !0
  1022. }), $("#range_31").ionRangeSlider({
  1023. type: "double",
  1024. min: 0,
  1025. max: 100,
  1026. from: 30,
  1027. to: 70,
  1028. from_fixed: !0
  1029. }), $(".range_min_max").ionRangeSlider({
  1030. type: "double",
  1031. min: 0,
  1032. max: 100,
  1033. from: 30,
  1034. to: 70,
  1035. max_interval: 50
  1036. }), $(".range_time24").ionRangeSlider({
  1037. min: +moment().subtract(12, "hours").format("X"),
  1038. max: +moment().format("X"),
  1039. from: +moment().subtract(6, "hours").format("X"),
  1040. grid: !0,
  1041. force_edges: !0,
  1042. prettify: function(a) {
  1043. var b = moment(a, "X");
  1044. return b.format("Do MMMM, HH:mm")
  1045. }
  1046. }))
  1047. }
  1048. function init_daterangepicker() {
  1049. if ("undefined" != typeof $.fn.daterangepicker) {
  1050. console.log("init_daterangepicker");
  1051. var a = function(a, b, c) {
  1052. console.log(a.toISOString(), b.toISOString(), c), $("#reportrange span").html(a.format("MMMM D, YYYY") + " - " + b.format("MMMM D, YYYY"))
  1053. },
  1054. b = {
  1055. startDate: moment().subtract(29, "days"),
  1056. endDate: moment(),
  1057. minDate: "01/01/2012",
  1058. maxDate: "12/31/2015",
  1059. dateLimit: {
  1060. days: 60
  1061. },
  1062. showDropdowns: !0,
  1063. showWeekNumbers: !0,
  1064. timePicker: !1,
  1065. timePickerIncrement: 1,
  1066. timePicker12Hour: !0,
  1067. ranges: {
  1068. Today: [moment(), moment()],
  1069. Yesterday: [moment().subtract(1, "days"), moment().subtract(1, "days")],
  1070. "Last 7 Days": [moment().subtract(6, "days"), moment()],
  1071. "Last 30 Days": [moment().subtract(29, "days"), moment()],
  1072. "This Month": [moment().startOf("month"), moment().endOf("month")],
  1073. "Last Month": [moment().subtract(1, "month").startOf("month"), moment().subtract(1, "month").endOf("month")]
  1074. },
  1075. opens: "left",
  1076. buttonClasses: ["btn btn-default"],
  1077. applyClass: "btn-small btn-primary",
  1078. cancelClass: "btn-small",
  1079. format: "MM/DD/YYYY",
  1080. separator: " to ",
  1081. locale: {
  1082. applyLabel: "Submit",
  1083. cancelLabel: "Clear",
  1084. fromLabel: "From",
  1085. toLabel: "To",
  1086. customRangeLabel: "Custom",
  1087. daysOfWeek: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
  1088. monthNames: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
  1089. firstDay: 1
  1090. }
  1091. };
  1092. $("#reportrange span").html(moment().subtract(29, "days").format("MMMM D, YYYY") + " - " + moment().format("MMMM D, YYYY")), $("#reportrange").daterangepicker(b, a), $("#reportrange").on("show.daterangepicker", function() {
  1093. console.log("show event fired")
  1094. }), $("#reportrange").on("hide.daterangepicker", function() {
  1095. console.log("hide event fired")
  1096. }), $("#reportrange").on("apply.daterangepicker", function(a, b) {
  1097. console.log("apply event fired, start/end dates are " + b.startDate.format("MMMM D, YYYY") + " to " + b.endDate.format("MMMM D, YYYY"))
  1098. }), $("#reportrange").on("cancel.daterangepicker", function(a, b) {
  1099. console.log("cancel event fired")
  1100. }), $("#options1").click(function() {
  1101. $("#reportrange").data("daterangepicker").setOptions(b, a)
  1102. }), $("#options2").click(function() {
  1103. $("#reportrange").data("daterangepicker").setOptions(optionSet2, a)
  1104. }), $("#destroy").click(function() {
  1105. $("#reportrange").data("daterangepicker").remove()
  1106. })
  1107. }
  1108. }
  1109. function init_daterangepicker_right() {
  1110. if ("undefined" != typeof $.fn.daterangepicker) {
  1111. console.log("init_daterangepicker_right");
  1112. var a = function(a, b, c) {
  1113. console.log(a.toISOString(), b.toISOString(), c), $("#reportrange_right span").html(a.format("MMMM D, YYYY") + " - " + b.format("MMMM D, YYYY"))
  1114. },
  1115. b = {
  1116. startDate: moment().subtract(29, "days"),
  1117. endDate: moment(),
  1118. minDate: "01/01/2012",
  1119. maxDate: "12/31/2020",
  1120. dateLimit: {
  1121. days: 60
  1122. },
  1123. showDropdowns: !0,
  1124. showWeekNumbers: !0,
  1125. timePicker: !1,
  1126. timePickerIncrement: 1,
  1127. timePicker12Hour: !0,
  1128. ranges: {
  1129. Today: [moment(), moment()],
  1130. Yesterday: [moment().subtract(1, "days"), moment().subtract(1, "days")],
  1131. "Last 7 Days": [moment().subtract(6, "days"), moment()],
  1132. "Last 30 Days": [moment().subtract(29, "days"), moment()],
  1133. "This Month": [moment().startOf("month"), moment().endOf("month")],
  1134. "Last Month": [moment().subtract(1, "month").startOf("month"), moment().subtract(1, "month").endOf("month")]
  1135. },
  1136. opens: "right",
  1137. buttonClasses: ["btn btn-default"],
  1138. applyClass: "btn-small btn-primary",
  1139. cancelClass: "btn-small",
  1140. format: "MM/DD/YYYY",
  1141. separator: " to ",
  1142. locale: {
  1143. applyLabel: "Submit",
  1144. cancelLabel: "Clear",
  1145. fromLabel: "From",
  1146. toLabel: "To",
  1147. customRangeLabel: "Custom",
  1148. daysOfWeek: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
  1149. monthNames: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
  1150. firstDay: 1
  1151. }
  1152. };
  1153. $("#reportrange_right span").html(moment().subtract(29, "days").format("MMMM D, YYYY") + " - " + moment().format("MMMM D, YYYY")), $("#reportrange_right").daterangepicker(b, a), $("#reportrange_right").on("show.daterangepicker", function() {
  1154. console.log("show event fired")
  1155. }), $("#reportrange_right").on("hide.daterangepicker", function() {
  1156. console.log("hide event fired")
  1157. }), $("#reportrange_right").on("apply.daterangepicker", function(a, b) {
  1158. console.log("apply event fired, start/end dates are " + b.startDate.format("MMMM D, YYYY") + " to " + b.endDate.format("MMMM D, YYYY"))
  1159. }), $("#reportrange_right").on("cancel.daterangepicker", function(a, b) {
  1160. console.log("cancel event fired")
  1161. }), $("#options1").click(function() {
  1162. $("#reportrange_right").data("daterangepicker").setOptions(b, a)
  1163. }), $("#options2").click(function() {
  1164. $("#reportrange_right").data("daterangepicker").setOptions(optionSet2, a)
  1165. }), $("#destroy").click(function() {
  1166. $("#reportrange_right").data("daterangepicker").remove()
  1167. })
  1168. }
  1169. }
  1170. function init_daterangepicker_single_call() {
  1171. "undefined" != typeof $.fn.daterangepicker && (console.log("init_daterangepicker_single_call"), $("#single_cal1").daterangepicker({
  1172. singleDatePicker: !0,
  1173. singleClasses: "picker_1"
  1174. }, function(a, b, c) {
  1175. console.log(a.toISOString(), b.toISOString(), c)
  1176. }), $("#single_cal2").daterangepicker({
  1177. singleDatePicker: !0,
  1178. singleClasses: "picker_2"
  1179. }, function(a, b, c) {
  1180. console.log(a.toISOString(), b.toISOString(), c)
  1181. }), $("#single_cal3").daterangepicker({
  1182. singleDatePicker: !0,
  1183. singleClasses: "picker_3"
  1184. }, function(a, b, c) {
  1185. console.log(a.toISOString(), b.toISOString(), c)
  1186. }), $("#single_cal4").daterangepicker({
  1187. singleDatePicker: !0,
  1188. singleClasses: "picker_4"
  1189. }, function(a, b, c) {
  1190. console.log(a.toISOString(), b.toISOString(), c)
  1191. }))
  1192. }
  1193. function init_daterangepicker_reservation() {
  1194. "undefined" != typeof $.fn.daterangepicker && (console.log("init_daterangepicker_reservation"), $("#reservation").daterangepicker(null, function(a, b, c) {
  1195. console.log(a.toISOString(), b.toISOString(), c)
  1196. }), $("#reservation-time").daterangepicker({
  1197. timePicker: !0,
  1198. timePickerIncrement: 30,
  1199. locale: {
  1200. format: "MM/DD/YYYY h:mm A"
  1201. }
  1202. }))
  1203. }
  1204. function init_SmartWizard() {
  1205. "undefined" != typeof $.fn.smartWizard && (console.log("init_SmartWizard"), $("#wizard").smartWizard(), $("#wizard_verticle").smartWizard({
  1206. transitionEffect: "slide"
  1207. }), $(".buttonNext").addClass("btn btn-success"), $(".buttonPrevious").addClass("btn btn-primary"), $(".buttonFinish").addClass("btn btn-default"))
  1208. }
  1209. function init_validator() {
  1210. "undefined" != typeof validator && (console.log("init_validator"), validator.message.date = "not a real date", $("form").on("blur", "input[required], input.optional, select.required", validator.checkField).on("change", "select.required", validator.checkField).on("keypress", "input[required][pattern]", validator.keypress), $(".multi.required").on("keyup blur", "input", function() {
  1211. validator.checkField.apply($(this).siblings().last()[0])
  1212. }), $("form").submit(function(a) {
  1213. a.preventDefault();
  1214. var b = !0;
  1215. return validator.checkAll($(this)) || (b = !1), b && this.submit(), !1
  1216. }))
  1217. }
  1218. function init_PNotify() {
  1219. "undefined" != typeof PNotify && (console.log("init_PNotify"), new PNotify({
  1220. title: "PNotify",
  1221. type: "info",
  1222. text: "Welcome. Try hovering over me. You can click things behind me, because I'm non-blocking.",
  1223. nonblock: {
  1224. nonblock: !0
  1225. },
  1226. addclass: "dark",
  1227. styling: "bootstrap3",
  1228. hide: !1,
  1229. before_close: function(a) {
  1230. return a.update({
  1231. title: a.options.title + " - Enjoy your Stay",
  1232. before_close: null
  1233. }), a.queueRemove(), !1
  1234. }
  1235. }))
  1236. }
  1237. function init_CustomNotification() {
  1238. if (console.log("run_customtabs"), "undefined" != typeof CustomTabs) {
  1239. console.log("init_CustomTabs");
  1240. var a = 10;
  1241. TabbedNotification = function(b) {
  1242. var c = "<div id='ntf" + a + "' class='text alert-" + b.type + "' style='display:none'><h2><i class='fa fa-bell'></i> " + b.title + "</h2><div class='close'><a href='javascript:;' class='notification_close'><i class='fa fa-close'></i></a></div><p>" + b.text + "</p></div>";
  1243. document.getElementById("custom_notifications") ? ($("#custom_notifications ul.notifications").append("<li><a id='ntlink" + a + "' class='alert-" + b.type + "' href='#ntf" + a + "'><i class='fa fa-bell animated shake'></i></a></li>"), $("#custom_notifications #notif-group").append(c), a++, CustomTabs(b)) : alert("doesnt exists")
  1244. }, CustomTabs = function(a) {
  1245. $(".tabbed_notifications > div").hide(), $(".tabbed_notifications > div:first-of-type").show(), $("#custom_notifications").removeClass("dsp_none"), $(".notifications a").click(function(a) {
  1246. a.preventDefault();
  1247. var b = $(this),
  1248. c = "#" + b.parents(".notifications").data("tabbed_notifications"),
  1249. d = b.closest("li").siblings().children("a"),
  1250. e = b.attr("href");
  1251. d.removeClass("active"), b.addClass("active"), $(c).children("div").hide(), $(e).show()
  1252. })
  1253. }, CustomTabs();
  1254. var b = idname = "";
  1255. $(document).on("click", ".notification_close", function(a) {
  1256. idname = $(this).parent().parent().attr("id"), b = idname.substr(-2), $("#ntf" + b).remove(), $("#ntlink" + b).parent().remove(), $(".notifications a").first().addClass("active"), $("#notif-group div").first().css("display", "block")
  1257. })
  1258. }
  1259. }
  1260. function init_EasyPieChart() {
  1261. if ("undefined" != typeof $.fn.easyPieChart) {
  1262. console.log("init_EasyPieChart"), $(".chart").easyPieChart({
  1263. easing: "easeOutElastic",
  1264. delay: 3e3,
  1265. barColor: "#26B99A",
  1266. trackColor: "#fff",
  1267. scaleColor: !1,
  1268. lineWidth: 20,
  1269. trackWidth: 16,
  1270. lineCap: "butt",
  1271. onStep: function(a, b, c) {
  1272. $(this.el).find(".percent").text(Math.round(c))
  1273. }
  1274. });
  1275. var a = window.chart = $(".chart").data("easyPieChart");
  1276. $(".js_update").on("click", function() {
  1277. a.update(200 * Math.random() - 100)
  1278. });
  1279. var b = $.fn.popover.Constructor.prototype.leave;
  1280. $.fn.popover.Constructor.prototype.leave = function(a) {
  1281. var d, e, c = a instanceof this.constructor ? a : $(a.currentTarget)[this.type](this.getDelegateOptions()).data("bs." + this.type);
  1282. b.call(this, a), a.currentTarget && (d = $(a.currentTarget).siblings(".popover"), e = c.timeout, d.one("mouseenter", function() {
  1283. clearTimeout(e), d.one("mouseleave", function() {
  1284. $.fn.popover.Constructor.prototype.leave.call(c, c)
  1285. })
  1286. }))
  1287. }, $("body").popover({
  1288. selector: "[data-popover]",
  1289. trigger: "click hover",
  1290. delay: {
  1291. show: 50,
  1292. hide: 400
  1293. }
  1294. })
  1295. }
  1296. }
  1297. function init_charts() {
  1298. if (console.log("run_charts typeof [" + typeof Chart + "]"), "undefined" != typeof Chart) {
  1299. if (console.log("init_charts"), Chart.defaults.global.legend = {
  1300. enabled: !1
  1301. }, $("#canvas_line").length) {
  1302. new Chart(document.getElementById("canvas_line"), {
  1303. type: "line",
  1304. data: {
  1305. labels: ["January", "February", "March", "April", "May", "June", "July"],
  1306. datasets: [{
  1307. label: "My First dataset",
  1308. backgroundColor: "rgba(38, 185, 154, 0.31)",
  1309. borderColor: "rgba(38, 185, 154, 0.7)",
  1310. pointBorderColor: "rgba(38, 185, 154, 0.7)",
  1311. pointBackgroundColor: "rgba(38, 185, 154, 0.7)",
  1312. pointHoverBackgroundColor: "#fff",
  1313. pointHoverBorderColor: "rgba(220,220,220,1)",
  1314. pointBorderWidth: 1,
  1315. data: [31, 74, 6, 39, 20, 85, 7]
  1316. }, {
  1317. label: "My Second dataset",
  1318. backgroundColor: "rgba(3, 88, 106, 0.3)",
  1319. borderColor: "rgba(3, 88, 106, 0.70)",
  1320. pointBorderColor: "rgba(3, 88, 106, 0.70)",
  1321. pointBackgroundColor: "rgba(3, 88, 106, 0.70)",
  1322. pointHoverBackgroundColor: "#fff",
  1323. pointHoverBorderColor: "rgba(151,187,205,1)",
  1324. pointBorderWidth: 1,
  1325. data: [82, 23, 66, 9, 99, 4, 2]
  1326. }]
  1327. }
  1328. })
  1329. }
  1330. if ($("#canvas_line1").length) {
  1331. new Chart(document.getElementById("canvas_line1"), {
  1332. type: "line",
  1333. data: {
  1334. labels: ["January", "February", "March", "April", "May", "June", "July"],
  1335. datasets: [{
  1336. label: "My First dataset",
  1337. backgroundColor: "rgba(38, 185, 154, 0.31)",
  1338. borderColor: "rgba(38, 185, 154, 0.7)",
  1339. pointBorderColor: "rgba(38, 185, 154, 0.7)",
  1340. pointBackgroundColor: "rgba(38, 185, 154, 0.7)",
  1341. pointHoverBackgroundColor: "#fff",
  1342. pointHoverBorderColor: "rgba(220,220,220,1)",
  1343. pointBorderWidth: 1,
  1344. data: [31, 74, 6, 39, 20, 85, 7]
  1345. }, {
  1346. label: "My Second dataset",
  1347. backgroundColor: "rgba(3, 88, 106, 0.3)",
  1348. borderColor: "rgba(3, 88, 106, 0.70)",
  1349. pointBorderColor: "rgba(3, 88, 106, 0.70)",
  1350. pointBackgroundColor: "rgba(3, 88, 106, 0.70)",
  1351. pointHoverBackgroundColor: "#fff",
  1352. pointHoverBorderColor: "rgba(151,187,205,1)",
  1353. pointBorderWidth: 1,
  1354. data: [82, 23, 66, 9, 99, 4, 2]
  1355. }]
  1356. }
  1357. })
  1358. }
  1359. if ($("#canvas_line2").length) {
  1360. new Chart(document.getElementById("canvas_line2"), {
  1361. type: "line",
  1362. data: {
  1363. labels: ["January", "February", "March", "April", "May", "June", "July"],
  1364. datasets: [{
  1365. label: "My First dataset",
  1366. backgroundColor: "rgba(38, 185, 154, 0.31)",
  1367. borderColor: "rgba(38, 185, 154, 0.7)",
  1368. pointBorderColor: "rgba(38, 185, 154, 0.7)",
  1369. pointBackgroundColor: "rgba(38, 185, 154, 0.7)",
  1370. pointHoverBackgroundColor: "#fff",
  1371. pointHoverBorderColor: "rgba(220,220,220,1)",
  1372. pointBorderWidth: 1,
  1373. data: [31, 74, 6, 39, 20, 85, 7]
  1374. }, {
  1375. label: "My Second dataset",
  1376. backgroundColor: "rgba(3, 88, 106, 0.3)",
  1377. borderColor: "rgba(3, 88, 106, 0.70)",
  1378. pointBorderColor: "rgba(3, 88, 106, 0.70)",
  1379. pointBackgroundColor: "rgba(3, 88, 106, 0.70)",
  1380. pointHoverBackgroundColor: "#fff",
  1381. pointHoverBorderColor: "rgba(151,187,205,1)",
  1382. pointBorderWidth: 1,
  1383. data: [82, 23, 66, 9, 99, 4, 2]
  1384. }]
  1385. }
  1386. })
  1387. }
  1388. if ($("#canvas_line3").length) {
  1389. new Chart(document.getElementById("canvas_line3"), {
  1390. type: "line",
  1391. data: {
  1392. labels: ["January", "February", "March", "April", "May", "June", "July"],
  1393. datasets: [{
  1394. label: "My First dataset",
  1395. backgroundColor: "rgba(38, 185, 154, 0.31)",
  1396. borderColor: "rgba(38, 185, 154, 0.7)",
  1397. pointBorderColor: "rgba(38, 185, 154, 0.7)",
  1398. pointBackgroundColor: "rgba(38, 185, 154, 0.7)",
  1399. pointHoverBackgroundColor: "#fff",
  1400. pointHoverBorderColor: "rgba(220,220,220,1)",
  1401. pointBorderWidth: 1,
  1402. data: [31, 74, 6, 39, 20, 85, 7]
  1403. }, {
  1404. label: "My Second dataset",
  1405. backgroundColor: "rgba(3, 88, 106, 0.3)",
  1406. borderColor: "rgba(3, 88, 106, 0.70)",
  1407. pointBorderColor: "rgba(3, 88, 106, 0.70)",
  1408. pointBackgroundColor: "rgba(3, 88, 106, 0.70)",
  1409. pointHoverBackgroundColor: "#fff",
  1410. pointHoverBorderColor: "rgba(151,187,205,1)",
  1411. pointBorderWidth: 1,
  1412. data: [82, 23, 66, 9, 99, 4, 2]
  1413. }]
  1414. }
  1415. })
  1416. }
  1417. if ($("#canvas_line4").length) {
  1418. new Chart(document.getElementById("canvas_line4"), {
  1419. type: "line",
  1420. data: {
  1421. labels: ["January", "February", "March", "April", "May", "June", "July"],
  1422. datasets: [{
  1423. label: "My First dataset",
  1424. backgroundColor: "rgba(38, 185, 154, 0.31)",
  1425. borderColor: "rgba(38, 185, 154, 0.7)",
  1426. pointBorderColor: "rgba(38, 185, 154, 0.7)",
  1427. pointBackgroundColor: "rgba(38, 185, 154, 0.7)",
  1428. pointHoverBackgroundColor: "#fff",
  1429. pointHoverBorderColor: "rgba(220,220,220,1)",
  1430. pointBorderWidth: 1,
  1431. data: [31, 74, 6, 39, 20, 85, 7]
  1432. }, {
  1433. label: "My Second dataset",
  1434. backgroundColor: "rgba(3, 88, 106, 0.3)",
  1435. borderColor: "rgba(3, 88, 106, 0.70)",
  1436. pointBorderColor: "rgba(3, 88, 106, 0.70)",
  1437. pointBackgroundColor: "rgba(3, 88, 106, 0.70)",
  1438. pointHoverBackgroundColor: "#fff",
  1439. pointHoverBorderColor: "rgba(151,187,205,1)",
  1440. pointBorderWidth: 1,
  1441. data: [82, 23, 66, 9, 99, 4, 2]
  1442. }]
  1443. }
  1444. })
  1445. }
  1446. if ($("#lineChart").length) {
  1447. var f = document.getElementById("lineChart");
  1448. new Chart(f, {
  1449. type: "line",
  1450. data: {
  1451. labels: ["January", "February", "March", "April", "May", "June", "July"],
  1452. datasets: [{
  1453. label: "My First dataset",
  1454. backgroundColor: "rgba(38, 185, 154, 0.31)",
  1455. borderColor: "rgba(38, 185, 154, 0.7)",
  1456. pointBorderColor: "rgba(38, 185, 154, 0.7)",
  1457. pointBackgroundColor: "rgba(38, 185, 154, 0.7)",
  1458. pointHoverBackgroundColor: "#fff",
  1459. pointHoverBorderColor: "rgba(220,220,220,1)",
  1460. pointBorderWidth: 1,
  1461. data: [31, 74, 6, 39, 20, 85, 7]
  1462. }, {
  1463. label: "My Second dataset",
  1464. backgroundColor: "rgba(3, 88, 106, 0.3)",
  1465. borderColor: "rgba(3, 88, 106, 0.70)",
  1466. pointBorderColor: "rgba(3, 88, 106, 0.70)",
  1467. pointBackgroundColor: "rgba(3, 88, 106, 0.70)",
  1468. pointHoverBackgroundColor: "#fff",
  1469. pointHoverBorderColor: "rgba(151,187,205,1)",
  1470. pointBorderWidth: 1,
  1471. data: [82, 23, 66, 9, 99, 4, 2]
  1472. }]
  1473. }
  1474. })
  1475. }
  1476. if ($("#mybarChart").length) {
  1477. var f = document.getElementById("mybarChart");
  1478. new Chart(f, {
  1479. type: "bar",
  1480. data: {
  1481. labels: ["January", "February", "March", "April", "May", "June", "July"],
  1482. datasets: [{
  1483. label: "# of Votes",
  1484. backgroundColor: "#26B99A",
  1485. data: [51, 30, 40, 28, 92, 50, 45]
  1486. }, {
  1487. label: "# of Votes",
  1488. backgroundColor: "#03586A",
  1489. data: [41, 56, 25, 48, 72, 34, 12]
  1490. }]
  1491. },
  1492. options: {
  1493. scales: {
  1494. yAxes: [{
  1495. ticks: {
  1496. beginAtZero: !0
  1497. }
  1498. }]
  1499. }
  1500. }
  1501. })
  1502. }
  1503. if ($("#canvasDoughnut").length) {
  1504. var f = document.getElementById("canvasDoughnut"),
  1505. i = {
  1506. labels: ["Dark Grey", "Purple Color", "Gray Color", "Green Color", "Blue Color"],
  1507. datasets: [{
  1508. data: [120, 50, 140, 180, 100],
  1509. backgroundColor: ["#455C73", "#9B59B6", "#BDC3C7", "#26B99A", "#3498DB"],
  1510. hoverBackgroundColor: ["#34495E", "#B370CF", "#CFD4D8", "#36CAAB", "#49A9EA"]
  1511. }]
  1512. };
  1513. new Chart(f, {
  1514. type: "doughnut",
  1515. tooltipFillColor: "rgba(51, 51, 51, 0.55)",
  1516. data: i
  1517. })
  1518. }
  1519. if ($("#canvasRadar").length) {
  1520. var f = document.getElementById("canvasRadar"),
  1521. i = {
  1522. labels: ["Eating", "Drinking", "Sleeping", "Designing", "Coding", "Cycling", "Running"],
  1523. datasets: [{
  1524. label: "My First dataset",
  1525. backgroundColor: "rgba(3, 88, 106, 0.2)",
  1526. borderColor: "rgba(3, 88, 106, 0.80)",
  1527. pointBorderColor: "rgba(3, 88, 106, 0.80)",
  1528. pointBackgroundColor: "rgba(3, 88, 106, 0.80)",
  1529. pointHoverBackgroundColor: "#fff",
  1530. pointHoverBorderColor: "rgba(220,220,220,1)",
  1531. data: [65, 59, 90, 81, 56, 55, 40]
  1532. }, {
  1533. label: "My Second dataset",
  1534. backgroundColor: "rgba(38, 185, 154, 0.2)",
  1535. borderColor: "rgba(38, 185, 154, 0.85)",
  1536. pointColor: "rgba(38, 185, 154, 0.85)",
  1537. pointStrokeColor: "#fff",
  1538. pointHighlightFill: "#fff",
  1539. pointHighlightStroke: "rgba(151,187,205,1)",
  1540. data: [28, 48, 40, 19, 96, 27, 100]
  1541. }]
  1542. };
  1543. new Chart(f, {
  1544. type: "radar",
  1545. data: i
  1546. })
  1547. }
  1548. if ($("#pieChart").length) {
  1549. var f = document.getElementById("pieChart"),
  1550. i = {
  1551. datasets: [{
  1552. data: [120, 50, 140, 180, 100],
  1553. backgroundColor: ["#455C73", "#9B59B6", "#BDC3C7", "#26B99A", "#3498DB"],
  1554. label: "My dataset"
  1555. }],
  1556. labels: ["Dark Gray", "Purple", "Gray", "Green", "Blue"]
  1557. };
  1558. new Chart(f, {
  1559. data: i,
  1560. type: "pie",
  1561. otpions: {
  1562. legend: !1
  1563. }
  1564. })
  1565. }
  1566. if ($("#polarArea").length) {
  1567. var f = document.getElementById("polarArea"),
  1568. i = {
  1569. datasets: [{
  1570. data: [120, 50, 140, 180, 100],
  1571. backgroundColor: ["#455C73", "#9B59B6", "#BDC3C7", "#26B99A", "#3498DB"],
  1572. label: "My dataset"
  1573. }],
  1574. labels: ["Dark Gray", "Purple", "Gray", "Green", "Blue"]
  1575. };
  1576. new Chart(f, {
  1577. data: i,
  1578. type: "polarArea",
  1579. options: {
  1580. scale: {
  1581. ticks: {
  1582. beginAtZero: !0
  1583. }
  1584. }
  1585. }
  1586. })
  1587. }
  1588. }
  1589. }
  1590. function init_compose() {
  1591. "undefined" != typeof $.fn.slideToggle && (console.log("init_compose"), $("#compose, .compose-close").click(function() {
  1592. $(".compose").slideToggle()
  1593. }))
  1594. }
  1595. function init_calendar() {
  1596. if ("undefined" != typeof $.fn.fullCalendar) {
  1597. console.log("init_calendar");
  1598. var e, f, a = new Date,
  1599. b = a.getDate(),
  1600. c = a.getMonth(),
  1601. d = a.getFullYear(),
  1602. g = $("#calendar").fullCalendar({
  1603. header: {
  1604. left: "prev,next today",
  1605. center: "title",
  1606. right: "month,agendaWeek,agendaDay,listMonth"
  1607. },
  1608. selectable: !0,
  1609. selectHelper: !0,
  1610. select: function(a, b, c) {
  1611. $("#fc_create").click(), e = a, ended = b, $(".antosubmit").on("click", function() {
  1612. var a = $("#title").val();
  1613. return b && (ended = b), f = $("#event_type").val(), a && g.fullCalendar("renderEvent", {
  1614. title: a,
  1615. start: e,
  1616. end: b,
  1617. allDay: c
  1618. }, !0), $("#title").val(""), g.fullCalendar("unselect"), $(".antoclose").click(), !1
  1619. })
  1620. },
  1621. eventClick: function(a, b, c) {
  1622. $("#fc_edit").click(), $("#title2").val(a.title), f = $("#event_type").val(), $(".antosubmit2").on("click", function() {
  1623. a.title = $("#title2").val(), g.fullCalendar("updateEvent", a), $(".antoclose2").click()
  1624. }), g.fullCalendar("unselect")
  1625. },
  1626. editable: !0,
  1627. events: [{
  1628. title: "All Day Event",
  1629. start: new Date(d, c, 1)
  1630. }, {
  1631. title: "Long Event",
  1632. start: new Date(d, c, b - 5),
  1633. end: new Date(d, c, b - 2)
  1634. }, {
  1635. title: "Meeting",
  1636. start: new Date(d, c, b, 10, 30),
  1637. allDay: !1
  1638. }, {
  1639. title: "Lunch",
  1640. start: new Date(d, c, b + 14, 12, 0),
  1641. end: new Date(d, c, b, 14, 0),
  1642. allDay: !1
  1643. }, {
  1644. title: "Birthday Party",
  1645. start: new Date(d, c, b + 1, 19, 0),
  1646. end: new Date(d, c, b + 1, 22, 30),
  1647. allDay: !1
  1648. }, {
  1649. title: "Click for Google",
  1650. start: new Date(d, c, 28),
  1651. end: new Date(d, c, 29),
  1652. url: "http://google.com/"
  1653. }]
  1654. })
  1655. }
  1656. }
  1657. function init_DataTables() {
  1658. if (console.log("run_datatables"), "undefined" != typeof $.fn.DataTable) {
  1659. console.log("init_DataTables");
  1660. var a = function() {
  1661. $("#datatable-buttons").length && $("#datatable-buttons").DataTable({
  1662. dom: "Bfrtip",
  1663. buttons: [{
  1664. extend: "copy",
  1665. className: "btn-sm"
  1666. }, {
  1667. extend: "csv",
  1668. className: "btn-sm"
  1669. }, {
  1670. extend: "excel",
  1671. className: "btn-sm"
  1672. }, {
  1673. extend: "pdfHtml5",
  1674. className: "btn-sm"
  1675. }, {
  1676. extend: "print",
  1677. className: "btn-sm"
  1678. }],
  1679. responsive: !0
  1680. })
  1681. };
  1682. TableManageButtons = function() {
  1683. "use strict";
  1684. return {
  1685. init: function() {
  1686. a()
  1687. }
  1688. }
  1689. }(), $("#datatable").dataTable(), $("#datatable-keytable").DataTable({
  1690. keys: !0
  1691. }), $("#datatable-responsive").DataTable(), $("#datatable-scroller").DataTable({
  1692. ajax: "js/datatables/json/scroller-demo.json",
  1693. deferRender: !0,
  1694. scrollY: 380,
  1695. scrollCollapse: !0,
  1696. scroller: !0
  1697. }), $("#datatable-fixed-header").DataTable({
  1698. fixedHeader: !0
  1699. });
  1700. var b = $("#datatable-checkbox");
  1701. b.dataTable({
  1702. order: [
  1703. [1, "asc"]
  1704. ],
  1705. columnDefs: [{
  1706. orderable: !1,
  1707. targets: [0]
  1708. }]
  1709. }), b.on("draw.dt", function() {
  1710. $("checkbox input").iCheck({
  1711. checkboxClass: "icheckbox_flat-green"
  1712. })
  1713. }), TableManageButtons.init()
  1714. }
  1715. }
  1716. function init_morris_charts() {
  1717. "undefined" != typeof Morris && (console.log("init_morris_charts"), $("#graph_bar").length && Morris.Bar({
  1718. element: "graph_bar",
  1719. data: [{
  1720. device: "iPhone 4",
  1721. geekbench: 380
  1722. }, {
  1723. device: "iPhone 4S",
  1724. geekbench: 655
  1725. }, {
  1726. device: "iPhone 3GS",
  1727. geekbench: 275
  1728. }, {
  1729. device: "iPhone 5",
  1730. geekbench: 1571
  1731. }, {
  1732. device: "iPhone 5S",
  1733. geekbench: 655
  1734. }, {
  1735. device: "iPhone 6",
  1736. geekbench: 2154
  1737. }, {
  1738. device: "iPhone 6 Plus",
  1739. geekbench: 1144
  1740. }, {
  1741. device: "iPhone 6S",
  1742. geekbench: 2371
  1743. }, {
  1744. device: "iPhone 6S Plus",
  1745. geekbench: 1471
  1746. }, {
  1747. device: "Other",
  1748. geekbench: 1371
  1749. }],
  1750. xkey: "device",
  1751. ykeys: ["geekbench"],
  1752. labels: ["Geekbench"],
  1753. barRatio: .4,
  1754. barColors: ["#26B99A", "#34495E", "#ACADAC", "#3498DB"],
  1755. xLabelAngle: 35,
  1756. hideHover: "auto",
  1757. resize: !0
  1758. }), $("#graph_bar_group").length && Morris.Bar({
  1759. element: "graph_bar_group",
  1760. data: [{
  1761. period: "2016-10-01",
  1762. licensed: 807,
  1763. sorned: 660
  1764. }, {
  1765. period: "2016-09-30",
  1766. licensed: 1251,
  1767. sorned: 729
  1768. }, {
  1769. period: "2016-09-29",
  1770. licensed: 1769,
  1771. sorned: 1018
  1772. }, {
  1773. period: "2016-09-20",
  1774. licensed: 2246,
  1775. sorned: 1461
  1776. }, {
  1777. period: "2016-09-19",
  1778. licensed: 2657,
  1779. sorned: 1967
  1780. }, {
  1781. period: "2016-09-18",
  1782. licensed: 3148,
  1783. sorned: 2627
  1784. }, {
  1785. period: "2016-09-17",
  1786. licensed: 3471,
  1787. sorned: 3740
  1788. }, {
  1789. period: "2016-09-16",
  1790. licensed: 2871,
  1791. sorned: 2216
  1792. }, {
  1793. period: "2016-09-15",
  1794. licensed: 2401,
  1795. sorned: 1656
  1796. }, {
  1797. period: "2016-09-10",
  1798. licensed: 2115,
  1799. sorned: 1022
  1800. }],
  1801. xkey: "period",
  1802. barColors: ["#26B99A", "#34495E", "#ACADAC", "#3498DB"],
  1803. ykeys: ["licensed", "sorned"],
  1804. labels: ["Licensed", "SORN"],
  1805. hideHover: "auto",
  1806. xLabelAngle: 60,
  1807. resize: !0
  1808. }), $("#graphx").length && Morris.Bar({
  1809. element: "graphx",
  1810. data: [{
  1811. x: "2015 Q1",
  1812. y: 2,
  1813. z: 3,
  1814. a: 4
  1815. }, {
  1816. x: "2015 Q2",
  1817. y: 3,
  1818. z: 5,
  1819. a: 6
  1820. }, {
  1821. x: "2015 Q3",
  1822. y: 4,
  1823. z: 3,
  1824. a: 2
  1825. }, {
  1826. x: "2015 Q4",
  1827. y: 2,
  1828. z: 4,
  1829. a: 5
  1830. }],
  1831. xkey: "x",
  1832. ykeys: ["y", "z", "a"],
  1833. barColors: ["#26B99A", "#34495E", "#ACADAC", "#3498DB"],
  1834. hideHover: "auto",
  1835. labels: ["Y", "Z", "A"],
  1836. resize: !0
  1837. }).on("click", function(a, b) {
  1838. console.log(a, b)
  1839. }), $("#graph_area").length && Morris.Area({
  1840. element: "graph_area",
  1841. data: [{
  1842. period: "2014 Q1",
  1843. iphone: 2666,
  1844. ipad: null,
  1845. itouch: 2647
  1846. }, {
  1847. period: "2014 Q2",
  1848. iphone: 2778,
  1849. ipad: 2294,
  1850. itouch: 2441
  1851. }, {
  1852. period: "2014 Q3",
  1853. iphone: 4912,
  1854. ipad: 1969,
  1855. itouch: 2501
  1856. }, {
  1857. period: "2014 Q4",
  1858. iphone: 3767,
  1859. ipad: 3597,
  1860. itouch: 5689
  1861. }, {
  1862. period: "2015 Q1",
  1863. iphone: 6810,
  1864. ipad: 1914,
  1865. itouch: 2293
  1866. }, {
  1867. period: "2015 Q2",
  1868. iphone: 5670,
  1869. ipad: 4293,
  1870. itouch: 1881
  1871. }, {
  1872. period: "2015 Q3",
  1873. iphone: 4820,
  1874. ipad: 3795,
  1875. itouch: 1588
  1876. }, {
  1877. period: "2015 Q4",
  1878. iphone: 15073,
  1879. ipad: 5967,
  1880. itouch: 5175
  1881. }, {
  1882. period: "2016 Q1",
  1883. iphone: 10687,
  1884. ipad: 4460,
  1885. itouch: 2028
  1886. }, {
  1887. period: "2016 Q2",
  1888. iphone: 8432,
  1889. ipad: 5713,
  1890. itouch: 1791
  1891. }],
  1892. xkey: "period",
  1893. ykeys: ["iphone", "ipad", "itouch"],
  1894. lineColors: ["#26B99A", "#34495E", "#ACADAC", "#3498DB"],
  1895. labels: ["iPhone", "iPad", "iPod Touch"],
  1896. pointSize: 2,
  1897. hideHover: "auto",
  1898. resize: !0
  1899. }), $("#graph_donut").length && Morris.Donut({
  1900. element: "graph_donut",
  1901. data: [{
  1902. label: "Jam",
  1903. value: 25
  1904. }, {
  1905. label: "Frosted",
  1906. value: 40
  1907. }, {
  1908. label: "Custard",
  1909. value: 25
  1910. }, {
  1911. label: "Sugar",
  1912. value: 10
  1913. }],
  1914. colors: ["#26B99A", "#34495E", "#ACADAC", "#3498DB"],
  1915. formatter: function(a) {
  1916. return a + "%"
  1917. },
  1918. resize: !0
  1919. }), $("#graph_line").length && (Morris.Line({
  1920. element: "graph_line",
  1921. xkey: "year",
  1922. ykeys: ["value"],
  1923. labels: ["Value"],
  1924. hideHover: "auto",
  1925. lineColors: ["#26B99A", "#34495E", "#ACADAC", "#3498DB"],
  1926. data: [{
  1927. year: "2012",
  1928. value: 20
  1929. }, {
  1930. year: "2013",
  1931. value: 10
  1932. }, {
  1933. year: "2014",
  1934. value: 5
  1935. }, {
  1936. year: "2015",
  1937. value: 5
  1938. }, {
  1939. year: "2016",
  1940. value: 20
  1941. }],
  1942. resize: !0
  1943. }), $MENU_TOGGLE.on("click", function() {
  1944. $(window).resize()
  1945. })))
  1946. }
  1947. function init_echarts() {
  1948. if ("undefined" != typeof echarts) {
  1949. console.log("init_echarts");
  1950. var a = {
  1951. color: ["#26B99A", "#34495E", "#BDC3C7", "#3498DB", "#9B59B6", "#8abb6f", "#759c6a", "#bfd3b7"],
  1952. title: {
  1953. itemGap: 8,
  1954. textStyle: {
  1955. fontWeight: "normal",
  1956. color: "#408829"
  1957. }
  1958. },
  1959. dataRange: {
  1960. color: ["#1f610a", "#97b58d"]
  1961. },
  1962. toolbox: {
  1963. color: ["#408829", "#408829", "#408829", "#408829"]
  1964. },
  1965. tooltip: {
  1966. backgroundColor: "rgba(0,0,0,0.5)",
  1967. axisPointer: {
  1968. type: "line",
  1969. lineStyle: {
  1970. color: "#408829",
  1971. type: "dashed"
  1972. },
  1973. crossStyle: {
  1974. color: "#408829"
  1975. },
  1976. shadowStyle: {
  1977. color: "rgba(200,200,200,0.3)"
  1978. }
  1979. }
  1980. },
  1981. dataZoom: {
  1982. dataBackgroundColor: "#eee",
  1983. fillerColor: "rgba(64,136,41,0.2)",
  1984. handleColor: "#408829"
  1985. },
  1986. grid: {
  1987. borderWidth: 0
  1988. },
  1989. categoryAxis: {
  1990. axisLine: {
  1991. lineStyle: {
  1992. color: "#408829"
  1993. }
  1994. },
  1995. splitLine: {
  1996. lineStyle: {
  1997. color: ["#eee"]
  1998. }
  1999. }
  2000. },
  2001. valueAxis: {
  2002. axisLine: {
  2003. lineStyle: {
  2004. color: "#408829"
  2005. }
  2006. },
  2007. splitArea: {
  2008. show: !0,
  2009. areaStyle: {
  2010. color: ["rgba(250,250,250,0.1)", "rgba(200,200,200,0.1)"]
  2011. }
  2012. },
  2013. splitLine: {
  2014. lineStyle: {
  2015. color: ["#eee"]
  2016. }
  2017. }
  2018. },
  2019. timeline: {
  2020. lineStyle: {
  2021. color: "#408829"
  2022. },
  2023. controlStyle: {
  2024. normal: {
  2025. color: "#408829"
  2026. },
  2027. emphasis: {
  2028. color: "#408829"
  2029. }
  2030. }
  2031. },
  2032. k: {
  2033. itemStyle: {
  2034. normal: {
  2035. color: "#68a54a",
  2036. color0: "#a9cba2",
  2037. lineStyle: {
  2038. width: 1,
  2039. color: "#408829",
  2040. color0: "#86b379"
  2041. }
  2042. }
  2043. }
  2044. },
  2045. map: {
  2046. itemStyle: {
  2047. normal: {
  2048. areaStyle: {
  2049. color: "#ddd"
  2050. },
  2051. label: {
  2052. textStyle: {
  2053. color: "#c12e34"
  2054. }
  2055. }
  2056. },
  2057. emphasis: {
  2058. areaStyle: {
  2059. color: "#99d2dd"
  2060. },
  2061. label: {
  2062. textStyle: {
  2063. color: "#c12e34"
  2064. }
  2065. }
  2066. }
  2067. }
  2068. },
  2069. force: {
  2070. itemStyle: {
  2071. normal: {
  2072. linkStyle: {
  2073. strokeColor: "#408829"
  2074. }
  2075. }
  2076. }
  2077. },
  2078. chord: {
  2079. padding: 4,
  2080. itemStyle: {
  2081. normal: {
  2082. lineStyle: {
  2083. width: 1,
  2084. color: "rgba(128, 128, 128, 0.5)"
  2085. },
  2086. chordStyle: {
  2087. lineStyle: {
  2088. width: 1,
  2089. color: "rgba(128, 128, 128, 0.5)"
  2090. }
  2091. }
  2092. },
  2093. emphasis: {
  2094. lineStyle: {
  2095. width: 1,
  2096. color: "rgba(128, 128, 128, 0.5)"
  2097. },
  2098. chordStyle: {
  2099. lineStyle: {
  2100. width: 1,
  2101. color: "rgba(128, 128, 128, 0.5)"
  2102. }
  2103. }
  2104. }
  2105. }
  2106. },
  2107. gauge: {
  2108. startAngle: 225,
  2109. endAngle: -45,
  2110. axisLine: {
  2111. show: !0,
  2112. lineStyle: {
  2113. color: [
  2114. [.2, "#86b379"],
  2115. [.8, "#68a54a"],
  2116. [1, "#408829"]
  2117. ],
  2118. width: 8
  2119. }
  2120. },
  2121. axisTick: {
  2122. splitNumber: 10,
  2123. length: 12,
  2124. lineStyle: {
  2125. color: "auto"
  2126. }
  2127. },
  2128. axisLabel: {
  2129. textStyle: {
  2130. color: "auto"
  2131. }
  2132. },
  2133. splitLine: {
  2134. length: 18,
  2135. lineStyle: {
  2136. color: "auto"
  2137. }
  2138. },
  2139. pointer: {
  2140. length: "90%",
  2141. color: "auto"
  2142. },
  2143. title: {
  2144. textStyle: {
  2145. color: "#333"
  2146. }
  2147. },
  2148. detail: {
  2149. textStyle: {
  2150. color: "auto"
  2151. }
  2152. }
  2153. },
  2154. textStyle: {
  2155. fontFamily: "Arial, Verdana, sans-serif"
  2156. }
  2157. };
  2158. if ($("#mainb").length) {
  2159. var b = echarts.init(document.getElementById("mainb"), a);
  2160. b.setOption({
  2161. title: {
  2162. text: "Graph title",
  2163. subtext: "Graph Sub-text"
  2164. },
  2165. tooltip: {
  2166. trigger: "axis"
  2167. },
  2168. legend: {
  2169. data: ["sales", "purchases"]
  2170. },
  2171. toolbox: {
  2172. show: !1
  2173. },
  2174. calculable: !1,
  2175. xAxis: [{
  2176. type: "category",
  2177. data: ["1?", "2?", "3?", "4?", "5?", "6?", "7?", "8?", "9?", "10?", "11?", "12?"]
  2178. }],
  2179. yAxis: [{
  2180. type: "value"
  2181. }],
  2182. series: [{
  2183. name: "sales",
  2184. type: "bar",
  2185. data: [2, 4.9, 7, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20, 6.4, 3.3],
  2186. markPoint: {
  2187. data: [{
  2188. type: "max",
  2189. name: "???"
  2190. }, {
  2191. type: "min",
  2192. name: "???"
  2193. }]
  2194. },
  2195. markLine: {
  2196. data: [{
  2197. type: "average",
  2198. name: "???"
  2199. }]
  2200. }
  2201. }, {
  2202. name: "purchases",
  2203. type: "bar",
  2204. data: [2.6, 5.9, 9, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6, 2.3],
  2205. markPoint: {
  2206. data: [{
  2207. name: "sales",
  2208. value: 182.2,
  2209. xAxis: 7,
  2210. yAxis: 183
  2211. }, {
  2212. name: "purchases",
  2213. value: 2.3,
  2214. xAxis: 11,
  2215. yAxis: 3
  2216. }]
  2217. },
  2218. markLine: {
  2219. data: [{
  2220. type: "average",
  2221. name: "???"
  2222. }]
  2223. }
  2224. }]
  2225. })
  2226. }
  2227. if ($("#echart_sonar").length) {
  2228. var c = echarts.init(document.getElementById("echart_sonar"), a);
  2229. c.setOption({
  2230. title: {
  2231. text: "Budget vs spending",
  2232. subtext: "Subtitle"
  2233. },
  2234. tooltip: {
  2235. trigger: "item"
  2236. },
  2237. legend: {
  2238. orient: "vertical",
  2239. x: "right",
  2240. y: "bottom",
  2241. data: ["Allocated Budget", "Actual Spending"]
  2242. },
  2243. toolbox: {
  2244. show: !0,
  2245. feature: {
  2246. restore: {
  2247. show: !0,
  2248. title: "Restore"
  2249. },
  2250. saveAsImage: {
  2251. show: !0,
  2252. title: "Save Image"
  2253. }
  2254. }
  2255. },
  2256. polar: [{
  2257. indicator: [{
  2258. text: "Sales",
  2259. max: 6e3
  2260. }, {
  2261. text: "Administration",
  2262. max: 16e3
  2263. }, {
  2264. text: "Information Techology",
  2265. max: 3e4
  2266. }, {
  2267. text: "Customer Support",
  2268. max: 38e3
  2269. }, {
  2270. text: "Development",
  2271. max: 52e3
  2272. }, {
  2273. text: "Marketing",
  2274. max: 25e3
  2275. }]
  2276. }],
  2277. calculable: !0,
  2278. series: [{
  2279. name: "Budget vs spending",
  2280. type: "radar",
  2281. data: [{
  2282. value: [4300, 1e4, 28e3, 35e3, 5e4, 19e3],
  2283. name: "Allocated Budget"
  2284. }, {
  2285. value: [5e3, 14e3, 28e3, 31e3, 42e3, 21e3],
  2286. name: "Actual Spending"
  2287. }]
  2288. }]
  2289. })
  2290. }
  2291. if ($("#echart_pyramid").length) {
  2292. var d = echarts.init(document.getElementById("echart_pyramid"), a);
  2293. d.setOption({
  2294. title: {
  2295. text: "Echart Pyramid Graph",
  2296. subtext: "Subtitle"
  2297. },
  2298. tooltip: {
  2299. trigger: "item",
  2300. formatter: "{a} <br/>{b} : {c}%"
  2301. },
  2302. toolbox: {
  2303. show: !0,
  2304. feature: {
  2305. restore: {
  2306. show: !0,
  2307. title: "Restore"
  2308. },
  2309. saveAsImage: {
  2310. show: !0,
  2311. title: "Save Image"
  2312. }
  2313. }
  2314. },
  2315. legend: {
  2316. data: ["Something #1", "Something #2", "Something #3", "Something #4", "Something #5"],
  2317. orient: "vertical",
  2318. x: "left",
  2319. y: "bottom"
  2320. },
  2321. calculable: !0,
  2322. series: [{
  2323. name: "漏斗图",
  2324. type: "funnel",
  2325. width: "40%",
  2326. data: [{
  2327. value: 60,
  2328. name: "Something #1"
  2329. }, {
  2330. value: 40,
  2331. name: "Something #2"
  2332. }, {
  2333. value: 20,
  2334. name: "Something #3"
  2335. }, {
  2336. value: 80,
  2337. name: "Something #4"
  2338. }, {
  2339. value: 100,
  2340. name: "Something #5"
  2341. }]
  2342. }]
  2343. })
  2344. }
  2345. if ($("#echart_gauge").length) {
  2346. var e = echarts.init(document.getElementById("echart_gauge"), a);
  2347. e.setOption({
  2348. tooltip: {
  2349. formatter: "{a} <br/>{b} : {c}%"
  2350. },
  2351. toolbox: {
  2352. show: !0,
  2353. feature: {
  2354. restore: {
  2355. show: !0,
  2356. title: "Restore"
  2357. },
  2358. saveAsImage: {
  2359. show: !0,
  2360. title: "Save Image"
  2361. }
  2362. }
  2363. },
  2364. series: [{
  2365. name: "Performance",
  2366. type: "gauge",
  2367. center: ["50%", "50%"],
  2368. startAngle: 140,
  2369. endAngle: -140,
  2370. min: 0,
  2371. max: 100,
  2372. precision: 0,
  2373. splitNumber: 10,
  2374. axisLine: {
  2375. show: !0,
  2376. lineStyle: {
  2377. color: [
  2378. [.2, "lightgreen"],
  2379. [.4, "orange"],
  2380. [.8, "skyblue"],
  2381. [1, "#ff4500"]
  2382. ],
  2383. width: 30
  2384. }
  2385. },
  2386. axisTick: {
  2387. show: !0,
  2388. splitNumber: 5,
  2389. length: 8,
  2390. lineStyle: {
  2391. color: "#eee",
  2392. width: 1,
  2393. type: "solid"
  2394. }
  2395. },
  2396. axisLabel: {
  2397. show: !0,
  2398. formatter: function(a) {
  2399. switch (a + "") {
  2400. case "10":
  2401. return "a";
  2402. case "30":
  2403. return "b";
  2404. case "60":
  2405. return "c";
  2406. case "90":
  2407. return "d";
  2408. default:
  2409. return ""
  2410. }
  2411. },
  2412. textStyle: {
  2413. color: "#333"
  2414. }
  2415. },
  2416. splitLine: {
  2417. show: !0,
  2418. length: 30,
  2419. lineStyle: {
  2420. color: "#eee",
  2421. width: 2,
  2422. type: "solid"
  2423. }
  2424. },
  2425. pointer: {
  2426. length: "80%",
  2427. width: 8,
  2428. color: "auto"
  2429. },
  2430. title: {
  2431. show: !0,
  2432. offsetCenter: ["-65%", -10],
  2433. textStyle: {
  2434. color: "#333",
  2435. fontSize: 15
  2436. }
  2437. },
  2438. detail: {
  2439. show: !0,
  2440. backgroundColor: "rgba(0,0,0,0)",
  2441. borderWidth: 0,
  2442. borderColor: "#ccc",
  2443. width: 100,
  2444. height: 40,
  2445. offsetCenter: ["-60%", 10],
  2446. formatter: "{value}%",
  2447. textStyle: {
  2448. color: "auto",
  2449. fontSize: 30
  2450. }
  2451. },
  2452. data: [{
  2453. value: 50,
  2454. name: "Performance"
  2455. }]
  2456. }]
  2457. })
  2458. }
  2459. if ($("#echart_line").length) {
  2460. var f = echarts.init(document.getElementById("echart_line"), a);
  2461. f.setOption({
  2462. title: {
  2463. text: "Line Graph",
  2464. subtext: "Subtitle"
  2465. },
  2466. tooltip: {
  2467. trigger: "axis"
  2468. },
  2469. legend: {
  2470. x: 220,
  2471. y: 40,
  2472. data: ["Intent", "Pre-order", "Deal"]
  2473. },
  2474. toolbox: {
  2475. show: !0,
  2476. feature: {
  2477. magicType: {
  2478. show: !0,
  2479. title: {
  2480. line: "Line",
  2481. bar: "Bar",
  2482. stack: "Stack",
  2483. tiled: "Tiled"
  2484. },
  2485. type: ["line", "bar", "stack", "tiled"]
  2486. },
  2487. restore: {
  2488. show: !0,
  2489. title: "Restore"
  2490. },
  2491. saveAsImage: {
  2492. show: !0,
  2493. title: "Save Image"
  2494. }
  2495. }
  2496. },
  2497. calculable: !0,
  2498. xAxis: [{
  2499. type: "category",
  2500. boundaryGap: !1,
  2501. data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
  2502. }],
  2503. yAxis: [{
  2504. type: "value"
  2505. }],
  2506. series: [{
  2507. name: "Deal",
  2508. type: "line",
  2509. smooth: !0,
  2510. itemStyle: {
  2511. normal: {
  2512. areaStyle: {
  2513. type: "default"
  2514. }
  2515. }
  2516. },
  2517. data: [10, 12, 21, 54, 260, 830, 710]
  2518. }, {
  2519. name: "Pre-order",
  2520. type: "line",
  2521. smooth: !0,
  2522. itemStyle: {
  2523. normal: {
  2524. areaStyle: {
  2525. type: "default"
  2526. }
  2527. }
  2528. },
  2529. data: [30, 182, 434, 791, 390, 30, 10]
  2530. }, {
  2531. name: "Intent",
  2532. type: "line",
  2533. smooth: !0,
  2534. itemStyle: {
  2535. normal: {
  2536. areaStyle: {
  2537. type: "default"
  2538. }
  2539. }
  2540. },
  2541. data: [1320, 1132, 601, 234, 120, 90, 20]
  2542. }]
  2543. })
  2544. }
  2545. if ($("#echart_scatter").length) {
  2546. var g = echarts.init(document.getElementById("echart_scatter"), a);
  2547. g.setOption({
  2548. title: {
  2549. text: "Scatter Graph",
  2550. subtext: "Heinz 2003"
  2551. },
  2552. tooltip: {
  2553. trigger: "axis",
  2554. showDelay: 0,
  2555. axisPointer: {
  2556. type: "cross",
  2557. lineStyle: {
  2558. type: "dashed",
  2559. width: 1
  2560. }
  2561. }
  2562. },
  2563. legend: {
  2564. data: ["Data2", "Data1"]
  2565. },
  2566. toolbox: {
  2567. show: !0,
  2568. feature: {
  2569. saveAsImage: {
  2570. show: !0,
  2571. title: "Save Image"
  2572. }
  2573. }
  2574. },
  2575. xAxis: [{
  2576. type: "value",
  2577. scale: !0,
  2578. axisLabel: {
  2579. formatter: "{value} cm"
  2580. }
  2581. }],
  2582. yAxis: [{
  2583. type: "value",
  2584. scale: !0,
  2585. axisLabel: {
  2586. formatter: "{value} kg"
  2587. }
  2588. }],
  2589. series: [{
  2590. name: "Data1",
  2591. type: "scatter",
  2592. tooltip: {
  2593. trigger: "item",
  2594. formatter: function(a) {
  2595. return a.value.length > 1 ? a.seriesName + " :<br/>" + a.value[0] + "cm " + a.value[1] + "kg " : a.seriesName + " :<br/>" + a.name + " : " + a.value + "kg "
  2596. }
  2597. },
  2598. data: [
  2599. [161.2, 51.6],
  2600. [167.5, 59],
  2601. [159.5, 49.2],
  2602. [157, 63],
  2603. [155.8, 53.6],
  2604. [170, 59],
  2605. [159.1, 47.6],
  2606. [166, 69.8],
  2607. [176.2, 66.8],
  2608. [160.2, 75.2],
  2609. [172.5, 55.2],
  2610. [170.9, 54.2],
  2611. [172.9, 62.5],
  2612. [153.4, 42],
  2613. [160, 50],
  2614. [147.2, 49.8],
  2615. [168.2, 49.2],
  2616. [175, 73.2],
  2617. [157, 47.8],
  2618. [167.6, 68.8],
  2619. [159.5, 50.6],
  2620. [175, 82.5],
  2621. [166.8, 57.2],
  2622. [176.5, 87.8],
  2623. [170.2, 72.8],
  2624. [174, 54.5],
  2625. [173, 59.8],
  2626. [179.9, 67.3],
  2627. [170.5, 67.8],
  2628. [160, 47],
  2629. [154.4, 46.2],
  2630. [162, 55],
  2631. [176.5, 83],
  2632. [160, 54.4],
  2633. [152, 45.8],
  2634. [162.1, 53.6],
  2635. [170, 73.2],
  2636. [160.2, 52.1],
  2637. [161.3, 67.9],
  2638. [166.4, 56.6],
  2639. [168.9, 62.3],
  2640. [163.8, 58.5],
  2641. [167.6, 54.5],
  2642. [160, 50.2],
  2643. [161.3, 60.3],
  2644. [167.6, 58.3],
  2645. [165.1, 56.2],
  2646. [160, 50.2],
  2647. [170, 72.9],
  2648. [157.5, 59.8],
  2649. [167.6, 61],
  2650. [160.7, 69.1],
  2651. [163.2, 55.9],
  2652. [152.4, 46.5],
  2653. [157.5, 54.3],
  2654. [168.3, 54.8],
  2655. [180.3, 60.7],
  2656. [165.5, 60],
  2657. [165, 62],
  2658. [164.5, 60.3],
  2659. [156, 52.7],
  2660. [160, 74.3],
  2661. [163, 62],
  2662. [165.7, 73.1],
  2663. [161, 80],
  2664. [162, 54.7],
  2665. [166, 53.2],
  2666. [174, 75.7],
  2667. [172.7, 61.1],
  2668. [167.6, 55.7],
  2669. [151.1, 48.7],
  2670. [164.5, 52.3],
  2671. [163.5, 50],
  2672. [152, 59.3],
  2673. [169, 62.5],
  2674. [164, 55.7],
  2675. [161.2, 54.8],
  2676. [155, 45.9],
  2677. [170, 70.6],
  2678. [176.2, 67.2],
  2679. [170, 69.4],
  2680. [162.5, 58.2],
  2681. [170.3, 64.8],
  2682. [164.1, 71.6],
  2683. [169.5, 52.8],
  2684. [163.2, 59.8],
  2685. [154.5, 49],
  2686. [159.8, 50],
  2687. [173.2, 69.2],
  2688. [170, 55.9],
  2689. [161.4, 63.4],
  2690. [169, 58.2],
  2691. [166.2, 58.6],
  2692. [159.4, 45.7],
  2693. [162.5, 52.2],
  2694. [159, 48.6],
  2695. [162.8, 57.8],
  2696. [159, 55.6],
  2697. [179.8, 66.8],
  2698. [162.9, 59.4],
  2699. [161, 53.6],
  2700. [151.1, 73.2],
  2701. [168.2, 53.4],
  2702. [168.9, 69],
  2703. [173.2, 58.4],
  2704. [171.8, 56.2],
  2705. [178, 70.6],
  2706. [164.3, 59.8],
  2707. [163, 72],
  2708. [168.5, 65.2],
  2709. [166.8, 56.6],
  2710. [172.7, 105.2],
  2711. [163.5, 51.8],
  2712. [169.4, 63.4],
  2713. [167.8, 59],
  2714. [159.5, 47.6],
  2715. [167.6, 63],
  2716. [161.2, 55.2],
  2717. [160, 45],
  2718. [163.2, 54],
  2719. [162.2, 50.2],
  2720. [161.3, 60.2],
  2721. [149.5, 44.8],
  2722. [157.5, 58.8],
  2723. [163.2, 56.4],
  2724. [172.7, 62],
  2725. [155, 49.2],
  2726. [156.5, 67.2],
  2727. [164, 53.8],
  2728. [160.9, 54.4],
  2729. [162.8, 58],
  2730. [167, 59.8],
  2731. [160, 54.8],
  2732. [160, 43.2],
  2733. [168.9, 60.5],
  2734. [158.2, 46.4],
  2735. [156, 64.4],
  2736. [160, 48.8],
  2737. [167.1, 62.2],
  2738. [158, 55.5],
  2739. [167.6, 57.8],
  2740. [156, 54.6],
  2741. [162.1, 59.2],
  2742. [173.4, 52.7],
  2743. [159.8, 53.2],
  2744. [170.5, 64.5],
  2745. [159.2, 51.8],
  2746. [157.5, 56],
  2747. [161.3, 63.6],
  2748. [162.6, 63.2],
  2749. [160, 59.5],
  2750. [168.9, 56.8],
  2751. [165.1, 64.1],
  2752. [162.6, 50],
  2753. [165.1, 72.3],
  2754. [166.4, 55],
  2755. [160, 55.9],
  2756. [152.4, 60.4],
  2757. [170.2, 69.1],
  2758. [162.6, 84.5],
  2759. [170.2, 55.9],
  2760. [158.8, 55.5],
  2761. [172.7, 69.5],
  2762. [167.6, 76.4],
  2763. [162.6, 61.4],
  2764. [167.6, 65.9],
  2765. [156.2, 58.6],
  2766. [175.2, 66.8],
  2767. [172.1, 56.6],
  2768. [162.6, 58.6],
  2769. [160, 55.9],
  2770. [165.1, 59.1],
  2771. [182.9, 81.8],
  2772. [166.4, 70.7],
  2773. [165.1, 56.8],
  2774. [177.8, 60],
  2775. [165.1, 58.2],
  2776. [175.3, 72.7],
  2777. [154.9, 54.1],
  2778. [158.8, 49.1],
  2779. [172.7, 75.9],
  2780. [168.9, 55],
  2781. [161.3, 57.3],
  2782. [167.6, 55],
  2783. [165.1, 65.5],
  2784. [175.3, 65.5],
  2785. [157.5, 48.6],
  2786. [163.8, 58.6],
  2787. [167.6, 63.6],
  2788. [165.1, 55.2],
  2789. [165.1, 62.7],
  2790. [168.9, 56.6],
  2791. [162.6, 53.9],
  2792. [164.5, 63.2],
  2793. [176.5, 73.6],
  2794. [168.9, 62],
  2795. [175.3, 63.6],
  2796. [159.4, 53.2],
  2797. [160, 53.4],
  2798. [170.2, 55],
  2799. [162.6, 70.5],
  2800. [167.6, 54.5],
  2801. [162.6, 54.5],
  2802. [160.7, 55.9],
  2803. [160, 59],
  2804. [157.5, 63.6],
  2805. [162.6, 54.5],
  2806. [152.4, 47.3],
  2807. [170.2, 67.7],
  2808. [165.1, 80.9],
  2809. [172.7, 70.5],
  2810. [165.1, 60.9],
  2811. [170.2, 63.6],
  2812. [170.2, 54.5],
  2813. [170.2, 59.1],
  2814. [161.3, 70.5],
  2815. [167.6, 52.7],
  2816. [167.6, 62.7],
  2817. [165.1, 86.3],
  2818. [162.6, 66.4],
  2819. [152.4, 67.3],
  2820. [168.9, 63],
  2821. [170.2, 73.6],
  2822. [175.2, 62.3],
  2823. [175.2, 57.7],
  2824. [160, 55.4],
  2825. [165.1, 104.1],
  2826. [174, 55.5],
  2827. [170.2, 77.3],
  2828. [160, 80.5],
  2829. [167.6, 64.5],
  2830. [167.6, 72.3],
  2831. [167.6, 61.4],
  2832. [154.9, 58.2],
  2833. [162.6, 81.8],
  2834. [175.3, 63.6],
  2835. [171.4, 53.4],
  2836. [157.5, 54.5],
  2837. [165.1, 53.6],
  2838. [160, 60],
  2839. [174, 73.6],
  2840. [162.6, 61.4],
  2841. [174, 55.5],
  2842. [162.6, 63.6],
  2843. [161.3, 60.9],
  2844. [156.2, 60],
  2845. [149.9, 46.8],
  2846. [169.5, 57.3],
  2847. [160, 64.1],
  2848. [175.3, 63.6],
  2849. [169.5, 67.3],
  2850. [160, 75.5],
  2851. [172.7, 68.2],
  2852. [162.6, 61.4],
  2853. [157.5, 76.8],
  2854. [176.5, 71.8],
  2855. [164.4, 55.5],
  2856. [160.7, 48.6],
  2857. [174, 66.4],
  2858. [163.8, 67.3]
  2859. ],
  2860. markPoint: {
  2861. data: [{
  2862. type: "max",
  2863. name: "Max"
  2864. }, {
  2865. type: "min",
  2866. name: "Min"
  2867. }]
  2868. },
  2869. markLine: {
  2870. data: [{
  2871. type: "average",
  2872. name: "Mean"
  2873. }]
  2874. }
  2875. }, {
  2876. name: "Data2",
  2877. type: "scatter",
  2878. tooltip: {
  2879. trigger: "item",
  2880. formatter: function(a) {
  2881. return a.value.length > 1 ? a.seriesName + " :<br/>" + a.value[0] + "cm " + a.value[1] + "kg " : a.seriesName + " :<br/>" + a.name + " : " + a.value + "kg "
  2882. }
  2883. },
  2884. data: [
  2885. [174, 65.6],
  2886. [175.3, 71.8],
  2887. [193.5, 80.7],
  2888. [186.5, 72.6],
  2889. [187.2, 78.8],
  2890. [181.5, 74.8],
  2891. [184, 86.4],
  2892. [184.5, 78.4],
  2893. [175, 62],
  2894. [184, 81.6],
  2895. [180, 76.6],
  2896. [177.8, 83.6],
  2897. [192, 90],
  2898. [176, 74.6],
  2899. [174, 71],
  2900. [184, 79.6],
  2901. [192.7, 93.8],
  2902. [171.5, 70],
  2903. [173, 72.4],
  2904. [176, 85.9],
  2905. [176, 78.8],
  2906. [180.5, 77.8],
  2907. [172.7, 66.2],
  2908. [176, 86.4],
  2909. [173.5, 81.8],
  2910. [178, 89.6],
  2911. [180.3, 82.8],
  2912. [180.3, 76.4],
  2913. [164.5, 63.2],
  2914. [173, 60.9],
  2915. [183.5, 74.8],
  2916. [175.5, 70],
  2917. [188, 72.4],
  2918. [189.2, 84.1],
  2919. [172.8, 69.1],
  2920. [170, 59.5],
  2921. [182, 67.2],
  2922. [170, 61.3],
  2923. [177.8, 68.6],
  2924. [184.2, 80.1],
  2925. [186.7, 87.8],
  2926. [171.4, 84.7],
  2927. [172.7, 73.4],
  2928. [175.3, 72.1],
  2929. [180.3, 82.6],
  2930. [182.9, 88.7],
  2931. [188, 84.1],
  2932. [177.2, 94.1],
  2933. [172.1, 74.9],
  2934. [167, 59.1],
  2935. [169.5, 75.6],
  2936. [174, 86.2],
  2937. [172.7, 75.3],
  2938. [182.2, 87.1],
  2939. [164.1, 55.2],
  2940. [163, 57],
  2941. [171.5, 61.4],
  2942. [184.2, 76.8],
  2943. [174, 86.8],
  2944. [174, 72.2],
  2945. [177, 71.6],
  2946. [186, 84.8],
  2947. [167, 68.2],
  2948. [171.8, 66.1],
  2949. [182, 72],
  2950. [167, 64.6],
  2951. [177.8, 74.8],
  2952. [164.5, 70],
  2953. [192, 101.6],
  2954. [175.5, 63.2],
  2955. [171.2, 79.1],
  2956. [181.6, 78.9],
  2957. [167.4, 67.7],
  2958. [181.1, 66],
  2959. [177, 68.2],
  2960. [174.5, 63.9],
  2961. [177.5, 72],
  2962. [170.5, 56.8],
  2963. [182.4, 74.5],
  2964. [197.1, 90.9],
  2965. [180.1, 93],
  2966. [175.5, 80.9],
  2967. [180.6, 72.7],
  2968. [184.4, 68],
  2969. [175.5, 70.9],
  2970. [180.6, 72.5],
  2971. [177, 72.5],
  2972. [177.1, 83.4],
  2973. [181.6, 75.5],
  2974. [176.5, 73],
  2975. [175, 70.2],
  2976. [174, 73.4],
  2977. [165.1, 70.5],
  2978. [177, 68.9],
  2979. [192, 102.3],
  2980. [176.5, 68.4],
  2981. [169.4, 65.9],
  2982. [182.1, 75.7],
  2983. [179.8, 84.5],
  2984. [175.3, 87.7],
  2985. [184.9, 86.4],
  2986. [177.3, 73.2],
  2987. [167.4, 53.9],
  2988. [178.1, 72],
  2989. [168.9, 55.5],
  2990. [157.2, 58.4],
  2991. [180.3, 83.2],
  2992. [170.2, 72.7],
  2993. [177.8, 64.1],
  2994. [172.7, 72.3],
  2995. [165.1, 65],
  2996. [186.7, 86.4],
  2997. [165.1, 65],
  2998. [174, 88.6],
  2999. [175.3, 84.1],
  3000. [185.4, 66.8],
  3001. [177.8, 75.5],
  3002. [180.3, 93.2],
  3003. [180.3, 82.7],
  3004. [177.8, 58],
  3005. [177.8, 79.5],
  3006. [177.8, 78.6],
  3007. [177.8, 71.8],
  3008. [177.8, 116.4],
  3009. [163.8, 72.2],
  3010. [188, 83.6],
  3011. [198.1, 85.5],
  3012. [175.3, 90.9],
  3013. [166.4, 85.9],
  3014. [190.5, 89.1],
  3015. [166.4, 75],
  3016. [177.8, 77.7],
  3017. [179.7, 86.4],
  3018. [172.7, 90.9],
  3019. [190.5, 73.6],
  3020. [185.4, 76.4],
  3021. [168.9, 69.1],
  3022. [167.6, 84.5],
  3023. [175.3, 64.5],
  3024. [170.2, 69.1],
  3025. [190.5, 108.6],
  3026. [177.8, 86.4],
  3027. [190.5, 80.9],
  3028. [177.8, 87.7],
  3029. [184.2, 94.5],
  3030. [176.5, 80.2],
  3031. [177.8, 72],
  3032. [180.3, 71.4],
  3033. [171.4, 72.7],
  3034. [172.7, 84.1],
  3035. [172.7, 76.8],
  3036. [177.8, 63.6],
  3037. [177.8, 80.9],
  3038. [182.9, 80.9],
  3039. [170.2, 85.5],
  3040. [167.6, 68.6],
  3041. [175.3, 67.7],
  3042. [165.1, 66.4],
  3043. [185.4, 102.3],
  3044. [181.6, 70.5],
  3045. [172.7, 95.9],
  3046. [190.5, 84.1],
  3047. [179.1, 87.3],
  3048. [175.3, 71.8],
  3049. [170.2, 65.9],
  3050. [193, 95.9],
  3051. [171.4, 91.4],
  3052. [177.8, 81.8],
  3053. [177.8, 96.8],
  3054. [167.6, 69.1],
  3055. [167.6, 82.7],
  3056. [180.3, 75.5],
  3057. [182.9, 79.5],
  3058. [176.5, 73.6],
  3059. [186.7, 91.8],
  3060. [188, 84.1],
  3061. [188, 85.9],
  3062. [177.8, 81.8],
  3063. [174, 82.5],
  3064. [177.8, 80.5],
  3065. [171.4, 70],
  3066. [185.4, 81.8],
  3067. [185.4, 84.1],
  3068. [188, 90.5],
  3069. [188, 91.4],
  3070. [182.9, 89.1],
  3071. [176.5, 85],
  3072. [175.3, 69.1],
  3073. [175.3, 73.6],
  3074. [188, 80.5],
  3075. [188, 82.7],
  3076. [175.3, 86.4],
  3077. [170.5, 67.7],
  3078. [179.1, 92.7],
  3079. [177.8, 93.6],
  3080. [175.3, 70.9],
  3081. [182.9, 75],
  3082. [170.8, 93.2],
  3083. [188, 93.2],
  3084. [180.3, 77.7],
  3085. [177.8, 61.4],
  3086. [185.4, 94.1],
  3087. [168.9, 75],
  3088. [185.4, 83.6],
  3089. [180.3, 85.5],
  3090. [174, 73.9],
  3091. [167.6, 66.8],
  3092. [182.9, 87.3],
  3093. [160, 72.3],
  3094. [180.3, 88.6],
  3095. [167.6, 75.5],
  3096. [186.7, 101.4],
  3097. [175.3, 91.1],
  3098. [175.3, 67.3],
  3099. [175.9, 77.7],
  3100. [175.3, 81.8],
  3101. [179.1, 75.5],
  3102. [181.6, 84.5],
  3103. [177.8, 76.6],
  3104. [182.9, 85],
  3105. [177.8, 102.5],
  3106. [184.2, 77.3],
  3107. [179.1, 71.8],
  3108. [176.5, 87.9],
  3109. [188, 94.3],
  3110. [174, 70.9],
  3111. [167.6, 64.5],
  3112. [170.2, 77.3],
  3113. [167.6, 72.3],
  3114. [188, 87.3],
  3115. [174, 80],
  3116. [176.5, 82.3],
  3117. [180.3, 73.6],
  3118. [167.6, 74.1],
  3119. [188, 85.9],
  3120. [180.3, 73.2],
  3121. [167.6, 76.3],
  3122. [183, 65.9],
  3123. [183, 90.9],
  3124. [179.1, 89.1],
  3125. [170.2, 62.3],
  3126. [177.8, 82.7],
  3127. [179.1, 79.1],
  3128. [190.5, 98.2],
  3129. [177.8, 84.1],
  3130. [180.3, 83.2],
  3131. [180.3, 83.2]
  3132. ],
  3133. markPoint: {
  3134. data: [{
  3135. type: "max",
  3136. name: "Max"
  3137. }, {
  3138. type: "min",
  3139. name: "Min"
  3140. }]
  3141. },
  3142. markLine: {
  3143. data: [{
  3144. type: "average",
  3145. name: "Mean"
  3146. }]
  3147. }
  3148. }]
  3149. })
  3150. }
  3151. if ($("#echart_bar_horizontal").length) {
  3152. var b = echarts.init(document.getElementById("echart_bar_horizontal"), a);
  3153. b.setOption({
  3154. title: {
  3155. text: "Bar Graph",
  3156. subtext: "Graph subtitle"
  3157. },
  3158. tooltip: {
  3159. trigger: "axis"
  3160. },
  3161. legend: {
  3162. x: 100,
  3163. data: ["2015", "2016"]
  3164. },
  3165. toolbox: {
  3166. show: !0,
  3167. feature: {
  3168. saveAsImage: {
  3169. show: !0,
  3170. title: "Save Image"
  3171. }
  3172. }
  3173. },
  3174. calculable: !0,
  3175. xAxis: [{
  3176. type: "value",
  3177. boundaryGap: [0, .01]
  3178. }],
  3179. yAxis: [{
  3180. type: "category",
  3181. data: ["Jan", "Feb", "Mar", "Apr", "May", "Jun"]
  3182. }],
  3183. series: [{
  3184. name: "2015",
  3185. type: "bar",
  3186. data: [18203, 23489, 29034, 104970, 131744, 630230]
  3187. }, {
  3188. name: "2016",
  3189. type: "bar",
  3190. data: [19325, 23438, 31e3, 121594, 134141, 681807]
  3191. }]
  3192. })
  3193. }
  3194. if ($("#echart_pie2").length) {
  3195. var h = echarts.init(document.getElementById("echart_pie2"), a);
  3196. h.setOption({
  3197. tooltip: {
  3198. trigger: "item",
  3199. formatter: "{a} <br/>{b} : {c} ({d}%)"
  3200. },
  3201. legend: {
  3202. x: "center",
  3203. y: "bottom",
  3204. data: ["rose1", "rose2", "rose3", "rose4", "rose5", "rose6"]
  3205. },
  3206. toolbox: {
  3207. show: !0,
  3208. feature: {
  3209. magicType: {
  3210. show: !0,
  3211. type: ["pie", "funnel"]
  3212. },
  3213. restore: {
  3214. show: !0,
  3215. title: "Restore"
  3216. },
  3217. saveAsImage: {
  3218. show: !0,
  3219. title: "Save Image"
  3220. }
  3221. }
  3222. },
  3223. calculable: !0,
  3224. series: [{
  3225. name: "Area Mode",
  3226. type: "pie",
  3227. radius: [25, 90],
  3228. center: ["50%", 170],
  3229. roseType: "area",
  3230. x: "50%",
  3231. max: 40,
  3232. sort: "ascending",
  3233. data: [{
  3234. value: 10,
  3235. name: "rose1"
  3236. }, {
  3237. value: 5,
  3238. name: "rose2"
  3239. }, {
  3240. value: 15,
  3241. name: "rose3"
  3242. }, {
  3243. value: 25,
  3244. name: "rose4"
  3245. }, {
  3246. value: 20,
  3247. name: "rose5"
  3248. }, {
  3249. value: 35,
  3250. name: "rose6"
  3251. }]
  3252. }]
  3253. })
  3254. }
  3255. if ($("#echart_donut").length) {
  3256. var i = echarts.init(document.getElementById("echart_donut"), a);
  3257. i.setOption({
  3258. tooltip: {
  3259. trigger: "item",
  3260. formatter: "{a} <br/>{b} : {c} ({d}%)"
  3261. },
  3262. calculable: !0,
  3263. legend: {
  3264. x: "center",
  3265. y: "bottom",
  3266. data: ["Direct Access", "E-mail Marketing", "Union Ad", "Video Ads", "Search Engine"]
  3267. },
  3268. toolbox: {
  3269. show: !0,
  3270. feature: {
  3271. magicType: {
  3272. show: !0,
  3273. type: ["pie", "funnel"],
  3274. option: {
  3275. funnel: {
  3276. x: "25%",
  3277. width: "50%",
  3278. funnelAlign: "center",
  3279. max: 1548
  3280. }
  3281. }
  3282. },
  3283. restore: {
  3284. show: !0,
  3285. title: "Restore"
  3286. },
  3287. saveAsImage: {
  3288. show: !0,
  3289. title: "Save Image"
  3290. }
  3291. }
  3292. },
  3293. series: [{
  3294. name: "Access to the resource",
  3295. type: "pie",
  3296. radius: ["35%", "55%"],
  3297. itemStyle: {
  3298. normal: {
  3299. label: {
  3300. show: !0
  3301. },
  3302. labelLine: {
  3303. show: !0
  3304. }
  3305. },
  3306. emphasis: {
  3307. label: {
  3308. show: !0,
  3309. position: "center",
  3310. textStyle: {
  3311. fontSize: "14",
  3312. fontWeight: "normal"
  3313. }
  3314. }
  3315. }
  3316. },
  3317. data: [{
  3318. value: 335,
  3319. name: "Direct Access"
  3320. }, {
  3321. value: 310,
  3322. name: "E-mail Marketing"
  3323. }, {
  3324. value: 234,
  3325. name: "Union Ad"
  3326. }, {
  3327. value: 135,
  3328. name: "Video Ads"
  3329. }, {
  3330. value: 1548,
  3331. name: "Search Engine"
  3332. }]
  3333. }]
  3334. })
  3335. }
  3336. if ($("#echart_pie").length) {
  3337. var j = echarts.init(document.getElementById("echart_pie"), a);
  3338. j.setOption({
  3339. tooltip: {
  3340. trigger: "item",
  3341. formatter: "{a} <br/>{b} : {c} ({d}%)"
  3342. },
  3343. legend: {
  3344. x: "center",
  3345. y: "bottom",
  3346. data: ["Direct Access", "E-mail Marketing", "Union Ad", "Video Ads", "Search Engine"]
  3347. },
  3348. toolbox: {
  3349. show: !0,
  3350. feature: {
  3351. magicType: {
  3352. show: !0,
  3353. type: ["pie", "funnel"],
  3354. option: {
  3355. funnel: {
  3356. x: "25%",
  3357. width: "50%",
  3358. funnelAlign: "left",
  3359. max: 1548
  3360. }
  3361. }
  3362. },
  3363. restore: {
  3364. show: !0,
  3365. title: "Restore"
  3366. },
  3367. saveAsImage: {
  3368. show: !0,
  3369. title: "Save Image"
  3370. }
  3371. }
  3372. },
  3373. calculable: !0,
  3374. series: [{
  3375. name: "访问来源",
  3376. type: "pie",
  3377. radius: "55%",
  3378. center: ["50%", "48%"],
  3379. data: [{
  3380. value: 335,
  3381. name: "Direct Access"
  3382. }, {
  3383. value: 310,
  3384. name: "E-mail Marketing"
  3385. }, {
  3386. value: 234,
  3387. name: "Union Ad"
  3388. }, {
  3389. value: 135,
  3390. name: "Video Ads"
  3391. }, {
  3392. value: 1548,
  3393. name: "Search Engine"
  3394. }]
  3395. }]
  3396. });
  3397. var k = {
  3398. normal: {
  3399. label: {
  3400. show: !1
  3401. },
  3402. labelLine: {
  3403. show: !1
  3404. }
  3405. }
  3406. },
  3407. l = {
  3408. normal: {
  3409. color: "rgba(0,0,0,0)",
  3410. label: {
  3411. show: !1
  3412. },
  3413. labelLine: {
  3414. show: !1
  3415. }
  3416. },
  3417. emphasis: {
  3418. color: "rgba(0,0,0,0)"
  3419. }
  3420. }
  3421. }
  3422. if ($("#echart_mini_pie").length) {
  3423. var m = echarts.init(document.getElementById("echart_mini_pie"), a);
  3424. m.setOption({
  3425. title: {
  3426. text: "Chart #2",
  3427. subtext: "From ExcelHome",
  3428. sublink: "http://e.weibo.com/1341556070/AhQXtjbqh",
  3429. x: "center",
  3430. y: "center",
  3431. itemGap: 20,
  3432. textStyle: {
  3433. color: "rgba(30,144,255,0.8)",
  3434. fontFamily: "微软雅黑",
  3435. fontSize: 35,
  3436. fontWeight: "bolder"
  3437. }
  3438. },
  3439. tooltip: {
  3440. show: !0,
  3441. formatter: "{a} <br/>{b} : {c} ({d}%)"
  3442. },
  3443. legend: {
  3444. orient: "vertical",
  3445. x: 170,
  3446. y: 45,
  3447. itemGap: 12,
  3448. data: ["68%Something #1", "29%Something #2", "3%Something #3"]
  3449. },
  3450. toolbox: {
  3451. show: !0,
  3452. feature: {
  3453. mark: {
  3454. show: !0
  3455. },
  3456. dataView: {
  3457. show: !0,
  3458. title: "Text View",
  3459. lang: ["Text View", "Close", "Refresh"],
  3460. readOnly: !1
  3461. },
  3462. restore: {
  3463. show: !0,
  3464. title: "Restore"
  3465. },
  3466. saveAsImage: {
  3467. show: !0,
  3468. title: "Save Image"
  3469. }
  3470. }
  3471. },
  3472. series: [{
  3473. name: "1",
  3474. type: "pie",
  3475. clockWise: !1,
  3476. radius: [105, 130],
  3477. itemStyle: k,
  3478. data: [{
  3479. value: 68,
  3480. name: "68%Something #1"
  3481. }, {
  3482. value: 32,
  3483. name: "invisible",
  3484. itemStyle: l
  3485. }]
  3486. }, {
  3487. name: "2",
  3488. type: "pie",
  3489. clockWise: !1,
  3490. radius: [80, 105],
  3491. itemStyle: k,
  3492. data: [{
  3493. value: 29,
  3494. name: "29%Something #2"
  3495. }, {
  3496. value: 71,
  3497. name: "invisible",
  3498. itemStyle: l
  3499. }]
  3500. }, {
  3501. name: "3",
  3502. type: "pie",
  3503. clockWise: !1,
  3504. radius: [25, 80],
  3505. itemStyle: k,
  3506. data: [{
  3507. value: 3,
  3508. name: "3%Something #3"
  3509. }, {
  3510. value: 97,
  3511. name: "invisible",
  3512. itemStyle: l
  3513. }]
  3514. }]
  3515. })
  3516. }
  3517. if ($("#echart_world_map").length) {
  3518. var n = echarts.init(document.getElementById("echart_world_map"), a);
  3519. n.setOption({
  3520. title: {
  3521. text: "World Population (2010)",
  3522. subtext: "from United Nations, Total population, both sexes combined, as of 1 July (thousands)",
  3523. x: "center",
  3524. y: "top"
  3525. },
  3526. tooltip: {
  3527. trigger: "item",
  3528. formatter: function(a) {
  3529. var b = (a.value + "").split(".");
  3530. return b = b[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g, "$1,") + "." + b[1], a.seriesName + "<br/>" + a.name + " : " + b
  3531. }
  3532. },
  3533. toolbox: {
  3534. show: !0,
  3535. orient: "vertical",
  3536. x: "right",
  3537. y: "center",
  3538. feature: {
  3539. mark: {
  3540. show: !0
  3541. },
  3542. dataView: {
  3543. show: !0,
  3544. title: "Text View",
  3545. lang: ["Text View", "Close", "Refresh"],
  3546. readOnly: !1
  3547. },
  3548. restore: {
  3549. show: !0,
  3550. title: "Restore"
  3551. },
  3552. saveAsImage: {
  3553. show: !0,
  3554. title: "Save Image"
  3555. }
  3556. }
  3557. },
  3558. dataRange: {
  3559. min: 0,
  3560. max: 1e6,
  3561. text: ["High", "Low"],
  3562. realtime: !1,
  3563. calculable: !0,
  3564. color: ["#087E65", "#26B99A", "#CBEAE3"]
  3565. },
  3566. series: [{
  3567. name: "World Population (2010)",
  3568. type: "map",
  3569. mapType: "world",
  3570. roam: !1,
  3571. mapLocation: {
  3572. y: 60
  3573. },
  3574. itemStyle: {
  3575. emphasis: {
  3576. label: {
  3577. show: !0
  3578. }
  3579. }
  3580. },
  3581. data: [{
  3582. name: "Afghanistan",
  3583. value: 28397.812
  3584. }, {
  3585. name: "Angola",
  3586. value: 19549.124
  3587. }, {
  3588. name: "Albania",
  3589. value: 3150.143
  3590. }, {
  3591. name: "United Arab Emirates",
  3592. value: 8441.537
  3593. }, {
  3594. name: "Argentina",
  3595. value: 40374.224
  3596. }, {
  3597. name: "Armenia",
  3598. value: 2963.496
  3599. }, {
  3600. name: "French Southern and Antarctic Lands",
  3601. value: 268.065
  3602. }, {
  3603. name: "Australia",
  3604. value: 22404.488
  3605. }, {
  3606. name: "Austria",
  3607. value: 8401.924
  3608. }, {
  3609. name: "Azerbaijan",
  3610. value: 9094.718
  3611. }, {
  3612. name: "Burundi",
  3613. value: 9232.753
  3614. }, {
  3615. name: "Belgium",
  3616. value: 10941.288
  3617. }, {
  3618. name: "Benin",
  3619. value: 9509.798
  3620. }, {
  3621. name: "Burkina Faso",
  3622. value: 15540.284
  3623. }, {
  3624. name: "Bangladesh",
  3625. value: 151125.475
  3626. }, {
  3627. name: "Bulgaria",
  3628. value: 7389.175
  3629. }, {
  3630. name: "The Bahamas",
  3631. value: 66402.316
  3632. }, {
  3633. name: "Bosnia and Herzegovina",
  3634. value: 3845.929
  3635. }, {
  3636. name: "Belarus",
  3637. value: 9491.07
  3638. }, {
  3639. name: "Belize",
  3640. value: 308.595
  3641. }, {
  3642. name: "Bermuda",
  3643. value: 64.951
  3644. }, {
  3645. name: "Bolivia",
  3646. value: 716.939
  3647. }, {
  3648. name: "Brazil",
  3649. value: 195210.154
  3650. }, {
  3651. name: "Brunei",
  3652. value: 27.223
  3653. }, {
  3654. name: "Bhutan",
  3655. value: 716.939
  3656. }, {
  3657. name: "Botswana",
  3658. value: 1969.341
  3659. }, {
  3660. name: "Central African Republic",
  3661. value: 4349.921
  3662. }, {
  3663. name: "Canada",
  3664. value: 34126.24
  3665. }, {
  3666. name: "Switzerland",
  3667. value: 7830.534
  3668. }, {
  3669. name: "Chile",
  3670. value: 17150.76
  3671. }, {
  3672. name: "China",
  3673. value: 1359821.465
  3674. }, {
  3675. name: "Ivory Coast",
  3676. value: 60508.978
  3677. }, {
  3678. name: "Cameroon",
  3679. value: 20624.343
  3680. }, {
  3681. name: "Democratic Republic of the Congo",
  3682. value: 62191.161
  3683. }, {
  3684. name: "Republic of the Congo",
  3685. value: 3573.024
  3686. }, {
  3687. name: "Colombia",
  3688. value: 46444.798
  3689. }, {
  3690. name: "Costa Rica",
  3691. value: 4669.685
  3692. }, {
  3693. name: "Cuba",
  3694. value: 11281.768
  3695. }, {
  3696. name: "Northern Cyprus",
  3697. value: 1.468
  3698. }, {
  3699. name: "Cyprus",
  3700. value: 1103.685
  3701. }, {
  3702. name: "Czech Republic",
  3703. value: 10553.701
  3704. }, {
  3705. name: "Germany",
  3706. value: 83017.404
  3707. }, {
  3708. name: "Djibouti",
  3709. value: 834.036
  3710. }, {
  3711. name: "Denmark",
  3712. value: 5550.959
  3713. }, {
  3714. name: "Dominican Republic",
  3715. value: 10016.797
  3716. }, {
  3717. name: "Algeria",
  3718. value: 37062.82
  3719. }, {
  3720. name: "Ecuador",
  3721. value: 15001.072
  3722. }, {
  3723. name: "Egypt",
  3724. value: 78075.705
  3725. }, {
  3726. name: "Eritrea",
  3727. value: 5741.159
  3728. }, {
  3729. name: "Spain",
  3730. value: 46182.038
  3731. }, {
  3732. name: "Estonia",
  3733. value: 1298.533
  3734. }, {
  3735. name: "Ethiopia",
  3736. value: 87095.281
  3737. }, {
  3738. name: "Finland",
  3739. value: 5367.693
  3740. }, {
  3741. name: "Fiji",
  3742. value: 860.559
  3743. }, {
  3744. name: "Falkland Islands",
  3745. value: 49.581
  3746. }, {
  3747. name: "France",
  3748. value: 63230.866
  3749. }, {
  3750. name: "Gabon",
  3751. value: 1556.222
  3752. }, {
  3753. name: "United Kingdom",
  3754. value: 62066.35
  3755. }, {
  3756. name: "Georgia",
  3757. value: 4388.674
  3758. }, {
  3759. name: "Ghana",
  3760. value: 24262.901
  3761. }, {
  3762. name: "Guinea",
  3763. value: 10876.033
  3764. }, {
  3765. name: "Gambia",
  3766. value: 1680.64
  3767. }, {
  3768. name: "Guinea Bissau",
  3769. value: 10876.033
  3770. }, {
  3771. name: "Equatorial Guinea",
  3772. value: 696.167
  3773. }, {
  3774. name: "Greece",
  3775. value: 11109.999
  3776. }, {
  3777. name: "Greenland",
  3778. value: 56.546
  3779. }, {
  3780. name: "Guatemala",
  3781. value: 14341.576
  3782. }, {
  3783. name: "French Guiana",
  3784. value: 231.169
  3785. }, {
  3786. name: "Guyana",
  3787. value: 786.126
  3788. }, {
  3789. name: "Honduras",
  3790. value: 7621.204
  3791. }, {
  3792. name: "Croatia",
  3793. value: 4338.027
  3794. }, {
  3795. name: "Haiti",
  3796. value: 9896.4
  3797. }, {
  3798. name: "Hungary",
  3799. value: 10014.633
  3800. }, {
  3801. name: "Indonesia",
  3802. value: 240676.485
  3803. }, {
  3804. name: "India",
  3805. value: 1205624.648
  3806. }, {
  3807. name: "Ireland",
  3808. value: 4467.561
  3809. }, {
  3810. name: "Iran",
  3811. value: 240676.485
  3812. }, {
  3813. name: "Iraq",
  3814. value: 30962.38
  3815. }, {
  3816. name: "Iceland",
  3817. value: 318.042
  3818. }, {
  3819. name: "Israel",
  3820. value: 7420.368
  3821. }, {
  3822. name: "Italy",
  3823. value: 60508.978
  3824. }, {
  3825. name: "Jamaica",
  3826. value: 2741.485
  3827. }, {
  3828. name: "Jordan",
  3829. value: 6454.554
  3830. }, {
  3831. name: "Japan",
  3832. value: 127352.833
  3833. }, {
  3834. name: "Kazakhstan",
  3835. value: 15921.127
  3836. }, {
  3837. name: "Kenya",
  3838. value: 40909.194
  3839. }, {
  3840. name: "Kyrgyzstan",
  3841. value: 5334.223
  3842. }, {
  3843. name: "Cambodia",
  3844. value: 14364.931
  3845. }, {
  3846. name: "South Korea",
  3847. value: 51452.352
  3848. }, {
  3849. name: "Kosovo",
  3850. value: 97.743
  3851. }, {
  3852. name: "Kuwait",
  3853. value: 2991.58
  3854. }, {
  3855. name: "Laos",
  3856. value: 6395.713
  3857. }, {
  3858. name: "Lebanon",
  3859. value: 4341.092
  3860. }, {
  3861. name: "Liberia",
  3862. value: 3957.99
  3863. }, {
  3864. name: "Libya",
  3865. value: 6040.612
  3866. }, {
  3867. name: "Sri Lanka",
  3868. value: 20758.779
  3869. }, {
  3870. name: "Lesotho",
  3871. value: 2008.921
  3872. }, {
  3873. name: "Lithuania",
  3874. value: 3068.457
  3875. }, {
  3876. name: "Luxembourg",
  3877. value: 507.885
  3878. }, {
  3879. name: "Latvia",
  3880. value: 2090.519
  3881. }, {
  3882. name: "Morocco",
  3883. value: 31642.36
  3884. }, {
  3885. name: "Moldova",
  3886. value: 103.619
  3887. }, {
  3888. name: "Madagascar",
  3889. value: 21079.532
  3890. }, {
  3891. name: "Mexico",
  3892. value: 117886.404
  3893. }, {
  3894. name: "Macedonia",
  3895. value: 507.885
  3896. }, {
  3897. name: "Mali",
  3898. value: 13985.961
  3899. }, {
  3900. name: "Myanmar",
  3901. value: 51931.231
  3902. }, {
  3903. name: "Montenegro",
  3904. value: 620.078
  3905. }, {
  3906. name: "Mongolia",
  3907. value: 2712.738
  3908. }, {
  3909. name: "Mozambique",
  3910. value: 23967.265
  3911. }, {
  3912. name: "Mauritania",
  3913. value: 3609.42
  3914. }, {
  3915. name: "Malawi",
  3916. value: 15013.694
  3917. }, {
  3918. name: "Malaysia",
  3919. value: 28275.835
  3920. }, {
  3921. name: "Namibia",
  3922. value: 2178.967
  3923. }, {
  3924. name: "New Caledonia",
  3925. value: 246.379
  3926. }, {
  3927. name: "Niger",
  3928. value: 15893.746
  3929. }, {
  3930. name: "Nigeria",
  3931. value: 159707.78
  3932. }, {
  3933. name: "Nicaragua",
  3934. value: 5822.209
  3935. }, {
  3936. name: "Netherlands",
  3937. value: 16615.243
  3938. }, {
  3939. name: "Norway",
  3940. value: 4891.251
  3941. }, {
  3942. name: "Nepal",
  3943. value: 26846.016
  3944. }, {
  3945. name: "New Zealand",
  3946. value: 4368.136
  3947. }, {
  3948. name: "Oman",
  3949. value: 2802.768
  3950. }, {
  3951. name: "Pakistan",
  3952. value: 173149.306
  3953. }, {
  3954. name: "Panama",
  3955. value: 3678.128
  3956. }, {
  3957. name: "Peru",
  3958. value: 29262.83
  3959. }, {
  3960. name: "Philippines",
  3961. value: 93444.322
  3962. }, {
  3963. name: "Papua New Guinea",
  3964. value: 6858.945
  3965. }, {
  3966. name: "Poland",
  3967. value: 38198.754
  3968. }, {
  3969. name: "Puerto Rico",
  3970. value: 3709.671
  3971. }, {
  3972. name: "North Korea",
  3973. value: 1.468
  3974. }, {
  3975. name: "Portugal",
  3976. value: 10589.792
  3977. }, {
  3978. name: "Paraguay",
  3979. value: 6459.721
  3980. }, {
  3981. name: "Qatar",
  3982. value: 1749.713
  3983. }, {
  3984. name: "Romania",
  3985. value: 21861.476
  3986. }, {
  3987. name: "Russia",
  3988. value: 21861.476
  3989. }, {
  3990. name: "Rwanda",
  3991. value: 10836.732
  3992. }, {
  3993. name: "Western Sahara",
  3994. value: 514.648
  3995. }, {
  3996. name: "Saudi Arabia",
  3997. value: 27258.387
  3998. }, {
  3999. name: "Sudan",
  4000. value: 35652.002
  4001. }, {
  4002. name: "South Sudan",
  4003. value: 9940.929
  4004. }, {
  4005. name: "Senegal",
  4006. value: 12950.564
  4007. }, {
  4008. name: "Solomon Islands",
  4009. value: 526.447
  4010. }, {
  4011. name: "Sierra Leone",
  4012. value: 5751.976
  4013. }, {
  4014. name: "El Salvador",
  4015. value: 6218.195
  4016. }, {
  4017. name: "Somaliland",
  4018. value: 9636.173
  4019. }, {
  4020. name: "Somalia",
  4021. value: 9636.173
  4022. }, {
  4023. name: "Republic of Serbia",
  4024. value: 3573.024
  4025. }, {
  4026. name: "Suriname",
  4027. value: 524.96
  4028. }, {
  4029. name: "Slovakia",
  4030. value: 5433.437
  4031. }, {
  4032. name: "Slovenia",
  4033. value: 2054.232
  4034. }, {
  4035. name: "Sweden",
  4036. value: 9382.297
  4037. }, {
  4038. name: "Swaziland",
  4039. value: 1193.148
  4040. }, {
  4041. name: "Syria",
  4042. value: 7830.534
  4043. }, {
  4044. name: "Chad",
  4045. value: 11720.781
  4046. }, {
  4047. name: "Togo",
  4048. value: 6306.014
  4049. }, {
  4050. name: "Thailand",
  4051. value: 66402.316
  4052. }, {
  4053. name: "Tajikistan",
  4054. value: 7627.326
  4055. }, {
  4056. name: "Turkmenistan",
  4057. value: 5041.995
  4058. }, {
  4059. name: "East Timor",
  4060. value: 10016.797
  4061. }, {
  4062. name: "Trinidad and Tobago",
  4063. value: 1328.095
  4064. }, {
  4065. name: "Tunisia",
  4066. value: 10631.83
  4067. }, {
  4068. name: "Turkey",
  4069. value: 72137.546
  4070. }, {
  4071. name: "United Republic of Tanzania",
  4072. value: 44973.33
  4073. }, {
  4074. name: "Uganda",
  4075. value: 33987.213
  4076. }, {
  4077. name: "Ukraine",
  4078. value: 46050.22
  4079. }, {
  4080. name: "Uruguay",
  4081. value: 3371.982
  4082. }, {
  4083. name: "United States of America",
  4084. value: 312247.116
  4085. }, {
  4086. name: "Uzbekistan",
  4087. value: 27769.27
  4088. }, {
  4089. name: "Venezuela",
  4090. value: 236.299
  4091. }, {
  4092. name: "Vietnam",
  4093. value: 89047.397
  4094. }, {
  4095. name: "Vanuatu",
  4096. value: 236.299
  4097. }, {
  4098. name: "West Bank",
  4099. value: 13.565
  4100. }, {
  4101. name: "Yemen",
  4102. value: 22763.008
  4103. }, {
  4104. name: "South Africa",
  4105. value: 51452.352
  4106. }, {
  4107. name: "Zambia",
  4108. value: 13216.985
  4109. }, {
  4110. name: "Zimbabwe",
  4111. value: 13076.978
  4112. }]
  4113. }]
  4114. })
  4115. }
  4116. }
  4117. }! function(a, b) {
  4118. var c = function(a, b, c) {
  4119. var d;
  4120. return function() {
  4121. function h() {
  4122. c || a.apply(f, g), d = null
  4123. }
  4124. var f = this,
  4125. g = arguments;
  4126. d ? clearTimeout(d) : c && a.apply(f, g), d = setTimeout(h, b || 100)
  4127. }
  4128. };
  4129. jQuery.fn[b] = function(a) {
  4130. return a ? this.bind("resize", c(a)) : this.trigger(b)
  4131. }
  4132. }(jQuery, "smartresize");
  4133. var CURRENT_URL = window.location.href.split("#")[0].split("?")[0],
  4134. $BODY = $("body"),
  4135. $MENU_TOGGLE = $("#menu_toggle"),
  4136. $SIDEBAR_MENU = $("#sidebar-menu"),
  4137. $SIDEBAR_FOOTER = $(".sidebar-footer"),
  4138. $LEFT_COL = $(".left_col"),
  4139. $RIGHT_COL = $(".right_col"),
  4140. $NAV_MENU = $(".nav_menu"),
  4141. $FOOTER = $("footer"),
  4142. randNum = function() {
  4143. return Math.floor(21 * Math.random()) + 20
  4144. };
  4145. $(document).ready(function() {
  4146. $(".collapse-link").on("click", function() {
  4147. var a = $(this).closest(".x_panel"),
  4148. b = $(this).find("i"),
  4149. c = a.find(".x_content");
  4150. a.attr("style") ? c.slideToggle(200, function() {
  4151. a.removeAttr("style")
  4152. }) : (c.slideToggle(200), a.css("height", "auto")), b.toggleClass("fa-chevron-up fa-chevron-down")
  4153. }), $(".close-link").click(function() {
  4154. var a = $(this).closest(".x_panel");
  4155. a.remove()
  4156. })
  4157. }), $(document).ready(function() {
  4158. $('[data-toggle="tooltip"]').tooltip({
  4159. container: "body"
  4160. })
  4161. }), $(".progress .progress-bar")[0] && $(".progress .progress-bar").progressbar(), $(document).ready(function() {
  4162. if ($(".js-switch")[0]) {
  4163. var a = Array.prototype.slice.call(document.querySelectorAll(".js-switch"));
  4164. a.forEach(function(a) {
  4165. new Switchery(a, {
  4166. color: "#26B99A"
  4167. })
  4168. })
  4169. }
  4170. }), $(document).ready(function() {
  4171. $("input.flat")[0] && $(document).ready(function() {
  4172. $("input.flat").iCheck({
  4173. checkboxClass: "icheckbox_flat-green",
  4174. radioClass: "iradio_flat-green"
  4175. })
  4176. })
  4177. }), $("table input").on("ifChecked", function() {
  4178. checkState = "", $(this).parent().parent().parent().addClass("selected"), countChecked()
  4179. }), $("table input").on("ifUnchecked", function() {
  4180. checkState = "", $(this).parent().parent().parent().removeClass("selected"), countChecked()
  4181. });
  4182. var checkState = "";
  4183. $(".bulk_action input").on("ifChecked", function() {
  4184. checkState = "", $(this).parent().parent().parent().addClass("selected"), countChecked()
  4185. }), $(".bulk_action input").on("ifUnchecked", function() {
  4186. checkState = "", $(this).parent().parent().parent().removeClass("selected"), countChecked()
  4187. }), $(".bulk_action input#check-all").on("ifChecked", function() {
  4188. checkState = "all", countChecked()
  4189. }), $(".bulk_action input#check-all").on("ifUnchecked", function() {
  4190. checkState = "none", countChecked()
  4191. }), $(document).ready(function() {
  4192. $(".expand").on("click", function() {
  4193. $(this).next().slideToggle(200), $expand = $(this).find(">:first-child"), "+" == $expand.text() ? $expand.text("-") : $expand.text("+")
  4194. })
  4195. }), "undefined" != typeof NProgress && ($(document).ready(function() {
  4196. NProgress.start()
  4197. }), $(window).on('load', function() {
  4198. NProgress.done()
  4199. }));
  4200. var originalLeave = $.fn.popover.Constructor.prototype.leave;
  4201. $.fn.popover.Constructor.prototype.leave = function(a) {
  4202. var c, d, b = a instanceof this.constructor ? a : $(a.currentTarget)[this.type](this.getDelegateOptions()).data("bs." + this.type);
  4203. originalLeave.call(this, a), a.currentTarget && (c = $(a.currentTarget).siblings(".popover"), d = b.timeout, c.one("mouseenter", function() {
  4204. clearTimeout(d), c.one("mouseleave", function() {
  4205. $.fn.popover.Constructor.prototype.leave.call(b, b)
  4206. })
  4207. }))
  4208. }, $("body").popover({
  4209. selector: "[data-popover]",
  4210. trigger: "click hover",
  4211. delay: {
  4212. show: 50,
  4213. hide: 400
  4214. }
  4215. }), $(document).ready(function() {
  4216. init_sparklines(),
  4217. init_flot_chart(),
  4218. init_wysiwyg(),
  4219. init_InputMask(),
  4220. init_JQVmap(), init_cropper(),
  4221. init_knob(),
  4222. init_IonRangeSlider(),
  4223. init_ColorPicker(),
  4224. init_TagsInput(),
  4225. init_parsley(),
  4226. init_daterangepicker(),
  4227. init_daterangepicker_right(),
  4228. init_daterangepicker_single_call(),
  4229. init_daterangepicker_reservation(),
  4230. init_SmartWizard(),
  4231. init_EasyPieChart(),
  4232. init_charts(),
  4233. init_echarts(),
  4234. init_morris_charts(),
  4235. init_skycons(),
  4236. init_select2(),
  4237. init_validator(),
  4238. init_DataTables(),
  4239. init_chart_doughnut(),
  4240. init_gauge(),
  4241. init_PNotify(),
  4242. init_starrr(),
  4243. init_calendar(),
  4244. init_compose(),
  4245. init_CustomNotification(),
  4246. init_autosize(),
  4247. init_autocomplete()
  4248. });