I currently have a javascript link (Trustwave) on my desktop website theme that I need to deactivate when viewed on mobile devices:
Located in footer.tpl:
<div style="position:absolute; margin-left:100px; margin-top:50px">
<script type="text/javascript" src="https://sealserver.trustwave.com/seal.js?style=invert"></script>
I have successfully removed a clickable image link on mobile screens before (Remove image link in mobile screen):
In footer.tpl:
<div class="column">
<a href="http://mywebsite.com/delivery" id="test" class="hide"></a>
In stylesheet.tpl:
@media all and (max-width: 480px) {
.hide {
display: none;
}
}
#test {
display: block;
background-image: url('../image/myimage.png');
background-repeat: no-repeat;
position: absolute;
margin-top: 10px;
margin-left: 20px;
width: 75px;
height: 75px;
}
However, I am unsure how to modify the javascript link to prevent it from appearing on mobile screens. Any assistance is greatly appreciated!