1
How can I call a script obeying a conditional on Html5?
For example, depending on the address in the browser it loads a certain script
If the address is http://leituracrista.com/audioplayer/ loads the following script:
<script src="js/index.js"></script>
If the address is http://leituracrista.com/audioplayer/dispensacao/ loads the following script:
<script src="dispensacao/js/index.js"></script>
If the address is http://leituracrista.com/audioplayer/hinario/ loads the following script:
<script src="hinarioCatado/js/index.js"></script>
and so on with several ifs
Thank you!
Please avoid long discussions in the comments; your talk was moved to the chat
– Maniero
Okay, I’m sorry, the discussion really got long.
– Miguel Silva