test.js 965 B

1234567891011121314151617181920212223242526272829303132333435
  1. Router.route('community', function () {
  2. let params = new URLSearchParams(document.location.search);
  3. //
  4. if(params.get("tag")){
  5. _tags = params.get("tag");
  6. }
  7. if(params.get("channel")){
  8. _channel = params.get("channel");
  9. }
  10. list_tag = _tags.split(',');
  11. community_onload();
  12. });
  13. Router.route('category', function () {
  14. let params = new URLSearchParams(document.location.search);
  15. if(params.get("tag")){
  16. _tags = params.get("tag");
  17. }
  18. if(params.get("channel")){
  19. _channel = params.get("channel");
  20. }
  21. list_tag = _tags.split(',');
  22. palicanon_onload();
  23. palicanonGetChapter();
  24. });
  25. Router.route('my', function () {
  26. let params = new URLSearchParams(document.location.search);
  27. if(params.get("tag")){
  28. _tags = params.get("tag");
  29. }
  30. if(params.get("channel")){
  31. _channel = params.get("channel");
  32. }
  33. list_tag = _tags.split(',');
  34. my_space_onload();
  35. });