show_search.html 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <html lang="en">
  2. <head>
  3. <meta charset="utf-8">
  4. <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
  5. <meta http-equiv="Cache-Control" content="no-siteapp;no-transform">
  6. <meta name="applicable-device" content="pc,mobile">
  7. <meta name="viewport" content="width=device-width, initial-scale=1">
  8. <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  9. <title>drpy搜索统计</title>
  10. <script src="/static/js/jquery.min.js"></script>
  11. <link rel="stylesheet" media="screen" href="/static/css/home.css">
  12. <script src="/static/js/grey.js"></script>
  13. <link href="/static/css/jquery-confirm.min.css" rel="stylesheet">
  14. <script src="/static/js/jquery-confirm.min.js"></script>
  15. </head>
  16. <body>
  17. <div class="image">
  18. <script>
  19. $(document).ready(function () {
  20. $("#nosearch_sites").click(function () {
  21. let a = "{{val.nosearch_sites|safe}}";
  22. // console.log(a);
  23. let nosearch_sites = eval(a);
  24. console.log(nosearch_sites);
  25. let ss_sites = nosearch_sites.join(',');
  26. // console.log(ss_sites);
  27. // $.alert(ss_sites);
  28. $.alert({title:'不可搜索统计:'+nosearch_sites.length,content:ss_sites,buttons: {
  29. ok: {
  30. text: '确认',
  31. btnClass: 'btn-primary',
  32. action: function() {
  33. }
  34. }
  35. }});
  36. });
  37. $("#search_sites").click(function () {
  38. let a = "{{val.search_sites|safe}}";
  39. // console.log(a);
  40. let search_sites = eval(a);
  41. console.log(search_sites);
  42. let ss_sites = search_sites.join(',');
  43. // console.log(ss_sites);
  44. // $.alert(ss_sites);
  45. $.alert({title:'可搜索统计:'+search_sites.length,content:ss_sites,buttons: {
  46. ok: {
  47. text: '确认',
  48. btnClass: 'btn-primary',
  49. action: function() {
  50. }
  51. }
  52. }});
  53. });
  54. });
  55. </script>
  56. <div class="title">欢迎使用drpy搜索统计界面<div class="kf">
  57. <span class="ver_title">框架开发:道长</span><span class="ver_title">框架美化:蓝莓</span></div>
  58. </div>
  59. <p class="tips">统计内置源参与搜索相关数据</p>
  60. <center>
  61. <div class="zt">
  62. <div class="btn">
  63. <a href="javascript:;">聚搜超时: {{val.timeout}} 秒</a>
  64. </div>
  65. <div class="btn">
  66. <a href="javascript:;">搜索限制源数量: {{val.search_limit}} </a>
  67. </div>
  68. <div class="btn">
  69. <a href="javascript:;">总可搜索源: {{val.total_search|length}}</a>
  70. </div>
  71. <div class="btn">
  72. <a href="javascript:;" id="nosearch_sites">不可搜索源: {{val.nosearch_sites|length}}</a>
  73. </div>
  74. <div class="btn">
  75. <a href="javascript:;" id="search_sites">当前搜索源: {{val.search_sites|length}}</a>
  76. </div>
  77. </div>
  78. </center>
  79. </div>
  80. </body>
  81. </html>