Here’s a hack for using the includes method also in the horrible Internet Explorer.
Replaces newline characters with <br> tags in the same style as the php nl2br function
Here’s how you can make a super simple slideshow that changes slides on a timer interval. You could easily edit it so any other event, like a mouse click, will trigger the slide() function. You can see it in action HERE HTML CSS jQuery And of course you could make this dynamic by spitting out… Read More »
Put this in app/start/global.php to get Laravels execution time to the browser console log. L4 This works with L5:
Converting seconds into days, hours, minutes and seconds int days = secondsTotal / 60 / 60 / 24; int hours = (secondsTotal / 60 / 60) % 24; int minutes = (secondsTotal / 60) % 60; int seconds = secondsTotal % 60;
This is a slightly edited version of this post. Just to make it work with a checkbox instead of radio buttons.