| Server IP : / Your IP : 10.244.4.16 [ Web Server : nginx/1.25.3 System : Linux escuela-portal-app-54f56585bc-kst6g 5.15.0-1084-azure #93-Ubuntu SMP Sat Mar 15 14:12:29 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.2.13 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/app/public/js/ |
Upload File : |
// JavaScript Document
$(window).on('load', function() {
"use strict";
/*----------------------------------------------------*/
/* Preloader
/*----------------------------------------------------*/
var preloader = $('#loader-wrapper'),
loader = preloader.find('.cssload-loading');
loader.fadeOut();
preloader.delay(400).fadeOut('slow');
});
$(window).on('scroll', function() {
"use strict";
/*----------------------------------------------------*/
/* Navigtion Menu Scroll
/*----------------------------------------------------*/
var b = $(window).scrollTop();
if( b > 100 ){
$(".wsmainfull").addClass("scroll");
} else {
$(".wsmainfull").removeClass("scroll");
}
});
$(document).ready(function() {
"use strict";
/*----------------------------------------------------*/
/* Hero Slider
/*----------------------------------------------------*/
$('.slider').slider({
full_width: false,
interval:6000,
transition:1000,
draggable: false,
});
/*----------------------------------------------------*/
/* Animated Scroll To Anchor
/*----------------------------------------------------*/
$('.header a[href^="#"], .page a.btn[href^="#"], .page a.internal-link[href^="#"]').on('click', function (e) {
e.preventDefault();
var target = this.hash,
$target = jQuery(target);
$('html, body').stop().animate({
'scrollTop': $target.offset().top - 60 // - 200px (nav-height)
}, 'slow', 'easeInSine', function () {
window.location.hash = '1' + target;
});
});
/*----------------------------------------------------*/
/* ScrollUp
/*----------------------------------------------------*/
$.scrollUp = function (options) {
// Defaults
var defaults = {
scrollName: 'scrollUp', // Element ID
topDistance: 600, // Distance from top before showing element (px)
topSpeed: 800, // Speed back to top (ms)
animation: 'fade', // Fade, slide, none
animationInSpeed: 200, // Animation in speed (ms)
animationOutSpeed: 200, // Animation out speed (ms)
scrollText: '', // Text for element
scrollImg: false, // Set true to use image
activeOverlay: false // Set CSS color to display scrollUp active point, e.g '#00FFFF'
};
var o = $.extend({}, defaults, options),
scrollId = '#' + o.scrollName;
// Create element
$('<a/>', {
id: o.scrollName,
href: '#top',
title: o.scrollText
}).appendTo('body');
// If not using an image display text
if (!o.scrollImg) {
$(scrollId).text(o.scrollText);
}
// Minium CSS to make the magic happen
$(scrollId).css({'display':'none','position': 'fixed','z-index': '99999'});
// Active point overlay
if (o.activeOverlay) {
$("body").append("<div id='"+ o.scrollName +"-active'></div>");
$(scrollId+"-active").css({ 'position': 'absolute', 'top': o.topDistance+'px', 'width': '100%', 'border-top': '1px dotted '+o.activeOverlay, 'z-index': '99999' });
}
// Scroll function
$(window).on('scroll', function(){
switch (o.animation) {
case "fade":
$( ($(window).scrollTop() > o.topDistance) ? $(scrollId).fadeIn(o.animationInSpeed) : $(scrollId).fadeOut(o.animationOutSpeed) );
break;
case "slide":
$( ($(window).scrollTop() > o.topDistance) ? $(scrollId).slideDown(o.animationInSpeed) : $(scrollId).slideUp(o.animationOutSpeed) );
break;
default:
$( ($(window).scrollTop() > o.topDistance) ? $(scrollId).show(0) : $(scrollId).hide(0) );
}
});
// To the top
$(scrollId).on('click', function(event){
$('html, body').animate({scrollTop:0}, o.topSpeed);
event.preventDefault();
});
};
$.scrollUp();
/*----------------------------------------------------*/
/* Countdown
/*----------------------------------------------------*/
$("#clock").countdown("2020/11/20 09:00:00", function(event) {
$(this).html( event.strftime(''
+ '<div class="cbox clearfix"><span class="cbox-digit">%D</span> <span class="cbox-txt">d</span></div>'
+ '<div class="cbox clearfix"><span class="cbox-digit">%H</span> <span class="cbox-txt">h</span></div>'
+ '<div class="cbox clearfix"><span class="cbox-digit">%M</span> <span class="cbox-txt">m</span></div>'
+ '<div class="cbox clearfix"><span class="cbox-digit">%S</span> <span class="cbox-txt">s</span></div>'
));
});
/*----------------------------------------------------*/
/* Tabs #1
/*----------------------------------------------------*/
$('ul.tabs-1 li').on('click', function(){
var tab_id = $(this).attr('data-tab');
$('ul.tabs-1 li').removeClass('current');
$('.tab-content').removeClass('current');
$(this).addClass('current');
$("#"+tab_id).addClass('current');
});
/*----------------------------------------------------*/
/* Single Image Lightbox
/*----------------------------------------------------*/
$('.image-link').magnificPopup({
type: 'image'
});
/*----------------------------------------------------*/
/* Video Link #1 Lightbox
/*----------------------------------------------------*/
$('.video-popup1').magnificPopup({
type: 'iframe',
iframe: {
patterns: {
youtube: {
index: 'youtube.com',
src: 'https://www.youtube.com/embed/SZEflIVnhH8'
}
}
}
});
/*----------------------------------------------------*/
/* Video Link #2 Lightbox
/*----------------------------------------------------*/
$('.video-popup2').magnificPopup({
type: 'iframe',
iframe: {
patterns: {
youtube: {
index: 'youtube.com',
src: 'https://www.youtube.com/embed/7e90gBu4pas'
}
}
}
});
/*----------------------------------------------------*/
/* Video Link #3 Lightbox
/*----------------------------------------------------*/
$('.video-popup3').magnificPopup({
type: 'iframe',
iframe: {
patterns: {
youtube: {
index: 'youtube.com',
src: 'https://www.youtube.com/embed/0gv7OC9L2s8'
}
}
}
});
/*----------------------------------------------------*/
/* Statistic Counter
/*----------------------------------------------------*/
$('.count-element').each(function () {
$(this).appear(function() {
$(this).prop('Counter',0).animate({
Counter: $(this).text()
}, {
duration: 4000,
easing: 'swing',
step: function (now) {
$(this).text(Math.ceil(now));
}
});
},{accX: 0, accY: 0});
});
/*----------------------------------------------------*/
/* Testimonials Rotator
/*----------------------------------------------------*/
var owl = $('.reviews-holder');
owl.owlCarousel({
items: 3,
loop:true,
autoplay:true,
navBy: 1,
autoplayTimeout: 4500,
autoplayHoverPause: true,
smartSpeed: 1500,
responsive:{
0:{
items:1
},
767:{
items:1
},
768:{
items:2
},
991:{
items:3
},
1000:{
items:3
}
}
});
/*----------------------------------------------------*/
/* Courses Carousel
/*----------------------------------------------------*/
var owl = $('.courses-carousel');
owl.owlCarousel({
items: 4,
loop:true,
autoplay:true,
navBy: 1,
nav: true,
dots: false,
autoplayTimeout: 4000,
autoplayHoverPause: true,
smartSpeed: 900,
responsive:{
0:{
items:1
},
550:{
items:1
},
767:{
items:2
},
768:{
items:2
},
992:{
items:3
},
1100:{
items:4
}
}
});
/*----------------------------------------------------*/
/* Categories Carousel
/*----------------------------------------------------*/
var owl = $('.categories-carousel');
owl.owlCarousel({
items: 5,
loop:true,
autoplay:true,
navBy: 1,
nav: true,
dots: false,
autoplayTimeout: 4000,
autoplayHoverPause: true,
smartSpeed: 1100,
responsive:{
0:{
items:1
},
550:{
items:2
},
767:{
items:2
},
768:{
items:3
},
992:{
items:4
},
1100:{
items:5
}
}
});
/*----------------------------------------------------*/
/* Teachers Carousel
/*----------------------------------------------------*/
var owl = $('.team-carousel');
owl.owlCarousel({
items: 4,
loop:true,
autoplay:true,
navBy: 1,
nav: true,
dots: false,
autoplayTimeout: 4000,
autoplayHoverPause: true,
smartSpeed: 900,
responsive:{
0:{
items:1
},
550:{
items:2
},
767:{
items:2
},
768:{
items:2
},
992:{
items:3
},
1100:{
items:4
}
}
});
/*----------------------------------------------------*/
/* Brands Logo Rotator
/*----------------------------------------------------*/
var owl = $('.brands-carousel');
owl.owlCarousel({
items: 5,
loop:true,
autoplay:true,
navBy: 1,
autoplayTimeout: 4000,
autoplayHoverPause: false,
smartSpeed: 2000,
responsive:{
0:{
items:2
},
550:{
items:3
},
767:{
items:3
},
768:{
items:4
},
991:{
items:4
},
1000:{
items:5
}
}
});
/*----------------------------------------------------*/
/* Masonry Grid
/*----------------------------------------------------*/
$('.grid-loaded').imagesLoaded(function () {
// filter items on button click
$('.masonry-filter').on('click', 'button', function () {
var filterValue = $(this).attr('data-filter');
$grid.isotope({
filter: filterValue
});
});
// change is-checked class on buttons
$('.masonry-filter button').on('click', function () {
$('.masonry-filter button').removeClass('is-checked');
$(this).addClass('is-checked');
var selector = $(this).attr('data-filter');
$grid.isotope({
filter: selector
});
return false;
});
// init Isotope
var $grid = $('.masonry-wrap').isotope({
itemSelector: '.masonry-item',
percentPosition: true,
transitionDuration: '0.7s',
masonry: {
// use outer width of grid-sizer for columnWidth
columnWidth: '.masonry-item',
}
});
});
/*----------------------------------------------------*/
/* Register Form Validation
/*----------------------------------------------------*/
$(".register-form").validate({
rules:{
name:{
required: true,
minlength: 2,
maxlength: 16,
},
email:{
required: true,
email: true,
},
phone:{
required: true,
digits: true,
}
},
messages:{
name:{
required: "Please enter at least (1) characters"
},
email:{
required: "We need your email address to contact you",
email: "Your email address must be in the format of name@domain.com"
},
phone:{
required: "Please enter only digits",
digits: "Please enter a valid number"
},
}
});
/*----------------------------------------------------*/
/* Comment Form Validation
/*----------------------------------------------------*/
$(".comment-form").validate({
rules:{
name:{
required: true,
minlength: 1,
maxlength: 16,
},
email:{
required: true,
email: true,
},
message:{
required: true,
minlength: 2,
}
},
messages:{
name:{
required: "Please enter at least (1) characters"
},
email:{
required: "We need your email address to contact you",
email: "Your email address must be in the format of name@domain.com"
},
message:{
required: "Please enter at least (2) characters"
},
}
});
/*----------------------------------------------------*/
/* Newsletter Subscribe Form
/*----------------------------------------------------*/
$('.newsletter-form').ajaxChimp({
language: 'cm',
url: 'http://xxx.xxx.list-manage.com/subscribe/post?u=xxx&id=xxx'
});
$.ajaxChimp.translations.cm = {
'submit': 'Submitting...',
0: 'We have sent you a confirmation email',
1: 'Please enter your email address',
2: 'An email address must contain a single @',
3: 'The domain portion of the email address is invalid (the portion after the @: )',
4: 'The username portion of the email address is invalid (the portion before the @: )',
5: 'This email address looks fake or invalid. Please enter a real email address'
};
});