Monday, April 21, 2014

Add a link to show Desktop View for responsive site

       <span class="destop-versite">View Desktop Version</span>
var targetWidth = 1280;

jQuery('.destop-versite').bind('click', function(){
jQuery('meta[name="viewport"]').attr('content', 'width=' + targetWidth);
});

No comments:

Post a Comment