Implemented color selection for my lights. Changing the color of a light, will be indicated on the small bulbs, which is pretty neat in my humble oppinion.
This is really coming together nicely!
Let me know what you guys think.
Dev page If you want to have a peek at the current development site, just visit www.hueice.com/dev
Note Remember, that url is my development page - so please refrain on commenting on that part.
I've also added some random todos in my humans.txt.
@Jeff Broderick - thank you kind mr. Broderick. As for preloading, I already made the method for preloading images, I just need to go back and add all the new assets. I didn't see the point in adding them before I was done creating assets.
@Kevin Andersson Not sure if this would help but this is a little script I wrote that runs through the css and preloads any images it finds, so you don't have to hard code any filenames.
https://gist.github.com/1218824
@Jeff Broderick I also plan to add application cache to the app - which stores all defined assets locally - until I push out a change in the manifest file. It's just really annoying to work with while you are developing.
@Kevin Andersson I looked into this more and something has changed sense I wrote this code. document.styleSheets[i].rules always seems to be null now. Sorry, looks like this code doesn't work anymore. Feel free to delete these comments.
@Kevin Andersson awesome! Thanks for your patience, this code should be really robust now thanks to this back and forth! Also thanks for the shout out in humans.txt!
13 Responses
Implemented color selection for my lights. Changing the color of a light, will be indicated on the small bulbs, which is pretty neat in my humble oppinion.
This is really coming together nicely!
Let me know what you guys think.
Dev page
If you want to have a peek at the current development site, just visit www.hueice.com/dev
Note
Remember, that url is my development page - so please refrain on commenting on that part.
I've also added some random todos in my humans.txt.
5 months ago
Wow man...always impressed! I would do some preloading on the images though.
5 months ago
@Jeff Broderick - thank you kind mr. Broderick. As for preloading, I already made the method for preloading images, I just need to go back and add all the new assets. I didn't see the point in adding them before I was done creating assets.
5 months ago
@Kevin Andersson Not sure if this would help but this is a little script I wrote that runs through the css and preloads any images it finds, so you don't have to hard code any filenames.
https://gist.github.com/1218824
Awesome work on this, looks great!
5 months ago
@Jeff Broderick I also plan to add application cache to the app - which stores all defined assets locally - until I push out a change in the manifest file. It's just really annoying to work with while you are developing.
5 months ago
@Kevin Andersson I looked into this more and something has changed sense I wrote this code. document.styleSheets[i].rules always seems to be null now. Sorry, looks like this code doesn't work anymore. Feel free to delete these comments.
5 months ago
@David Keegan I should be able to make it in jQuery - I just had way to much fun working on all the other stuff :D
Anyways - the problem will also be solved when I implement the document manifest / application caching.
5 months ago
@Kevin Andersson actually if you wouldn't mind could you give this updated code a try: https://gist.github.com/1218824
Turns out CSS rules are not available cross domain, so the css from jquery.com was causing it to blow up.
5 months ago
@David Keegan thanks, I am still getting the same error ;)
– Also added you to the humans.txt :D
5 months ago
@Kevin Andersson ok slightly different, 'undefined' instead of 'null', making progress. How abot this: https://gist.github.com/1218824
I ran it in the console on you site and it seemed to work.
5 months ago
@David Keegan magic code accepted. Looks like it is working now. Thank you David!
5 months ago
Nice work. Seems like a very user-friendly interface.
5 months ago
@Kevin Andersson awesome! Thanks for your patience, this code should be really robust now thanks to this back and forth! Also thanks for the shout out in humans.txt!
5 months ago