uhome.js 487 B

1234567891011121314151617181920212223242526272829
  1. function getUserBio(userid) {
  2. if (userid == "") {
  3. userid = getCookie("userid");
  4. if (userid == "") {
  5. return;
  6. }
  7. }
  8. $.get(
  9. "../ucenter/get.php",
  10. {
  11. id: userid,
  12. bio: true,
  13. },
  14. function (data, status) {
  15. let result = JSON.parse(data);
  16. let html = "<div>";
  17. if (result.length > 0) {
  18. html += marked(result[0].bio);
  19. } else {
  20. html += gLocal.gui.not_found;
  21. }
  22. html += "</div>";
  23. $("#bio").html(html);
  24. }
  25. );
  26. }
  27. function getUserPalicanon(userid) {}