Guest User

Last user avatar JQuery

a guest
Sep 22nd, 2019
89
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