generated from mpi-astronomy/mpia-event-website-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ba97c30
commit c3c3e38
Showing
15 changed files
with
5,696 additions
and
89 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
jQuery(function ($) { | ||
|
||
'use strict'; | ||
|
||
// -------------------------------------------------------------------- | ||
// PreLoader | ||
// -------------------------------------------------------------------- | ||
|
||
(function () { | ||
$('#preloader').delay(200).fadeOut('slow'); | ||
}()); | ||
|
||
// -------------------------------------------------------------------- | ||
// One Page Navigation | ||
// -------------------------------------------------------------------- | ||
|
||
(function () { | ||
$(window).scroll(function () { | ||
if ($(this).scrollTop() >= 50) { | ||
$('nav.navbar').addClass('sticky-nav'); | ||
} | ||
else { | ||
$('nav.navbar').removeClass('sticky-nav'); | ||
} | ||
}); | ||
}()); | ||
|
||
// -------------------------------------------------------------------- | ||
// jQuery for page scrolling feature - requires jQuery Easing plugin | ||
// -------------------------------------------------------------------- | ||
|
||
(function () { | ||
$('a.page-scroll').on('click', function (e) { | ||
e.preventDefault(); | ||
var $anchor = $(this); | ||
$('html, body').stop().animate({ | ||
scrollTop : $($anchor.attr('href')).offset().top | ||
}, 1500, 'easeInOutExpo'); | ||
}); | ||
}()); | ||
|
||
// -------------------------------------------------------------------- | ||
// Closes the Responsive Menu on Menu Item Click | ||
// -------------------------------------------------------------------- | ||
|
||
(function () { | ||
$('.navbar-collapse ul li a').on('click', function () { | ||
if ($(this).attr('class') != 'dropdown-toggle active' && $(this).attr('class') != 'dropdown-toggle') { | ||
$('.navbar-toggle:visible').trigger('click'); | ||
} | ||
}); | ||
}()); | ||
|
||
// -------------------------------------------------------------------- | ||
// Google Map | ||
// -------------------------------------------------------------------- | ||
|
||
(function () { | ||
if ($('#googleMap').length > 0) { | ||
|
||
//set your google maps parameters | ||
var $latitude = 48.869319, //If you unable to find latitude and longitude of your address. Please visit http://www.latlong.net/convert-address-to-lat-long.html you can easily generate. | ||
$longitude = 2.354261, | ||
$map_zoom = 18; | ||
/* ZOOM SETTING */ | ||
|
||
//google map custom marker icon | ||
var $marker_url = 'img/google-map-marker.png'; | ||
|
||
//we define here the style of the map | ||
var style = [{ | ||
"stylers" : [{ | ||
"hue" : "#000" | ||
}, { | ||
"saturation" : 100 | ||
}, { | ||
"gamma" : 1.15 | ||
}, { | ||
"lightness" : 5 | ||
}] | ||
}]; | ||
|
||
//set google map options | ||
var map_options = { | ||
center : new google.maps.LatLng($latitude, $longitude), | ||
zoom : $map_zoom, | ||
panControl : false, | ||
zoomControl : false, | ||
mapTypeControl : false, | ||
streetViewControl : false, | ||
mapTypeId : google.maps.MapTypeId.ROADMAP, | ||
scrollwheel : false, | ||
styles : style, | ||
} | ||
//initialize the map | ||
var map = new google.maps.Map(document.getElementById('googleMap'), map_options); | ||
//add a custom marker to the map | ||
var marker = new google.maps.Marker({ | ||
position : new google.maps.LatLng($latitude, $longitude), | ||
map : map, | ||
visible : true, | ||
icon : $marker_url | ||
}); | ||
} | ||
}()); | ||
|
||
}); // JQuery end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Anything static content goes here. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.