api code global jain
This commit is contained in:
7
public/js/frontend/bootstrap.min.js
vendored
Normal file
7
public/js/frontend/bootstrap.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
404
public/js/frontend/general.js
vendored
Normal file
404
public/js/frontend/general.js
vendored
Normal file
@@ -0,0 +1,404 @@
|
||||
$(document).ready(function() {
|
||||
certificationCarousel(),
|
||||
facilitiesCarousel(),
|
||||
customersCarousel(),
|
||||
recentlyJoinedCarousel(),
|
||||
statusCarousel(),
|
||||
industryAssociationCarousel(),
|
||||
helpCarousel(),
|
||||
mediaCarousel(),
|
||||
articleCarousel(),
|
||||
logoCarousel(),
|
||||
testimonialCarousel(),
|
||||
adjFooter(),
|
||||
disabledArrow(),
|
||||
scrollToTop();
|
||||
|
||||
$(".hamburg-menu").on("click", function() {
|
||||
$("body").toggleClass("menu-open");
|
||||
});
|
||||
|
||||
$(".site-footer .list-title").on("click", function() {
|
||||
if ($(window).width() < 1025) {
|
||||
$(".site-footer .footer-nav")
|
||||
.not($(this).siblings())
|
||||
.slideUp();
|
||||
$(".site-footer .list-title")
|
||||
.not($(this))
|
||||
.removeClass("active");
|
||||
$(this).toggleClass("active");
|
||||
$(this)
|
||||
.siblings(".footer-nav")
|
||||
.slideToggle();
|
||||
}
|
||||
});
|
||||
|
||||
$(".custom-tabs-section .tab-title").on("click", function() {
|
||||
if ($(window).width() < 992) {
|
||||
$(".custom-tabs-section .mob-tab-content")
|
||||
.not(
|
||||
$(this)
|
||||
.closest(".tab-pane")
|
||||
.children()
|
||||
)
|
||||
.slideUp();
|
||||
$(".custom-tabs-section .tab-title")
|
||||
.not($(this))
|
||||
.removeClass("active-mobile");
|
||||
$(this).toggleClass("active-mobile");
|
||||
$(this)
|
||||
.closest(".tab-pane")
|
||||
.find($(".custom-tabs-section .mob-tab-content"))
|
||||
.slideToggle();
|
||||
}
|
||||
});
|
||||
});
|
||||
$(window).resize(function() {
|
||||
certificationCarousel(),
|
||||
facilitiesCarousel(),
|
||||
customersCarousel(),
|
||||
recentlyJoinedCarousel(),
|
||||
statusCarousel(),
|
||||
industryAssociationCarousel(),
|
||||
helpCarousel(),
|
||||
mediaCarousel(),
|
||||
articleCarousel(),
|
||||
logoCarousel(),
|
||||
testimonialCarousel(),
|
||||
adjFooter(),
|
||||
disabledArrow();
|
||||
});
|
||||
|
||||
$(window).on("scroll", function() {
|
||||
toggleScrollToTop();
|
||||
});
|
||||
|
||||
function certificationCarousel() {
|
||||
$(".certification-carousel").owlCarousel({
|
||||
nav: true,
|
||||
dots: false,
|
||||
autoplay: false,
|
||||
loop: false,
|
||||
autoplaySpeed: 500,
|
||||
smartSpeed: 1000,
|
||||
touchDrag: true,
|
||||
mouseDrag: true,
|
||||
responsive: {
|
||||
1: {
|
||||
items: 1
|
||||
},
|
||||
768: {
|
||||
items: 2,
|
||||
margin: 30
|
||||
},
|
||||
1400: {
|
||||
items: 3,
|
||||
margin: 50
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function facilitiesCarousel() {
|
||||
$(".facilities-carousel").owlCarousel({
|
||||
nav: true,
|
||||
dots: false,
|
||||
autoplay: false,
|
||||
loop: false,
|
||||
autoplaySpeed: 500,
|
||||
smartSpeed: 1000,
|
||||
touchDrag: true,
|
||||
mouseDrag: true,
|
||||
responsive: {
|
||||
1: {
|
||||
items: 2,
|
||||
margin: 20
|
||||
},
|
||||
576: {
|
||||
items: 3,
|
||||
margin: 30
|
||||
},
|
||||
992: {
|
||||
items: 4,
|
||||
margin: 50
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function customersCarousel() {
|
||||
$(".customers-carousel").owlCarousel({
|
||||
nav: true,
|
||||
dots: false,
|
||||
autoplay: false,
|
||||
loop: false,
|
||||
autoplaySpeed: 500,
|
||||
smartSpeed: 1000,
|
||||
touchDrag: true,
|
||||
mouseDrag: true,
|
||||
responsive: {
|
||||
1: {
|
||||
items: 2,
|
||||
margin: 20
|
||||
},
|
||||
575: {
|
||||
items: 2,
|
||||
margin: 30
|
||||
},
|
||||
768: {
|
||||
items: 3,
|
||||
margin: 50
|
||||
},
|
||||
1199: {
|
||||
items: 4,
|
||||
margin: 70
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function recentlyJoinedCarousel() {
|
||||
$(".companies-carousel").owlCarousel({
|
||||
items: 4,
|
||||
nav: true,
|
||||
dots: false,
|
||||
autoplay: false,
|
||||
loop: false,
|
||||
autoplaySpeed: 500,
|
||||
smartSpeed: 1000,
|
||||
touchDrag: true,
|
||||
mouseDrag: true,
|
||||
responsive: {
|
||||
0: {
|
||||
items: 1,
|
||||
},
|
||||
576: {
|
||||
items: 2,
|
||||
margin:30
|
||||
},
|
||||
992: {
|
||||
items: 4
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function statusCarousel() {
|
||||
$(".status-carousel").owlCarousel({
|
||||
items: 1,
|
||||
margin: 30,
|
||||
nav: true,
|
||||
dots: false,
|
||||
autoplay: false,
|
||||
loop: false,
|
||||
autoplaySpeed: 500,
|
||||
smartSpeed: 1000,
|
||||
touchDrag: true,
|
||||
mouseDrag: true,
|
||||
responsive: {
|
||||
600: {
|
||||
items: 2
|
||||
},
|
||||
768: {
|
||||
items: 3
|
||||
},
|
||||
992: {
|
||||
items: 4
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function industryAssociationCarousel() {
|
||||
$(".industry-association-carousel").owlCarousel({
|
||||
items: 1,
|
||||
margin: 30,
|
||||
nav: true,
|
||||
dots: false,
|
||||
autoplay: false,
|
||||
loop: false,
|
||||
autoplaySpeed: 500,
|
||||
smartSpeed: 1000,
|
||||
touchDrag: true,
|
||||
mouseDrag: true,
|
||||
responsive: {
|
||||
600: {
|
||||
items: 1
|
||||
},
|
||||
768: {
|
||||
items: 2
|
||||
},
|
||||
992: {
|
||||
items: 3
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function helpCarousel() {
|
||||
$(".help-carousel").owlCarousel({
|
||||
items: 1,
|
||||
// margin: 30,
|
||||
nav: true,
|
||||
dots: false,
|
||||
autoplay: false,
|
||||
loop: false,
|
||||
autoplaySpeed: 500,
|
||||
smartSpeed: 1000,
|
||||
touchDrag: true,
|
||||
mouseDrag: true,
|
||||
responsive: {
|
||||
600: {
|
||||
margin: 15,
|
||||
items: 1
|
||||
},
|
||||
768: {
|
||||
margin: 20,
|
||||
items: 3
|
||||
},
|
||||
992: {
|
||||
margin: 30,
|
||||
items: 4
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function adjFooter() {
|
||||
var footerH = $(".site-footer").height();
|
||||
$(".site-footer").css("margin-top", `-${footerH}px`);
|
||||
$(".main").css("padding-bottom", `${footerH}px`);
|
||||
}
|
||||
|
||||
function mediaCarousel() {
|
||||
$(".media-carousel").owlCarousel({
|
||||
items: 1,
|
||||
margin: 30,
|
||||
nav: true,
|
||||
dots: false,
|
||||
autoplay: false,
|
||||
loop: false,
|
||||
autoplaySpeed: 500,
|
||||
smartSpeed: 1000,
|
||||
touchDrag: true,
|
||||
mouseDrag: true,
|
||||
responsive: {
|
||||
1: {
|
||||
items: 1,
|
||||
margin: 10
|
||||
},
|
||||
576: {
|
||||
items: 2
|
||||
},
|
||||
768: {
|
||||
items: 3
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function articleCarousel() {
|
||||
$(".article-carousel").owlCarousel({
|
||||
items: 1,
|
||||
margin: 30,
|
||||
nav: true,
|
||||
dots: false,
|
||||
autoplay: false,
|
||||
loop: false,
|
||||
autoplaySpeed: 500,
|
||||
smartSpeed: 1000,
|
||||
touchDrag: true,
|
||||
mouseDrag: true,
|
||||
responsive: {
|
||||
600: {
|
||||
items: 1
|
||||
},
|
||||
768: {
|
||||
items: 2
|
||||
},
|
||||
992: {
|
||||
items: 3
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function logoCarousel() {
|
||||
$(".logo-listing").owlCarousel({
|
||||
items: 1,
|
||||
nav: true,
|
||||
dots: false,
|
||||
autoplay: false,
|
||||
loop: false,
|
||||
autoplaySpeed: 500,
|
||||
smartSpeed: 1000,
|
||||
touchDrag: true,
|
||||
mouseDrag: true,
|
||||
responsive: {
|
||||
1: {
|
||||
items: 1,
|
||||
margin: 30
|
||||
},
|
||||
768: {
|
||||
items: 2
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function testimonialCarousel() {
|
||||
$(".testimonial-carousel").owlCarousel({
|
||||
items: 1,
|
||||
nav: true,
|
||||
dots: false,
|
||||
autoplay: false,
|
||||
loop: false,
|
||||
autoplaySpeed: 500,
|
||||
smartSpeed: 1000,
|
||||
touchDrag: true,
|
||||
mouseDrag: true,
|
||||
// responsive: {
|
||||
// 600: {
|
||||
// items: 1,
|
||||
// margin: 20
|
||||
// },
|
||||
// 768: {
|
||||
// items: 2,
|
||||
// margin: 30
|
||||
// },
|
||||
// 992: {
|
||||
// items: 1,
|
||||
// margin: 50
|
||||
// }
|
||||
// }
|
||||
});
|
||||
}
|
||||
|
||||
function disabledArrow() {
|
||||
$(".owl-carousel").each(function() {
|
||||
if (
|
||||
$(this)
|
||||
.find(".owl-nav")
|
||||
.hasClass("disabled")
|
||||
) {
|
||||
$(this).addClass("no-slider");
|
||||
} else {
|
||||
$(this).removeClass("no-slider");
|
||||
}
|
||||
$(this).trigger("refresh.owl.carousel");
|
||||
});
|
||||
}
|
||||
|
||||
function scrollToTop() {
|
||||
$(".scroll-to-top").on("click", function() {
|
||||
$("body,html").animate({ scrollTop: 0 }, "500");
|
||||
});
|
||||
}
|
||||
|
||||
function toggleScrollToTop() {
|
||||
if ($(window).scrollTop() > $(window).height()) {
|
||||
$(".scroll-to-top").addClass("active");
|
||||
} else {
|
||||
$(".scroll-to-top").removeClass("active");
|
||||
}
|
||||
}
|
||||
139
public/js/frontend/jquery.fieldsaddmore.min.js
vendored
Normal file
139
public/js/frontend/jquery.fieldsaddmore.min.js
vendored
Normal file
@@ -0,0 +1,139 @@
|
||||
(function($) {
|
||||
"use strict";
|
||||
|
||||
$.fieldsaddmore = function(el, options) {
|
||||
// To avoid scope issues, use 'base' instead of 'this'
|
||||
// to reference this class from internal events and functions.
|
||||
var base = this;
|
||||
var rowId = 0;
|
||||
|
||||
// Access to jQuery and DOM versions of element
|
||||
base.$el = $(el);
|
||||
base.el = el;
|
||||
|
||||
base.$el.data('fieldsaddmore', base);
|
||||
|
||||
base.init = function() {
|
||||
var i;
|
||||
base.options = $.extend({}, $.fieldsaddmore.defaultOptions, options);
|
||||
|
||||
//callback before initialize
|
||||
base.options.callbackBeforeInit(base.$el, base.options);
|
||||
|
||||
//init events
|
||||
base.addClick();
|
||||
base.removeClick();
|
||||
|
||||
// Set start row ID
|
||||
if($(base.options.rowEle).length>0){
|
||||
rowId = parseInt($(base.options.rowEle).last().find(base.options.removebtn).data('rowid'));
|
||||
}else{
|
||||
rowId = 0;
|
||||
}
|
||||
|
||||
if (base.options.min) {
|
||||
for (i = 1; i <= base.options.min; i++) {
|
||||
base.content();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
//reflacet content
|
||||
base.content = function() {
|
||||
//callback before add
|
||||
base.options.callbackBeforeAdd(base.$el, base.options);
|
||||
|
||||
rowId = rowId + 1;
|
||||
var template = $(base.options.templateEle).html();
|
||||
template = template.replace(/key/g, rowId);
|
||||
template = template.replace("rowId", "rowId-" + rowId);
|
||||
|
||||
// prepend / append fields elements
|
||||
if(base.options.prepend) {
|
||||
base.$el.prepend(template);
|
||||
} else {
|
||||
base.$el.append(template);
|
||||
}
|
||||
|
||||
//callback affter add
|
||||
base.options.callbackAfterAdd(base.$el, base.options);
|
||||
};
|
||||
|
||||
//add more content Event
|
||||
base.addClick = function() {
|
||||
$("form").on("click", base.options.addbtn, function() {
|
||||
//callback before add
|
||||
base.options.callbackBeforeAddClick(base.$el, base.options, $(this));
|
||||
|
||||
base.content();
|
||||
$(this).blur();
|
||||
|
||||
//callback before add
|
||||
base.options.callbackAfterAddClick(base.$el, base.options, $(this));
|
||||
return false;
|
||||
});
|
||||
};
|
||||
|
||||
//add more content Event
|
||||
base.removeClick = function() {
|
||||
$("form").on("click", base.options.removebtn, function() {
|
||||
//callback before add
|
||||
base.options.callbackBeforeRemoveClick(base.$el, base.options, $(this));
|
||||
|
||||
|
||||
if (base.$el.find(base.options.rowEle).length > base.options.min) {
|
||||
if(base.options.deleteConfirmation == false){
|
||||
return false;
|
||||
}else{
|
||||
base.$el.find('.rowId-' + $(this).data('rowid')).remove();
|
||||
}
|
||||
}
|
||||
|
||||
$(this).blur();
|
||||
|
||||
//callback before add
|
||||
base.options.callbackAfterRemoveClick(base.$el, base.options, $(this));
|
||||
return false;
|
||||
});
|
||||
};
|
||||
|
||||
// Run initializer
|
||||
base.init();
|
||||
};
|
||||
|
||||
//default options
|
||||
$.fieldsaddmore.defaultOptions = {
|
||||
templateEle: "#fieldsaddmore-template",
|
||||
rowEle: ".fieldsaddmore-row",
|
||||
addbtn: ".fieldsaddmore-addbtn",
|
||||
removebtn: ".fieldsaddmore-removebtn",
|
||||
min: 1,
|
||||
prepend: false, // true - prepend the template fields
|
||||
deleteConfirmation: false,
|
||||
callbackBeforeInit: function(ele, options) {
|
||||
},
|
||||
callbackBeforeAdd: function(ele, options) {
|
||||
},
|
||||
callbackAfterAdd: function(ele, options) {
|
||||
},
|
||||
callbackBeforeAddClick: function(ele, options, thisEle) {
|
||||
},
|
||||
callbackAfterAddClick: function(ele, options, thisEle) {
|
||||
},
|
||||
callbackBeforeRemoveClick: function(ele, options, thisEle) {
|
||||
},
|
||||
callbackAfterRemoveClick: function(ele, options, thisEle) {
|
||||
}
|
||||
};
|
||||
|
||||
//element implementation
|
||||
$.fn.fieldsaddmore = function(options) {
|
||||
return this.each(function() {
|
||||
|
||||
var fieldsaddmore = new $.fieldsaddmore(this, options);
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
})(jQuery);
|
||||
2
public/js/frontend/jquery.min.js
vendored
Normal file
2
public/js/frontend/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
7
public/js/frontend/main.js
vendored
Normal file
7
public/js/frontend/main.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
document.write(
|
||||
'<script src="../../js/frontend/jquery.min.js"></script>' +
|
||||
'<script src="../../js/frontend/bootstrap.min.js"></script>' +
|
||||
'<script src="../../js/frontend/owl.carousel.min.js"></script>' +
|
||||
'<script src="../../js/frontend/general.js"></script>'
|
||||
);
|
||||
7
public/js/frontend/owl.carousel.min.js
vendored
Normal file
7
public/js/frontend/owl.carousel.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
2
public/js/frontend/toastr.min.js
vendored
Normal file
2
public/js/frontend/toastr.min.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
!function(a){a(["jquery"],function(a){return function(){function b(a,b,c){return m({type:t.error,iconClass:o().iconClasses.error,message:a,optionsOverride:c,title:b})}function c(a,b,c){return m({type:t.info,iconClass:o().iconClasses.info,message:a,optionsOverride:c,title:b})}function d(a){r=a}function e(a,b,c){return m({type:t.success,iconClass:o().iconClasses.success,message:a,optionsOverride:c,title:b})}function f(a,b,c){return m({type:t.warning,iconClass:o().iconClasses.warning,message:a,optionsOverride:c,title:b})}function g(a){var b=o();q||n(b),j(a,b)||i(b)}function h(b){var c=o();return q||n(c),b&&0===a(":focus",b).length?void p(b):void(q.children().length&&q.remove())}function i(b){for(var c=q.children(),d=c.length-1;d>=0;d--)j(a(c[d]),b)}function j(b,c){return b&&0===a(":focus",b).length?(b[c.hideMethod]({duration:c.hideDuration,easing:c.hideEasing,complete:function(){p(b)}}),!0):!1}function k(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",target:"body",closeHtml:"<button>×</button>",newestOnTop:!0}}function l(a){r&&r(a)}function m(b){function c(b){return!a(":focus",i).length||b?i[f.hideMethod]({duration:f.hideDuration,easing:f.hideEasing,complete:function(){p(i),f.onHidden&&"hidden"!==r.state&&f.onHidden(),r.state="hidden",r.endTime=new Date,l(r)}}):void 0}function d(){(f.timeOut>0||f.extendedTimeOut>0)&&(h=setTimeout(c,f.extendedTimeOut))}function e(){clearTimeout(h),i.stop(!0,!0)[f.showMethod]({duration:f.showDuration,easing:f.showEasing})}var f=o(),g=b.iconClass||f.iconClass;"undefined"!=typeof b.optionsOverride&&(f=a.extend(f,b.optionsOverride),g=b.optionsOverride.iconClass||g),s++,q=n(f);var h=null,i=a("<div/>"),j=a("<div/>"),k=a("<div/>"),m=a(f.closeHtml),r={toastId:s,state:"visible",startTime:new Date,options:f,map:b};return b.iconClass&&i.addClass(f.toastClass).addClass(g),b.title&&(j.append(b.title).addClass(f.titleClass),i.append(j)),b.message&&(k.append(b.message).addClass(f.messageClass),i.append(k)),f.closeButton&&(m.addClass("toast-close-button").attr("role","button"),i.prepend(m)),i.hide(),f.newestOnTop?q.prepend(i):q.append(i),i[f.showMethod]({duration:f.showDuration,easing:f.showEasing,complete:f.onShown}),f.timeOut>0&&(h=setTimeout(c,f.timeOut)),i.hover(e,d),!f.onclick&&f.tapToDismiss&&i.click(c),f.closeButton&&m&&m.click(function(a){a.stopPropagation?a.stopPropagation():void 0!==a.cancelBubble&&a.cancelBubble!==!0&&(a.cancelBubble=!0),c(!0)}),f.onclick&&i.click(function(){f.onclick(),c()}),l(r),f.debug&&console&&console.log(r),i}function n(b){return b||(b=o()),q=a("#"+b.containerId),q.length?q:(q=a("<div/>").attr("id",b.containerId).addClass(b.positionClass).attr("aria-live","polite").attr("role","alert"),q.appendTo(a(b.target)),q)}function o(){return a.extend({},k(),u.options)}function p(a){q||(q=n()),a.is(":visible")||(a.remove(),a=null,0===q.children().length&&q.remove())}var q,r,s=0,t={error:"error",info:"info",success:"success",warning:"warning"},u={clear:g,remove:h,error:b,getContainer:n,info:c,options:{},subscribe:d,success:e,version:"2.0.2",warning:f};return u}()})}("function"==typeof define&&define.amd?define:function(a,b){"undefined"!=typeof module&&module.exports?module.exports=b(require("jquery")):window.toastr=b(window.jQuery)});
|
||||
//# sourceMappingURL=toastr.min.js.map
|
||||
Reference in New Issue
Block a user