Cool Ajax - Web Development Tutorial Blog

Category : Mobile

Mobile Boilerplate

Mobile Boilerplate – A best practice baseline for your mobile web app. Mobile Boilerplate helps you create rich, performant, and modern mobile web apps. Kick-start your project with dozens of mobile optimizations and helpers. – Analytics, icons, and more: A lean, mobile-friendly HTML template; optimized Google Analytic snippet; placeholder touch-device icons; and several mobile-focused tools and helpers. – Normalize.css and [...]


How to redirect mobile devices using htaccess

It’s a very simple tricks to redirect visitors in your mobile supported website. This simple htaccess snippet can detect browser agent and redirect it to your mobile website if they come from any mobile/table device. Have a fun with this script. Enjoy!   RewriteEngine On RewriteCond %{REQUEST_URI} !^/m/.*$ RewriteCond %{HTTP_ACCEPT} "text/vnd.wap.wml|application/vnd.wap.xhtml+xml" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "acs|alav|alca|amoi|audi|aste|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "dang|doco|eric|hipt|inno|ipaq|java|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-" [NC,OR] [...]