All javascripts are placed in folder /js. In main.js file we implement all functions calls.
This theme uses following Javascript files:
- jquery-1.11.2
- jquery.easing.1.3
- jquery.browser
- jquery.appear
- bootstrap
- device
- classie
- contact-form
- jquery.tweet
- jquery.stellar/ct-mediaSection
- uiMorphingButton_fixed (http://tympanus.net/codrops/2014/05/12/morphing-buttons-concept/)
- snap (https://github.com/jakiestfu/Snap.js/)
- progresBar
- headroom (http://wicky.nillia.ms/headroom.js/)
- owl.carousel (http://owlgraphic.com/owlcarousel/#how-to)
- jquery.isotope
- jquery.magnific-popup
- gmap3
- Chart
- jquery.countTo
- jquery.mb-comingsoon
- progressicons
Google Map (GMAP3 Plugin)
This is google map with custom marker, you can define couple parameters:
- data-location – address to show
- data-height – map height (if undefined height will be 220px)
- data-offset – by how many map should be repositioned from marker center point (default -30)
It uses gmap3 plugin.
Documentation: here
HTML Markup:
1 |
<div class="ct-googleMap" data-location="Narbutta 24, Warsaw" data-zoom="15" data-height="500"></div> |
All javascript code can be found in js/main.js file.
jquery.appear
This plugin call function when element appear in viewport. This is used in custom animation, progress bars, counter timer.
Documentation: https://github.com/bas2k/jquery.appear/
1 2 3 4 5 6 7 8 9 10 11 12 13 |
if (jQuery().appear) { if (device.mobile()) { // disable animation on mobile jQuery("body").removeClass("withAnimation"); } else { jQuery('.withAnimation .animated').appear(function () { jQuery(this).each(function () { jQuery(this).addClass('activate'); jQuery(this).addClass($(this).data('fx')); }); }, {accY: -150}); } } |