On Jan 25, 2012, at 2:52 PM, kcrisman wrote:

> Ivan's iPhone app is cool.  However, when it links to sagenb or
> sagemath.org, it looks ... unhelpful.  Perhaps this is possible to fix
> easily - exchange below.  Is there someone for whom this would be only
> epsilon/two of effort to fix, who has epsilon/two time available?
> 
> - kcrisman
> 
> +++
>> Incidentally, the Sage website is totally sucky for iDevice,
>> apparently.  Screenshot attached :( though I don't think there is much
>> you can do about that.   Sagenb is similar :(
> 
> Yes indeed!  It would be very nice to fix this someday.  I think it
> would simply be a matter of add a css files specifically for mobile
> devices:
> 
> <link rel="stylesheet" href="./res/mobile.css" type="text/css"
> media="handheld" />
> 
> Also adding an iPhone icon would be nice:
> 
> <link rel=”apple-touch-icon” href=”http://www.icantinternet.org/
> icon.png”>
> 
> I guess I should just do it since it probably takes more effort to
> ignore it than to do it. :-)

Actually, it might be easier than that even, at least for the notebook.  
According to a stack overflow question [1] the problem with iPhone is that it 
tries to "scale your content for optimal viewing".  The solution is to add

<meta name="viewport" content="initial-scale=1.0">

which tells the (mobile) browser to use the actual width of the device.  IMHO 
this makes it (much more) usable on the iPhone. There could probably be some 
tweaks to the css just for mobile devices, but the notebook actually scales 
really well layout-wise.  Some of the plots and such are cut off, but they fit 
pretty well when viewed in landscape.

Now, sagemath.org doesn't appear to scale as well, at least the front page.  
The documentation doesn't work well until you collapse the side bar--which I 
had no idea you could do until I started trying to figure out the page to fix 
the css.  After that it's quite nice.  I'm not sure how, but it would be nice 
if that were more discoverable--especially on mobile devices.

-Ivan

[1] 
http://stackoverflow.com/questions/5031910/div-with-fixed-width-rendering-too-wide-in-ipad

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to