Wednesday, October 2, 2013

Detect iOS version using jQuery

This tutorial will help you to redirect to different webpage based on the iOS device version. We detect the iOS device and version using the user-agent string. This code can be further customized for specific subverison and future version using the user-agent string. Below is the sample code to test yourself(Need to include the jQuery js file and change the script tag accordingly):

Tuesday, October 1, 2013

How to include external font file using CSS

Have you ever gone through a requirement where you need to add a custom font file in your website and use it instead of default font type? If Yes, then follow along to know how to do that.

First create a file say style.css in your project structure and add below code to it:
          Then in your HTML file implement the new font as below(import the css file using link tag):
That's it. You can now see the New Font implemented.