Merge branch 'main' of https://github.com/666ghj/Weibo_PublicOpinion_AnalysisSystem
Showing
1 changed file
with
175 additions
and
0 deletions
views/page/templates/articleChar.html
0 → 100644
| 1 | +{% extends 'base_page.html' %} | ||
| 2 | +{% block title %} | ||
| 3 | + 文章分析 | ||
| 4 | +{% endblock %} | ||
| 5 | + | ||
| 6 | +{% block nav %} | ||
| 7 | +<nav class="iq-sidebar-menu"> | ||
| 8 | + <ul id="iq-sidebar-toggle" class="side-menu"> | ||
| 9 | + <li class="px-3 pt-3 pb-2 "> | ||
| 10 | + <span class="text-uppercase small font-weight-bold">首页</span> | ||
| 11 | + </li> | ||
| 12 | + <li class=" sidebar-layout"> | ||
| 13 | + <a href="/page/home" class="svg-icon"> | ||
| 14 | + <i class=""> | ||
| 15 | + <svg xmlns="http://www.w3.org/2000/svg" width="18" fill="none" viewbox="0 0 24 24" stroke="currentColor"> | ||
| 16 | + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path> | ||
| 17 | + </svg> | ||
| 18 | + </i> | ||
| 19 | + <span class="ml-2">首页</span> | ||
| 20 | + </a> | ||
| 21 | + </li> | ||
| 22 | + <li class=" sidebar-layout"> | ||
| 23 | + <a href="/page/hotWord" class="svg-icon "> | ||
| 24 | + <i class=""> | ||
| 25 | + <svg xmlns="http://www.w3.org/2000/svg" width="18" fill="none" viewbox="0 0 24 24" stroke="currentColor"> | ||
| 26 | + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path> | ||
| 27 | + </svg> | ||
| 28 | + </i> | ||
| 29 | + <span class="ml-2">热词统计</span> | ||
| 30 | + </a> | ||
| 31 | + </li> | ||
| 32 | + <li class=" sidebar-layout"> | ||
| 33 | + <a href="/page/tableData" class="svg-icon"> | ||
| 34 | + <i class=""> | ||
| 35 | + <svg xmlns="http://www.w3.org/2000/svg" width="18" fill="none" viewbox="0 0 24 24" stroke="currentColor"> | ||
| 36 | + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z"></path> | ||
| 37 | + </svg> | ||
| 38 | + </i> | ||
| 39 | + <span class="ml-2">微博舆情统计</span> | ||
| 40 | + </a> | ||
| 41 | + </li> | ||
| 42 | + <li class="px-3 pt-3 pb-2 "> | ||
| 43 | + <span class="text-uppercase small font-weight-bold">数据可视化</span> | ||
| 44 | + </li> | ||
| 45 | + <li class="active sidebar-layout"> | ||
| 46 | + <a href="/page/articleChar" class="svg-icon"> | ||
| 47 | + <i class=""> | ||
| 48 | + <svg xmlns="http://www.w3.org/2000/svg" width="18" fill="none" viewbox="0 0 24 24" stroke="currentColor"> | ||
| 49 | + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"></path> | ||
| 50 | + </svg> | ||
| 51 | + </i> | ||
| 52 | + <span class="ml-2">文章分析</span> | ||
| 53 | + </a> | ||
| 54 | + </li> | ||
| 55 | + <li class=" sidebar-layout"> | ||
| 56 | + <a href="/page/ipChar" class="svg-icon"> | ||
| 57 | + <i class=""> | ||
| 58 | + <svg class="icon line" width="18" id="receipt" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" stroke="currentColor"> | ||
| 59 | + <path d="M17,16V3L13,5,10,3,7,5,3,3V17.83A3.13,3.13,0,0,0,5.84,21,3,3,0,0,0,9,18V17a1,1,0,0,1,1-1H20a1,1,0,0,1,1,1v1a3,3,0,0,1-3,3H6" style="fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2;"></path> | ||
| 60 | + <line x1="8" y1="10" x2="12" y2="10" style="fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2;"></line> | ||
| 61 | + </svg> | ||
| 62 | + </i> | ||
| 63 | + <span class="ml-2">IP分析</span> | ||
| 64 | + </a> | ||
| 65 | + </li> | ||
| 66 | + <li class=" sidebar-layout"> | ||
| 67 | + <a href="/page/commentChar" class="svg-icon"> | ||
| 68 | + <i class=""> | ||
| 69 | + <svg xmlns="http://www.w3.org/2000/svg" width="18" fill="none" viewbox="0 0 24 24" stroke="currentColor"> | ||
| 70 | + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path> | ||
| 71 | + </svg> | ||
| 72 | + </i><span class="ml-2">评论分析</span> | ||
| 73 | + </a> | ||
| 74 | + </li> | ||
| 75 | + <li class=" sidebar-layout"> | ||
| 76 | + <a href="/page/yuqingChar" class="svg-icon"> | ||
| 77 | + <i class=""> | ||
| 78 | + <svg xmlns="http://www.w3.org/2000/svg" width="18" fill="none" viewbox="0 0 24 24" stroke="currentColor"> | ||
| 79 | + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"></path> | ||
| 80 | + </svg> | ||
| 81 | + </i> | ||
| 82 | + <span class="ml-2">舆情分析</span> | ||
| 83 | + </a> | ||
| 84 | + </li> | ||
| 85 | + <li class="px-3 pt-3 pb-2"> | ||
| 86 | + <span class="text-uppercase small font-weight-bold">词云图</span> | ||
| 87 | + </li> | ||
| 88 | + <li class=" sidebar-layout"> | ||
| 89 | + <a href="/page/articleCloud" class="svg-icon"> | ||
| 90 | + <i class=""> | ||
| 91 | + <svg xmlns="http://www.w3.org/2000/svg" width="18" fill="none" viewbox="0 0 24 24" stroke="currentColor"> | ||
| 92 | + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"></path> | ||
| 93 | + </svg> | ||
| 94 | + </i><span class="ml-2">文章内容词云图</span> | ||
| 95 | + </a> | ||
| 96 | + </li> | ||
| 97 | + </ul> | ||
| 98 | + </nav> | ||
| 99 | +{% endblock %} | ||
| 100 | + | ||
| 101 | +{% block content %} | ||
| 102 | + <div class="container-fluid"> | ||
| 103 | + <div class="row"> | ||
| 104 | + <div class="col-md-12 mb-4 mt-1"> | ||
| 105 | + <div class="d-flex flex-wrap justify-content-between align-items-center"> | ||
| 106 | + <h4 class="font-weight-bold">文章分析页</h4> | ||
| 107 | + </div> | ||
| 108 | + </div> | ||
| 109 | + </div> | ||
| 110 | + <div class="row"> | ||
| 111 | + <div class="col-lg-12"> | ||
| 112 | + <div class="card card-block card-stretch card-height"> | ||
| 113 | + <div class="card-body"> | ||
| 114 | + <div class="form-group"> | ||
| 115 | + <label>类型选择</label> | ||
| 116 | + <select onchange="typeChange(event)" class="form-control mb-3"> | ||
| 117 | + {% for i in typeList %} | ||
| 118 | + {% if defaultType == i %} | ||
| 119 | + <option selected value="{{ i }}">{{ i }}</option> | ||
| 120 | + {% else %} | ||
| 121 | + <option value="{{ i }}">{{ i }}</option> | ||
| 122 | + {% endif %} | ||
| 123 | + {% endfor %} | ||
| 124 | + </select> | ||
| 125 | + <script> | ||
| 126 | + function typeChange(e){ | ||
| 127 | + window.location.href = 'http://127.0.0.1:5000/page/articleChar?type=' + e.target.value | ||
| 128 | + } | ||
| 129 | + </script> | ||
| 130 | + </div> | ||
| 131 | + </div> | ||
| 132 | + </div> | ||
| 133 | + </div> | ||
| 134 | + </div> | ||
| 135 | + <div class="row"> | ||
| 136 | + <div class="col-lg-6"> | ||
| 137 | + <div class="card card-block"> | ||
| 138 | + <div class="card-header d-flex justify-content-between pb-0"> | ||
| 139 | + <div class="header-title"> | ||
| 140 | + <h4 class="card-title mb-0">文章点赞量分析 👍</h4> | ||
| 141 | + </div> | ||
| 142 | + </div> | ||
| 143 | + <div class="card-body"> | ||
| 144 | + <div id="main" style="width: 100%;height: 450px"></div> | ||
| 145 | + </div> | ||
| 146 | + </div> | ||
| 147 | + </div> | ||
| 148 | + <div class="col-lg-6"> | ||
| 149 | + <div class="card card-block"> | ||
| 150 | + <div class="card-header d-flex justify-content-between pb-0"> | ||
| 151 | + <div class="header-title"> | ||
| 152 | + <h4 class="card-title mb-0">文章评论量分析 🔥</h4> | ||
| 153 | + </div> | ||
| 154 | + </div> | ||
| 155 | + <div class="card-body"> | ||
| 156 | + <div id="mainTwo" style="width: 100%;height: 450px"></div> | ||
| 157 | + </div> | ||
| 158 | + </div> | ||
| 159 | + </div> | ||
| 160 | + <div class="col-lg-12"> | ||
| 161 | + <div class="card card-block"> | ||
| 162 | + <div class="card-header d-flex justify-content-between pb-0"> | ||
| 163 | + <div class="header-title"> | ||
| 164 | + <h4 class="card-title mb-0">文章转发量分析 🥇</h4> | ||
| 165 | + </div> | ||
| 166 | + </div> | ||
| 167 | + <div class="card-body"> | ||
| 168 | + <div id="mainThree" style="width: 100%;height: 450px"></div> | ||
| 169 | + </div> | ||
| 170 | + </div> | ||
| 171 | + </div> | ||
| 172 | + </div> | ||
| 173 | + </div> | ||
| 174 | +{% endblock %} | ||
| 175 | + |
-
Please register or login to post a comment