I have an Enjin website and they allow near unlimited pages, but only 50 modules to work with. One of the modules I can use is an HTML module that accepts only HTML & Javascript. One of my pages list all of our live Twitch streamers and displays all their streams on one page. http://greatartchitect.enjin.com/live or http://greatarchitect.us/live
What I wanted to do is create a new page for every streamer using only 1 HTML module and load a stream based on the page URL. The only way I know to do this is for javascript to look for the page URL and then load a specified stream based on which page the HTML module is being loaded from.
Now I don't have any problem loading the streams what I need help with is an If..Then or Case Statement in javascript. I have done some research and it may be a Switch statement that I need. I don't know enough about javascript to write this properly. I feel like this should be pretty simple. Could someone please help me out with this?
Thank you,
SeeingBlue
What I wanted to do is create a new page for every streamer using only 1 HTML module and load a stream based on the page URL. The only way I know to do this is for javascript to look for the page URL and then load a specified stream based on which page the HTML module is being loaded from.
Now I don't have any problem loading the streams what I need help with is an If..Then or Case Statement in javascript. I have done some research and it may be a Switch statement that I need. I don't know enough about javascript to write this properly. I feel like this should be pretty simple. Could someone please help me out with this?
Thank you,
SeeingBlue