custom.js 154 KB

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