You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.5 KiB

2 years ago
  1. # BlockUI - Page or element overlay
  2. ## Getting Started
  3. Download either the [production version][min] or the [development version][max] of BlockUI.
  4. [min]: http://malsup.github.com/min/jquery.blockUI.min.js
  5. [max]: http://malsup.github.com/jquery.blockUI.js
  6. In your web page:
  7. <pre>
  8. &lt;!-- include jQuery -->
  9. &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js">&lt;/script>
  10. &lt;!-- include BlockUI -->
  11. &lt;script src="http://path/to/your/copy/of/jquery.blockUI.js">&lt;/script>
  12. &lt;script>
  13. // invoke blockUI as needed -->
  14. $(document).on('click', '#myButton', function() {
  15. $.blockUI();
  16. });
  17. >&lt;/script>
  18. </pre>
  19. ## Documentation, Demos and Timeline
  20. Everything you need to know can be found here:
  21. [http://jquery.malsup.com/block/](http://jquery.malsup.com/block/)
  22. ## Copyright and License
  23. Copyright &copy; 2007-2013 M. Alsup.
  24. The BlockUI plugin is dual licensed under the [MIT](http://malsup.github.com/mit-license.txt) and [GPL](http://malsup.github.com/gpl-license-v2.txt) licenses.
  25. You may use either license. The MIT license is recommended for most projects because it is simple and easy to understand and it places almost no restrictions on what you can do with the plugin.
  26. If the GPL suits your project better you are also free to use the plugin under that license.
  27. You do not have to do anything special to choose one license or the other and you don't have to notify anyone which license you are using. You are free to use the BlockUI plugin in commercial projects as long as the copyright header is left intact.