0
[jQuery] Get SoloLearn Profile Avatar & Cetificate url
Hi all, just created a nice dynamic script to show your profile images: https://code.sololearn.com/WMqwmP3F1XYg/#js You can click at the shown images to open it in a new page. leave a like/comment thanks edit: during commenting i created a small bug. it's fixed now
7 Réponses
+ 9
not working for me on mobile
also, here's some similar codes
https://code.sololearn.com/Wrsct5AS27Ui/?ref=app
https://code.sololearn.com/W6UxTf43op8C/?ref=app
https://code.sololearn.com/WW2H1l009oRE/?ref=app
+ 5
scripts are different, but for a similar purpose.
have you tested your code on mobile?
+ 5
well
now it works :)
+ 1
Well what i tested now...
it seems not all browser support the onerror event. which i used to remove not existing url entries.
If i show just every url. it's working well everywhere with every profile.
regarding similiar scripts: i just do it for fun and my own learning curve. I really like full dynamic scripts. Thats why sometimes i try same things different.
+ 1
It works cause now i don't hide by default. Which causes also nion existing URLs are displayed. And if error event will be fired, it will disappear afterwards..
Test it with my profile id, then u will see what i mean.
Original all elements are hidden, and displayed if no errors... That's why in some cases its not working
+ 1
Finally i got it working like i want it.
The problem is not browser but order of the event binding. At first load it was working well. But as soon as i trigger an update by submitting the user id, it lost the event bindings.
Should be fixed by now.
Also added the return key, so you can update it by just pressing enter when done typing the new user id.
0
Sry, had a small glitch during commenting, now it's working again well
edit:
btw. the other scripts are different