-
Notifications
You must be signed in to change notification settings - Fork 284
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
detect key from longer URL #1175
Conversation
@jywarren please review my pr, Thanks!! |
Co-authored-by: 7malikk <7malikk@gmail.com>
Hi, thanks for taking this up! However I think it needs a little more detail in the original problem statement. What I was thinking was, people may input either a full URL like I hope that helps! You've made a good start here! |
@TildaDares , @jywarren please review my pr, Thanks! |
@@ -94,7 +94,29 @@ <h3 id="offcanvasRightLabel">Images</h3> | |||
|
|||
form.addEventListener('submit', (event) => { | |||
event.preventDefault(); | |||
const url = input.value.replace('details', 'metadata'); | |||
let getUrl; |
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.
This is looking good! I'd like to test it out a bit. But can you put it within its own named function, like function showImages(getUrl) {
below? Maybe it could be named function extractKey()
?
@jywarren , please review my pr |
@jywarren , please review my pr. Thanks! |
Oops, sorry, i accidentally pressed the wrong button! Very nice. I tested it, and several variations worked fine. However, I noticed that entering this did not work: http://archive.org/details/texas-barnraising I'm going to merge this, but maybe we can add an additional line to add the |
Actually maybe that could be a first-timers-only issue? |
Nicely done!!! |
Hi @jywarren, would you like me to make a first-timer-issue? |
Hi @vanithaak, since in the conversation here |
Hey ! sounds good! I'll create an issue for you to contribute! |
* detect key from longer URL * detect key from longer URL Co-authored-by: 7malikk <7malikk@gmail.com> * fixes * made a more flexible function to handle url * updates * made a more flexible function to handle url * made new function extractKey * replace 'http:' to https: * updated http functionality Co-authored-by: 7malikk <7malikk@gmail.com> Co-authored-by: Jeffrey Warren <jeff@unterbahn.com>
Fixes #998 (<=== Add issue number here)
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
grunt test
If tests do fail, click on the red
X
to learn why by reading the logs.Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Thanks!
GIF
MapKnitter.Lite.-.Google.Chrome.2022-10-21.16-45-53.1.mp4