Created
July 20, 2012 05:15
-
-
Save alanduan/3148823 to your computer and use it in GitHub Desktop.
try infinite scroll
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src=jquery.js></script> | |
<script src=jquery.infinitescroll.js></script> | |
<div id="content"> | |
<div class=navigation><a href="page1.html">page1</a></div> | |
<div class=post> | |
<p>root:x:0:0:root:/root:/bin/bash | |
<p>daemon:x:1:1:daemon:/usr/sbin:/bin/sh | |
<p>bin:x:2:2:bin:/bin:/bin/sh | |
<p>sys:x:3:3:sys:/dev:/bin/sh | |
<p>sync:x:4:65534:sync:/bin:/bin/sync | |
<p>games:x:5:60:games:/usr/games:/bin/sh | |
<p>man:x:6:12:man:/var/cache/man:/bin/sh | |
<p>lp:x:7:7:lp:/var/spool/lpd:/bin/sh | |
<p>mail:x:8:8:mail:/var/mail:/bin/sh | |
<p>news:x:9:9:news:/var/spool/news:/bin/sh | |
<p>uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh | |
<p>proxy:x:13:13:proxy:/bin:/bin/sh | |
<p>www-data:x:33:33:www-data:/var/www:/bin/sh | |
<p>backup:x:34:34:backup:/var/backups:/bin/sh | |
<p>list:x:38:38:Mailing List Manager:/var/list:/bin/sh | |
<p>irc:x:39:39:ircd:/var/run/ircd:/bin/sh | |
<p>gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh | |
<p>nobody:x:65534:65534:nobody:/nonexistent:/bin/sh | |
<p>libuuid:x:100:101::/var/lib/libuuid:/bin/sh | |
<p>syslog:x:101:103::/home/syslog:/bin/false | |
<p>messagebus:x:102:105::/var/run/dbus:/bin/false | |
<p>colord:x:103:108:colord colour management daemon,,,:/var/lib/colord:/bin/false | |
<p>lightdm:x:104:111:Light Display Manager:/var/lib/lightdm:/bin/false | |
<p>whoopsie:x:105:114::/nonexistent:/bin/false | |
<p>avahi-autoipd:x:106:117:Avahi autoip daemon,,,:/var/lib/avahi-autoipd:/bin/false | |
<p>avahi:x:107:118:Avahi mDNS daemon,,,:/var/run/avahi-daemon:/bin/false | |
<p>usbmux:x:108:46:usbmux daemon,,,:/home/usbmux:/bin/false | |
<p>kernoops:x:109:65534:Kernel Oops Tracking Daemon,,,:/:/bin/false | |
<p>pulse:x:110:119:PulseAudio daemon,,,:/var/run/pulse:/bin/false | |
<p>rtkit:x:111:122:RealtimeKit,,,:/proc:/bin/false | |
<p>speech-dispatcher:x:112:29:Speech Dispatcher,,,:/var/run/speech-dispatcher:/bin/sh | |
<p>hplip:x:113:7:HPLIP system user,,,:/var/run/hplip:/bin/false | |
<p>saned:x:114:123::/home/saned:/bin/false | |
<p>neusoft:x:1000:1000:neusoft,,,:/home/neusoft:/bin/bash | |
<p>mysql:x:115:125:MySQL Server,,,:/nonexistent:/bin/false | |
<p>sshd:x:116:65534::/var/run/sshd:/usr/sbin/nologin | |
</div> | |
</div> | |
<script> | |
$('#content').infinitescroll({ | |
navSelector: "div.navigation", | |
nextSelector: "div.navigation a:first", | |
itemSelector: "#content div.post" | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment