From 5705fe429f3ec3abf37bed212499542aa5c2e6ae Mon Sep 17 00:00:00 2001 From: Marc Date: Thu, 24 Dec 2015 21:02:49 -0500 Subject: [PATCH] Cleaning. --- index.html | 7 ++--- js/fullpage.js | 58 ----------------------------------------- js/typed/LICENSE.txt | 21 +++++++++++++++ js/{ => typed}/typed.js | 0 4 files changed, 23 insertions(+), 63 deletions(-) delete mode 100644 js/fullpage.js create mode 100755 js/typed/LICENSE.txt rename js/{ => typed}/typed.js (100%) diff --git a/index.html b/index.html index 285da5d..7afa35f 100644 --- a/index.html +++ b/index.html @@ -2,10 +2,9 @@ - Hello! + Hello! I'm Marc! - @@ -112,12 +111,10 @@ - - - + diff --git a/js/fullpage.js b/js/fullpage.js deleted file mode 100644 index a46c14a..0000000 --- a/js/fullpage.js +++ /dev/null @@ -1,58 +0,0 @@ -/*! - * fullPage 2.7.6 - * https://github.com/alvarotrigo/fullPage.js - * @license MIT licensed - * - * Copyright (C) 2015 alvarotrigo.com - A project by Alvaro Trigo - */ -(function(d,h){"function"===typeof define&&define.amd?define(["jquery"],function(m){return h(m,d,d.document,d.Math)}):"undefined"!==typeof exports?module.exports=h(require("jquery"),d,d.document,d.Math):h(jQuery,d,d.document,d.Math)})("undefined"!==typeof window?window:this,function(d,h,m,n,E){var p=d(h),u=d(m),ma;d.fn.fullpage=function(c){function v(){c.css3&&(c.css3=Na());c.anchors.length||(c.anchors=d(c.sectionSelector+"[data-anchor]").map(function(){return d(this).data("anchor").toString()}).get()); -Oa();e.setAllowScrolling(!0);r=p.height();e.setAutoScrolling(c.autoScrolling,"internal");var a=d(".fp-section.active").find(".fp-slide.active");a.length&&(0!==d(".fp-section.active").index(".fp-section")||0===d(".fp-section.active").index(".fp-section")&&0!==a.index())&&U(a);na();oa();p.on("load",function(){var a=h.location.hash.replace("#","").split("/"),d=a[0],a=a[1];d&&(c.animateAnchor?V(d,a):e.silentMoveTo(d,a))})}function Oa(){k.css({height:"100%",position:"relative"});k.addClass("fullpage-wrapper"); -d("html").addClass("fp-enabled");k.removeClass("fp-destroyed");Pa();d(".fp-section").each(function(a){var b=d(this),g=b.find(".fp-slide"),f=g.length;a||0!==d(".fp-section.active").length||b.addClass("active");b.css("height",r+"px");c.paddingTop&&b.css("padding-top",c.paddingTop);c.paddingBottom&&b.css("padding-bottom",c.paddingBottom);"undefined"!==typeof c.sectionsColor[a]&&b.css("background-color",c.sectionsColor[a]);"undefined"!==typeof c.anchors[a]&&b.attr("data-anchor",c.anchors[a]);"undefined"!== -typeof c.anchors[a]&&b.hasClass("active")&&W(c.anchors[a],a);c.menu&&c.css3&&d(c.menu).closest(".fullpage-wrapper").length&&d(c.menu).appendTo(q);0');b.parent().wrap('
');a.find(".fp-slidesContainer").css("width", -f+"%");1
'); -"#fff"!=c.controlArrowColor&&(a.find(".fp-controlArrow.fp-next").css("border-color","transparent transparent transparent "+c.controlArrowColor),a.find(".fp-controlArrow.fp-prev").css("border-color","transparent "+c.controlArrowColor+" transparent transparent"));c.loopHorizontal||a.find(".fp-controlArrow.fp-prev").hide()}function Ra(){q.append('
    ');var a=d("#fp-nav");a.addClass(function(){return c.showActiveTooltip?"fp-show-active "+c.navigationPosition:c.navigationPosition}); -for(var b=0;b',f=c.navigationTooltips[b];"undefined"!==typeof f&&""!==f&&(g+='
    '+f+"
    ");g+="";a.find("ul").append(g)}d("#fp-nav").css("margin-top","-"+d("#fp-nav").height()/2+"px");d("#fp-nav").find("li").eq(d(".fp-section.active").index(".fp-section")).find("a").addClass("active")}function qa(){d(".fp-section").each(function(){var a= -d(this).find(".fp-slide");a.length?a.each(function(){J(d(this))}):J(d(this))});ra()}function ra(){var a=d(".fp-section.active");c.scrollOverflowHandler.afterRender&&c.scrollOverflowHandler.afterRender(a);K(a);X(a);d.isFunction(c.afterLoad)&&c.afterLoad.call(a,a.data("anchor"),a.index(".fp-section")+1);d.isFunction(c.afterRender)&&c.afterRender.call(k)}function sa(){var a;if(!c.autoScrolling||c.scrollBar){for(var b=p.scrollTop(),g=0,f=n.abs(b-m.querySelectorAll(".fp-section")[0].offsetTop),e=m.querySelectorAll(".fp-section"), -h=0;hn.abs(G-F)?n.abs(N-M)>h.outerWidth/100*c.touchSensitivity&&(N>M?l.m.right&&e.moveSlideRight():l.m.left&&e.moveSlideLeft()):c.autoScrolling&&n.abs(G-F)>p.height()/100*c.touchSensitivity&&(G>F?L("down",g):F>G&&L("up",g)))}}function ta(a,b){b=b||0;var g=d(a).parent();return b=g&&e&&(0>f?L("down",a):L("up",a)));return!1}c.fitToSection&&y.stop()}function xa(a,b){var g=("undefined"===typeof b?d(".fp-section.active"): -b).find(".fp-slides"),f=g.find(".fp-slide").length;if(!(!g.length||x||2>f)){var f=g.find(".fp-slide.active"),e=null,e="prev"===a?f.prev(".fp-slide"):f.next(".fp-slide");if(!e.length){if(!c.loopHorizontal)return;e="prev"===a?f.siblings(":last"):f.siblings(":first")}x=!0;H(g,e)}}function ya(){d(".fp-slide.active").each(function(){U(d(this),"internal")})}function A(a,b,g){requestAnimFrame(function(){var f=a.position();if("undefined"!==typeof f){var e=a.hasClass("fp-auto-height")&&f.top?f.top-r+a.height(): -f.top,f={element:a,callback:b,isMovementUp:g,dest:f,dtop:e,yMovement:Z(a),anchorLink:a.data("anchor"),sectionIndex:a.index(".fp-section"),activeSlide:a.find(".fp-slide.active"),activeSection:d(".fp-section.active"),leavingSection:d(".fp-section.active").index(".fp-section")+1,localIsResizing:t};if(!(f.activeSection.is(a)&&!t||c.scrollBar&&p.scrollTop()===f.dtop&&!a.hasClass("fp-auto-height"))){if(f.activeSlide.length)var h=f.activeSlide.data("anchor"),k=f.activeSlide.index();c.autoScrolling&&c.continuousVertical&& -"undefined"!==typeof f.isMovementUp&&(!f.isMovementUp&&"up"==f.yMovement||f.isMovementUp&&"down"==f.yMovement)&&(f.isMovementUp?d(".fp-section.active").before(f.activeSection.nextAll(".fp-section")):d(".fp-section.active").after(f.activeSection.prevAll(".fp-section").get().reverse()),I(d(".fp-section.active").position().top),ya(),f.wrapAroundElements=f.activeSection,f.dest=f.element.position(),f.dtop=f.dest.top,f.yMovement=Z(f.element));if(!d.isFunction(c.onLeave)||f.localIsResizing||!1!==c.onLeave.call(f.activeSection, -f.leavingSection,f.sectionIndex+1,f.yMovement))za(f.activeSection),a.addClass("active").siblings().removeClass("active"),K(a),w=!1,aa(k,h,f.anchorLink,f.sectionIndex),Wa(f),z=f.anchorLink,W(f.anchorLink,f.sectionIndex)}}})}function Wa(a){if(c.css3&&c.autoScrolling&&!c.scrollBar)Aa("translate3d(0px, -"+a.dtop+"px, 0px)",!0),c.scrollingSpeed?ea=setTimeout(function(){fa(a)},c.scrollingSpeed):fa(a);else{var b=Xa(a);d(b.element).animate(b.options,c.scrollingSpeed,c.easing).promise().done(function(){fa(a)})}} -function Xa(a){var b={};c.autoScrolling&&!c.scrollBar?(b.options={top:-a.dtop},b.element=".fullpage-wrapper"):(b.options={scrollTop:a.dtop},b.element="html, body");return b}function fa(a){a.wrapAroundElements&&a.wrapAroundElements.length&&(a.isMovementUp?d(".fp-section:first").before(a.wrapAroundElements):d(".fp-section:last").after(a.wrapAroundElements),I(d(".fp-section.active").position().top),ya());a.element.find(".fp-scrollable").mouseover();d.isFunction(c.afterLoad)&&!a.localIsResizing&&c.afterLoad.call(a.element, -a.anchorLink,a.sectionIndex+1);X(a.element);w=!0;d.isFunction(a.callback)&&a.callback.call(this)}function K(a){a=ga(a);a.find("img[data-src], source[data-src], audio[data-src]").each(function(){d(this).attr("src",d(this).data("src"));d(this).removeAttr("data-src");d(this).is("source")&&d(this).closest("video").get(0).load()})}function X(a){a=ga(a);a.find("video, audio").each(function(){var a=d(this).get(0);a.hasAttribute("autoplay")&&"function"===typeof a.play&&a.play()})}function za(a){a=ga(a);a.find("video, audio").each(function(){var a= -d(this).get(0);a.hasAttribute("data-ignore")||"function"!==typeof a.pause||a.pause()})}function ga(a){var b=a.find(".fp-slide.active");b.length&&(a=d(b));return a}function Ba(){if(!Y&&!c.lockAnchors){var a=h.location.hash.replace("#","").split("/"),b=a[0],a=a[1],d="undefined"===typeof z,f="undefined"===typeof z&&"undefined"===typeof a&&!x;b.length&&(b&&b!==z&&!d||f||!x&&ha!=a)&&V(b,a)}}function Ya(a){w&&(a.pageYP&&e.moveSectionDown());P=a.pageY}function H(a,b){var g=b.position(), -f=b.index(),e=a.closest(".fp-section"),h=e.index(".fp-section"),k=e.data("anchor"),l=e.find(".fp-slidesNav"),m=ia(b),v=e.find(".fp-slide.active"),p=t;if(c.onSlideLeave){var q=v.index(),r;r=q==f?"none":q>f?"left":"right";if(!p&&"none"!==r&&d.isFunction(c.onSlideLeave)&&!1===c.onSlideLeave.call(v,k,h+1,q,r,f)){x=!1;return}}za(v);b.addClass("active").siblings().removeClass("active");p||K(b);!c.loopHorizontal&&c.controlArrows&&(e.find(".fp-controlArrow.fp-prev").toggle(0!==f),e.find(".fp-controlArrow.fp-next").toggle(!b.is(":last-child"))); -e.hasClass("active")&&aa(f,m,k,h);var u=function(){p||d.isFunction(c.afterSlideLoad)&&c.afterSlideLoad.call(b,k,h+1,m,f);X(b);x=!1};c.css3?(g="translate3d(-"+n.round(g.left)+"px, 0px, 0px)",Ca(a.find(".fp-slidesContainer"),020*n.max(ka,a)/100&&(e.reBuild(!0),ka=a))}else clearTimeout(la),la=setTimeout(function(){e.reBuild(!0)},350)}function na(){var a=c.responsive||c.responsiveWidth,b=c.responsiveHeight,d=a&&h.outerWidtha||900>b){var c=n.min(100*a/825,100*b/900).toFixed(2);q.css("font-size",c+"%")}else q.css("font-size","100%")}function W(a,b){c.menu&&(d(c.menu).find(".active").removeClass("active"),d(c.menu).find('[data-menuanchor="'+a+'"]').addClass("active"));c.navigation&&(d("#fp-nav").find(".active").removeClass("active"),a?d("#fp-nav").find('a[href="#'+a+'"]').addClass("active"):d("#fp-nav").find("li").eq(b).find("a").addClass("active"))}function Z(a){var b=d(".fp-section.active").index(".fp-section"); -a=a.index(".fp-section");return b==a?"none":b>a?"up":"down"}function J(a){a.css("overflow","hidden");var b=c.scrollOverflowHandler,d=b.wrapContent(),f=a.closest(".fp-section"),e=b.scrollable(a),h;e.length?h=b.scrollHeight(a):(h=a.get(0).scrollHeight,c.verticalCentered&&(h=a.find(".fp-tableCell").get(0).scrollHeight));f=r-parseInt(f.css("padding-bottom"))-parseInt(f.css("padding-top"));h>f?e.length?b.update(a,f):(c.verticalCentered?a.find(".fp-tableCell").wrapInner(d):a.wrapInner(d),b.create(a,f)): -b.remove(a);a.css("overflow","")}function pa(a){a.addClass("fp-table").wrapInner('
    ')}function Fa(a){var b=r;if(c.paddingTop||c.paddingBottom)b=a,b.hasClass("fp-section")||(b=a.closest(".fp-section")),a=parseInt(b.css("padding-top"))+parseInt(b.css("padding-bottom")),b=r-a;return b}function Aa(a,b){b?Ca(k):k.addClass("fp-notransition");k.css(Da(a));setTimeout(function(){k.removeClass("fp-notransition")},10)}function Ga(a){var b=k.find('.fp-section[data-anchor="'+ -a+'"]');b.length||(b=d(".fp-section").eq(a-1));return b}function V(a,b){var c=Ga(a);"undefined"===typeof b&&(b=0);a===z||c.hasClass("active")?Ha(c,b):A(c,function(){Ha(c,b)})}function Ha(a,b){if("undefined"!==typeof b){var c=a.find(".fp-slides"),d;d=a.find(".fp-slides");var e=d.find('.fp-slide[data-anchor="'+b+'"]');e.length||(e=d.find(".fp-slide").eq(b));d=e;d.length&&H(c,d)}}function Ta(a,b){a.append('
      ');var d=a.find(".fp-slidesNav");d.addClass(c.slidesNavPosition); -for(var f=0;f');d.css("margin-left","-"+d.width()/2+"px");d.find("li").first().find("a").addClass("active")}function aa(a,b,d,f){f="";c.anchors.length&&!c.lockAnchors&&(a?("undefined"!==typeof d&&(f=d),"undefined"===typeof b&&(b=a),ha=b,Ia(f+"/"+b)):("undefined"!==typeof a&&(ha=b),Ia(d)));oa()}function Ia(a){if(c.recordHistory)location.hash=a;else if(Q||R)history.replaceState(E,E,"#"+a);else{var b=h.location.href.split("#")[0];h.location.replace(b+ -"#"+a)}}function ia(a){var b=a.data("anchor");a=a.index();"undefined"===typeof b&&(b=a);return b}function oa(){var a=d(".fp-section.active"),b=a.find(".fp-slide.active"),c=ia(a),f=ia(b);a.index(".fp-section");a=String(c);b.length&&(a=a+"-"+f);a=a.replace("/","-").replace("#","");q[0].className=q[0].className.replace(RegExp("\\b\\s?fp-viewing-[^\\s]+\\b","g"),"");q.addClass("fp-viewing-"+a)}function Na(){var a=m.createElement("p"),b,c={webkitTransform:"-webkit-transform",OTransform:"-o-transform", -msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};m.body.insertBefore(a,null);for(var d in c)a.style[d]!==E&&(a.style[d]="translate3d(1px,1px,1px)",b=h.getComputedStyle(a).getPropertyValue(c[d]));m.body.removeChild(a);return b!==E&&0(b/=e/2)?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c}});d.extend(d.easing,{easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c}});e.setAutoScrolling=function(a,b){S("autoScrolling",a,b);var g=d(".fp-section.active");c.autoScrolling&&!c.scrollBar?(y.css({overflow:"hidden",height:"100%"}),e.setRecordHistory(D.recordHistory,"internal"),k.css({"-ms-touch-action":"none","touch-action":"none"}),g.length&&I(g.position().top)):(y.css({overflow:"visible", -height:"initial"}),e.setRecordHistory(!1,"internal"),k.css({"-ms-touch-action":"","touch-action":""}),I(0),g.length&&y.scrollTop(g.position().top))};e.setRecordHistory=function(a,b){S("recordHistory",a,b)};e.setScrollingSpeed=function(a,b){S("scrollingSpeed",a,b)};e.setFitToSection=function(a,b){S("fitToSection",a,b)};e.setLockAnchors=function(a){c.lockAnchors=a};e.setMouseWheelScrolling=function(a){if(a){a="";var b;h.addEventListener?b="addEventListener":(b="attachEvent",a="on");var c="onwheel"in -m.createElement("div")?"wheel":m.onmousewheel!==E?"mousewheel":"DOMMouseScroll";if("DOMMouseScroll"==c)m[b](a+"MozMousePixelScroll",B,!1);else m[b](a+c,B,!1)}else m.addEventListener?(m.removeEventListener("mousewheel",B,!1),m.removeEventListener("wheel",B,!1),m.removeEventListener("MozMousePixelScroll",B,!1)):m.detachEvent("onmousewheel",B)};e.setAllowScrolling=function(a,b){"undefined"!==typeof b?(b=b.replace(/ /g,"").split(","),d.each(b,function(b,c){Ka(a,c,"m")})):a?(e.setMouseWheelScrolling(!0), -$a()):(e.setMouseWheelScrolling(!1),ab())};e.setKeyboardScrolling=function(a,b){"undefined"!==typeof b?(b=b.replace(/ /g,"").split(","),d.each(b,function(b,c){Ka(a,c,"k")})):c.keyboardScrolling=a};e.moveSectionUp=function(){var a=d(".fp-section.active").prev(".fp-section");a.length||!c.loopTop&&!c.continuousVertical||(a=d(".fp-section").last());a.length&&A(a,null,!0)};e.moveSectionDown=function(){var a=d(".fp-section.active").next(".fp-section");a.length||!c.loopBottom&&!c.continuousVertical||(a= -d(".fp-section").first());a.length&&A(a,null,!1)};e.silentMoveTo=function(a,b){requestAnimFrame(function(){e.setScrollingSpeed(0,"internal")});e.moveTo(a,b);requestAnimFrame(function(){e.setScrollingSpeed(D.scrollingSpeed,"internal")})};e.moveTo=function(a,b){var c=Ga(a);"undefined"!==typeof b?V(a,b):0=d[0].scrollHeight},scrollable:function(c){return c.find(".fp-slides").length?c.find(".fp-slide.active").find(".fp-scrollable"): -c.find(".fp-scrollable")},scrollHeight:function(c){return c.find(".fp-scrollable").get(0).scrollHeight},remove:function(c){c.find(".fp-scrollable").children().first().unwrap().unwrap();c.find(".slimScrollBar").remove();c.find(".slimScrollRail").remove()},update:function(c,d){c.find(".fp-scrollable").css("height",d+"px").parent().css("height",d+"px")},wrapContent:function(){return'
      '}}}); diff --git a/js/typed/LICENSE.txt b/js/typed/LICENSE.txt new file mode 100755 index 0000000..ab9d6a2 --- /dev/null +++ b/js/typed/LICENSE.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014 Matt Boldt + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/js/typed.js b/js/typed/typed.js similarity index 100% rename from js/typed.js rename to js/typed/typed.js