Reputation: 11
I have a code that loads a JS script from a URL and put it in my website. I don't want to load the script from a URL because its depends on the URL and when the script in this URL is not working, the script in my website will not work too. What I want to do is to download the script code and save him in the FTP as a JS file, and then to load the script from this file and not from a URL. How do i download the script code? Here is the code that I have right now:
<script src="https://spotplatform.trbinaryoptions.com/SpotOptionPlugin.js"></script>
<script>SO.load({"lang":"en","dir":"LTR","cookieOptions":{"domain":".trbinaryoptions.com"},"packages":{"Clock":{},"Balance":{},"RegularPlatform":{"settings":{"selector":"#so-trading"}}}});</script>
Upvotes: 1
Views: 17399
Reputation: 1102
Open the script from the browser and save the file by Pressing Ctrl + S. That is all you need to do.
Upvotes: 4