Skip to content

Commit 4d30998

Browse files
committed
Started restrictions, rolled back draggable image 📝🖼️
1 parent c2872dd commit 4d30998

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

recipe/0599-drag-and-drop/index.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ How do you implement the pattern?
2020

2121
## Restrictions
2222

23-
When is this pattern is usable / not usable? Is it deprecated? If it uses multiple specifications, which versions are needed, etc.?
24-
25-
Delete this section if it is not needed.
26-
If you don't know what the restrictions might be initially, just leave the following line:
27-
**Unknown - Help Needed**
23+
Implementing this recipe requires a resource provider and a viewer provider each to implement their part. The resource provider must have a draggable item that can have a `dataTransfer.setData` method attached to the item's `dragstart` event and the viewer provider must have an interface capable of handling the data in its `drop` event.
2824

2925
## Example
3026

@@ -33,7 +29,7 @@ The example json document must be an external document, and imported with the fo
3329

3430
{% include manifest_links.html viewers="" manifest="manifest.json" %}
3531

36-
<img src="https://iiif.io/api/image/3.0/example/reference/899da506920824588764bc12b10fc800-bnf_chateauroux/full/!500,500/0/default.jpg" draggable="true" ondragstart="drag(event)" alt="IIIF logo; drag and drop onto a supporting viewer to see this resource in that viewer">
32+
<img src="https://iiif.io/api/cookbook/assets/images/logos/logo-sm.png" draggable="true" ondragstart="drag(event)" alt="IIIF logo; drag and drop onto a supporting viewer to see this resource in that viewer">
3733

3834
<script>
3935
function drag(ev) {

0 commit comments

Comments
 (0)