I've been working on my website and wanted to install this JavaScript code into it.
https://gist.github.com/sturadnidge/b1acaa1a77c1d1803087
It is supposed to be a CSGO Lounge Match Watcher, but I can't seem to get it to work. I am using Weebly as my host/creator, and there is a way to enter embedded code onto my pages. I can either edit the code directly or drop an embedded code object from the editor. I've also already uploaded the javascript file, but not sure how to embed it properly.
Any help is greatly appreciated. Thanks.
I've been working on my website and wanted to install this JavaScript code into it.
https://gist.github.com/sturadnidge/b1acaa1a77c1d1803087
It is supposed to be a CSGO Lounge Match Watcher, but I can't seem to get it to work. I am using Weebly as my host/creator, and there is a way to enter embedded code onto my pages. I can either edit the code directly or drop an embedded code object from the editor. I've also already uploaded the javascript file, but not sure how to embed it properly.
Any help is greatly appreciated. Thanks.
I think the bigger problem with the code is that it seems to use the node.js framework and I doubt it will be compatible with any sitebuilder type websites.
I think the bigger problem with the code is that it seems to use the node.js framework and I doubt it will be compatible with any sitebuilder type websites.
BobbyTablesI think the bigger problem with the code is that it seems to use the node.js framework and I doubt it will be compatible with any sitebuilder type websites.
Have no idea whata node.js is - Argh :(
[quote=BobbyTables]I think the bigger problem with the code is that it seems to use the node.js framework and I doubt it will be compatible with any sitebuilder type websites.[/quote]
Have no idea whata node.js is - Argh :(
Put <script src="loungeWatch.js"></script> within the head tag to link it (as in, allow the webpage to recognize and call loungeWatch's variables and functions)
If you mean embed as in actually calling the variables and functions, I don't think I can really help you [since I've never worked with node.js]. GL
Put <script src="loungeWatch.js"></script> within the head tag to link it (as in, allow the webpage to recognize and call loungeWatch's variables and functions)
If you mean embed as in actually calling the variables and functions, I don't think I can really help you [since I've never worked with node.js]. GL
Unfortunately, you won't be able to, since Node.js scripts mostly don't work in browsers, and this one requires a few modules to be installed on top of that.
If you could host this on a server that has a command line you could probably make it work, but I don't think you can do that on only Weebly.
Unfortunately, you won't be able to, since Node.js scripts mostly don't work in browsers, and this one requires a few modules to be installed on top of that.
If you could host this on a server that has a command line you could probably make it work, but I don't think you can do that on only Weebly.
Well - I can access the HTML/CSS of the site, if that matters at all?
Well - I can access the HTML/CSS of the site, if that matters at all?
shocka1Well - I can access the HTML/CSS of the site, if that matters at all?
Nope. You need a script that is capable of being completely executed in the client's browser (which this is not capable of, since it has dependencies on Node.js, a server-side platform).
That being said, although the script is uncomplicated, it would be difficult for you to recreate this functionality in a client-side script, primarily because most servers block "cross-domain" requests as part of a security policy. (See: https://en.wikipedia.org/wiki/Same-origin_policy)
TL;DR If you really want this functionality, you need a better website host.
[quote=shocka1]Well - I can access the HTML/CSS of the site, if that matters at all?[/quote]
Nope. You need a script that is capable of being completely executed in the client's browser (which this is not capable of, since it has dependencies on Node.js, a server-side platform).
That being said, although the script is uncomplicated, it would be difficult for you to recreate this functionality in a client-side script, primarily because most servers block "cross-domain" requests as part of a security policy. (See: https://en.wikipedia.org/wiki/Same-origin_policy)
TL;DR If you really want this functionality, you need a better website host.