modified: s/index.tpl.html

This commit is contained in:
Flummi 2016-09-05 10:45:43 +00:00
parent beb738f657
commit 01b74af135

View File

@ -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 = "";