PHP Classes

File: htdocs/themes/xbootstrap5/js/js.js

Recommend this page to a friend!
  Packages of Michael Beck   Xoops 2.5   htdocs/themes/xbootstrap5/js/js.js   Download  
File: htdocs/themes/xbootstrap5/js/js.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Xoops 2.5
Modular content management publication system
Author: By
Last change:
Date: 2 months ago
Size: 1,741 bytes
 

Contents

Class file image Download
// JavaScript Document /* Scroll Top */ jQuery(function ($) { if (typeof $.scrollUp === 'function') { $.scrollUp({ scrollName: 'scrollUp', // Element ID topDistance: '300', // Distance from top before showing element (px) topSpeed: 300, // Speed back to top (ms) animation: 'fade', // Fade, slide, none animationInSpeed: 200, // Animation in speed (ms) animationOutSpeed: 200, // Animation out speed (ms) scrollText: 'Scroll to top', // Text for element activeOverlay: false, // '#00FFFF' for visible overlay scrollImg: true // Use image instead of text }); } else { console.warn("scrollUp plugin not available."); } }); /* Bootstrap Carousel */ jQuery(function ($) { $('.carousel').carousel({ interval: 5000, pause: 'hover', wrap: true }); }); /* Masonry Grid */ jQuery(function ($) { var $container = $('#xoopsgrid').masonry(); $container.imagesLoaded(function () { $container.masonry(); }); }); /* Newbb styling adjustments */ jQuery(function ($) { $(".xoopsform").find('form').addClass("form-inline"); $(".xoopsform").find('select').addClass("form-control"); $(".xoopsform").find('input[type="submit"]').addClass("btn btn-primary"); $(".newbb-links").find('span').removeClass('forum_icon forum_button'); $('.newbb-thread-attachment').find('br, hr').remove(); }); /* Slider init */ function initSlider() { jQuery(function ($) { $('.carousel').carousel({ interval: 5000, ride: 'carousel' }); }); } // Load when browser is idle if ('requestIdleCallback' in window) { requestIdleCallback(initSlider); } else { setTimeout(initSlider, 200); // fallback }