What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-02-15 13:25:03
load more in laravel
<!DOCTYPE html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head> <meta name="csrf-token" content="{{ csrf_token() }}"> <title>Laravel dynamic auto load more page ... Add solution -
Javascript 2021-11-08 21:16:20
check if user scroll top or bottom
var lastScrollTop = 0, delta = 5; $(window).scroll(function () { var nowScrollTop = $(this).scrollTop(); if (Math.abs(lastScrollTop - nowScrollTop) >= delta) { if (nowScrollTop > lastScrollTop) { // SCROLLING Down... Add solution -
Javascript 2021-11-08 08:26:11
jquery infinite scroll
$(window).scroll(function () { // End of the document reached? if ($(document).height() - $(this).height() == $(this).scrollTop()) { $.ajax({  ... Add solution -
Other 2021-11-03 17:36:11
infinite scroll stackoverflow
<script type="text/javascript"> $(window).scroll(function () { //- 10 = desired pixel distance from the bottom of the page while scrolling) if ($(window).scrollTop() >= $(document).height() - $(window).height() - 10)... Add solution -
Other 2021-09-28 02:59:03
show navbar on specific div
$(document).ready(function(){ $(".navbar").hide(); //Hide the navigation bar first $(window).scroll(function () { //Listen for the window's scroll event if (isScrolledAfterElement("#content")) { //if it has scrolled be... Add solution -
Other 2021-08-27 10:11:02
infinite scroll within a div
<script> $(function(){ $(window).scroll(function () { var $div = $(".scrollme"); var divPlacement = parseInt($div.offset().top + ... Add solution