���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/adimi/assets/plugins/prognroll/ |
# PrognRoll > A tiny, lightweight jQuery plugin that creates scroll progress bar on the page ## Install Load jQuery and include PrognRoll file ```html <script src="jquery.js"></script> <script src="src/prognroll.js"></script> ``` or use CDN ```html <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> <script src="https://cdn.rawgit.com/mburakerman/prognroll/master/src/prognroll.js"></script> ``` ## Usage To see scrolling progress on your page, you need to activate PrognRoll. ```js $(function() { $("body").prognroll(); }); ``` That's it! You can also customize the progress bar. These are default settings. ```js $(function() { $("body").prognroll({ height: 5, //Progress bar height color: "#50bcb6", //Progress bar background color custom: false //If you make it true, you can add your custom div and see it's scroll progress on the page }); }); ``` ## Examples Body ```html <body> <!-- Content --> </body> ``` ```js $(function() { $("body").prognroll(); }); ``` [Body demo on CodePen](http://codepen.io/anon/pen/GjzArK) Custom div ```html <div class="box"> <!-- Content --> </div> ``` ```js $(function() { $(".box").prognroll({ custom: true }); }); ``` [Custom div demo on CodePen](http://codepen.io/anon/pen/WGPoxm) ## Size 0.9 kb minified ## License Licensed under the MIT License.