By JEN- Team,
J : Jasmine Badrih- @Jasmineb2011 :sunglasses:
E : Enass Kmal- @enasskmal :sunglasses:
N : Noor Bohsas- @Noorb7188 :sunglasses:
Enter LuckyPicture to see our COOL :stuck_out_tongue_winking_eye: page properly.
Making it happen step by step :
API
:floppy_disk:The page has 3 options buttons for the picture:
/g/
to the url.&blur
to the url.window.open(url, _blank);
=> which was new for us.
after we had many attempts to use different kind of tags type like :
href methods for the tags
location.herf= url;we used fetch
to get the API
of "unsplash.com" to choose the picture with the id that the clients inserts in the input.
It was very challenging to write the JS code using the fetch and catch functions. and if we had more time we would work on more sites at once.
HOPE YOU LIKE IT ! :heart: