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

(upcoming) Add "post to PublicLab.org" button to embeddable demo #223

Closed
jywarren opened this issue Apr 28, 2018 · 4 comments
Closed

(upcoming) Add "post to PublicLab.org" button to embeddable demo #223

jywarren opened this issue Apr 28, 2018 · 4 comments
Labels
almost-complete PRs that are almost done but little more work. enhancement

Comments

@jywarren
Copy link
Member

jywarren commented Apr 28, 2018

We should embed Image Sequencer's browser version on PublicLab.org, and have a Save button that lets people post their image as a note. Example code to test this out would be:

$('body').append('<form action="https://publiclab.org/post?legacy=true" method="post"><input type="text" name= "i" value="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAAQABADASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAf/xAAUEAEAAAAAAAAAAAAAAAAAAAAA/8QAFQEBAQAAAAAAAAAAAAAAAAAABgj/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwCdABykX//Z" /><input type="submit" /></form>')

Then press the "submit" button -- although we'd do this in JavaScript instead of course.

It might also be tested out using a small image:

https://publiclab.org/post?legacy=true&i=data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAAQABADASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAf/xAAUEAEAAAAAAAAAAAAAAAAAAAAA/8QAFQEBAQAAAAAAAAAAAAAAAAAABgj/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwCdABykX//Z`

This may or may not work pending publiclab/plots2#2675

@jywarren
Copy link
Member Author

GitMate.io thinks possibly related issues are #142 (Add select dropdown for some module UIs in demo), and #215 (Refine/simplify "add module" interface in demo).

@jywarren jywarren added bug enhancement almost-complete PRs that are almost done but little more work. and removed bug labels Apr 28, 2018
@tech4GT
Copy link
Member

tech4GT commented Apr 28, 2018

@jywarren this sound awesome 👍👍

@jywarren jywarren added this to the Default UI work milestone May 4, 2018
@jywarren
Copy link
Member Author

jywarren commented Jun 3, 2018

This should now work because publiclab/plots2#2675 was resolved!

@jywarren
Copy link
Member Author

jywarren commented Dec 6, 2019

Finally solved this, moving to: #1332

@jywarren jywarren closed this as completed Dec 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
almost-complete PRs that are almost done but little more work. enhancement
Projects
None yet
Development

No branches or pull requests

2 participants