Join Bill Weinman for an in-depth discussion in this video Exploring the RPS code, part of HTML5: Drag and Drop in Depth.
And that's all in that statusMessage, so that's what that looks like in the HTML.…And then we have the div id equals columns and that's simply a container for the…three images and their captions.…Each of the images and caption sets are wrapped in a div of class rps, which…
- Detecting drag and drop support
- Using the HTML5 draggable and dropzone attributes and onDragStart event
- Exploring different events
- Receiving drops with or without a drop zone
- Creating a simple game