Display image after user logged in with CORDOVA

Asked

Viewed 39 times

1

I am developing an app with CORDOVA and the goal is to show the image of the user profile when logged via ajax, I performed some tests and got here:

$("#email").html(localStorage.email);
var imageUser="https://source.unsplash.com/random/700x300"+md5(localStorage.email);
$("#profile").attr('src',imageUser);

It works after logged in, only that I’m not aware, insert the bank image in the variable. Thanks people.

  • How to store and retrieve image for locationStorage? https://stackoverflow.com/q/19017401/3658278

  • Beauty implemented in the project worked, except in the insertion of the image in the bank. I want to be in the customer profile every time he enters (default)

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.