Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
thewickedkarma
GitHub Repository: thewickedkarma/blackeye-im
Path: blob/master/sites/bitcoin/js/init.min.js
777 views
1
jQuery(function(a) {
2
"use strict";
3
4
function t(t) {
5
t.addClass("appear-animation"), !a("html").hasClass("no-csstransitions") && a(window).width() > 767 ? t.appear(function() {
6
var a = t.attr("data-appear-animation-delay") ? t.attr("data-appear-animation-delay") : 1;
7
a > 1 && t.css("animation-delay", a + "ms"), t.addClass(t.attr("data-appear-animation")), setTimeout(function() {
8
t.addClass("appear-animation-visible")
9
}, a), clearTimeout()
10
}, {
11
accX: 0,
12
accY: -150
13
}) : t.addClass("appear-animation-visible")
14
}
15
16
function e() {
17
clearTimeout(c)
18
}
19
20
function i(a) {
21
a.appear(function() {
22
var t = a.attr("data-appear-animation-delay") ? a.attr("data-appear-animation-delay") : 1;
23
t > 1 && a.css("animation-delay", t + "ms"), a.addClass(a.attr("data-appear-animation")), setTimeout(function() {
24
a.animate({
25
width: a.attr("data-appear-progress-animation")
26
}, 1500, "easeOutQuad", function() {
27
a.find(".progress-bar-tooltip").animate({
28
opacity: 1
29
}, 500, "easeOutQuad")
30
})
31
}, t), clearTimeout()
32
}, {
33
accX: 0,
34
accY: -50
35
})
36
}
37
38
function n() {
39
clearTimeout(d)
40
}
41
42
function o() {
43
a(".parallax1").parallax("50%", .1), a(".parallax2").parallax("50%", .1), a(".parallax3").parallax("50%", .1), a(".parallax4").parallax("50%", .1), a(".parallax5").parallax("50%", .1), a(".parallax6").parallax("50%", .1), a(".parallax7").parallax("50%", .1), a(".parallax8").parallax("50%", .1)
44
}
45
46
function s() {
47
var t = a(window).height(),
48
e = a(window).width();
49
a(".wheighter").css("height", t), a(".wwidth").css("width", e)
50
}
51
var l = window.BORNTOGIVE || {};
52
l.ContactForm = function() {
53
a(".contact-form").each(function() {
54
var t = a(this);
55
t.submit(function() {
56
var t = a(this).attr("action");
57
return a("#message").slideUp(750, function() {
58
a("#message").hide(), a("#submit").after('<img src="images/assets/ajax-loader.gif" class="loader" />').attr("disabled", "disabled"), a.post(t, {
59
fname: a("#fname").val(),
60
lname: a("#lname").val(),
61
email: a("#email").val(),
62
phone: a("#phone").val(),
63
comments: a("#comments").val()
64
}, function(t) {
65
document.getElementById("message").innerHTML = t, a("#message").slideDown("slow"), a(".contact-form img.loader").fadeOut("slow", function() {
66
a(this).remove()
67
}), a("#submit").removeAttr("disabled"), null != t.match("success") && a(".contact-form").slideUp("slow")
68
})
69
}), !1
70
})
71
})
72
}, l.scrollToTop = function() {
73
var t = (a(window).width(), !1),
74
e = a("#back-to-top"),
75
i = a(".site-header");
76
e.on("click", function(t) {
77
a("body,html").animate({
78
scrollTop: "0"
79
}, 750, "easeOutExpo"), t.preventDefault()
80
}), a(window).scroll(function() {
81
t = !0
82
}), setInterval(function() {
83
t && (t = !1, a(window).scrollTop() > 200 ? e.css("right", 10) : e.css("right", "-40px"), a(window).scrollTop() > 90 ? i.addClass("sticky") : i.removeClass("sticky"))
84
}, 250)
85
}, l.accordion = function() {
86
var t = a(".accordion-heading.accordionize");
87
t.delegate(".accordion-toggle", "click", function(e) {
88
a(this).hasClass("active") ? (a(this).removeClass("active"), a(this).addClass("inactive")) : (t.find(".active").addClass("inactive"), t.find(".active").removeClass("active"), a(this).removeClass("inactive"), a(this).addClass("active")), e.preventDefault()
89
})
90
}, l.toggle = function() {
91
var t = a(".accordion-heading.togglize");
92
t.delegate(".accordion-toggle", "click", function(t) {
93
a(this).hasClass("active") ? (a(this).removeClass("active"), a(this).addClass("inactive")) : (a(this).removeClass("inactive"), a(this).addClass("active")), t.preventDefault()
94
})
95
}, l.toolTip = function() {
96
a("a[data-toggle=tooltip]").tooltip(), a("a[data-toggle=tooltip]").tooltip(), a("a[data-toggle=popover]").popover({
97
html: !0
98
}).on("click", function(t) {
99
t.preventDefault(), a(this).focus()
100
})
101
}, l.TwitterWidget = function() {
102
a(".twitter-widget").each(function() {
103
var t = a(this),
104
e = t.attr("data-tweets-count") ? t.attr("data-tweets-count") : "1";
105
t.twittie({
106
dateFormat: "%b. %d, %Y",
107
template: '<li><i class="fa fa-twitter"></i> {{tweet}} <span class="tweet-date">{{date}}</span></li>',
108
count: e,
109
hideReplies: !0
110
})
111
})
112
}, l.heroflex = function() {
113
a(".heroflex").each(function() {
114
var t = a(this),
115
e = "yes" == t.attr("data-autoplay") ? !0 : !1,
116
i = "yes" == t.attr("data-pagination") ? !0 : !1,
117
n = "yes" == t.attr("data-arrows") ? !0 : !1,
118
o = t.attr("data-direction") ? t.attr("data-direction") : "horizontal",
119
s = t.attr("data-style") ? t.attr("data-style") : "fade",
120
l = t.attr("data-speed") ? t.attr("data-speed") : "5000",
121
r = "yes" == t.attr("data-pause") ? !0 : !1;
122
t.flexslider({
123
animation: s,
124
easing: "swing",
125
direction: o,
126
slideshow: e,
127
slideshowSpeed: l,
128
animationSpeed: 600,
129
initDelay: 0,
130
randomize: !1,
131
pauseOnHover: r,
132
controlNav: i,
133
directionNav: n,
134
prevText: "",
135
nextText: ""
136
})
137
})
138
}, l.galleryflex = function() {
139
a(".galleryflex").each(function() {
140
var t = a(this),
141
e = "yes" == t.attr("data-autoplay") ? !0 : !1,
142
i = "yes" == t.attr("data-pagination") ? !0 : !1,
143
n = "yes" == t.attr("data-arrows") ? !0 : !1,
144
o = t.attr("data-direction") ? t.attr("data-direction") : "horizontal",
145
s = t.attr("data-style") ? t.attr("data-style") : "fade",
146
l = t.attr("data-speed") ? t.attr("data-speed") : "5000",
147
r = "yes" == t.attr("data-pause") ? !0 : !1;
148
t.flexslider({
149
animation: s,
150
easing: "swing",
151
direction: o,
152
slideshow: e,
153
slideshowSpeed: l,
154
animationSpeed: 600,
155
initDelay: 0,
156
animationLoop: !1,
157
randomize: !1,
158
pauseOnHover: r,
159
controlNav: i,
160
directionNav: n,
161
prevText: "",
162
nextText: ""
163
})
164
})
165
}, l.OwlCarousel = function() {
166
a(".owl-carousel").each(function() {
167
var t = a(this),
168
e = t.attr("data-columns") ? t.attr("data-columns") : "1",
169
i = t.attr("data-items-desktop") ? t.attr("data-items-desktop") : "4",
170
n = t.attr("data-items-desktop-small") ? t.attr("data-items-desktop-small") : "3",
171
o = t.attr("data-items-tablet") ? t.attr("data-items-tablet") : "2",
172
s = t.attr("data-items-mobile") ? t.attr("data-items-mobile") : "1",
173
l = t.attr("data-autoplay") ? t.attr("data-autoplay") : !1,
174
r = "yes" == t.attr("data-pagination") ? !0 : !1,
175
c = "yes" == t.attr("data-arrows") ? !0 : !1,
176
d = "yes" == t.attr("data-single-item") ? !0 : !1;
177
t.attr("data-style") ? t.attr("data-style") : "fade";
178
t.owlCarousel({
179
items: e,
180
autoPlay: l,
181
navigation: c,
182
pagination: r,
183
itemsDesktop: [1199, i],
184
itemsDesktopSmall: [979, n],
185
itemsTablet: [768, o],
186
itemsMobile: [479, s],
187
singleItem: d,
188
navigationText: ["<i class='fa fa-chevron-left'></i>", "<i class='fa fa-chevron-right'></i>"],
189
stopOnHover: !0,
190
lazyLoad: !0,
191
transitionStyle: "carouselStyle"
192
})
193
})
194
}, l.Counters = function() {
195
a(".counters").each(function() {
196
a(".timer .count").appear(function() {
197
var t = a(this).html();
198
a(this).countTo({
199
from: 0,
200
to: t,
201
speed: 2e3,
202
refreshInterval: 60
203
})
204
})
205
})
206
}, l.SuperFish = function() {
207
a(".sf-menu").superfish({
208
delay: 200,
209
animation: {
210
opacity: "show",
211
height: "show"
212
},
213
speed: "fast",
214
cssArrows: !1,
215
disableHI: !0
216
}), a(".dd-menu > li:has(ul)").find("a:first").append(" <i class='fa fa-caret-down'></i>"), a(".dd-menu > li > ul > li:has(ul)").find("a:first").append(" <i class='fa fa-caret-right'></i>"), a(".dd-menu > li > ul > li > ul > li:has(ul)").find("a:first").append(" <i class='fa fa-caret-right'></i>")
217
}, l.StickyHeader = function() {
218
a(".header-style2 .site-header").sticky(), a(".header-style3 .fw-menu-wrapper").sticky()
219
}, l.MobileMenu = function() {
220
a("#menu-toggle").on("click", function() {
221
return a(this).toggleClass("opened"), a(".dd-menu").slideToggle(), a(window).scrollTop() <= 0 && a(".site-header").toggleClass("menu-opened"), !1
222
}), a(window).resize(function() {
223
a("#menu-toggle").hasClass("opened") ? a(".dd-menu").css("display", "block") : a("#menu-toggle").css("display", "none")
224
})
225
}, l.IsoTope = function() {
226
a("ul.sort-source").each(function() {
227
var t = a(this),
228
e = a("ul.sort-destination[data-sort-id=" + a(this).attr("data-sort-id") + "]");
229
e.get(0) && a(window).load(function() {
230
e.isotope({
231
itemSelector: ".grid-item",
232
layoutMode: "sloppyMasonry"
233
}), t.find("a").on("click", function(i) {
234
i.preventDefault();
235
var n = a(this),
236
o = n.parent().attr("data-option-value");
237
return t.find("li.active").removeClass("active"), n.parent().addClass("active"), e.isotope({
238
filter: o
239
}), ("" != window.location.hash || "*" != o.replace(".", "")) && (self.location = "#" + o.replace(".", "")), !1
240
}), a(window).on("hashchange", function(a) {
241
var i = "." + location.hash.replace("#", ""),
242
n = "." == i || ".*" == i ? "*" : i;
243
t.find("li.active").removeClass("active"), t.find("li[data-option-value='" + n + "']").addClass("active"), e.isotope({
244
filter: n
245
})
246
});
247
var i = "." + (location.hash.replace("#", "") || "*"),
248
n = t.find("li[data-option-value='" + i + "'] a");
249
n.get(0) ? t.find("li[data-option-value='" + i + "'] a").click() : t.find("li:first-child a").click()
250
})
251
}), a(window).load(function() {
252
var t = a(".isotope-grid");
253
if (t.isotope({
254
itemSelector: ".grid-item",
255
layoutMode: "sloppyMasonry"
256
}), a(".grid-holder").length > 0) {
257
var e = a(".grid-holder");
258
e.isotope({
259
itemSelector: ".grid-item"
260
}), a(window).resize(function() {
261
var t = a(".grid-holder");
262
t.isotope({
263
itemSelector: ".grid-item"
264
})
265
})
266
}
267
})
268
};
269
var r;
270
l.pricingTable = function() {
271
a(".pricing-table").each(function() {
272
r = 0, a(this).find("> div .features").each(function() {
273
r = a(this).height() > r ? a(this).height() : r
274
}), 0 == r && (r = "auto"), a(this).find("> div .features").css("height", r)
275
})
276
}, l.CProgress = function() {
277
a(".cProgress").each(function() {
278
var t = a(this),
279
e = t.attr("data-complete") ? t.attr("data-complete") : "0.1",
280
i = t.attr("data-color") ? t.attr("data-color") : "d82e67",
281
n = e / 100;
282
t.circleProgress({
283
value: n,
284
size: 60,
285
emptyFill: "rgba(0, 0, 0, .1)",
286
fill: {
287
color: "#" + i
288
}
289
}).on("circle-animation-progress", function(a, i) {
290
t.find("strong").html(parseInt(e * i, 10) + "<i>%</i>")
291
})
292
})
293
}, a(document).ready(function() {
294
l.ContactForm(), l.scrollToTop(), l.accordion(), l.toggle(), l.toolTip(), l.TwitterWidget(), l.OwlCarousel(), l.SuperFish(), l.Counters(), l.IsoTope(), l.StickyHeader(), l.heroflex(), l.galleryflex(), l.pricingTable(), l.MobileMenu(), l.CProgress(), a(".selectpicker").selectpicker({
295
container: "body"
296
}), s(), a(".content").each(function() {
297
a(this).find(".owl-carousel .grid-item").find(".grid-item-content").matchHeight({}), a(this).find(".featured-texts").find(".featured-text").matchHeight({})
298
})
299
}), a(".dd-menu li").mouseover(function() {
300
var t = a(this).find("a").width(),
301
e = a(this).find("ul").width(),
302
i = (e - t) / 2;
303
a(this).find("ul").css("left", -i)
304
}), a(window).resize(function() {
305
s()
306
}), a(".scrollto").on("click", function() {
307
return a.scrollTo(this.hash, 800, {
308
easing: "easeOutQuint"
309
}), !1
310
}), a(".fw-video, .post-media").fitVids(), a(".predefined-amount input[name=donation-amount]:checked").parent("label").addClass("selected"), a(".predefined-amount input[name=donation-amount]").click(function() {
311
a(".predefined-amount input[name=donation-amount]:not(:checked)").parent("label").removeClass("selected"), a(this).parent("label").addClass("selected")
312
}), a(window).load(function() {
313
a(".format-image").each(function() {
314
a(this).find(".media-box").append("<span class='zoom'><span class='icon'><i class='fa fa-search'></i></span></span>")
315
}), a(".format-standard").each(function() {
316
a(this).find(".media-box").append("<span class='zoom'><span class='icon'><i class='fa fa-plus'></i></span></span>")
317
}), a(".format-video").each(function() {
318
a(this).find(".media-box").append("<span class='zoom'><span class='icon'><i class='fa fa-play'></i></span></span>")
319
}), a(".format-link").each(function() {
320
a(this).find(".media-box").append("<span class='zoom'><span class='icon'><i class='fa fa-link'></i></span></span>")
321
}), a(".additional-images .owl-carousel .item-video").each(function() {
322
a(this).append("<span class='icon'><i class='fa fa-play'></i></span>")
323
}), l.StickyHeader(), a(".carousel-wrapper").css("background", "none")
324
}), a(".basic-link").prepend(' <i class="fa fa-angle-right"></i>'), a(".basic-link.backward").prepend(' <i class="fa fa-angle-left"></i> '), a("ul.checks li").prepend('<i class="fa fa-check"></i> '), a("ul.angles li, .widget_categories ul li a, .widget_archive ul li a, .widget_recent_entries ul li a, .widget_recent_comments ul li a, .widget_links ul li a, .widget_meta ul li a").prepend('<i class="fa fa-caret-right"></i> '), a("ul.chevrons li").prepend('<i class="fa fa-chevron-right"></i> '), a("ul.carets li, ul.inline li").prepend('<i class="fa fa-caret-right"></i> '), a("a.external").prepend('<i class="fa fa-external-link"></i> ');
325
var c;
326
a("[data-appear-animation]").each(function() {
327
var i = a(this);
328
t(i), e()
329
});
330
var d;
331
a("[data-appear-progress-animation]").each(function() {
332
var t = a(this);
333
i(t), n()
334
}), Modernizr.touch || o()
335
});
336