Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //wow .js
- //wow .js
- /*
- if ($(window).width() > 767) {
- new WOW().init();
- }
- --------------------------------------\\\\\\\\\\\\\\\\\
- $('a').on('click', function () {
- if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
- var target = $(this.hash);
- target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
- if (target.length) {
- $('html,body').animate({
- scrollTop: target.offset().top
- }, 1000);
- return false;
- }
- }
- });
- --------------\\\\\\\\\\\\\\\\\
- //counter
- $('.count').each(function () {
- $(this).prop('Counter', 0).animate({
- Counter: $(this).text()
- }, {
- duration: 4000,
- easing: 'swing',
- step: function (now) {
- $(this).text(Math.ceil(now));
- }
- });
- });
- -----------------\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- //stop the map zoom
- if ($('#map').length) {
- //Contact Map
- var map;
- map = new GMaps({
- el: '#map'
- , lat: -12.043333
- , lng: -77.028333
- , scrollwheel: false
- });
- map.drawOverlay({
- lat: map.getCenter().lat()
- ,
- lng: map.getCenter().lng()
- ,
- layer: 'overlayLayer'
- ,
- content: '<div class="overlay_map"><img src="images/marker.png" alt="map-marker"></div></div>'
- ,
- verticalAlign: 'top'
- ,
- horizontalAlign: 'center'
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement