modified: s/index.tpl.html
This commit is contained in:
parent
beb738f657
commit
01b74af135
|
@ -14,9 +14,9 @@
|
||||||
<script src="./s/jquery-3.1.0.min.js"></script>
|
<script src="./s/jquery-3.1.0.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
var load = false;
|
var load = false;
|
||||||
$(function() {
|
$(()=>{
|
||||||
$(window).scroll(()=>{
|
$(window).scroll(()=>{
|
||||||
if($(window).scrollTop() + $(window).height() == $(document).height() && !load) {
|
if($(window).scrollTop() + $(window).height() >= $(document).height() - 130 && !load) {
|
||||||
load = true;
|
load = true;
|
||||||
$.getJSON('./api/p/'+$('#posts').data('last'), (msg) => {
|
$.getJSON('./api/p/'+$('#posts').data('last'), (msg) => {
|
||||||
var html = "";
|
var html = "";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user