-
Notifications
You must be signed in to change notification settings - Fork 22.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert ondragenter example to a live sample #8667
Conversation
Preview URLsFlawsNone! 🎉 External URLsURL: No new external URLs (this comment was updated 2021-09-10 15:35:23.266600) |
Thanks for this PR! Would you like to try converting it into a live sample? It would involve:
I think this would make the page much more useful! For the next level improvement, rather than using |
Will try converting it to the liveSample. |
Oh, I forgot. Here's an example of a page that contains a live sample: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/progress_event#live_example . This one doesn't include CSS, and personally I would use "JavaScript" as the heading text rather than "JS", but otherwise it's a reasonable one to copy :). |
Also, predictably, all the related events use similar examples: https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/ondrag These should all be live samples. But if this is too big a task for you now, let me know and I'll file a bug. Or file one yourself if you prefer :). |
Thank you. I'll attempt converting the example to livesample for this page first and then have the same replaced in other pages you've mentioned accordingly. |
You may file the bug and assign it to me. I'll work on it. |
That sounds like a great plan :). |
@wbamberg, does this look good? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @AnilSeervi , this is so much better!
I had some code style suggestions, please ask if any of them don't make sense to you :).
@AnilSeervi , please let me know if you think you will get to this in the next couple of days. I'm sorry to nag, but I'm planning to convert all the Web/API docs into Markdown early next week, and would like to close as many PRs as possible beforehand. If you won't have time no worries - I could finish it myself. |
Sorry, I got busy. I'll make the changes right now. |
I'm yet to add a reload/restart button to revert the drag. I was thinking, is there a way to just reload/refresh the iframe so that the example will be in its initial state again? Edit: Didn't quite notice that you already suggested it here #8667 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AnilSeervi thanks for all your work on this! It's a big improvement to the page.
No problem. |
They don't need to be fixed before the conversion, no. We can do it afterwards. What we really want is to minimise the number of PRs against Web/API that are open at the time we convert (hopefully this Tuesday: #8741), as they will have to be redone. |
Sure. Will work on it after they are converted. I should have changed the PR title before it was merged. |
<head>
tag</head>
tag