Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- "use strict"
- // global. currently active menu item
- var current_item = 0;
- // few settings
- var section_hide_time = 1000;
- var section_show_time = 1000;
- // Switch section
- $("a", '#main-nav').click(function()
- {
- if( ! $(this).hasClass('active') ) {
- current_item = this;
- $('.section:visible').fadeOut( section_hide_time, function() {
- $('a', '#main-nav').removeClass( 'active' );
- $(current_item).addClass( 'active' );
- var new_section = $( $(current_item).attr('href') );
- new_section.fadeIn( section_show_time );
- } );
- }
- return false;
- });
- });
- $(window).load(function() {
- setTimeout(function(){
- var myLatlng = new google.maps.LatLng(1.338387,103.922697);
- var mapOptions = {
- zoom: 16,
- center: myLatlng,
- scrollwheel: false
- };
- var map = new google.maps.Map(document.getElementById('map_canvas'), mapOptions);
- var marker = new google.maps.Marker({
- position: myLatlng,
- map: map,
- title: 'Event 1'
- });
- $('#img-gallery').imagesLoaded(function() {
- $('#img-gallery').masonry({
- itemSelector : '.item',
- columnWidth : '.grid-sizer'
- });
- });
- }, 2000);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement