SHARE
TWEET

Last user avatar JQuery

a guest Sep 22nd, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. jQuery(document).ready(function() {
  2.   lastUserEle = $('.page-bottom strong a');
  3.   lastUserId = lastUserEle.attr('href').substring(2);
  4.   H.getUser(lastUserId).then(data => {
  5.     lastUserAva = $('.page-bottom img').attr('src', data.avatar);
  6.   });
  7. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top