summaryrefslogtreecommitdiff
path: root/gospeladlershof.de/static/js/gc.js
diff options
context:
space:
mode:
Diffstat (limited to 'gospeladlershof.de/static/js/gc.js')
-rw-r--r--gospeladlershof.de/static/js/gc.js88
1 files changed, 88 insertions, 0 deletions
diff --git a/gospeladlershof.de/static/js/gc.js b/gospeladlershof.de/static/js/gc.js
new file mode 100644
index 0000000..3518c5c
--- /dev/null
+++ b/gospeladlershof.de/static/js/gc.js
@@ -0,0 +1,88 @@
+/*!
+ * Start Bootstrap - Creative Bootstrap Theme (http://startbootstrap.com)
+ * Code licensed under the Apache License v2.0.
+ * For details, see http://www.apache.org/licenses/LICENSE-2.0.
+ */
+
+(function($) {
+ "use strict"; // Start of use strict
+
+ // jQuery for page scrolling feature - requires jQuery Easing plugin
+ $('a.page-scroll').bind('click', function(event) {
+ var $anchor = $(this);
+ $('html, body').stop().animate({
+ scrollTop: ($($anchor.attr('href')).offset().top - 50)
+ }, 1250, 'easeInOutExpo');
+ event.preventDefault();
+ if (history.pushState) {
+ if ( "#page-top" == $anchor.attr('href') ) {
+ history.pushState('', '', window.location.pathname);
+ } else {
+ history.pushState('', 'Gospelchor Adlershof - ' + $anchor.text(), $anchor.attr('href'));
+ }
+ }
+ });
+
+ // Highlight the top nav as scrolling occurs
+ $('body').scrollspy({
+ target: '.navbar-fixed-top',
+ offset: 51
+ })
+
+ // Closes the Responsive Menu on Menu Item Click
+ $('.navbar-collapse ul li a:not(.dropdown-toggle)').click(function() {
+ $('.navbar-toggle:visible').click();
+ });
+
+ // Fit Text Plugin for Main Header
+ $("h1").fitText(
+ 1.2, {
+ minFontSize: '35px',
+ maxFontSize: '65px'
+ }
+ );
+
+ // Offset for Main Navigation
+ $('#mainNav').affix({
+ offset: {
+ top: 100
+ }
+ })
+
+ // Initialize WOW.js Scrolling Animations
+ //new WOW().init();
+ //cbpAnimeHeader();
+
+})(jQuery); // End of use strict
+
+/*!
+* Email obfuscator script 2.1 by Tim Williams, University of Arizona
+* Random encryption key feature by Andrew Moulden, Site Engineering Ltd
+* This code is freeware provided these four comment lines remain intact
+* A wizard to generate this code is at http://www.jottings.com/obfuscator/
+* Modified by Maximilian Möhring
+*/
+
+function deobfuscate_contact(coded, key, number) {
+ coded = coded
+ key = key
+ shift=coded.length
+ link=""
+ for (i=0; i<coded.length; i++) {
+ if (key.indexOf(coded.charAt(i))==-1) {
+ ltr = coded.charAt(i)
+ link += (ltr)
+ }
+ else {
+ ltr = (key.indexOf(coded.charAt(i))-shift+key.length) % key.length
+ link += (key.charAt(ltr))
+ }
+ }
+ $('.obfuscated-' + number).html(link);
+ $('.obfuscated-a-' + number).attr('href', 'mailto:'+link);
+}
+
+$(document).ready(function(){
+ deobfuscate_contact("9Ick@hcJsytUAtykJIcu.Ay", "pPeW3GidzobDFRQTS0q6Ilnsfyw217ALcYO8garmKCVBt5JuxEjZNHX9Mv4hUk", 1);
+ deobfuscate_contact("O4lI6ahxaI@ElHTa61j6aIH4l9.ja", "7UVlzsdD9CZgqRu0LF2b5OhrXx1npvem6SHjoWQyEfJYkK8APBG4INci3TtawM", 2);
+});