At this point it’s all just speculation to me. Tons of sites are claiming Apple discontinued it because the download links aren’t available anymore. However, it could very well be temporary as Apple deals with the massive amounts of bandwidth during the Mountain Lion update.
Of course, I’d accept being proven wrong with an official statement from Apple.
Shame I missed the landing because I turned off the feed after watching will.i.am talking about inspiration. Was he honestly the best they could do? NASA has gone completely commercial.
You can do continuous playback with a few different methods using any music player (there are a few players on CodeCanyon—just run a search for “music player”). The problem isn’t the player itself, but how it’s integrated into your website.
- Load all of your pages via AJAX . The idea is that you only replace the content that is needed, ignoring the container for the music player. As the user loads new content the music keeps on playing. This is by far the most popular method, and in my opinion, the easiest. There are a couple plugins on CodeCanyon that can help you with this.
- You can put your entire site inside an iframe and keep the music player outside of the frame. Clicking on links within the frame will reload that and the music keeps on playing. The major downfall is that you can’t see the current URL in the address bar, and you can’t share links with others and still have the music work as expected.
- As kvendrik suggested, save the current song position when a link is clicked. On the subsequent page, restart the song and seek to the saved position. Unless there is absolutely 0 latency between the visitor’s computer and your server, this won’t be truly continuous; there will always be a pause while the page loads, the song rebuffers and navigates to a certain position.
Are you using #booking as the container for the form, or the form itself? I see both $("#booking").validate() and $("#booking form").validate(). Judging from what you put in test.php, it should be:
$("#booking").load("/contact.php", function() {
$(this).validate();
});Looks fine to me. I would probably just change the loop to something like this:
for ($i = 1; $i < 15; ++$i) {
$nextDay = strtotime("+$i day");
if (date('w', $nextDay)) {
echo '<option value="' . date('dmY', $nextDay) . '">' . date('l jS M', $nextDay) . '</option>';
}
}I’d just pop in a little date('dmY') for today’s date and date('dmY', strtotime("+$i day")) for future dates. Also, it’s probably best to save strtotime(”+$i day”) to a variable instead of using it 3 times for each loop execution.
The date('w', strtotime("+$i day")) should strip out Sundays. “w” returns a numeric representation of the day of the week, 0 being Sunday, 1 is Monday, et cetera until 6 on Saturday. So, if it gives a value, we can assume it’s greater than 0 and thus not Sunday.
If you’re not concerned about locality, PHP is by far the easiest and quickest method. The downside of course, is that PHP depends on the server’s time (or time set via date_default_timezone_set()).
PHP :<?php
if (date('H') < 12) {
echo '<option value="">Today, ' . date('d jS M') . '</option>';
}
for ($i = 1; $i < 5; ++$i) {
if (date('w', strtotime("+$i day"))) { // 1-6 for Monday - Saturday
echo '<option value="">' . date('l jS M', strtotime("+$i day")) . '</option>';
}
}
?>enstyled said
You can now shake your phone to refresh![]()
If that’s not the most perfect feature ever…
“Y U NO HAVE SALEZ ?” shake shake
iapcsolutions said
They said they would look into it, not get back to you![]()
So that’s how these things work!
