Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(function($){
- $("#sr-estadisticas").html(function() {
- return $(this).html().replace("Miembros conectados en las últimas 24 horas:", "");});
- });
- jQuery(function($){
- $("#sr-estadisticas").html(function() {
- return $(this).html().replace("Usuarios registrados: ", "");});
- });
- jQuery(function($){
- $("#sr-estadisticas").html(function() {
- return $(this).html().replace(" El último usuario registrado es ", "");});
- });
- jQuery(function($){
- $("#sr-estadisticas").html(function() {
- return $(this).html().replace("Tenemos ", "");});
- });
- $(document).ready(function(){
- $('#sr-estadisticas br:first-child').remove();
- });
- /*VISTO*/
- $(document).ready(function replaceTotalUsersOnline (){
- const string = $('.e1-nm').text();
- const numbers = string.match(/\d+/g).map(Number);
- $('.e2nm-1').html(numbers[4] + ' <b>online</b><i class="fa-solid fa-wifi"></i>');
- $('.e2nm-2').html(numbers[1] + ' <b>members</b><i class="fa-solid fa-user-group"></i>');
- $('.e2nm-3').html(numbers[2] + ' <b>guest</b><i class="fa-solid fa-user-secret"></i>');
- });
- $(document).ready(function(){
- $('.tab-cuerpo').appendTo('.st-temas');
- $('#comments_scroll_div').hover( function(){$('.js-marquee-wrapper').css('animation-play-state','paused')}, function(){$('.js-marquee-wrapper').css('animation-play-state','running')});
- });
- $(document).ready(function(){
- const sliderElm = document.querySelector(".time-0 .time-slide");
- const btnLeft = document.querySelector(".time-0 .time-prev");
- const btnRight = document.querySelector(".time-0 .time-next");
- const numberSliderBoxs = sliderElm.children.length;
- let idxCurrentSlide = 0;
- // Functions:
- function moveSlider() {
- let leftMargin = (sliderElm.clientWidth / numberSliderBoxs) * idxCurrentSlide;
- sliderElm.style.marginLeft = -leftMargin + "px";
- console.log(sliderElm.clientWidth, leftMargin);
- }
- function moveLeft() {
- if (idxCurrentSlide === 0) idxCurrentSlide = numberSliderBoxs - 1;
- else idxCurrentSlide--;
- moveSlider();
- }
- function moveRight() {
- if (idxCurrentSlide === numberSliderBoxs - 1) idxCurrentSlide = 0;
- else idxCurrentSlide++;
- moveSlider();
- }
- // Event Listeners:
- btnLeft.addEventListener("click", moveLeft);
- btnRight.addEventListener("click", moveRight);
- window.addEventListener("resize", moveSlider);
- });
Advertisement
Add Comment
Please, Sign In to add comment