1/* ----------------------------------------------------------------------------- 2 3File: JS Core 4Version: 1.0 5Author: 6 7-------------------------------------------------------------------------------- */ 8(function() { 9 10 "use strict"; 11 12 var Appilo_Crypto = { 13 init: function() { 14 this.Basic.init(); 15 }, 16 Basic: { 17 init: function() { 18 this.Animation(); 19 this.CrPartnerSlide(); 20 this.CRcountDown(); 21 this.CrblogSlide(); 22 }, 23 24 Animation: function (){ 25 if($('.wow').length){ 26 var wow = new WOW( 27 { 28 boxClass: 'wow', 29 animateClass: 'animated', 30 offset: 0, 31 mobile: true, 32 live: true 33 } 34 ); 35 wow.init(); 36 } 37 }, 38 CrPartnerSlide: function (){ 39 $('.cr-partner-slide').owlCarousel({ 40 margin:100, 41 responsiveClass:true, 42 nav: false, 43 dots: false, 44 loop:true, 45 items: 5, 46 autoplay: true, 47 smartSpeed: 1000, 48 responsive:{ 49 0:{ 50 items:2, 51 }, 52 400:{ 53 items:2, 54 }, 55 600:{ 56 items:2, 57 }, 58 700:{ 59 items:3, 60 }, 61 1000:{ 62 items:5, 63 64 } 65 }, 66 }); 67 }, 68 CRcountDown: function (){ 69 $('.countdown_timer').each(function(){ 70 $('[data-countdown]').each(function() { 71 var $this = $(this), finalDate = $(this).data('countdown'); 72 $this.countdown(finalDate, function(event) { 73 var $this = $(this).html(event.strftime('' 74 + '<li class="days_count"><strong>%D</strong><span>Days</span></li>' 75 + '<li class="hours_count"><strong>%H</strong><span>Hours</span></li>' 76 + '<li class="minutes_count"><strong>%M</strong><span>Mins</span></li>' 77 + '<li class="seconds_count"><strong>%S</strong><span>Secs</span></li>')); 78 }); 79 }); 80 }); 81 }, 82 CrblogSlide: function (){ 83 $('.cr-blog-slider').owlCarousel({ 84 margin:30, 85 responsiveClass:true, 86 nav: false, 87 dots: true, 88 loop:true, 89 items: 3, 90 autoplay: true, 91 smartSpeed: 1000, 92 responsive:{ 93 0:{ 94 items:1, 95 }, 96 400:{ 97 items:1, 98 }, 99 600:{ 100 items:2, 101 }, 102 700:{ 103 items:2, 104 }, 105 1000:{ 106 items:3, 107 108 } 109 }, 110 }); 111 }, 112 /* End Of js 113 ================================================*/ 114 } 115 } 116 jQuery(document).ready(function (){ 117 Appilo_Crypto.init(); 118 }); 119 120})(); 121 122// Crypto BTC Calculator 123jQuery(document).ready(function (){ 124 $(".currencyField").keyup(function(){ //input[name='calc'] 125 let convFrom; 126 if($(this).prop("name") == "btc") { 127 convFrom = "btc"; 128 convTo = "usd"; 129 } 130 else { 131 convFrom = "usd"; 132 convTo = "btc"; 133 } 134 $.getJSON( "https://api.coindesk.com/v1/bpi/currentprice/usd.json", 135 function( data) { 136 var origAmount = parseFloat($("input[name='" + convFrom + "']").val()); 137 var exchangeRate = parseInt(data.bpi.USD.rate_float); 138 let amount; 139 if(convFrom == "btc") 140 amount = parseFloat(origAmount * exchangeRate); 141 else 142 amount = parseFloat(origAmount/ exchangeRate); 143 $("input[name='" + convTo + "']").val(amount.toFixed(2)); 144 }); 145 });
vendor: 3 bytes, line 146
146});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.