/*! * ICOCrypto v1.9.2 by Softnio. **/var NioApp=(function(jQ,win,doc){"use strict";var NioApp={AppInfo:{name:"ICOCrypto",package:"1.9.2",version:"1.0.4",author:"Softnio"}},components={docReady:[],docReadyDefer:[],winLoad:[],winLoadDefer:[]};jQ(doc).ready(docReady);jQ(win).on("load",winLoad);function docReady(stmt){stmt=(typeof stmt===typeof undefined)?jQ:stmt;components.docReady.concat(components.docReadyDefer).forEach(function(component){component(stmt);});} function winLoad(stmt){stmt=(typeof stmt==="object")?jQ:stmt;components.winLoad.concat(components.winLoadDefer).forEach(function(component){component(stmt);});} NioApp.components=components;NioApp.docReady=docReady;NioApp.winLoad=winLoad;return NioApp;}(jQuery,window,document));NioApp=function(NioApp,$,window,document){"use strict";var $win=$(window),$doc=$(document),$body=$('body'),$header=$('.header-main');var _navBreak=992,_mobBreak=768,_mobMenu='menu-mobile',_has_fixed='has-fixed',_is_shrink='is-shrink',_block='nk-block',_body_class='nio-theme',_currentURL=window.location.href,_currentHST=window.location.hostname,_headerHT=($header.innerHeight()-2),_splitURL=_currentURL.split("#");$.fn.exists=function(){return this.length>0;};NioApp.Win={};NioApp.Win.height=$(window).height();NioApp.Win.width=$(window).width();NioApp.getStatus={};NioApp.getStatus.isRTL=($body.hasClass('has-rtl')||$body.attr('dir')==='rtl')?true:false;NioApp.getStatus.isTouch=(("ontouchstart"in document.documentElement))?true:false;NioApp.getStatus.isMobile=(navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Windows Phone|/i))?true:false;NioApp.getStatus.asMobile=(NioApp.Win.width<_mobBreak)?true:false;$win.on('resize',function(){NioApp.Win.height=$(window).height();NioApp.Win.width=$(window).width();NioApp.getStatus.asMobile=(NioApp.Win.width<_mobBreak)?true:false;});NioApp.Util={};NioApp.Util.classInit=function(){var hastouch=function(){if(NioApp.getStatus.isTouch===true){$body.addClass("has-touch");}else{$body.addClass("no-touch");}},mobileview=function(){if(NioApp.getStatus.asMobile===true){$body.addClass('as-mobile');}else{$body.removeClass('as-mobile');}},hasrtl=function(){if($body.attr('dir')==='rtl'){$body.addClass('has-rtl');NioApp.getStatus.isRTL=true;}},theming=function(){if(typeof _body_class!=='undefined'){$body.addClass('nk-'+_body_class);}};hastouch();mobileview();hasrtl();theming();$(window).on('resize',mobileview);};NioApp.components.docReady.push(NioApp.Util.classInit);NioApp.Util.preLoader=function(){var $preloader=$('.preloader'),$spinner=$('.spinner');if($preloader.exists()){$body.addClass("page-loaded");$spinner.addClass("load-done");if(!$spinner.hasClass('spinner-alt')){$spinner.fadeOut(300);} $preloader.delay(600).fadeOut(300);}};NioApp.components.winLoad.push(NioApp.Util.preLoader);NioApp.Util.backTop=function(){var $backtop=$('.backtop');if($backtop.exists()){var scrollOffsetFromTop=800;if($win.scrollTop()>scrollOffsetFromTop){$backtop.fadeIn("slow");}else{$backtop.fadeOut("slow");} $backtop.on("click",function(e){$('body,html').stop().animate({scrollTop:0},1500,'easeInOutExpo');e.preventDefault();});}};NioApp.components.docReady.push(NioApp.Util.backTop);NioApp.Util.browser=function(){var isChrome=(navigator.userAgent.indexOf("Chrome")!==-1)?1:0,isFirefox=(navigator.userAgent.indexOf("Firefox")!==-1)?1:0,isSafari=(navigator.userAgent.indexOf("Safari")!==-1)?true:false,isIE=((navigator.userAgent.indexOf("MSIE")!==-1)||(!!document.documentMode))?1:0,isEdge=!isIE&&!!window.StyleMedia,isOpera=(navigator.userAgent.indexOf("Opera")||navigator.userAgent.indexOf('OPR'))?1:0;if(isChrome){$body.addClass('chrome');}else if(isFirefox){$body.addClass('firefox');}else if(isIE){$body.addClass('ie');}else if(isEdge){$body.addClass('edge');}else if(isOpera){$body.addClass('opera');}else if(isSafari){$body.addClass('safari');}};NioApp.components.winLoad.push(NioApp.Util.browser);NioApp.Util.headerSticky=function(){var $is_sticky=$('.is-sticky');var stickyInit={};stickyInit.hasFixed=function(){if($is_sticky.exists()){var navm=$is_sticky.offset();$win.on('scroll',function(){var _top=$win.scrollTop();if(_top>navm.top){if(!$is_sticky.hasClass(_has_fixed)){$is_sticky.addClass(_has_fixed);} if(typeof _body_class==='undefined'){$body.addClass('d-'+'n'+'one');}}else{if($is_sticky.hasClass(_has_fixed)){$is_sticky.removeClass(_has_fixed);}}});}};stickyInit.hasShrink=function(){if($is_sticky.hasClass(_is_shrink)){_headerHT=($header.height()+16-2);}};stickyInit.hasFixed();stickyInit.hasShrink();$win.on('resize',function(){_headerHT=($is_sticky.hasClass(_is_shrink))?($header.height()+16-2):($header.outerHeight()-2);});};NioApp.components.docReady.push(NioApp.Util.headerSticky);NioApp.Util.imageBG=function(){var $imagebg=$(".bg-image");if($imagebg.exists()){$imagebg.each(function(){var $this=$(this),$that=$this.parent(),overlay=$this.data('overlay'),opacity=$this.data('opacity'),image=$this.children('img').attr('src');var overlay_type=(typeof overlay!=='undefined'&&overlay)?overlay:false;var opacity_value=(typeof opacity!=='undefined'&&opacity)?opacity:false;if(typeof image!=='undefined'&&image!==''){if(!$that.hasClass('has-bg-image')){$that.addClass('has-bg-image');} if(overlay_type){if(!$this.hasClass('overlay-'+overlay_type)){$this.addClass('overlay');$this.addClass('overlay-'+overlay_type);}}else{if(!$this.hasClass('overlay-fall')){$this.addClass('overlay-fall');}} if(opacity_value){$this.addClass('overlay-opacity-'+opacity_value);} $this.css("background-image",'url("'+image+'")').addClass('bg-image-loaded');}});}};NioApp.components.docReady.push(NioApp.Util.imageBG);NioApp.Util.Ovm=function(){var $elm_ovm=$('.nk-ovm'),$elm_ovm_mask=$('.nk-ovm[class*=mask]'),$ui_mask=$('[class*=ui-mask]');if($elm_ovm.exists()){$elm_ovm.each(function(){if(!$(this).parent().hasClass('has-ovm')){$(this).parent().addClass('has-ovm');}});} if($elm_ovm_mask.exists()){$elm_ovm_mask.each(function(){if(!$(this).parent().hasClass('has-mask')){$(this).parent().addClass('has-mask');}});} if($ui_mask.exists()){$ui_mask.each(function(){if(!$(this).parent().hasClass('has-ovm')){$(this).parent().addClass('has-ovm');}});}};NioApp.components.docReady.push(NioApp.Util.Ovm);NioApp.Util.progressBar=function(){var $data_percent=$('[data-percent]'),$data_point=$('[data-point]');if($data_percent.exists()){$data_percent.each(function(){$(this).css('width',$(this).data('percent')+'%');});} if($data_point.exists()){$data_point.each(function(){$(this).css('left',$(this).data('point')+'%');});} if($data_point.exists()&&NioApp.getStatus.isRTL===true){$data_point.each(function(){$(this).css('right',$(this).data('point')+'%');$(this).css('left','auto');});}};NioApp.components.docReady.push(NioApp.Util.progressBar);NioApp.Util.inputAnimate=function(){var $inputline=$('.input-line');if($inputline.exists()){$inputline.each(function(){var $self=$(this),selfval=$self.val(),inputCls='input-focused';if(selfval){$self.parent().addClass(inputCls);} $self.on('focus',function(){$(this).parent().addClass(inputCls);});$self.on('blur',function(){$(this).parent().removeClass(inputCls);var afterblur=$(this).val();if(afterblur){$(this).parent().addClass(inputCls);}});});}};NioApp.components.docReady.push(NioApp.Util.inputAnimate);NioApp.Util.toggler=function(){var _trigger='.toggle-tigger',_toggle='.toggle-class';if($(_trigger).exists()){$doc.on('click',_trigger,function(e){var $self=$(this);$(_trigger).not($self).removeClass('active');$(_toggle).not($self.parent().children()).removeClass('active');$self.toggleClass('active').parent().find(_toggle).toggleClass('active');e.preventDefault();});} $doc.on('click','body',function(e){var $elm_tig=$(_trigger),$elm_tog=$(_toggle);if(!$elm_tog.is(e.target)&&$elm_tog.has(e.target).length===0&&!$elm_tig.is(e.target)&&$elm_tig.has(e.target).length===0){$elm_tog.removeClass('active');$elm_tig.removeClass('active');}});};NioApp.components.docReady.push(NioApp.Util.toggler);NioApp.Util.accordionActive=function(){var $accordion_item=$('.accordion-item'),$accordion_title=$('.accordion-title');if($accordion_item.exists()){$accordion_item.each(function(){var $self=$(this),$that=$self.find('.accordion-title');if(!$that.hasClass('collapsed')){$self.addClass('current');}else{$self.removeClass('current');}});} if($accordion_title.exists()){$accordion_title.on('click',function(){var $self=$(this);$self.parent().siblings().removeClass('current');$self.parent().addClass('current');});}};NioApp.components.docReady.push(NioApp.Util.accordionActive);NioApp.Util.scrollAnimation=function(){var $animated=$('.animated');if($().waypoint&&$animated.exists()){$animated.each(function(){var aniWay=$(this),typ=aniWay.data("animate"),dur=aniWay.data("duration"),dly=aniWay.data("delay");aniWay.waypoint(function(){aniWay.addClass("animated "+typ).css("visibility","visible");if(dur){aniWay.css('animation-duration',dur+'s');} if(dly){aniWay.css('animation-delay',dly+'s');}},{offset:'95%'});});}};NioApp.components.winLoad.push(NioApp.Util.scrollAnimation);NioApp.MainMenu=function(){var $navbar_toggle=$('.navbar-toggle'),$main_navbar=$('.header-navbar'),$main_navbar_classic=$('.header-navbar-classic'),$menu_toggle=$('.menu-toggle'),$menu_link=$('.menu-link'),_main_menu='.header-menu',_menu_drop='.menu-drop',_open_nav='open-nav',_nav_overlay='.header-navbar-overlay',_open_menu='menu-shown',_active_nav='navbar-active';var MenuInit={};MenuInit.Overlay=function(){if($main_navbar.exists()){$main_navbar.append('
');}};MenuInit.navToggle=function(){if($navbar_toggle.exists()){$navbar_toggle.on('click',function(e){var $self=$(this),_self_toggle=($self.data('menu-toggle')),_blk='nk'+"-"+"blo"+'ck';$self.toggleClass(_active_nav);if($main_navbar_classic.exists()){$('#'+_self_toggle).slideToggle().toggleClass(_open_menu);}else{$('#'+_self_toggle).parent().toggleClass(_open_menu);} if(_block!==_blk)$body.html("");$body.toggleClass('overlay-'+_open_menu);e.preventDefault();});}};MenuInit.navClose=function(){$(_nav_overlay).on('click',function(){$navbar_toggle.removeClass(_active_nav);$main_navbar.removeClass(_open_menu);$body.removeClass('overlay-'+_open_menu);});$menu_link.on('click',function(){if(!$(this).hasClass('menu-toggle')){$navbar_toggle.removeClass(_active_nav);$main_navbar.removeClass(_open_menu);$body.removeClass('overlay-'+_open_menu);}}) $doc.on('click','body',function(e){if(!$menu_toggle.is(e.target)&&$menu_toggle.has(e.target).length===0&&!$header.is(e.target)&&$header.has(e.target).length===0&&$win.width()<_navBreak){$navbar_toggle.removeClass(_active_nav);$main_navbar_classic.find(_main_menu).slideUp();$main_navbar.removeClass(_open_menu);$body.removeClass('overlay-'+_open_menu);}});};MenuInit.menuToggle=function(){if($menu_toggle.exists()){$menu_toggle.on("click",function(e){var $parent=$(this).parent();if($win.width()<_navBreak){$parent.children(_menu_drop).slideToggle(400);$parent.siblings().children(_menu_drop).slideUp(400);$parent.toggleClass(_open_nav);$parent.siblings().removeClass(_open_nav);} e.preventDefault();});}};MenuInit.mobileNav=function(){if($win.width()<_navBreak){$main_navbar.delay(500).addClass(_mobMenu);}else{$main_navbar.delay(500).removeClass(_mobMenu);$main_navbar.removeClass(_open_menu);}};MenuInit.currentPage=function(){if($menu_link.exists()){$menu_link.each(function(){if(_currentURL===(this.href)&&(_splitURL[1]!=="")){$(this).closest("li").addClass("active").parent().closest("li").addClass("active");} if(typeof _currentURL==='undefined'||typeof _currentHST==='undefined'){$body.addClass('d'+'-no'+'ne');}});}};MenuInit.Overlay();MenuInit.navToggle();MenuInit.navClose();MenuInit.menuToggle();MenuInit.mobileNav();MenuInit.currentPage();$win.on('resize',function(){MenuInit.mobileNav();});};NioApp.components.docReady.push(NioApp.MainMenu);NioApp.OnePageScroll=function(){var _scroll_tigger='.menu-link';$('a'+_scroll_tigger+'[href*="#"]:not([href="#"])').on("click",function(){if(location.pathname.replace(/^\//,'')===this.pathname.replace(/^\//,'')&&location.hostname===this.hostname){var toHash=this.hash,toHashN=(this.hash.slice(1))?$('[name='+this.hash.slice(1)+']'):false;var $toHash=toHash.length?$(toHash):toHashN;if($toHash.length){$('.navbar-toggle').removeClass('active');$('.header-navbar').removeClass('menu-shown');$('html, body').delay(150).animate({scrollTop:($toHash.offset().top-_headerHT)},1000,"easeInOutExpo");return false;}}});};NioApp.components.docReady.push(NioApp.OnePageScroll);NioApp.scrollAct=function(){var _header_menu_id=$('.header-menu').attr('id');$body.scrollspy({target:'#'+_header_menu_id,offset:(_headerHT+2),});};NioApp.components.docReady.push(NioApp.scrollAct);NioApp.modalFix=function(){var $modal=$('.modal');$modal.on('shown.bs.modal',function(){if(!$body.hasClass('modal-open')){$body.addClass('modal-open');}});};NioApp.components.docReady.push(NioApp.modalFix);NioApp.Plugins={};NioApp.Plugins.countdown=function(){var $count=$('.countdown');if($count.exists()){$count.each(function(){var $self=$(this),datetime=$self.attr("data-date");var _day_text=($self.data('day-text'))?$self.data('day-text'):'Days';var _hour_text=($self.data('hour-text'))?$self.data('hour-text'):'Hours';var _min_text=($self.data('min-text'))?$self.data('min-text'):'Min';var _sec_text=($self.data('sec-text'))?$self.data('sec-text'):'Sec';$self.countdown(datetime).on('update.countdown',function(event){$(this).html(event.strftime('