Targeting only for ios devices

jQuery(document).ready(function($){
 var deviceAgent = navigator.userAgent.toLowerCase();
 var agentID = deviceAgent.match(/(iphone|ipod|ipad)/);
 if (agentID) {
    $('#suiteBarTop').addClass('hidesuiteBarTop');
    $('#s4-ribbonrow').after('<div class="mobileBackBtn"><a href="#">← Back to home</a></div>');
 }
});

Share this

Related Posts