|
|
<!DOCTYPE html>
|
|
|
<html lang="en">
|
|
|
|
|
|
<head>
|
|
|
<meta charset="utf-8">
|
|
|
<meta content="width=device-width, initial-scale=1.0" name="viewport">
|
|
|
|
|
|
<title>捕获词云</title>
|
|
|
<meta content="" name="descriptison">
|
|
|
<meta content="" name="keywords">
|
|
|
<script src="../static/assets/js/echarts.min.js"></script>
|
|
|
<!-- Favicons -->
|
|
|
<link href="../static/assets/img/favicon.png" rel="icon">
|
|
|
|
|
|
<!-- Google Fonts -->
|
|
|
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Raleway:300,300i,400,400i,600,600i,700,700i,900" rel="stylesheet">
|
|
|
|
|
|
<!-- Vendor CSS Files -->
|
|
|
<link href="../static/assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
|
|
<link href="../static/assets/vendor/icofont/icofont.min.css" rel="stylesheet">
|
|
|
<link href="../static/assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
|
|
|
<link href="../static/assets/vendor/animate.css/animate.min.css" rel="stylesheet">
|
|
|
<link href="../static/assets/vendor/venobox/venobox.css" rel="stylesheet">
|
|
|
<link href="../static/assets/vendor/aos/aos.css" rel="stylesheet">
|
|
|
|
|
|
<!-- Template Main CSS File -->
|
|
|
<link href="../static/assets/css/style.css" rel="stylesheet">
|
|
|
|
|
|
<!-- =======================================================
|
|
|
* Template Name: Mamba - v2.0.1
|
|
|
* Template URL: https://bootstrapmade.com/mamba-one-page-bootstrap-template-free/
|
|
|
* Author: BootstrapMade.com
|
|
|
* License: https://bootstrapmade.com/license/
|
|
|
======================================================== -->
|
|
|
<style>
|
|
|
table tr{
|
|
|
display: flex;
|
|
|
}
|
|
|
table tr td{
|
|
|
height: 100px;
|
|
|
}
|
|
|
|
|
|
/* 分页的css */
|
|
|
.pagination{
|
|
|
width: 100%;
|
|
|
margin: 0 auto;
|
|
|
margin-top: 30px;
|
|
|
margin-left: 250px;
|
|
|
}
|
|
|
button{
|
|
|
width: 55px;
|
|
|
height: 50px;
|
|
|
font-size: 13px;
|
|
|
font-family: 微软雅黑;
|
|
|
margin: 5px;
|
|
|
}
|
|
|
.title{
|
|
|
padding-top: 5px;
|
|
|
}
|
|
|
.description{
|
|
|
font-size: 15px;
|
|
|
|
|
|
}
|
|
|
.up_down_words{
|
|
|
text-align: center;
|
|
|
font-size: 32px;
|
|
|
font-family: 微软雅黑;
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
<!-- ======= Header ======= -->
|
|
|
<header id="header">
|
|
|
<div class="container">
|
|
|
|
|
|
<div class="logo float-left">
|
|
|
<h1 class="text-light"><a href="/first"><span>CATCH</span></a></h1>
|
|
|
<!-- Uncomment below if you prefer to use an image logo -->
|
|
|
<!-- <a href="index.html"><img src="../static/assets/img/logo.png" alt="" class="img-fluid"></a>-->
|
|
|
</div>
|
|
|
|
|
|
<nav class="nav-menu float-right d-none d-lg-block">
|
|
|
<ul>
|
|
|
<li><a href="/first">首页</a></li>
|
|
|
<li><a href="/separate">电影</a></li>
|
|
|
<li><a href="/score">评分</a></li>
|
|
|
<li class="active"><a href="/word">词云</a></li>
|
|
|
<li><a href="/team">团队</a></li>
|
|
|
</ul>
|
|
|
</nav><!-- .nav-menu -->
|
|
|
|
|
|
</div>
|
|
|
</header><!-- End Header -->
|
|
|
|
|
|
<!-- ======= Our Team Section ======= -->
|
|
|
<section id="team" class="team">
|
|
|
<div class="container">
|
|
|
<!-- ======= Counts Section ======= -->
|
|
|
<section class="counts section-bg">
|
|
|
<div class="container">
|
|
|
<div class="section-title">
|
|
|
<h2>创造词云,发现每一个感动你的故事</h2>
|
|
|
</div>
|
|
|
<!-- ======= About Us Section ======= -->
|
|
|
<section id="about" class="about">
|
|
|
<div class="container">
|
|
|
|
|
|
<div class="row no-gutters" data-aos="fade-up" data-aos-delay="100">
|
|
|
<div class="col-lg-6 col-md-6 video-box">
|
|
|
<img src = "/upload.jpg" id = "oripic" style="height: 530px;width: 400px" alt="" >
|
|
|
</div>
|
|
|
|
|
|
<div class="col-lg-6 col-md-6 d-flex flex-column justify-content-center about-content">
|
|
|
|
|
|
<div class="section-title">
|
|
|
<h2>词频统计</h2>
|
|
|
<p style="text-align: center">提取最频繁出现且最动人的词汇</p>
|
|
|
</div>
|
|
|
|
|
|
<div class="up_down_words" data-aos="fade-up" data-aos-delay="100">
|
|
|
<img src="../static/assets/img/云上传.png" style="width: 60px">
|
|
|
<input type="file" name = "loadfile" id = "file" accept="image/*" style="opacity: 100%;opacity:0;position: relative;top:-55px;left: -10px;">
|
|
|
<p class="description" style="position: relative; font-size: 20px;top:-30px">上传你想要的图片模板<br>(建议使用高对比度图片)</p>
|
|
|
</div>
|
|
|
|
|
|
<div class="up_down_words" data-aos="fade-up" data-aos-delay="100">
|
|
|
<img src="../static/assets/img/下载-文件下载-11.png" style="width: 60px;">
|
|
|
<h4 class="title"><a href="/output.jpg">下载词云图片</a></h4>
|
|
|
<p class="description">作为壁纸或其他用途</p>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
</section><!-- End About Us Section -->
|
|
|
</div>
|
|
|
</section><!-- End Counts Section -->
|
|
|
</div>
|
|
|
</section><!-- End Our Team Section -->
|
|
|
|
|
|
<!-- ======= Footer ======= -->
|
|
|
<footer id="footer">
|
|
|
<div class="container">
|
|
|
<div class="copyright">
|
|
|
@sakula <strong><span>F*35#213</span></strong>Welcome
|
|
|
</div>
|
|
|
<div class="credits">
|
|
|
<!-- All the links in the footer should remain intact. -->
|
|
|
<!-- You can delete the links only if you purchased the pro version. -->
|
|
|
<!-- Licensing information: https://bootstrapmade.com/license/ -->
|
|
|
<!-- Purchase the pro version with working PHP/AJAX contact form: https://bootstrapmade.com/mamba-one-page-bootstrap-template-free/ -->
|
|
|
</div>
|
|
|
</div>
|
|
|
</footer><!-- End Footer -->
|
|
|
|
|
|
<a href="#" class="back-to-top"><i class="icofont-simple-up"></i></a>
|
|
|
|
|
|
<!-- Vendor JS Files -->
|
|
|
<script src="../static/assets/vendor/jquery/jquery.min.js"></script>
|
|
|
<script src="../static/assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
|
|
|
<script src="../static/assets/vendor/jquery.easing/jquery.easing.min.js"></script>
|
|
|
<script src="../static/assets/vendor/php-email-form/validate.js"></script>
|
|
|
<script src="../static/assets/vendor/jquery-sticky/jquery.sticky.js"></script>
|
|
|
<script src="../static/assets/vendor/venobox/venobox.min.js"></script>
|
|
|
<script src="../static/assets/vendor/waypoints/jquery.waypoints.min.js"></script>
|
|
|
<script src="../static/assets/vendor/counterup/counterup.min.js"></script>
|
|
|
<script src="../static/assets/vendor/isotope-layout/isotope.pkgd.min.js"></script>
|
|
|
<script src="../static/assets/vendor/aos/aos.js"></script>
|
|
|
<!-- Template Main JS File -->
|
|
|
<script src="../static/assets/js/main.js"></script>
|
|
|
<script>
|
|
|
$('#file').change(function (e) {
|
|
|
var files = e.target.files;
|
|
|
var formFile = new FormData();
|
|
|
formFile.append("file", files[0]); //加入文件对象
|
|
|
$.ajax({
|
|
|
url: "/upload_file",
|
|
|
data: formFile,
|
|
|
type: "post",
|
|
|
dataType: "json",
|
|
|
cache: false,//上传文件无需缓存
|
|
|
processData: false,//用于对data参数进行序列化处理 这里必须false
|
|
|
contentType: false //必须
|
|
|
})
|
|
|
document.getElementById("oripic").src = "/upload.jpg";
|
|
|
location.reload()
|
|
|
})
|
|
|
</script>
|
|
|
|
|
|
<script>
|
|
|
function download(){
|
|
|
window.open("/output.jpg")
|
|
|
}
|
|
|
</script>
|
|
|
</body>
|
|
|
|
|
|
</html> |