3 ms·
I pulled everything down and started to play with it. it looks really interesting. I put it up on github so you can go check it out there http://github.com/ry
by ryankshaw 17y ago
I pulled everything down and started to play with it. it looks really interesting. I put it up on github so you can go check it out there http://github.com/ryankshaw/PastryKit http://github.com/ryankshaw/PastryKit
(remember, dont actually use that code for your own website, I'm sure apple wouldn't like that), the only reason I put it up on github is because I found it interesting to learn from and thought others might too.
Some interesting notes:
1. the redirect if you are not coming from an iphone does not happen in this code. it is something done on the server. it has nothing to do with these PastryKit javascript files.
2. I took all of the minified css files and js files and made an uncompressed version next to it with the name <filename>.uncompressed.js for the css files I converted it to SASS because I like that and I can see better visually what they are doing with it. (ps, if nothing else, look at the css they are using, there is some awseome webkit-proprietary stuff you can do with your styles if you are targeting only the iPhone)
Some cool things:
1. check out the stuff they are doing with the html5 databases in classes/datacontroller-database-uncompressed.js that is pretty cool.
2. the loading image they do with pure css ( @-webkit-keyframes loadingImageAnimation ) in stylesheet.css is pretty cool.
- grinich 17y agoI actually did the same a few hours ago, and just pushed it to GH. You can see mine here: http://github.com/grinich/PastryKit http://github.com/grinich/PastryKit
- anmldr 17y ago>I'm sure apple wouldn't like that. What I don't understand is WHY we can't use it since they have this statement. "Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: etc. etc. Linda