background preloader

Building a Custom HTML5 Audio Player with jQuery « Neutron Creations

Building a Custom HTML5 Audio Player with jQuery « Neutron Creations
We recently built an HTML5 audio player for Tim Van Damme's The Box, a new podcast where he interviews people who make cool stuff. Tim wanted an HTML5 audio player on the site, and we put together some jQuery to hook up the player interface he designed. In this article we'll run through the code to explain how it works, covering a few caveats along the way. Here's the player interface, and the markup for it. As you can see, we have a few span elements for each component of the interface: playtoggle is the play/pause toggle button. gutter is the timeline track loading is the bar indicating the loading or buffering progress handle is the circular element that serves as the playhead, indicating current position in the audio file, and also acting as a drag handle to move to a different point of the audio timeleft is the play time remaining, in minutes and seconds We won't cover the CSS for the player here, but if you want to see how it's styled you can inspect the styles on the live site. if(!!

Working with Better Exposed Filters NOTE: This handbook page, like all documentation on drupal.org, is a community effort. If you have any corrections please edit this page. If you have any suggestions, feature requests, or bug reports please post them in the Better Exposed Filters issue queue. The Better Exposed Filters (BEF) module replaces the default single- or multi-select boxes that normally appear in Views' exposed filters with radio buttons or checkboxes, respectively. It can also replace date filter with a jQuery UI datepicker or yes/no filters with a single checkbox or (coming soon!) Versions Drupal 7.x or Drupal 6.x? Better Exposed Filters was recently re-versioned to make things easier: Drupal 6.x with Views 2.x: Use BEF 6.x-2.xDrupal 6.x with Views 3.x: Use BEF 6.x-3.xDrupal 7.x with Views 3.x: Use BEF 7.x-3.x Note: Once a final 6.x-2.0 release is made, this will become a bug-fix-only branch. Background Views Filters is a powerful tool that refines the results of a given view. Why use this module? Installation

Dynamic Drag’n Drop With jQuery And PHP After publishing ScheduledTweets yesterday, I received e-mails asking "how the drag'n drop & saving the new positions to the database was working". Drag'n drop generally looks hard-to-apply but it is definitely not by using JavaScript frameworks. Here is, how it is done by using jQuery & jQuery UI: The Database: We create a simple database as below: The most important column in the database is recordListingID which shows us the order of the records. This feature can be applied to any table by adding such a column to it. The HTML: We'll be using an unordered list that is generated from a PHP query that lists the items according to the recordListingID value mentioned above. Here it is: 1. 2. 4. 5. 6. The JavaScript: We will be using jQuery UI's sortable plugin. 01. 02. 04. 05. 06. var order = $(this).sortable("serialize") + '&action=updateRecordsListings'; 07. $.post("updateDB.php", order, function(theResponse){ 08. 15. The PHP: 01.<? 02.require("db.php"); 04. 05. 07.if ($action == "updateRecordsListings"){ 09.

TurboManage BonBon Buttons - Sweet CSS3 buttons There was a goal: Create CSS buttons that are sexy looking, really flexible, but with the most minimalistic markup as possible. And voila.. here they are, the BonBon Buttons. Named after the French word for "Candy". So, let's take a tour trough the candy store. No, wait! Before you click that download button and try to use them on your site, please also read the flaws. Markup I get a real kick out of trying to keep the markup minimal, so I'm really happy with the outcome. You can change the look by adding more classes: <a href="" class="button orange glossy">Label</a> Label Icons Accessibility Addingrole="button" makes it more accessible. Looks I tried to avoid any images but couldn't resist adding a PNG for the noise. A border-radius doesn't always need to be rounded. For the colors HSL values are used. I tried to simulate different materials. The glossy shape is created using an :after element with a gradient background on top. Flexibility There is one thing I'm kinda sad about. Note

520 Grid System Raptorize: An awesome jQuery plugin that unleahes a Raptor - ZURB Playground - ZURB.com You're sitting at your desk, coding up a 500 page site, knee-deep in Extreme Cheddar Doritos sipping on a liter of Code Red Mountain Dew when you realize...this page would be: You immediately scramble home to grab your Jurassic Park DVDs so can screencap a Velociraptor attack, but then you realize how hard it would be to make an awesome raptor run across the site you were coding. Plus, how are you going to get that trademark velociraptor screech? How about we let you in on a little secret? We already did it. The Raptorize Kit First things first, you need to download the Raptorize Kit. An awesome Raptor GraphicMP3 and OGG audio files for the HTML5 audio on Webkit and Firefox Our jQuery Plugin which makes the magic happen The jQuery Library to make all the pieces work together An example HTML file that has all the initial setup pieces Next, open the index.html file and click the button to activate a prehistoric beast. The Code You Need The Options What's that? Credit Where Credit is Due

ThemeRoller Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Phasellus mattis tincidunt nibh. Cras orci urna, blandit id, pretium vel, aliquet ornare, felis. Nam dui erat, auctor a, dignissim quis, sollicitudin eu, felis. Lorem ipsum dolor sit amet, Nulla nec tortor. Nam congue semper tellus. Nulla purus lacus, pulvinar vel, malesuada ac, mattis nec, quam. Nam congue semper tellus. Nullam feugiat cursus lacus.orem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse scelerisque dui nec velit. Tooltips can be attached to any element.

Handlebars – SproutCore The following post refers to SproutCore 2.0, which has split off as a separate project. However, the information within this post is entirely applicable with respect to using SC.TemplateView and Handlebars in SproutCore 1.8. If you wish to use SC.TemplateView in SproutCore, you only need be aware that the many views and controls in the Desktop framework may contain templates, but should not themselves be contained within templates. When people check out SproutCore 2.0 for the first time, one question that they frequently ask is: Do I have to use Handlebars? Handlebars, if you’re not familiar with it, is a semantic templating language written entirely in JavaScript. Handlebars, unlike other templating solutions like Eco, doesn’t tempt you to embed domain logic in your HTML. So, while the answer to the question is use whatever templating system you’d like, we think Handlebars is a great option.

How to plan an awesome tweetup event | Wright Creativity Less Framework 2 I called Less Framework "a CSS grid system for designing adaptive websites". It was basically a fixed-width grid that adapted to a couple of then popular screen widths by shedding some of its columns. It also had matching typographic presets to go with it, built with a modular scale based on the golden ratio. Contrary to how most CSS frameworks work, Less Framework simply provided a set of code comments and visual templates, instead of having predefined classes to control the layout with. /* Default Layout: 992px. Less Framework was popular in the early days of responsive design. Eventually, I moved on from fixed-width grid systems and worked on a fully fluid-width one, in the form of Golden Grid System. Less Framework's popularity was helped by the following contributions and the lovely people behind them (dead links crossed off):

13 Websites with Mind-Blowing jQuery Effects This is a guest post from Sean – a multimedia addict with a specialty in Front-End Development. He is the creator of Freshen Up Design, a multimedia design blog dedicated to resources from all realms of digital media. Connect with him on Twitter, or visit the blog. The battle between HTML5 and Flash has been raging on for the past year or so, with Steve Jobs and his friends at Apple making a strong case for a Flash-less future. And while HTML5 can do some pretty awesome effects, it’s not up to standards yet. Flash has always been buggy, and a lot of users often have Flash disabled for various reasons. jQuery has gotten exponentially better over the years (and it was already awesome to begin with) and it is truly amazing to see people push it to it’s limits and beyond. Here’s a list of 13 websites that are really taking advantage of jQuery’s easy to use API. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13.

How do I get the coordinate position after using jQuery drag and drop

Related: