I need a code that identifies if the browser is Firefox and then runs a block of code and otherwise runs another. The code block is HTML5
pure.
The code is to be used inside Wordpress, so I believe only accept HTML
, but if there is no other way it can be in PHP
or Javascript
.
Brother, I'm using the wordpress module on a website of my own. What I want to do is this: The site is a news portal. In it I put a player of my radio online. The code is as follows:
<iframe src="http://player.srvstm.com/player-barra/19378/000000"frameborder="0" width="100%" height="31"></iframe>
I noticed that this player does not run in Firefox and wanted to put an alternative code just for it in Html5, this one below:
<div id="player-html5" class="players">
<audio id="radios-player" controls="" preload="none" autoplay="" src="http://stm3.srvstm.com:19378/;"></audio>
I thought of using an IF in some language to identify the browser, but I do not know if it is the most viable solution.
The site is: www.planetariosdigital.com.br