:3
This commit is contained in:
7
public/assets/js/bootstrap.min.js
vendored
Normal file
7
public/assets/js/bootstrap.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
public/assets/js/circle-progress.min.js
vendored
Normal file
1
public/assets/js/circle-progress.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
!function(i){if("function"==typeof define&&define.amd)define(["jquery"],i);else if("object"==typeof module&&module.exports){var t=require("jquery");i(t),module.exports=t}else i(jQuery)}(function(i){function t(i){this.init(i)}t.prototype={value:0,size:100,startAngle:-Math.PI,thickness:"auto",fill:{gradient:["#3aeabb","#fdd250"]},emptyFill:"rgba(0, 0, 0, .1)",animation:{duration:1200,easing:"circleProgressEasing"},animationStartValue:0,reverse:!1,lineCap:"butt",insertMode:"prepend",constructor:t,el:null,canvas:null,ctx:null,radius:0,arcFill:null,lastFrameValue:0,init:function(t){i.extend(this,t),this.radius=this.size/2,this.initWidget(),this.initFill(),this.draw(),this.el.trigger("circle-inited")},initWidget:function(){this.canvas||(this.canvas=i("<canvas>")["prepend"==this.insertMode?"prependTo":"appendTo"](this.el)[0]);var t=this.canvas;if(t.width=this.size,t.height=this.size,this.ctx=t.getContext("2d"),window.devicePixelRatio>1){var e=window.devicePixelRatio;t.style.width=t.style.height=this.size+"px",t.width=t.height=this.size*e,this.ctx.scale(e,e)}},initFill:function(){function t(){var t=i("<canvas>")[0];t.width=a.size,t.height=a.size,t.getContext("2d").drawImage(e,0,0,s,s),a.arcFill=a.ctx.createPattern(t,"no-repeat"),a.drawFrame(a.lastFrameValue)}var e,a=this,n=this.fill,r=this.ctx,s=this.size;if(!n)throw Error("The fill is not specified!");if("string"==typeof n&&(n={color:n}),n.color&&(this.arcFill=n.color),n.gradient){var l=n.gradient;if(1==l.length)this.arcFill=l[0];else if(l.length>1){for(var o=n.gradientAngle||0,h=n.gradientDirection||[s/2*(1-Math.cos(o)),s/2*(1+Math.sin(o)),s/2*(1+Math.cos(o)),s/2*(1-Math.sin(o))],c=r.createLinearGradient.apply(r,h),d=0;d<l.length;d++){var u=l[d],g=d/(l.length-1);i.isArray(u)&&(g=u[1],u=u[0]),c.addColorStop(g,u)}this.arcFill=c}}n.image&&(n.image instanceof Image?e=n.image:(e=new Image).src=n.image,e.complete?t():e.onload=t)},draw:function(){this.animation?this.drawAnimated(this.value):this.drawFrame(this.value)},drawFrame:function(i){this.lastFrameValue=i,this.ctx.clearRect(0,0,this.size,this.size),this.drawEmptyArc(i),this.drawArc(i)},drawArc:function(i){if(0!==i){var t=this.ctx,e=this.radius,a=this.getThickness(),n=this.startAngle;t.save(),t.beginPath(),this.reverse?t.arc(e,e,e-a/2,n-2*Math.PI*i,n):t.arc(e,e,e-a/2,n,n+2*Math.PI*i),t.lineWidth=a,t.lineCap=this.lineCap,t.strokeStyle=this.arcFill,t.stroke(),t.restore()}},drawEmptyArc:function(i){var t=this.ctx,e=this.radius,a=this.getThickness(),n=this.startAngle;i<1&&(t.save(),t.beginPath(),i<=0?t.arc(e,e,e-a/2,0,2*Math.PI):this.reverse?t.arc(e,e,e-a/2,n,n-2*Math.PI*i):t.arc(e,e,e-a/2,n+2*Math.PI*i,n),t.lineWidth=a,t.strokeStyle=this.emptyFill,t.stroke(),t.restore())},drawAnimated:function(t){var e=this,a=this.el,n=i(this.canvas);n.stop(!0,!1),a.trigger("circle-animation-start"),n.css({animationProgress:0}).animate({animationProgress:1},i.extend({},this.animation,{step:function(i){var n=e.animationStartValue*(1-i)+t*i;e.drawFrame(n),a.trigger("circle-animation-progress",[i,n])}})).promise().always(function(){a.trigger("circle-animation-end")})},getThickness:function(){return i.isNumeric(this.thickness)?this.thickness:this.size/14},getValue:function(){return this.value},setValue:function(i){this.animation&&(this.animationStartValue=this.lastFrameValue),this.value=i,this.draw()}},i.circleProgress={defaults:t.prototype},i.easing.circleProgressEasing=function(i){return i<.5?.5*(i*=2)*i*i:1-.5*(i=2-2*i)*i*i},i.fn.circleProgress=function(e,a){var n="circle-progress",r=this.data(n);if("widget"==e){if(!r)throw Error('Calling "widget" method on not initialized instance is forbidden');return r.canvas}if("value"==e){if(!r)throw Error('Calling "value" method on not initialized instance is forbidden');if(void 0===a)return r.getValue();var s=arguments[1];return this.each(function(){i(this).data(n).setValue(s)})}return this.each(function(){var a=i(this),r=a.data(n),s=i.isPlainObject(e)?e:{};if(r)r.init(s);else{var l=i.extend({},a.data());"string"==typeof l.fill&&(l.fill=JSON.parse(l.fill)),"string"==typeof l.animation&&(l.animation=JSON.parse(l.animation)),(s=i.extend(l,s)).el=a,r=new t(s),a.data(n,r)}})}});
|
8
public/assets/js/imagesloaded.min.js
vendored
Normal file
8
public/assets/js/imagesloaded.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
8
public/assets/js/jquery-isotope.js
vendored
Normal file
8
public/assets/js/jquery-isotope.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
public/assets/js/jquery-migrate-1.4.1.min.js
vendored
Normal file
1
public/assets/js/jquery-migrate-1.4.1.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
2
public/assets/js/jquery-validate.js
vendored
Normal file
2
public/assets/js/jquery-validate.js
vendored
Normal file
File diff suppressed because one or more lines are too long
8
public/assets/js/jquery-waypoints.js
vendored
Normal file
8
public/assets/js/jquery-waypoints.js
vendored
Normal file
File diff suppressed because one or more lines are too long
139
public/assets/js/jquery.easing.js
Normal file
139
public/assets/js/jquery.easing.js
Normal file
@@ -0,0 +1,139 @@
|
||||
/*
|
||||
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
|
||||
*/
|
||||
|
||||
// t: current time, b: begInnIng value, c: change In value, d: duration
|
||||
jQuery.easing['jswing'] = jQuery.easing['swing'];
|
||||
|
||||
jQuery.extend( jQuery.easing,
|
||||
{
|
||||
def: 'easeOutQuad',
|
||||
swing: function (x, t, b, c, d) {
|
||||
//alert(jQuery.easing.default);
|
||||
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;
|
||||
}
|
||||
});
|
1
public/assets/js/jquery.event.move.js
Normal file
1
public/assets/js/jquery.event.move.js
Normal file
File diff suppressed because one or more lines are too long
2
public/assets/js/jquery.min.js
vendored
Normal file
2
public/assets/js/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
6
public/assets/js/jquery.prettyPhoto.js
Normal file
6
public/assets/js/jquery.prettyPhoto.js
Normal file
File diff suppressed because one or more lines are too long
1
public/assets/js/jquery.twentytwenty.js
Normal file
1
public/assets/js/jquery.twentytwenty.js
Normal file
@@ -0,0 +1 @@
|
||||
!function(g){g.fn.twentytwenty=function(m){m=g.extend({default_offset_pct:.5,orientation:"horizontal",before_label:"Before",after_label:"After",no_overlay:!1,move_slider_on_hover:!1,move_with_handle_only:!0,click_to_move:!1},m);return this.each(function(){var e=m.default_offset_pct,s=g(this),r=m.orientation,t="vertical"===r?"down":"left",n="vertical"===r?"up":"right";s.wrap("<div class='twentytwenty-wrapper twentytwenty-"+r+"'></div>"),m.no_overlay||s.append("<div class='twentytwenty-overlay'></div>");var c=s.find("img:first"),d=s.find("img:last");s.append("<div class='twentytwenty-handle'></div>");var l=s.find(".twentytwenty-handle");l.append("<span class='twentytwenty-"+t+"-arrow'></span>"),l.append("<span class='twentytwenty-"+n+"-arrow'></span>"),s.addClass("twentytwenty-container"),c.addClass("twentytwenty-before"),d.addClass("twentytwenty-after");var i=s.find(".twentytwenty-overlay");i.append("<div class='twentytwenty-before-label'></div>"),i.append("<div class='twentytwenty-after-label'></div>");var a=function(t){var e,n,i,a,o=(e=t,n=c.width(),i=c.height(),{w:n+"px",h:i+"px",cw:e*n+"px",ch:e*i+"px"});l.css("vertical"===r?"top":"left","vertical"===r?o.ch:o.cw),a=o,"vertical"===r?(c.css("clip","rect(0,"+a.w+","+a.ch+",0)"),d.css("clip","rect("+a.ch+","+a.w+","+a.h+",0)")):(c.css("clip","rect(0,"+a.cw+","+a.h+",0)"),d.css("clip","rect(0,"+a.w+","+a.h+","+a.cw+")")),s.css("height",a.h)},o=function(t,e){var n,i,a;return n="vertical"===r?(e-v)/p:(t-w)/f,i=0,a=1,Math.max(i,Math.min(a,n))};g(window).on("resize.twentytwenty",function(t){a(e)});var w=0,v=0,f=0,p=0,y=function(t){(t.distX>t.distY&&t.distX<-t.distY||t.distX<t.distY&&t.distX>-t.distY)&&"vertical"!==r?t.preventDefault():(t.distX<t.distY&&t.distX<-t.distY||t.distX>t.distY&&t.distX>-t.distY)&&"vertical"===r&&t.preventDefault(),s.addClass("active"),w=s.offset().left,v=s.offset().top,f=c.width(),p=c.height()},h=function(t){s.hasClass("active")&&(e=o(t.pageX,t.pageY),a(e))},u=function(){s.removeClass("active")},_=m.move_with_handle_only?l:s;_.on("movestart",y),_.on("move",h),_.on("moveend",u),m.move_slider_on_hover&&(s.on("mouseenter",y),s.on("mousemove",h),s.on("mouseleave",u)),l.on("touchmove",function(t){t.preventDefault()}),s.find("img").on("mousedown",function(t){t.preventDefault()}),m.click_to_move&&s.on("click",function(t){w=s.offset().left,v=s.offset().top,f=c.width(),p=c.height(),e=o(t.pageX,t.pageY),a(e)}),g(window).trigger("resize.twentytwenty")})}}(jQuery);
|
558
public/assets/js/main.js
Normal file
558
public/assets/js/main.js
Normal file
@@ -0,0 +1,558 @@
|
||||
/** ===============
|
||||
|
||||
.. Preloader
|
||||
.. header_search
|
||||
.. Fixed-header
|
||||
.. Menu
|
||||
.. Number rotator
|
||||
.. Skillbar
|
||||
.. Tab
|
||||
.. Accordion
|
||||
.. Isotope
|
||||
.. Prettyphoto
|
||||
.. share-icon_btn
|
||||
.. Slick_slider
|
||||
.. Back to top
|
||||
.. onclick hide show
|
||||
|
||||
=============== */
|
||||
|
||||
|
||||
|
||||
jQuery(function($) {
|
||||
|
||||
"use strict";
|
||||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
/* Preloader
|
||||
/*------------------------------------------------------------------------------*/
|
||||
// makes sure the whole site is loaded
|
||||
$(window).on("load",function(){
|
||||
$(".loader-blob").fadeOut(),$("#preloader").delay(300).fadeOut("slow",function(){$(this).remove()})
|
||||
})
|
||||
|
||||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
/* header_search
|
||||
/*------------------------------------------------------------------------------*/
|
||||
|
||||
$(".header_search").each(function(){
|
||||
$(".search_btn", this).on("click", function(e){
|
||||
e.preventDefault();
|
||||
$(".header_search_content").toggleClass("on");
|
||||
});
|
||||
|
||||
$(".header_search_content_inner .close_btn").on("click", function(e){
|
||||
e.preventDefault();
|
||||
$(".header_search_content").removeClass("on");
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
/* Fixed-header
|
||||
/*------------------------------------------------------------------------------*/
|
||||
|
||||
$(window).scroll(function(){
|
||||
|
||||
|
||||
if ( matchMedia( 'only screen and (min-width: 1200px)' ).matches )
|
||||
{
|
||||
if ($(window).scrollTop() >= 50 ) {
|
||||
$('.ttm-stickable-header').addClass('fixed-header');
|
||||
}
|
||||
else {
|
||||
$('.ttm-stickable-header').removeClass('fixed-header');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
var themetechmount_coverimgbox = function() {
|
||||
|
||||
jQuery('.tm_coverimgbox_wrapper').each(function(){
|
||||
var parentDiv = jQuery(this);
|
||||
|
||||
parentDiv.children('.tm_coverbox_contents').on(function () {
|
||||
parentDiv.find('.tm_coverbox_img').removeClass('active');
|
||||
jQuery(this).next('.tm_coverbox_img').addClass('active');
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
/* Menu
|
||||
/*------------------------------------------------------------------------------*/
|
||||
|
||||
var menu = {
|
||||
initialize: function() {
|
||||
this.Menuhover();
|
||||
},
|
||||
|
||||
Menuhover : function(){
|
||||
var getNav = $("nav.main-menu"),
|
||||
getWindow = $(window).width(),
|
||||
getHeight = $(window).height(),
|
||||
getIn = getNav.find("ul.menu").data("in"),
|
||||
getOut = getNav.find("ul.menu").data("out");
|
||||
|
||||
if ( matchMedia( 'only screen and (max-width: 1200px)' ).matches ) {
|
||||
|
||||
// Enable click event
|
||||
$("nav.main-menu ul.menu").each(function(){
|
||||
|
||||
// Dropdown Fade Toggle
|
||||
$("a.mega-menu-link", this).on('click', function (e) {
|
||||
e.preventDefault();
|
||||
var t = $(this);
|
||||
t.toggleClass('active').next('ul').toggleClass('active');
|
||||
});
|
||||
|
||||
// Megamenu style
|
||||
$(".megamenu-fw", this).each(function(){
|
||||
$(".col-menu", this).each(function(){
|
||||
$(".title", this).off("click");
|
||||
$(".title", this).on("click", function(){
|
||||
$(this).closest(".col-menu").find(".content").stop().toggleClass('active');
|
||||
$(this).closest(".col-menu").toggleClass("active");
|
||||
return false;
|
||||
e.preventDefault();
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
$('.btn-show-menu-mobile').on('click', function(e){
|
||||
$(this).toggleClass('is-active');
|
||||
$('.menu-mobile').toggleClass('show');
|
||||
return false;
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
// Initialize
|
||||
$(document).ready(function(){
|
||||
menu.initialize();
|
||||
|
||||
});
|
||||
|
||||
|
||||
var $bannerSlider = jQuery('.banner_slider');
|
||||
var $bannerFirstSlide = $('div.slide:first-child');
|
||||
|
||||
$bannerSlider.on('init', function (e, slick) {
|
||||
var $firstAnimatingElements = $bannerFirstSlide.find('[data-animation]');
|
||||
slideanimate($firstAnimatingElements);
|
||||
});
|
||||
$bannerSlider.on('beforeChange', function (e, slick, currentSlide, nextSlide) {
|
||||
var $animatingElements = $('div.slick-slide[data-slick-index="' + nextSlide + '"]').find('[data-animation]');
|
||||
slideanimate($animatingElements);
|
||||
});
|
||||
$bannerSlider.slick({
|
||||
slidesToShow: 1,
|
||||
slidesToScroll: 1,
|
||||
autoplay: false,
|
||||
autoplaySpeed: 5000,
|
||||
arrows: true,
|
||||
fade: true,
|
||||
dots: true,
|
||||
swipe: true,
|
||||
adaptiveHeight: true,
|
||||
responsive: [
|
||||
|
||||
{
|
||||
breakpoint: 1200,
|
||||
settings: {
|
||||
arrows: true,
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 767,
|
||||
settings: {
|
||||
slidesToShow: 1,
|
||||
slidesToScroll: 1,
|
||||
arrows: true,
|
||||
}
|
||||
}] });
|
||||
|
||||
function slideanimate(elements) {
|
||||
var animationEndEvents = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend';
|
||||
elements.each(function () {
|
||||
var $this = $(this);
|
||||
var $animationDelay = $this.data('delay');
|
||||
var $animationType = 'animated ' + $this.data('animation');
|
||||
$this.css({
|
||||
'animation-delay': $animationDelay,
|
||||
'-webkit-animation-delay': $animationDelay });
|
||||
|
||||
$this.addClass($animationType).one(animationEndEvents, function () {
|
||||
$this.removeClass($animationType);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
/* Animation on scroll: Number rotator
|
||||
/*------------------------------------------------------------------------------*/
|
||||
|
||||
$("[data-appear-animation]").each(function() {
|
||||
var self = $(this);
|
||||
var animation = self.data("appear-animation");
|
||||
var delay = (self.data("appear-animation-delay") ? self.data("appear-animation-delay") : 0);
|
||||
|
||||
if( $(window).width() > 959 ) {
|
||||
self.html('0');
|
||||
self.waypoint(function(direction) {
|
||||
if( !self.hasClass('completed') ){
|
||||
var from = self.data('from');
|
||||
var to = self.data('to');
|
||||
var interval = self.data('interval');
|
||||
self.numinate({
|
||||
format: '%counter%',
|
||||
from: from,
|
||||
to: to,
|
||||
runningInterval: 2000,
|
||||
stepUnit: interval,
|
||||
onComplete: function(elem) {
|
||||
self.addClass('completed');
|
||||
}
|
||||
});
|
||||
}
|
||||
}, { offset:'85%' });
|
||||
} else {
|
||||
if( animation == 'animateWidth' ) {
|
||||
self.css('width', self.data("width"));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
jQuery(".ttm-circle-box").each(function () {
|
||||
|
||||
var circle_box = jQuery(this);
|
||||
var fill_val = circle_box.data("fill");
|
||||
var emptyFill_val = circle_box.data("emptyfill");
|
||||
var thickness_val = circle_box.data("thickness");
|
||||
var linecap_val = circle_box.data("linecap")
|
||||
var fill_gradient = circle_box.data("gradient");
|
||||
var startangle_val = (-Math.PI / 4) * 1.5;
|
||||
if (fill_gradient != "") {
|
||||
fill_gradient = fill_gradient.split("|");
|
||||
fill_val = { gradient: [fill_gradient[0], fill_gradient[1]] };
|
||||
}
|
||||
if (typeof jQuery.fn.circleProgress == "function") {
|
||||
var digit = circle_box.data("digit");
|
||||
var before = circle_box.data("before");
|
||||
var after = circle_box.data("after");
|
||||
var digit = Number(digit);
|
||||
var short_digit = digit / 100;
|
||||
var size_val = circle_box.data("size");
|
||||
jQuery(".ttm-circle", circle_box)
|
||||
.circleProgress({ value: 0, duration: 8000, size: size_val, startAngle: startangle_val,
|
||||
thickness: thickness_val, linecap:linecap_val, emptyFill: emptyFill_val, fill: fill_val })
|
||||
.on("circle-animation-progress", function (event, progress, stepValue) {
|
||||
|
||||
circle_box.find(".ttm-fid-number").html(before + Math.round(stepValue * 100) + after);
|
||||
});
|
||||
}
|
||||
circle_box.waypoint(
|
||||
function (direction) {
|
||||
|
||||
if (!circle_box.hasClass("completed")) {
|
||||
if (typeof jQuery.fn.circleProgress == "function") {
|
||||
jQuery(".ttm-circle", circle_box).circleProgress({ value: short_digit });
|
||||
}
|
||||
circle_box.addClass("completed");
|
||||
}
|
||||
},
|
||||
{ offset: "90%" }
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
/* Skillbar
|
||||
/*------------------------------------------------------------------------------*/
|
||||
|
||||
$('.ttm-progress-bar').each(function() {
|
||||
$(this).find('.progress-bar').width(0);
|
||||
});
|
||||
|
||||
$('.ttm-progress-bar').each(function() {
|
||||
|
||||
$(this).find('.progress-bar').animate({
|
||||
width: $(this).attr('data-percent')
|
||||
}, 2000);
|
||||
});
|
||||
|
||||
|
||||
// Part of the code responsible for loading percentages:
|
||||
|
||||
$('.progress-bar-percent[data-percentage]').each(function () {
|
||||
|
||||
var progress = $(this);
|
||||
var percentage = Math.ceil($(this).attr('data-percentage'));
|
||||
|
||||
$({countNum: 0}).animate({countNum: percentage}, {
|
||||
duration: 2000,
|
||||
easing:'linear',
|
||||
step: function() {
|
||||
// What todo on every count
|
||||
var pct = '';
|
||||
if(percentage == 0){
|
||||
pct = Math.floor(this.countNum) + '%';
|
||||
}else{
|
||||
pct = Math.floor(this.countNum+1) + '%';
|
||||
}
|
||||
progress.text(pct);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
/* Tab
|
||||
/*------------------------------------------------------------------------------*/
|
||||
$(document).ready(function() {
|
||||
|
||||
$('.ttm-tabs > .tabs').children('li').on('click', function(e) {
|
||||
|
||||
var tab = $(this).closest('.ttm-tabs > .tabs > .tab'),
|
||||
|
||||
index = $(this).closest('.ttm-tabs > .tabs > li').index();
|
||||
|
||||
$(this).parents('.ttm-tabs').children(' .tabs').children('li.active ').removeClass('active');
|
||||
|
||||
$(this).addClass('active');
|
||||
$(this).addClass('active').parents('.ttm-tabs').children('.content-tab').find('.content-inner').not('.content-inner:eq(' + index + ')').slideUp();
|
||||
$(this).addClass('active').parents('.ttm-tabs').children('.content-tab').find('.content-inner:eq(' + index + ')').slideDown();
|
||||
|
||||
e.preventDefault();
|
||||
});
|
||||
});
|
||||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
/* Accordion
|
||||
/*------------------------------------------------------------------------------*/
|
||||
|
||||
var allPanels = $('.accordion > .toggle').children('.toggle-content').hide();
|
||||
|
||||
$('.toggle-title').on('click',function(e) {
|
||||
|
||||
e.preventDefault();
|
||||
var $this = $(this);
|
||||
$this.parent().parent().find('.toggle .toggle-title a').removeClass('active');
|
||||
|
||||
if ($this.next().hasClass('show')) {
|
||||
|
||||
$this.next().removeClass('show');
|
||||
$this.next().slideUp('easeInExpo');
|
||||
|
||||
} else {
|
||||
$this.parent().parent().find('.toggle .toggle-content').removeClass('show');
|
||||
$this.parent().parent().find('.toggle .toggle-content').slideUp('easeInExpo');
|
||||
$this.next().toggleClass('show');
|
||||
$this.next().removeClass('show');
|
||||
$this.next().slideToggle('easeInExpo');
|
||||
$this.next().parent().children().children().addClass('active');
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
/* Isotope
|
||||
/*------------------------------------------------------------------------------*/
|
||||
|
||||
$(function () {
|
||||
|
||||
if ( $().isotope ) {
|
||||
var $container = $('.isotope-project');
|
||||
$container.imagesLoaded(function(){
|
||||
$container.isotope({
|
||||
itemSelector: '.project_item',
|
||||
transitionDuration: '1s',
|
||||
layoutMode: 'fitRows'
|
||||
});
|
||||
});
|
||||
|
||||
$('.portfolio-filter li').on('click',function() {
|
||||
var selector = $(this).find("a").attr('data-filter');
|
||||
$('.portfolio-filter li').removeClass('active');
|
||||
$(this).addClass('active');
|
||||
$container.isotope({ filter: selector });
|
||||
return false;
|
||||
});
|
||||
};
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
/* Prettyphoto
|
||||
/*------------------------------------------------------------------------------*/
|
||||
$(function () {
|
||||
|
||||
// Normal link
|
||||
jQuery('a[href*=".jpg"], a[href*=".jpeg"], a[href*=".png"], a[href*=".gif"]').each(function(){
|
||||
if( jQuery(this).attr('target')!='_blank' && !jQuery(this).hasClass('prettyphoto') && !jQuery(this).hasClass('modula-lightbox') ){
|
||||
var attr = $(this).attr('data-gal');
|
||||
if (typeof attr !== typeof undefined && attr !== false && attr!='prettyPhoto' ) {
|
||||
jQuery(this).attr('data-rel','prettyPhoto');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
jQuery('a[data-gal^="prettyPhoto"]').prettyPhoto();
|
||||
jQuery('a.ttm_prettyphoto').prettyPhoto();
|
||||
jQuery('a[data-gal^="prettyPhoto"]').prettyPhoto();
|
||||
jQuery("a[data-gal^='prettyPhoto']").prettyPhoto({hook: 'data-gal'})
|
||||
|
||||
});
|
||||
$(document).ready(function() {
|
||||
$('body').append(e);
|
||||
});
|
||||
|
||||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
/* share-icon_btn
|
||||
/*------------------------------------------------------------------------------*/
|
||||
jQuery(".project-details-section").each(function(t){
|
||||
var e=jQuery(this);
|
||||
e.find("#icon-share-btn").on("click",function(){
|
||||
return e.find(".social-icons").toggleClass("show"),!1
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
/* twentytwenty[data-orientation]
|
||||
/*------------------------------------------------------------------------------*/
|
||||
|
||||
$(function(){
|
||||
$(".twentytwenty-container[data-orientation!='vertical']").twentytwenty({default_offset_pct: 0.5});
|
||||
$(".twentytwenty-container[data-orientation='vertical']").twentytwenty({default_offset_pct: 0.3, orientation: 'vertical'});
|
||||
});
|
||||
|
||||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
/* Slick_slider
|
||||
/*------------------------------------------------------------------------------*/
|
||||
$(".slick_slider").slick({
|
||||
speed: 1000,
|
||||
infinite: true,
|
||||
arrows: false,
|
||||
dots: false,
|
||||
autoplay: true,
|
||||
autoplaySpeed: 3000,
|
||||
centerMode : false,
|
||||
|
||||
responsive: [{
|
||||
|
||||
breakpoint: 1360,
|
||||
settings: {
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 3
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
breakpoint: 1024,
|
||||
settings: {
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 3
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
breakpoint: 680,
|
||||
settings: {
|
||||
slidesToShow: 2,
|
||||
slidesToScroll: 2
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 575,
|
||||
settings: {
|
||||
slidesToShow: 1,
|
||||
slidesToScroll: 1
|
||||
}
|
||||
}]
|
||||
});
|
||||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
/* Back to top
|
||||
/*------------------------------------------------------------------------------*/
|
||||
|
||||
// ===== Scroll to Top ====
|
||||
jQuery('#totop').hide();
|
||||
|
||||
$(window).on("scroll",function(){
|
||||
if (jQuery(this).scrollTop() >= 500) { // If page is scrolled more than 50px
|
||||
jQuery('#totop').fadeIn(200); // Fade in the arrow
|
||||
jQuery('#totop').addClass('top-visible');
|
||||
} else {
|
||||
jQuery('#totop').fadeOut(200); // Else fade out the arrow
|
||||
jQuery('#totop').removeClass('top-visible');
|
||||
}
|
||||
});
|
||||
|
||||
jQuery('#totop').on("click",function() { // When arrow is clicked
|
||||
jQuery('body,html').animate({
|
||||
scrollTop : 0 // Scroll to top of body
|
||||
}, 500);
|
||||
return false;
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
jQuery(document).ready(function() {
|
||||
jQuery('.tm_coverimgbox_wrapper').each(function(){
|
||||
var parentDiv = jQuery(this);
|
||||
|
||||
parentDiv.children('.tm_coverbox_contents').hover(function () {
|
||||
parentDiv.find('.tm_coverbox_img').removeClass('active');
|
||||
jQuery(this).next('.tm_coverbox_img').addClass('active');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
/* Show & Hide
|
||||
/*------------------------------------------------------------------------------*/
|
||||
|
||||
$('.close-icon').click(function() {
|
||||
$('.top-instruction').hide(0);
|
||||
$('.close-icon').hide(0);
|
||||
});
|
||||
|
||||
|
||||
|
||||
// script.js
|
||||
window.onload = function() {
|
||||
// Show the popup when the page loads
|
||||
document.getElementById('popup').style.display = 'block';
|
||||
};
|
||||
|
||||
document.getElementById('close-btn').onclick = function() {
|
||||
// Hide the popup when the close button is clicked
|
||||
document.getElementById('popup').style.display = 'none';
|
||||
};
|
||||
|
||||
// Optional: Hide the popup if the user clicks outside of it
|
||||
window.onclick = function(event) {
|
||||
if (event.target == document.getElementById('popup')) {
|
||||
document.getElementById('popup').style.display = 'none';
|
||||
}
|
||||
};
|
3
public/assets/js/numinate.min.js
vendored
Normal file
3
public/assets/js/numinate.min.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
// Github repo:
|
||||
// https://github.com/greenball/numinate
|
||||
(function(e){if(typeof define==="function"&&define.amd){define(["jquery"],e)}else{e(jQuery)}})(function(e){"use strict";var t={from:0,to:0,runningInterval:null,stepInterval:null,stepCount:null,stepUnit:null,format:"%counter%","class":"numinate",precision:0,autoStart:true,autoRemove:false,onCreate:null,onStart:null,onStep:null,onStop:null,onComplete:null,onRemove:null};var n=function(e,t){if(!t.runningInterval&&!t.stepInterval){return window.console.error("No interval was provided.")}var n=Math.abs(t.from-t.to);if(!t.stepCount&&!t.stepUnit){return window.console.error("Provide either stepCount or stepUnit value.")}if(t.stepUnit&&t.stepCount){t.to=t.from+t.stepUnit*t.stepCount}if(!t.stepCount){t.stepCount=n/t.stepUnit}if(!t.stepUnit){t.stepUnit=n/t.stepCount}if(t.runningInterval){t.stepInterval=t.runningInterval/t.stepCount}if(n&&t.stepUnit>n){t.stepUnit=n;t.stepCount=1}if(t.stepInterval<10){var r=10/t.stepInterval;t.stepInterval*=r;t.stepUnit*=r;t.stepCount/=r}this.textBackup=e.text();this.element=e;this.options=t;this.stepper=null;this.current=t.from;this.finished=false;this.element.addClass(t.class);this.fire("onCreate");if(this.options.autoStart){this.start()}};n.prototype={constructor:n,fire:function(t){if(e.isFunction(this.options[t])){this.options[t](this.element,this.options,this.current)}},stop:function(){if(!this.stepper||this.finished){return}this.stepper=clearInterval(this.stepper);this.fire("onStop")},start:function(){if(this.stepper||this.finished){return}this.render();this.stepper=setInterval(e.proxy(this.step,this),this.options.stepInterval);this.fire("onStart")},step:function(){if(!(this.options.from+this.options.to)){this.current+=this.options.stepUnit}else if(this.options.from<this.options.to){this.current+=this.options.stepUnit}else if(this.options.from>this.options.to){this.current-=this.options.stepUnit}if(this.options.from<this.options.to){if(this.current>this.options.to){return this.completed()}}else if(this.options.from>this.options.to){if(this.current<this.options.to){return this.completed()}}this.fire("onStep");this.render()},completed:function(){var e=Math.abs(this.options.from-this.options.to);if(e&&this.options.current!==this.options.to){this.current=this.options.to;this.render()}this.stop();this.finished=true;this.fire("onComplete");if(this.options.autoRemove){this.remove()}},remove:function(){this.fire("onRemove");e.removeData(this.element,"numinate");this.element.text(this.textBackup?this.textBackup:"");this.element.removeClass(this.options.class)},render:function(){this.element.text(this.options.format.replace(/\%counter\%/,this.current.toFixed(this.options.precision)))},restart:function(){this.finished=false;this.current=this.options.from;this.stop();this.start()}};e.fn.numinate=function(r){var i;if(typeof r=="object"){r=e.extend(true,{},t,r);i="init"}else if(typeof r=="string"){i=r}return this.each(function(){var t=e(this);if(i=="init"){t.data("numinate",new n(t,r))}else{t.data("numinate")[i]()}})};e.fn.numinate.defaults=t;e.fn.numinate.Plugin=n})
|
1
public/assets/js/slick.min.js
vendored
Normal file
1
public/assets/js/slick.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
public/assets/js/tether.min.js
vendored
Normal file
1
public/assets/js/tether.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user