-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
executable file
·785 lines (628 loc) · 29 KB
/
main.js
File metadata and controls
executable file
·785 lines (628 loc) · 29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
/*jshint undef: true, unused: false, vars: true, plusplus: true */
/*global jQuery:false, window: false, setInterval: false, clearTimeout: false, setTimeout: false, mo_options:false, mo_theme:false, template_dir:false, document:false */
jQuery.noConflict();
var MO_THEME; // theme namespace
/*================================ Global Function init ==================================*/
// Helps to avoid continuous method execution as can happen in the case of scroll or window resize. Useful specially
// when DOM access/manipulation is involved
var mo_wait_for_final_event = (function () {
"use strict";
var timers = {};
return function (callback, ms, uniqueId) {
if (!uniqueId) {
uniqueId = "Don't call this twice without a uniqueId";
}
if (timers[uniqueId]) {
clearTimeout(timers[uniqueId]);
}
timers[uniqueId] = setTimeout(callback, ms);
};
})();
/*---- Enter negative percentage to darken; assumes presence of # - Credit: http://stackoverflow.com/questions/5560248/programmatically-lighten-or-darken-a-hex-color --*/
var mo_shadeColor = (function () {
"use strict";
return function (color, percent) {
var num = parseInt(color.slice(1), 16), amt = Math.round(2.55 * percent), R = (num >> 16) + amt, G = (num >> 8 & 0x00FF) + amt, B = (num & 0x0000FF) + amt;
return "#" + (0x1000000 + (R < 255 ? R < 1 ? 0 : R : 255) * 0x10000 + (G < 255 ? G < 1 ? 0 : G : 255) * 0x100 + (B < 255 ? B < 1 ? 0 : B : 255)).toString(16).slice(1);
};
})();
var mo_isIE = (function () {
"use strict";
return function (version) {
var exp = new RegExp('msie' + (!isNaN(version) ? ('\\s' + version) : ''), 'i');
return exp.test(navigator.userAgent);
};
})();
var mo_isMobile = (function () {
"use strict";
return function () {
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
return true;
}
return false;
};
})();
var mo_toggle_html5_video_volume = function (video) {
"use strict";
if (video.muted) {
video.muted = false;
}
else {
video.muted = true;
}
};
/*================================== Theme Function init =======================================*/
(function ($) {
"use strict";
MO_THEME = {
add_body_classes: function () {
if (mo_isMobile()) {
$('body').addClass('mobile-device');
}
if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) {
$('body').addClass('ios-device');
}
if (navigator.userAgent.match(/Android/i) !== null) {
$('body').addClass('android-device');
}
},
toggle_mobile_menu: function () {
$('#mobile-menu-toggle').toggleClass('menu-open');
$('body').toggleClass('push-right');
$('#mobile-menu').toggleClass('slide-open');
},
display_numbers: function (duration) {
/* ------- Numbers ---------- */
$('.animate-numbers .number').animateNumbers(false, duration);
},
display_stats: function () {
/* ------- Skill Bar --------- */
$('.stats-bar-content').each(function () {
var dataperc = $(this).attr('data-perc');
$(this).animate({ "width": dataperc + "%"}, dataperc * 20);
});
/* -------- Charts like Pie Chart -------- */
var charts = $('.piechart .percentage'),
bar_color = mo_options.theme_skin,
track_color = mo_shadeColor(bar_color, 26);
/* Lighten */
charts.easyPieChart({
animate: 2000,
lineWidth: 20,
barColor: bar_color,
trackColor: track_color,
scaleColor: false,
lineCap: 'square',
size: 250
});
},
get_internal_link: function (urlString) {
var internal_link = null;
if (urlString.indexOf("#") !== -1) {
var arr = urlString.split('#');
if (arr.length === 2) {
var url = arr[0];
internal_link = '#' + arr[1];
// check if this internal link belongs to current URL
if (url === (document.URL + '/') || url === document.URL) {
return internal_link;
}
} else if (arr.length === 1) {
internal_link = '#' + arr[0];
return internal_link;
}
}
return internal_link;
},
highlight_menu: function () {
var $active_menu_item;
/* Do not highlight internal links */
// make the current page active for highlight - top list cannot have both a parent and current page item
$active_menu_item = $('#primary-menu > ul > li.current_page_item > a').not('a[href*=#]').first();
if ($active_menu_item.length === 0)
$active_menu_item = $('#primary-menu > ul > li.current-menu-item > a').not('a[href*=#]').first();
if ($active_menu_item.length === 1)
$active_menu_item.parent().addClass('active');
},
init_page_navigation: function () {
MO_THEME.highlight_menu();
var delay = (function () {
var timer = 0;
return function (callback, ms) {
clearTimeout(timer);
timer = setTimeout(callback, ms);
};
})();
/*--- Sticky Menu -------*/
if (mo_options.sticky_menu) {
$('#container').waypoint({
offset: -100,
handler: function (direction) {
if (direction === "up") {
$('#header').removeClass('sticky');
/* Reached the top and hence highlight current page link */
$('#primary-menu > ul > li').each(function () {
$(this).removeClass('active');
});
MO_THEME.highlight_menu();
} else {
$('#header').addClass('sticky');
}
}
});
}
/* ----- Smooth Scroll --------*/
if ($().smoothScroll !== undefined) {
$('.composite-page #primary-menu > ul > li > a[href*=#]').smoothScroll(
{ preventDefault: true, easing: 'swing', speed: 700, offset: -50, exclude: ['.external a'],
beforeScroll: function () {
// Disable all waypoints on internal divs which are linked to from the menu
$('.composite-page #primary-menu > ul > li > a[href*=#]').each(function () {
var element_id = MO_THEME.get_internal_link($(this).attr('href')); // Gives me ids of div's with ids like #work,#service, #portfolio etc.
$(element_id).waypoint('disable');
});
},
afterScroll: function () {
// Enable all waypoints on internal divs which are linked to from the menu
$('.composite-page #primary-menu > ul > li > a[href*=#]').each(function () {
var element_id = MO_THEME.get_internal_link($(this).attr('href')); // Gives me ids of div's with ids like #work,#service, #portfolio etc.
$(element_id).waypoint('enable');
});
}});
$('.composite-page #mobile-menu a[href*=#]').smoothScroll(
{easing: 'swing', speed: 700, offset: 0, exclude: ['.external a']});
$('.composite-page a[href*=#].pointer-down').smoothScroll(
{easing: 'swing', speed: 700, offset: 0 });
}
/* --------- One Page Menu --------- */
$('.composite-page #primary-menu > ul > li > a[href*=#]').click(function () {
$(this).closest('ul').children('li').each(function () {
$(this).removeClass('active');
});
$(this).parent('li').addClass('active');
});
$('.composite-page #primary-menu > ul > li > a[href*=#]').each(function () {
var current_div_selector = MO_THEME.get_internal_link($(this).attr('href')); // Give ids of div's with ids like #work,#service, #portfolio etc.
$(current_div_selector).waypoint(function (direction) {
if (direction === "up") {
$('#primary-menu > ul > li').each(function () {
$(this).removeClass('active');
if ($(this).find('a').attr('href').indexOf(current_div_selector) !== -1) {
$(this).addClass('active');
}
});
}
}, {
offset: function () {
var half_browser_height = $.waypoints('viewportHeight') / 2;
var element_height = $(this).height();
var result = 0;
if (element_height > half_browser_height) {
result = -( element_height - (half_browser_height)); // enable when top of the div is half exposed on the screen
}
else {
result = -(element_height / 2); // enable the menu when everything is visible
}
return result;
}
}
);
$(current_div_selector).waypoint(function (direction) {
if (direction === "down") {
$('#primary-menu > ul > li').each(function () {
$(this).removeClass('active');
if ($(this).find('a').attr('href').indexOf(current_div_selector) !== -1) {
$(this).addClass('active');
}
});
}
}, { offset: '50%' });
});
},
init_menus: function () {
/* For sticky and primary menu navigation */
$('.dropdown-menu-wrap > ul').superfish({
delay: 100, // one second delay on mouseout
animation: {height: 'show'}, // fade-in and slide-down animation
speed: 'fast', // faster animation speed
autoArrows: false // disable generation of arrow mark-up
});
/* Take care of internal links too - close the menu when scrolling from internal links */
$("#mobile-menu-toggle, #mobile-menu a[href*=#]").click(function () {
MO_THEME.toggle_mobile_menu();
return true;
/* must return true to record click event for smooth scroll of internal links */
});
/* Close the mobile menu if the user touches the right document when mobile menu is open */
$('#container').on('click touchstart', function () {
if ($('body').hasClass('push-right')) {
MO_THEME.toggle_mobile_menu();
return false;
/* no need to do anything else for now until menu closes */
}
return true;
/* continue with normal click activity */
});
$("#mobile-menu ul li").each(function () {
var sub_menu = $(this).find("> ul");
if (sub_menu.length > 0 && $(this).addClass("has-ul")) {
$(this).append('<div class="sf-sub-indicator"><i class="icon-uniF488"></i></div>');
}
});
$('#mobile-menu ul li:has(">ul") > div').click(function () {
$(this).siblings("ul.sub-menu").stop(true, true).slideToggle();
$(this).parent().toggleClass("open");
return false;
});
this.init_page_navigation();
},
scroll_effects: function () {
if ($().waypoint === undefined) {
return;
}
$(".profiles .profile-header img, #client-list .fourcol img, .composite-page .showcase-section .image-area, .features-list-alternate i, #marketing-policy .symmetric-text h3").css('opacity', 0);
$(".features-list-alternate i").waypoint(function (direction) {
$(this).addClass("animated fadeIn");
}, { offset: $.waypoints('viewportHeight') - 300,
triggerOnce: true});
$(".composite-page .showcase-section .image-area").waypoint(function (direction) {
$(this).addClass("animated fadeInUp");
}, { offset: $.waypoints('viewportHeight') - 150,
triggerOnce: true});
$("#client-list .fourcol img").waypoint(function (direction) {
$(this).addClass("animated fadeIn");
}, { offset: $.waypoints('viewportHeight') - 250,
triggerOnce: true});
$(".profiles .profile-header img").waypoint(function (direction) {
$(this).addClass("animated fadeIn");
}, { offset: $.waypoints('viewportHeight') - 250,
triggerOnce: true});
$('#marketing-policy').waypoint(function (direction) {
setTimeout(function () {
$('#marketing-policy .symmetric-left h3').addClass("animated fadeInLeft");
}, 0);
setTimeout(function () {
$('#marketing-policy .symmetric-right h3').addClass("animated fadeInRight");
}, 400); // delay the second effect
}, { offset: $.waypoints('viewportHeight') - 280,
triggerOnce: true});
/* ------------------- Stats -----------------------------*/
$("#stats-section").waypoint(function (direction) {
MO_THEME.display_stats();
}, { offset: $.waypoints('viewportHeight') - 250,
triggerOnce: true});
$(".animate-numbers").waypoint(function (direction) {
setTimeout(function () {
MO_THEME.display_numbers(2400);
}, 100);
}, { offset: $.waypoints('viewportHeight') - 100,
triggerOnce: true});
},
prettyPhoto: function () {
if ($().prettyPhoto === undefined) {
return;
}
var theme_selected = 'pp_default';
$("a[rel^='prettyPhoto']").prettyPhoto({
"theme": theme_selected, /* light_rounded / dark_rounded / light_square / dark_square / facebook */
social_tools: false
});
},
toggle_state: function (toggle_element) {
var active_class;
var current_content;
active_class = 'active-toggle';
// close all others first
toggle_element.siblings().removeClass(active_class);
toggle_element.siblings().find('.toggle-content').slideUp("fast");
current_content = toggle_element.find('.toggle-content');
if (toggle_element.hasClass(active_class)) {
toggle_element.removeClass(active_class);
current_content.slideUp("fast");
}
else {
toggle_element.addClass(active_class);
current_content.slideDown("fast");
}
},
validate_contact_form: function () {
/* ------------------- Contact Form Validation ------------------------ */
var rules = {
contact_name: {
required: true,
minlength: 5
},
contact_email: {
required: true,
email: true
},
contact_phone: {
required: false,
minlength: 5
},
contact_url: {
required: false,
url: true
},
message: {
required: true,
minlength: 15
}
};
var messages = {
contact_name: {
required: mo_theme.name_required,
minlength: mo_theme.name_format
},
contact_email: mo_theme.email_required,
contact_url: mo_theme.url_required,
contact_phone: {
minlength: mo_theme.phone_required
},
message: {
required: mo_theme.message_required,
minlength: mo_theme.message_format
}
};
$("#content .contact-form").validate({
rules: rules,
messages: messages,
errorClass: 'form-error',
submitHandler: function (theForm) {
$.post(
theForm.action,
$(theForm).serialize(),
function (response) {
$("#content .feedback").html('<div class="success-msg">' + mo_theme.success_message + '</div>');
theForm.reset();
});
}
});
$(".widget .contact-form").validate({
rules: rules,
messages: messages,
errorClass: 'form-error',
submitHandler: function (theForm) {
$.post(
theForm.action,
$(theForm).serialize(),
function (response) {
$(".widget .feedback").html('<div class="success-msg">' + mo_theme.success_message + '</div>');
theForm.reset();
});
}
});
}
};
})(jQuery);
/*======================== Document event handling ======================*/
jQuery(document).ready(function ($) {
"use strict";
/* -------------------------- Initialize document based on platform type -------------------- */
MO_THEME.add_body_classes();
/* ---------------------------------- Drop-down Menu.-------------------------- */
MO_THEME.init_menus();
/* --------- Back to top function ------------ */
$(window).scroll(function () {
mo_wait_for_final_event(function () {
var yPos = $(window).scrollTop();
/* show back to top after screen has scrolled down 200px from the top in desktop and big size tablets only */
if (yPos > 200) {
if (!mo_options.disable_back_to_top) {
$("#go-to-top").fadeIn();
}
} else {
$("#go-to-top").fadeOut();
}
}, 200, 'go-to-top');
});
// Animate the scroll to top
$('#go-to-top').click(function (event) {
event.preventDefault();
$('html, body').animate({scrollTop: 0}, 600);
});
/* ------------------- Scroll Effects ----------------------------- */
var width = $(window).width();
if (width > 1100 && !mo_options.disable_animations_on_page && !mo_isIE() && !mo_isMobile()) {
MO_THEME.scroll_effects();
}
else {
//Show stats without waiting for user to scroll to the element
MO_THEME.display_stats();
setTimeout(function () {
MO_THEME.display_numbers(2400)
}, 200);
// Show elements rightaway without animation
$('#feature-pointers img').css({ opacity: 1});
}
/* ------------------- Tabs plus Tooltips ------------------------ */
$("ul.tabs").tabs(".pane");
$(".social-list li a[title]").not('#sidebar-header .social-list li a').tooltip();
$(".composite-page .page_section a.edit-button[title]").tooltip();
/* ------------------- Back to Top and Close ------------------------ */
$(".back-to-top").click(function (e) {
$('html,body').animate({
scrollTop: 0
}, 600);
e.preventDefault();
});
$('a.close').click(function (e) {
e.preventDefault();
$(this).closest('.message-box').fadeOut();
});
$(".toggle-label").toggle(
function () {
MO_THEME.toggle_state($(this).parent());
},
function () {
MO_THEME.toggle_state($(this).parent());
}
);
// Hide the honeypot trap field
$("p.trap-field").hide();
MO_THEME.validate_contact_form();
/* -------------------------------- PrettyPhoto Lightbox --------------------------*/
MO_THEME.prettyPhoto();
/* ------------------------------- Ticker display in home page --------------- */
$('.ticker').each(function () {
var num = 1;
var height = $(this).height();
var count = $(this).children().length;
var elem = $(this).find('div:nth-child(1)');
setInterval(function () {
var top = num * -height;
setTimeout(function () {
elem.css("margin-top", top + "px");
}, 1000);
if (num === count) {
setTimeout(function () {
elem.css("margin-top", "0px");
}, 1000);
num = 1;
} else {
num++;
}
}, 2000);
});
/* --------------------------- YouTube Video display ------------------------- */
if (!mo_isMobile()) {
var video_showcase = $(".ytp-video-showcase .ytp-player");
$(".ytp-video-showcase .ytp-player").mb_YTPlayer({
startAt: 0,
showYTLogo: false,
showControls: false,
autoPlay: false,
mute: false
});
$('.ytp-video-showcase .play-btn').click(function () {
// Hide the placeholder image when user clicks on play button
$('.ytp-video-showcase .img-bg').fadeOut();
});
var autoplay = $('.ytp-video-showcase .video-bg').data("video-autoplay");
if (autoplay === true) {
$('.ytp-video-showcase .img-bg').fadeOut();
}
video_showcase.on("YTPStart", function () {
jQuery(".ytp-video-showcase .video-controls").fadeIn();
jQuery(".ytp-video-showcase .header-content").fadeOut();
});
video_showcase.on("YTPPause", function () {
jQuery(".ytp-video-showcase .video-controls").fadeOut();
jQuery(".ytp-video-showcase .header-content").fadeIn();
});
var video_section = $(".ytp-video-section .ytp-player");
video_section.mb_YTPlayer({
startAt: 0,
showYTLogo: false,
showControls: false,
autoPlay: true,
mute: true
});
}
/* --------------------------- HTML5 Video display ------------------------- */
if (!mo_isMobile()) {
$('.video-showcase .play-btn').click(function () {
// Hide the placeholder image when user clicks on play button
$('.video-showcase .img-bg').fadeOut();
jQuery(".video-showcase .video-controls").fadeIn();
jQuery(".video-showcase .header-content").fadeOut();
});
$('.video-showcase .small-pause-btn').click(function () {
jQuery(".video-showcase .video-controls").fadeOut();
jQuery(".video-showcase .header-content").fadeIn();
});
}
/*-----------------------------------------------------------------------------------*/
/* jQuery isotope functions and Infinite Scroll
/*-----------------------------------------------------------------------------------*/
$(function () {
if ($().isotope === undefined) {
return;
}
var post_snippets = $('.post-snippets').not('.bx-wrapper .post-snippets').not('.pane .post-snippets');
post_snippets.imagesLoaded(function () {
$(this).isotope({
// options
itemSelector: '.entry-item',
layoutMode: 'fitRows'
});
});
var container = $('#showcase-items');
if (container.length === 0) {
return;
}
container.imagesLoaded(function () {
$(this).isotope({
// options
itemSelector: '.showcase-item',
layoutMode: 'fitRows'
});
$('#showcase-filter a').click(function (e) {
e.preventDefault();
var selector = $(this).attr('data-value');
container.isotope({ filter: selector });
return false;
});
});
if (mo_options.ajax_showcase) {
if ($().infinitescroll !== undefined && $('.pagination').length) {
container.infinitescroll({
navSelector: '.pagination', // selector for the paged navigation
nextSelector: '.pagination .next', // selector for the NEXT link (to page 2)
itemSelector: '.showcase-item', // selector for all items you'll retrieve
loading: {
msgText: mo_theme.loading_portfolio,
finishedMsg: mo_theme.finished_loading,
img: template_dir + '/images/loader.gif',
selector: '#main'
}
},
// call Isotope as a callback
function (newElements) {
var $newElems = $(newElements);
$newElems.imagesLoaded(function () {
container.isotope('appended', $newElems);
});
MO_THEME.prettyPhoto();
});
}
}
});
/*-----------------------------------------------------------------------------------*/
/* Handle videos in responsive layout - Credit - http://css-tricks.com/NetMag/FluidWidthVideo/Article-FluidWidthVideo.php
/*-----------------------------------------------------------------------------------*/
$("#content, #sidebar-primary, #footer").fitVids();
// Take care of maps too - https://github.com/davatron5000/FitVids.js - customSelector option
$("#content").fitVids({ customSelector: "iframe[src^='http://maps.google.com/'], iframe[src^='https://maps.google.com/'], iframe[src^='https://www.google.com/maps/'], iframe[src^='http://www.google.com/maps/']"});
/*----------------- Parallax Effects - only on desktop ------------------ */
width = $(window).width();
if (width > 1100) {
$('.parallax-banner').parallax("50%", 0.6);
}
/*------------- Skrollr Animations Pre-setup ----------------*/
$('#content > .hfeed > .page_section:first-child .video-showcase, #custom-title-area .video-showcase').wrap("<div class='dim-wrap'></div>");
});
jQuery(window).load(function () {
/*------------- Skrollr Animations ----------------*/
var width = jQuery(window).width();
if (width > 1100 && !mo_isIE() && !mo_isMobile()) {
jQuery('#title-area').wrap("<div class='dim-wrap'></div>").attr('data-top', "opacity:1;background-position: 0px 0px;").attr('data-top-bottom', "opacity: 0.6;background-position:0px -250px;");
jQuery('.ticker-slider').wrap("<div class='dim-wrap'></div>").attr('data-top', "opacity:1;transform: matrix(1, 0, 0, 1, 0, 0);").attr('data-top-bottom', "opacity: 0.6;transform:matrix(1, 0, 0, 1, 0, 450);");
jQuery('#content > .hfeed > .page_section:first-child .video-showcase, #custom-title-area .video-showcase').attr('data-top', "opacity:1;transform: matrix(1, 0, 0, 1, 0, 0);").attr('data-top-bottom', "opacity: 0.6;transform:matrix(1, 0, 0, 1, 0, 450);");
jQuery('#title-area h1, #title-area h2').attr('data-0', "opacity:1;letter-spacing:2px;").attr('data-top-bottom', "opacity: 0.5;letter-spacing:10px;");
jQuery('#title-area p').attr('data-0', "opacity:1;").attr('data-top-bottom', "opacity: 0.5;");
var s = skrollr.init({
smoothScrolling: false,
forceHeight: false,
mobileCheck: function () {
return false;
}
});
}
/*------------ Show the page now that all have been loaded ---------*/
if (!mo_options.disable_smooth_page_load) {
jQuery("#page-loading").delay(500).fadeOut("slow");
}
/* Temporary fix for Chrome 33 Build Fonts display issue */
jQuery('body').width(jQuery('body').width() + 1).width('auto');
});