Direkt zum Inhalt
Startseite

Main navigation

  • Startseite
  • Neue Frage stellen!
User account menu
  • Anmelden

Pfadnavigation

  1. Startseite

Uncaught TypeError: $(...).once is not a function

By Gast (nicht überprüft), 18 Oktober, 2023

Uncaught TypeError: $(...).once is not a function

JS Code:

(function($){Drupal.behaviors.backtotop={attach:function(context,settings){var exist=$('#backtotop').length;if(exist==0)$("body",context).once('backtotop').each(function(){$('body').append("<button id='backtotop'>"+settings.back_to_top.back_to_top_button_text+"</button>");});backToTop();$(window).scroll(function(){backToTop();});$('#backtotop',context).once('backtotop').each(function(){$(this).click(function(){$("html, body").bind("scroll mousedown DOMMouseScroll mousewheel keyup",function(){$('html, body').stop();});$('html,body').animate({scrollTop:0},350,'linear',function(){$("html, body").unbind("scroll mousedown DOMMouseScroll mousewheel keyup");});return false;});});function backToTop(){if($(window).scrollTop()>settings.back_to_top.back_to_top_button_trigger)$('#backtotop').fadeIn();else $('#backtotop').fadeOut();}}};})(jQuery);;
  • Drupal
  • Jquery
  • once

Comments

Hilfe zum Textformat
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Neueste Kommentare

  • Anfragen werden für…

    1 Woche 6 Tage ago
    BadRequestHttpException: The theme must be passed as a query argument in Drupal \ system \ Controller \ AssetControllerBase->deliver()
    Read more
  • Uncaught Error: Class/function not found: [Drupal.shs.AppModel]

    3 Wochen 2 Tage ago
    Drupal Upgrade (Drupal 9 » Drupal 10)
    Read more
  • Patch back_to_top.js

    3 Wochen 2 Tage ago
    Drupal Upgrade (Drupal 9 » Drupal 10)
    Read more
  • Patches

    1 Monat 3 Wochen ago
    Drupal Upgrade (Drupal 9 » Drupal 10)
    Read more
  • Millisekunden vom Bildname…

    3 Wochen 2 Tage ago
    Mehrere Dateinamen (Bilder usw) schnell aktualisieren: Batch rename mit Windows PowerShell
    Read more
  • Fragen zu Drupal 10 Cache

    2 Monate 1 Woche ago
    4 Wege um Drupal Cache zu löschen / leeren?
    Read more
  • Systemsteuerung >>…

    3 Wochen 2 Tage ago
    Windows 11 - Ruhezustand aktivieren (Energiemenü / Power Button)
    Read more
  • Solution:
    sudo chmod 777 -R…

    2 Monate 2 Wochen ago
    User warning: mkdir(): Permission Denied in FileStorage->createDirectory() (Line 123 in web/core/lib/Drupal/Component/PhpStorage/FileStorage.php).
    Read more
  • Alternativ mit SFTP : 
    sftp…

    2 Monate 2 Wochen ago
    Server-to-Server Transfer - Download vie SCP / SSH / SFTP
    Read more
  • Plesk

    3 Monate 1 Woche ago
    PHPStan failed - PHP Fatal error: Trait "Symfony\Bridge\PhpUnit\Legacy\PolyfillAssertTrait" not found in
    Read more
Die E-Mail Adresse, die den Newsletter erhalten soll.
You are already subscribed
Manage existing

Tools

  • Cookie settings
  • Inhalt hinzufügen
  • Neuester Inhalt

Fußbereich

  • Allgemeine Geschäftsbedingungen - Datenschutz - Impressum