new website
This commit is contained in:
7
documentation/js/bootstrap.min.js
vendored
Normal file
7
documentation/js/bootstrap.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
5
documentation/js/custom.js
Normal file
5
documentation/js/custom.js
Normal file
@ -0,0 +1,5 @@
|
||||
var currentActiveSection='start-installation';$(document).ready(function(){var $buythemediv='<div class="buy-theme alt-font sm-display-none"><a href="https://1.envato.market/R53mL2" target="_blank"><i class="ti-shopping-cart"></i><span>Buy now</span></a></div><div class="all-demo alt-font sm-display-none"><a href="mailto:info@themezaa.com?subject=Crafto – The Multipurpose HTML5 Template - Quick Question"><i class="ti-email"></i><span>Quick Question?</span></a></div>';$('body').append($buythemediv);$('#leftCol').affix({offset:{top:245}});$("a.inner-link").not(".sec-link").click(function(){var divScrollToAnchor=$(this).attr('href');var topOffsetScroll=40;$('html, body').stop().animate({'scrollTop':$(divScrollToAnchor).offset().top},750,'easeOutQuint');return false;});if($('.docs-navigation').length){var el=$('.docs-navigation'),stickyTop=el.offset().top,footerHeight=$('#footer').outerHeight();$(window).scroll(function(){var stickyHeight=el.children('ul').outerHeight(),limit=$('#footer').offset().top-stickyHeight,windowTop=$(window).scrollTop(),windowHeight=$(window).height();if(stickyTop<windowTop){el.css({position:'fixed',top:0});}else{el.css({position:'absolute',top:0});}
|
||||
if(limit<windowTop){var diff=limit-windowTop;el.css({height:windowHeight-diff-footerHeight,top:diff});}else{el.css({height:'100%'});}
|
||||
$('.docs-content').find('section').not('.hidden').find('.docs-content-inner').each(function(){var h=$(this).offset().top;var y=$(window).scrollTop();if(y+500>=h&&y<h+$(this).height()&&$(this).attr('id')!=currentActiveSection){currentActiveSection=$(this).attr('id');}})
|
||||
$('.docs-navigation').find('.inner-link[href="#'+currentActiveSection+'"]').parent('li').parent('ul').find('li').removeClass('active');$('.docs-navigation').find('.inner-link[href="#'+currentActiveSection+'"]').parent('li').addClass('active');});}
|
||||
$('a.sec-link').click(function(){var currentSection=$(this).attr('href');$('.docs-content section').each(function(index){var _this=$(this).attr('id');});var divScrollToAnchor=$(this).attr('href');var _this=$(this);$('.docs-content section').addClass('hidden');$('.docs-content section'+currentSection).removeClass('hidden');$(_this).parent('li').parent('ul').find('li').removeClass('active');$(_this).parent('li').addClass('active');$(_this).parent('li').find('ul>li:first-child').addClass('active');var topOffsetScroll=40;$('html, body').stop().animate({'scrollTop':$(divScrollToAnchor).offset().top},750,'easeOutQuint');});$('a.sec-link').each(function(){if($(this).parent('li').hasClass('active')){$(this).parent('li').find('ul li:first-child').addClass('active');}});});$('.inner-link').smoothScroll({speed:900,offset:-0});$('.sec-link').smoothScroll({speed:900,offset:-0});(function($){$(window).load(function(){$("#leftCol").mCustomScrollbar({set_width:false,set_height:false,horizontalScroll:false,scrollInertia:0,mouseWheel:true,mouseWheelPixels:"auto",autoDraggerLength:true,autoHideScrollbar:false,scrollButtons:{enable:false,scrollType:"continuous",scrollSpeed:"auto",scrollAmount:80},advanced:{updateOnBrowserResize:true,updateOnContentResize:true,autoExpandHorizontalScroll:false,autoScrollOnFocus:false,normalizeMouseWheelDelta:false},contentTouchScroll:true,callbacks:{onScrollStart:function(){},onScroll:function(){},onTotalScroll:function(){},onTotalScrollBack:function(){},onTotalScrollOffset:0,onTotalScrollBackOffset:0,whileScrolling:function(){}},theme:"dark-2"});});})(jQuery);$(window).scroll(function(){if($(this).scrollTop()>100){$('.scrollToTop').fadeIn();}else{$('.scrollToTop').fadeOut();}});$('.scrollToTop').click(function(){$('html, body').animate({scrollTop:0},1000);return false;});$('pre').each(function(){$(this).prev('.copy-clipboard').on('click',function(){var code=$(this).siblings('pre').text();$(this).siblings('pre').append(`<textarea readonly class="clipboard"></textarea>`);$(this).siblings('pre').find('textarea.clipboard').val(code);$(this).siblings('pre').find('textarea.clipboard').select();document.execCommand('copy');$(this).text('Copied');$(this).siblings('pre').find('textarea.clipboard').remove();setTimeout(function(){$('.copy-clipboard').text('Copy');},2000);});});
|
4
documentation/js/jquery.easing.1.3.js
Normal file
4
documentation/js/jquery.easing.1.3.js
Normal file
@ -0,0 +1,4 @@
|
||||
jQuery.easing['jswing']=jQuery.easing['swing'];jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d);},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b;},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b;},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b;},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b;},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b;},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b;},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b;},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b;},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b;},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b;},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b;},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b;},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b;},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b;},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b;},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b;},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b;},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b;},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b;},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b;},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b;},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4;}
|
||||
else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4;}
|
||||
else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b;},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4;}
|
||||
else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b;},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b;},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b;},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b;},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b;},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b;}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b;}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b;}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b;}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b;}});
|
3
documentation/js/jquery.mCustomScrollbar.min.js
vendored
Normal file
3
documentation/js/jquery.mCustomScrollbar.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
5
documentation/js/jquery.min.js
vendored
Normal file
5
documentation/js/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
6
documentation/js/smooth-scroll.js
Normal file
6
documentation/js/smooth-scroll.js
Normal file
@ -0,0 +1,6 @@
|
||||
/*!
|
||||
* Smooth Scroll - v1.4.10 - 2013-03-02
|
||||
* https://github.com/kswedberg/jquery-smooth-scroll
|
||||
* Copyright (c) 2013 Karl Swedberg
|
||||
* Licensed MIT (https://github.com/kswedberg/jquery-smooth-scroll/blob/master/LICENSE-MIT)
|
||||
*/(function(l){function t(l){return l.replace(/(:|\.)/g,"\\$1")}var e="1.4.10",o={exclude:[],excludeWithin:[],offset:0,direction:"top",scrollElement:null,scrollTarget:null,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficent:2},r=function(t){var e=[],o=!1,r=t.dir&&"left"==t.dir?"scrollLeft":"scrollTop";return this.each(function(){if(this!=document&&this!=window){var t=l(this);t[r]()>0?e.push(this):(t[r](1),o=t[r]()>0,o&&e.push(this),t[r](0))}}),e.length||this.each(function(){"BODY"===this.nodeName&&(e=[this])}),"first"===t.el&&e.length>1&&(e=[e[0]]),e};l.fn.extend({scrollable:function(l){var t=r.call(this,{dir:l});return this.pushStack(t)},firstScrollable:function(l){var t=r.call(this,{el:"first",dir:l});return this.pushStack(t)},smoothScroll:function(e){e=e||{};var o=l.extend({},l.fn.smoothScroll.defaults,e),r=l.smoothScroll.filterPath(location.pathname);return this.unbind("click.smoothscroll").bind("click.smoothscroll",function(e){var n=this,s=l(this),c=o.exclude,i=o.excludeWithin,a=0,f=0,h=!0,u={},d=location.hostname===n.hostname||!n.hostname,m=o.scrollTarget||(l.smoothScroll.filterPath(n.pathname)||r)===r,p=t(n.hash);if(o.scrollTarget||d&&m&&p){for(;h&&c.length>a;)s.is(t(c[a++]))&&(h=!1);for(;h&&i.length>f;)s.closest(i[f++]).length&&(h=!1)}else h=!1;h&&(e.preventDefault(),l.extend(u,o,{scrollTarget:o.scrollTarget||p,link:n}),l.smoothScroll(u))}),this}}),l.smoothScroll=function(t,e){var o,r,n,s,c=0,i="offset",a="scrollTop",f={},h={};"number"==typeof t?(o=l.fn.smoothScroll.defaults,n=t):(o=l.extend({},l.fn.smoothScroll.defaults,t||{}),o.scrollElement&&(i="position","static"==o.scrollElement.css("position")&&o.scrollElement.css("position","relative"))),o=l.extend({link:null},o),a="left"==o.direction?"scrollLeft":a,o.scrollElement?(r=o.scrollElement,c=r[a]()):r=l("html, body").firstScrollable(),o.beforeScroll.call(r,o),n="number"==typeof t?t:e||l(o.scrollTarget)[i]()&&l(o.scrollTarget)[i]()[o.direction]||0,f[a]=n+c+o.offset,s=o.speed,"auto"===s&&(s=f[a]||r.scrollTop(),s/=o.autoCoefficent),h={duration:s,easing:o.easing,complete:function(){o.afterScroll.call(o.link,o)}},o.step&&(h.step=o.step),r.length?r.stop().animate(f,h):o.afterScroll.call(o.link,o)},l.smoothScroll.version=e,l.smoothScroll.filterPath=function(l){return l.replace(/^\//,"").replace(/(index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")},l.fn.smoothScroll.defaults=o})(jQuery);
|
Reference in New Issue
Block a user