Created
June 12, 2009 16:07
-
-
Save buriy/128733 to your computer and use it in GitHub Desktop.
convert page to iphone-compatible format
This file contains 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
<!-- Sample usage: http://localhost/convert/gist.github.com/gists/128733 --> | |
<!-- Hardcoded charset bug to be sorted out yet --> | |
<?php $f = file("http://".$_SERVER['QUERY_STRING']); ?> | |
<?php header("Content-type: text/html; charset=cp1251"); ?> | |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;"> | |
<style> body { width: 320px !important; } nobr {white-space: normal !important; } dd { margin: 5px 10px;} </style> | |
<?php echo implode($f, "") ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment