I don't know if there is metadata accessible for javascript in a web app, to tell which color an iPhone has. Basically what I would like to do is to detect the color of the iPhone and then use a stylesheet related to the color.
EDIT Forgot the question.
is there a way to detect the color of an iDevice?
Model numbers are the way to do, for example:
MD381 - Black iPhone 4S
MC920 - White iPhone 4S
The accepted answer for this similar question about iOS (as of early 2012) says no, you can't detect the color of an iPhone or iPod Touch. There's some speculation about identifying the device color through its serial number, but it doesn't look possible to extract the serial number through Javascript in a normal web application.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With