Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <script src="http://www.featureblend.com/flash_detect_1-0-4/flash_detect.js" type="text/javascript" charset="utf-8"></script>
- <script type="text/javascript">
- if(!FlashDetect.installed){
- window.location = "?flash=false";
- }else{
- window.location = "?flash=true";
- }
- </script>
- </head>
- var uagent = navigator.userAgent.toLowerCase();
- if (uagent.search("iphone") > -1 ||
- uagent.search("ipod") > -1 ||
- uagent.search("ipad") > -1 ||
- uagent.search("appletv") > -1) {
- window.location = "?flash=false";
- } else {
- window.location = "?flash=true";
- }
- var agent=navigator.userAgent.toLowerCase();
- var is_iphone = ((agent.indexOf('iphone')!=-1);
- if (is_iphone) { conditional code goes here }
- RewriteEngine on
- RewriteCond %{HTTP_USER_AGENT} iPhone
- RewriteRule .* http://iphone.mydomain.com/ [R]
- var agent=navigator.userAgent.toLowerCase();
- var is_iphone = ((agent.indexOf('iphone')!=-1);
- var is_ipad = ((agent.indexOf('ipad')!=-1);
- if (is_iphone || ipad) { conditional code goes here }
- RewriteEngine on
- RewriteCond %{HTTP_USER_AGENT} iPhone
- RewriteCond %{HTTP_USER_AGENT} iPad
- RewriteRule .* http://ios.mydomain.com/ [R]
Advertisement
Add Comment
Please, Sign In to add comment