123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- new WOW().init();
- jQuery(document).ready(function($) {
- $(window).bind("load", function () {
- $('#loader').fadeOut(100);
- //$('.terminal').modal('show');
- });
- $(function(){
- $(".typed").typed({
- strings: ["Hey,", "Hello,\n^10Welcome to ^10my domain ^10...^10", "Hello, \nWelcome to my little corner of the internet. \n^10It's nice to ", "Hello, \nWelcome to my little corner of the internet. \nIt's very nice to have you here!^10\n"],
- typeSpeed: -40,
- backSpeed: -70,
- startDelay: 0,
- backDelay: 0,
- loop: false,
- loopCount: false,
- attr: null,
- callback: function(){
- //shift();
- }
- });
- });
-
- function shift(){
- $('.leader').ScrollTo({
- duration: 1500,
- easing: 'linear',
- durationMode: 'all',
- callback: function(){
- thecollapse();
- }
- });
- }
- function thecollapse(){
- //$('.intro').collapse('hide')
- //$('.terminal').modal('hide')
- }
- $('#nav').affix({
- offset: {top: $('.intro').height()-$('#nav').height()}
- });
- $('.nav-toggle').on( 'click', function() {
- $( this ).toggleClass( 'active' );
- });
- $(function(){
- $('.calendar').fullCalendar ({
- firstDay : 1,
- height: 345,
- events: [
- {
- title: 'Project',
- start: '2014-09-27',
- end: '2014-10-02'
- },
- {
- title: 'Conf',
- start: '2014-10-11',
- end: '2014-10-13',
- borderColor: 'red'
- },
- {
- title: 'off',
- start: '2014-10-13',
- end: '2014-10-16'
- },
- {
- title: 'Contract',
- start: '2014-10-16',
- end: '2014-10-31'
- },
- {
- title: 'Contract',
- start: '2014-11-03',
- end: '2014-11-22'
- },
- {
- title: 'Project',
- start: '2014-12-01',
- end: '2014-12-06'
- },
- {
- title: 'Project',
- start: '2014-12-08',
- end: '2014-12-13'
- },
- {
- title: 'Holiday',
- start: '2014-12-22',
- end: '2015-01-05',
- borderColor: 'red'
- },
- {
- title: 'Project',
- start: '2015-01-06',
- end: '2015-01-25'
- },
- {
- title: 'Project',
- start: '2015-02-02',
- end: '2015-02-14'
- },
- {
- title: 'Holiday',
- start: '2015-02-14',
- end: '2015-02-19',
- borderColor: 'red'
- },
- ]
- })
- });
- ;(function ($) {
- 'use strict';
- var content = $('.transit').smoothState({
- onStart : {
- duration: 250,
- render: function () {
- content.toggleAnimationClass('is-exiting');
- }
- }
- }).data('smoothState');
- })(jQuery);
- var headerHeight = $('.navbar').height();
- $(window).on('scroll', { previousTop: 0 },
- function() {
- var currentTop = $(window).scrollTop();
- if (currentTop < this.previousTop) {
- if (currentTop > 0 && $('.navbar').hasClass('fixed')) {
- $('.navbar').addClass('visible');
- } else {
- $('.navbar').removeClass('visible fixed');
- }
- } else {
- $('.navbar').removeClass('visible');
- if (currentTop > headerHeight && !$('.navbar').hasClass('fixed')) $('.navbar').addClass('fixed');
- }
- this.previousTop = currentTop;
- });
- var commentsDiv = $('#comments');
- if (commentsDiv.length) {
- $(commentsDiv).hide();
- $('.toggle-comments').on('click', function(e) {
- e.preventDefault();
- $(commentsDiv).toggle('slow', function() {
- var anchor = $('.toggle-comments');
- var anchorText = anchor.text() === 'Hide Comments' ? 'Show Comments' : 'Hide Comments';
- $(anchor).text(anchorText);
- });
- });
- }
- });
- ;(function ($) {
- 'use strict';
- var $body = $('html, body'),
- content = $('#big-top').smoothState({
- prefetch: true,
- pageCacheSize: 4,
- onStart: {
- duration: 250,
- render: function (url, $container) {
- content.toggleAnimationClass('is-exiting');
- $body.animate({
- scrollTop: 0
- });
- }
- }
- }).data('smoothState');
- })(jQuery);
|