| Server IP : 14.225.204.176 / Your IP : 216.73.216.169 Web Server : nginx/1.24.0 System : Linux nodejs-ybgk 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 10:34:03 UTC 2024 x86_64 User : root ( 0) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/php/zinisoft.net/gem/js/ |
Upload File : |
if ($(window).width() < 1020) {}
$(window).on("load", function () {
"use strict";
/* ===================================
Loading Timeout
====================================== */
$('.side-menu').removeClass('hidden');
setTimeout(function(){
//$('.preloader').fadeToggle();
$(".preloader").fadeOut("slow");
}, 3500);
$('#wrapper').show();
setTimeout(function(){
$('.is-animation').addClass('animate');
}, 1000);
setTimeout(function(){
$('.is-animation-after').addClass('animate');
}, 2000);
});
/* ===================================
Side Menu
====================================== */
if ($("#sidemenu_toggle, #btn-explore").length) {
$("#sidemenu_toggle, #btn-explore").on("click", function () {
$(this).toggleClass('active');
$(".pushwrap").toggleClass("active");
$(".side-menu").toggleClass("side-menu-active"), $("#close_side_menu").fadeIn("slow")
}), $("#close_side_menu").on("click", function () {
$(".side-menu").removeClass("side-menu-active"), $(this).fadeOut(200), $(".pushwrap").removeClass("active")
}), $(".side-nav .navbar-nav").on("click", function () {
$(".side-menu").removeClass("side-menu-active"), $("#close_side_menu").fadeOut(200), $(".pushwrap").removeClass("active")
}), $("#btn_sideNavClose").on("click", function () {
$(".side-menu").removeClass("side-menu-active"), $("#close_side_menu").fadeOut(200), $(".pushwrap").removeClass("active")
});
}
$('.navbar-nav .nav-link').hover(function(){
var total = $('.navbar-nav .nav-item').length;
var pos = $(this).attr('data-id');
var title = $(this).attr('data-title');
var html = pos + '/' + total + " - " + title;
$('.status-page').html(html);
})
/* ===================================
Fixed Navbar
====================================== */
$(function () {
$(document).scroll(function () {
var $nav = $(".navbar-fixed-top");
$nav.toggleClass('scrolled', $(this).scrollTop() > $nav.height());
});
});
/* ===================================
Scroll To Appear
======================================*/
// $(window).on('scroll', function () {
// if ($(this).scrollTop() > 500)
// $('.scroll-top-arrow').fadeIn('slow');
// else
// $('.scroll-top-arrow').fadeOut('slow');
// });
// $(".scroll").on("click", function (event) {
// event.preventDefault();
// $("html,body").animate({
// scrollTop: $(this.hash).offset().top - 0
// });
// });
/* ===================================
WOW
======================================*/
new WOW().init();
/* =====================================
circular bars
====================================== */
$(".circular-wrap").appear(function () {
$(".circle-1").circleProgress({
size: 210,
lineCap: "round",
fill: {
gradient: ["#fa4868", " #2695f7"]
},
});
});
( function ( $ ) {
jQuery.fn.orbit = function(s, options) {
var settings = {
orbits: 1 // Number of times to go round the orbit e.g. 0.5 = half an orbit
,period: 3000 // Number of milliseconds to complete one orbit.
,maxfps: 25 // Maximum number of frames per second. Too small gives "flicker", too large uses lots of CPU power
,clockwise: true // Direction of rotation.
};
$.extend(settings, options); // Merge the supplied options with the default settings.
return(this.each(function() {
var p = $(this);
/* First obtain the respective positions */
var p_top = p.css('top' ),
p_left = p.css('left'),
s_top = s.css('top' ),
s_left = s.css('left');
/* Then get the positions of the centres of the objects */
var p_x = parseInt(p_top ) + p.height()/2,
p_y = parseInt(p_left) + p.width ()/2,
s_x = parseInt(s_top ) + s.height()/2,
s_y = parseInt(s_left) + s.width ()/2;
/* Find the Adjacent and Opposite sides of the right-angled triangle */
var a = s_x - p_x,
o = s_y - p_y;
/* Calculate the hypotenuse (radius) and the angle separating the objects */
var r = Math.sqrt(a*a + o*o);
var theta = Math.acos(a / r);
/* Calculate the number of iterations to call setTimeout(), the delay and the "delta" angle to add/subtract */
var niters = Math.ceil(Math.min(4 * r, settings.period, 0.001 * settings.period * settings.maxfps));
//var delta = 2*Math.PI / niters;
var delta = 2*Math.PI;
var delay = settings.period / niters;
if (! settings.clockwise) {delta = -delta;}
niters *= settings.orbits;
/* create the "timeout_loop function to do the work */
var timeout_loop = function(s, r, theta, delta, iter, niters, delay, settings){
setTimeout(function() {
/* Calculate the new position for the orbiting element */
var w = theta + iter * delta;
var a = r * Math.cos(w);
var o = r * Math.sin(w);
var x = parseInt(s.css('left')) + (s.height()/2) - a;
var y = parseInt(s.css('top' )) + (s.width ()/2) - o;
/* Set the CSS properties "top" and "left" to move the object to its new position */
p.css({top: (y - p.height()/2),
left: (x - p.width ()/2)});
/* Call the timeout_loop function if we have not yet done all the iterations */
if (iter < (niters - 1)) timeout_loop(s, r, theta, delta, iter+1, niters, delay, settings);
}, delay);
};
/* Call the timeout_loop function */
timeout_loop(s, r, theta, delta, 0, niters, delay, settings);
}));
}
}) (jQuery);
$(document).ready(function () {
//$( '#planet1' ).orbit($('#earth'), {orbits: 0.5, period: 40000, clockwise: false, maxfps: 30 });
//$( '#planet2' ).orbit($('#earth'), {orbits: 4, period: 60000, clockwise: true, maxfps: 30 });
//document.addEventListener('mousemove', function(e) {
// let body = $('.banner-home');
// let circle = document.getElementById('parallax');
// let left = e.offsetX;
// let top = e.offsetY;
// circle.style.left = left/2 + 'px';
// circle.style.top = top/2 + 'px';
// });
});