Skip to content
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

Proof of concept: Open example in JSFiddle #1111

Closed
wants to merge 1 commit into from

Conversation

spectranaut
Copy link
Contributor

@spectranaut spectranaut commented Jul 24, 2019

This is a proof of concept for issue #1102.

JSFiddle has a POST API to prefill the HTML/CSS/JS inputs. This PR adds a dynamically created form that can send a POST request with the appropriate data to JSFiddle (look for "Open this example in JSFiddle" button on the slider/multithumb-slider.html page).

I tried to do this in a generalized way -- the code is mostly in examples/js/examples.js -- so that each example page would only need a small amount of html/js added, most of which could be added/copied directly from the template file. This solution should also work for examples pages that contain multiple examples.

Here is a PR for doing the same thing but using Codepen: #1110

Preview WIP

View the slider example with the JSFiddle button

@spectranaut spectranaut changed the title Open example in JSFiddle Proof of concept: Open example in JSFiddle Jul 24, 2019
@spectranaut spectranaut force-pushed the issue1102-open-example-jsfiddle branch from b0d025d to 366cdc2 Compare July 26, 2019 18:57
@mcking65
Copy link
Contributor

Closing; we are using the codepen approach in #1110

@mcking65 mcking65 closed this Nov 11, 2019
@zcorpan zcorpan deleted the issue1102-open-example-jsfiddle branch October 29, 2021 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants