watched.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>My Watched Broadcasters | CharmLive.com</title>
  6. <meta id="pageSetMeta" content="*">
  7. <meta name="keywords" content="Charmlive,live streaming,live video chat,live broadcasting,live stream girls" />
  8. <meta name="description" content="Here are the broadcasters you have had a one-on-one broadcast with.You can chat with them with private message." />
  9. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  10. <meta http-equiv="Access-Control-Allow-Origin" content="*">
  11. <script src="<%=public_path%>/js/jquery.js"></script>
  12. </head>
  13. <body>
  14. <div id="app"></div>
  15. <script>
  16. $.ajaxSetup({
  17. cache: true
  18. });
  19. $.get('/page/list.html', {}, function(res) {
  20. var str = res.replace(/[\r\n]/g, "");
  21. var source = {},
  22. scriptArr = [];
  23. source.style = str.match(/<style.*?<\/style>/g);
  24. source.link = str.match(/<link.*?>/g);
  25. scriptArr = str.match(/<script.*?<\/script>/g);
  26. var script = '';
  27. for (var key in source) {
  28. if (Object.prototype.toString.call(source[key]) == '[object Array]') {
  29. source[key].forEach(function(value) {
  30. $('body').append(value);
  31. })
  32. }
  33. }
  34. scriptArr.forEach(function(value) {
  35. if (value.toLowerCase().indexOf('jquery.min.js') > -1) return;
  36. $('body').append(value);
  37. })
  38. })
  39. </script>
  40. </body>
  41. </html>