+ 7

How to use add-ons & libraries in Javascript?

How do I use the external libraries / addons in JavaScript?⁉ The ones I'm most interested in learning to use are : •toastr notifications •swal messages (Sweet Alert) What are the links I should use in the HTML head section? ~Note- I'm using an Android phone, not a Computer~ Thanks in advance❕❕❕✅

6th Jun 2017, 4:37 PM
Leigh E. O.
Leigh E. O. - avatar
2 odpowiedzi
+ 2
Here's an example for jQuery: " <script src="https://code.jquery.com/jquery-3.1.1.js" integrity="sha256-16cdPddA6VdVInumRGo6IbivbERE8p7CQR3HzTBuELA=" crossorigin="anonymous"></script> " You should put this code in the head section of your html. It works for me 😎 Good luck and have a good coding..!
11th Aug 2017, 9:37 PM
3TW3
3TW3 - avatar
+ 1
if you have a text editor any OS should do the job, you've to link the library in the head of your page, and then in your main.js call any method you need, the web url should be provided by the library developer/s although you could download it and link it to your page
8th Jun 2017, 8:39 PM
Agustin Marinsalda Pastor
Agustin Marinsalda Pastor - avatar