This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| # | |
| # Mac fix 1 - Install the Nokogiri gem on Mac OS 10.9 Mavericks | |
| # | |
| # Usage: to configure and install using Bundler, pass in 'bundle' as an argument to the script. | |
| # | |
| # Nokogiri works at a very low level, so it has many issues on various platforms. | |
| # As a result, the command `install gem nokogiri` often will fail. This fix is for | |
| # errors involving 'libiconv', such as the following one I encountered: | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app.get('/', function(req, res){ | |
| var ua = req.header('user-agent'); | |
| if(/mobile/i.test(ua)) { | |
| res.render('mobile.html'); | |
| } else { | |
| res.render('desktop.html'); | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Lungo 2 - HTML5 Cross-Device Framework</title> | |
| <meta name="description" content=""> | |
| <meta name="author" content=""> | |
| <meta name="HandheldFriendly" content="True"> | |
| <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> | |
| <meta name="apple-mobile-web-app-capable" content="yes"> |