I have a HTML file which I would like to have the following behavior:
If the browser is Firefox use this block:
<li class="nav-item">
<a class="nav-link" href="{{site.baseurl}}/donate.html"><button class="button-18" role="button">Faire un don</button></a>
</li>
Else use this block:
<li class="nav-item">
<div id="donate-button-container">
<div id="donate-button"></div>
<script src="https://www.paypalobjects.com/donate/sdk/donate-sdk.js" charset="UTF-8"></script>
<script>
PayPal.Donation.Button({
...
}).render('#donate-button');
</script>
</div>
</li>
I hope somebody could help to achieve this in the best way possible. Thank you so much!