Browse Source

new theme for tajian added

master
filesite 1 year ago
parent
commit
a5b45692a4
  1. 45
      themes/tajian/controller/SiteController.php
  2. 111
      themes/tajian/views/layout/main.php
  3. 16
      themes/tajian/views/site/form_addfav.php
  4. 48
      themes/tajian/views/site/index.php
  5. 38
      themes/tajian/views/site/new.php
  6. 223
      www/css/tajian.css
  7. 2
      www/img/PersonalCenter.svg
  8. 2
      www/img/addvideos.svg
  9. 15
      www/img/buld.svg
  10. 2
      www/img/choice.svg
  11. 7
      www/img/clos.svg
  12. 2
      www/img/contactUs.svg
  13. 2
      www/img/other.svg
  14. 2
      www/img/search.svg
  15. 215
      www/js/tajian.js

45
themes/tajian/controller/SiteController.php

@ -127,4 +127,49 @@ Class SiteController extends Controller {
return $sorted_tags; return $sorted_tags;
} }
//添加新视频
public function actionNew() {
//获取数据
$menus = array(); //菜单,一级目录
$htmlReadme = ''; //Readme.md 内容,底部网站详细介绍
$htmlCateReadme = ''; //当前目录下的Readme.md 内容
$menus_sorted = array(); //Readme_sort.txt 说明文件内容,一级目录菜单从上到下的排序
$scanner = new DirScanner();
$scanner->setWebRoot(FSC::$app['config']['content_directory']);
$dirTree = $scanner->scan(__DIR__ . '/../../../www/' . FSC::$app['config']['content_directory'], 4);
$scanResults = $scanner->getScanResults();
$titles = array();
$htmlReadme = '';
$readmeFile = $scanner->getDefaultReadme();
if (!empty($readmeFile)) {
if (!empty($readmeFile['sort'])) {
$menus_sorted = explode("\n", $readmeFile['sort']);
}
$titles = $scanner->getMDTitles($readmeFile['id']);
$Parsedown = new Parsedown();
$content = file_get_contents($readmeFile['realpath']);
$htmlReadme = $Parsedown->text($content);
$htmlReadme = $scanner->fixMDUrls($readmeFile['realpath'], $htmlReadme);
}
//获取tags分类
$tags = $this->getTags($dirTree);
//排序
if (!empty($menus_sorted) && !empty($tags)) {
$tags = $this->sortTags($menus_sorted, $tags);
}
$pageTitle = '添加视频收藏';
$viewName = 'new';
$params = compact('cateId', 'dirTree', 'scanResults', 'htmlReadme', 'tags');
return $this->render($viewName, $params, $pageTitle);
}
} }

111
themes/tajian/views/layout/main.php

@ -10,27 +10,61 @@ require_once __DIR__ . '/../../../../plugins/Html.php';
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
<link rel="icon" type="image/x-icon" href="/favicon.ico?v1.0"> <link rel="icon" type="image/x-icon" href="/favicon.ico?v1.0">
<link href="/css/main.css?v.1.1" rel="stylesheet"> <link href="/css/tajian.css?v<?=Html::getStaticFileVersion('tajian.css', 'css')?>" rel="stylesheet">
<!--for theme videoblog-->
<link href="/css/github-markdown-dark.css" rel="stylesheet">
<link href="/css/video-js.min.css" rel="stylesheet">
<link href="/css/videoblog.css?v<?=Html::getStaticFileVersion('videoblog.css', 'css')?>" rel="stylesheet">
<style>
<?php if (!empty(FSC::$app['config']['videoblog']['imageHeight'])) { ?>
.img-item img{height: <?php echo FSC::$app['config']['videoblog']['imageHeight']; ?>px;}
<?php } ?>
</style>
</head> </head>
<body> <body>
<div class="app_recommend g_app_lay" id="app_recommend">
<div class="header"> <header class="top_nav">
<a href="/" class="logo"> <a class="log_tn clearfix" href="">
<img src="/content/machete_icon.png" alt="Logo of FileSite.io" height="34"> <span class="verMiddle">Ta荐</span>
TaJian.tv - Ta荐
</a> </a>
<a href="#modal_about" role="button" class="about btn-open"> <div class="search hide_movi_xs hide">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="24" height="24"><!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M191.1 224c0-17.72-14.34-32.04-32-32.04L144 192c-35.34 0-64 28.66-64 64.08v47.79C80 339.3 108.7 368 144 368H160c17.66 0 32-14.36 32-32.06L191.1 224zM256 0C112.9 0 4.583 119.1 .0208 256L0 296C0 309.3 10.75 320 23.1 320S48 309.3 48 296V256c0-114.7 93.34-207.8 208-207.8C370.7 48.2 464 141.3 464 256v144c0 22.09-17.91 40-40 40h-110.7C305 425.7 289.7 416 272 416H241.8c-23.21 0-44.5 15.69-48.87 38.49C187 485.2 210.4 512 239.1 512H272c17.72 0 33.03-9.711 41.34-24H424c48.6 0 88-39.4 88-88V256C507.4 119.1 399.1 0 256 0zM368 368c35.34 0 64-28.7 64-64.13V256.1C432 220.7 403.3 192 368 192l-16 0c-17.66 0-32 14.34-32 32.04L320 335.9C320 353.7 334.3 368 352 368H368z"/></svg> <form id="search_form" class="search_form" action="" method="GET">
<div class="input_sf">
<input class="input_sf_JS" type="search" placeholder="搜索" />
</div>
<button class="input_sm jsbtn" aria-label="搜索"><img src="/img/search.svg" alt="图片" /></button>
</form>
</div>
<div class="right_class_tn">
<a class="search_move_tn search_mob_JS visible_movi_xs hide" href="javascript:;" title="搜索"><img src="/img/search.svg" alt="图片" /></a>
<a class="connect_me_tn connectmeJS" href="javascript:;" title="联系我们"><img src="/img/contactUs.svg" alt="联系我们" /></a>
</div>
</header>
<div class="app_layout_side">
<div class="menu_ls g_ls_menus">
<a class="this_set" href="/" title="">
<img src="/img/choice.svg" alt="星星图标" />
<span>推荐</span>
</a>
<a href="/site/new" title="">
<img src="/img/addvideos.svg" alt="添加图标" />
<span>添加</span>
</a>
<a href="###" title="">
<img src="/img/PersonalCenter.svg" alt="用户图标" />
<span>我的</span>
</a>
</div>
<div class="g_ls_menus hide_movi_xs">
<div class="meuns_title">视频分类</div>
<?php
$selectedId = $viewData['cateId'];
$breadcrumbs = !empty($viewData['breadcrumbs']) ? $viewData['breadcrumbs'] : [];
if (!empty($viewData['tags'])) { //显示tags分类
foreach($viewData['tags'] as $id => $item) {
$selected = $item['id'] == $selectedId || (!empty($breadcrumbs) && $item['id'] == $breadcrumbs[0]['id']) ? 'this_set' : '';
echo <<<eof
<a href="/list/?id={$item['id']}" class="{$selected}">
<img src="/img/other.svg" alt="菜单图标" />
<span>{$item['name']}</span>
</a> </a>
eof;
}
}
?>
</div>
</div> </div>
<?php <?php
@ -40,21 +74,34 @@ if (!empty($viewFile) && file_exists($viewFile)) {
} }
?> ?>
<div class="modal-mask" id="modal_about"> <!-- 右侧弹出框 -->
<div class="modal-about"> <div class="blank_cover elementNone blank_coverJS rtcloseJS"></div>
<div class="modal-head"> <div class="right_sidebox right_sideboxJS elementNone">
<h3>联系我</h3> <h5>
<span class="btn-close" role="button"><svg width="24" height="24" viewBox="0 0 24 24" focusable="false" class=" NMm5M"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"></path></svg></span> <span>联系我们</span>
</div> <a class="rtcloseJS" href="javascript:;">
<div class="hr"></div> <img class="icon svgimg verMiddle" src="/img/clos.svg" alt="关闭" title="关闭" />
<div class="modal-body markdown-body"> </a>
<?php echo !empty($viewData['htmlReadme']) ? $viewData['htmlReadme'] : ''; ?> </h5>
</div> <div class="modal-body markdown-body">
<?php echo !empty($viewData['htmlReadme']) ? $viewData['htmlReadme'] : ''; ?>
</div> </div>
</div> </div>
<!-- 移动端搜索框 -->
<div class="mobile_search elementNone mobile_search_JS" id="mobile_search">
<form id="mob_search_form" class="mob_search_form search_form" action="" method="get">
<a class="close ms_close_JS" href="javascript:;">
<img class="icon svgimg verMiddle" src="/img/clos.svg" alt="关闭" title="关闭" />
</a>
<div class="input_sf">
<input class="ms_input_js" type="search" placeholder="搜索" />
</div>
<button class="input_sm jsbtn" aria-label="搜索"><img src="/img/search.svg" alt="图片" /></button>
</form>
</div>
<div class="footer"> <div class="footer">
<div class="markdown-body"><?php echo !empty($viewData['htmlReadme']) ? $viewData['htmlReadme'] : ''; ?></div>
<div class="copyright"> <div class="copyright">
<?php if (!empty(FSC::$app['config']['theme'])) { ?> <?php if (!empty(FSC::$app['config']['theme'])) { ?>
Theme name <strong><?php echo FSC::$app['config']['theme']; ?></strong> Theme name <strong><?php echo FSC::$app['config']['theme']; ?></strong>
@ -62,15 +109,13 @@ if (!empty($viewFile) && file_exists($viewFile)) {
<?php } ?> <?php } ?>
<a href="https://filesite.io" target="_blank">&copy;FileSite.io</a> 2022 - execute time: {page_time_cost} ms <a href="https://filesite.io" target="_blank">&copy;FileSite.io</a> 2022 - execute time: {page_time_cost} ms
<br> <br>
<a href="https://github.com/filesite-io/machete" target="_blank">Machete源码</a>搭建私有网址导航、文档、图片、视频网站 <a href="https://github.com/filesite-io/machete" target="_blank">Machete源码</a>搭建私有网址导航、文档、图片、视频网站
</div> </div>
</div> </div>
</div><!--app_recommend-->
<script src="/js/jquery-3.6.0.min.js"></script> <script src="/js/jquery-3.6.0.min.js"></script>
<script src="/js/js.cookie.min.js"></script> <script src="/js/lazyload.js"></script>
<script src="/js/main.js?v.1.0"></script>
<!--for theme tajian-->
<script src="/js/lazysizes.min.js"></script>
<script src="/js/tajian.js?v<?=Html::getStaticFileVersion('tajian.js', 'js')?>"></script> <script src="/js/tajian.js?v<?=Html::getStaticFileVersion('tajian.js', 'js')?>"></script>
</body> </body>
</html> </html>

16
themes/tajian/views/site/form_addfav.php

@ -1,16 +0,0 @@
<form action="" method="post" class="px-2">
<input type="text" name="share_content" value="" placeholder="请粘贴分享网址/内容" class="form-controll txt-input">
<select name="tag" class="form-controll">
<option value="">选分类</option>
<?php
if (!empty($viewData['tags'])) { //显示tags分类
foreach($viewData['tags'] as $id => $item) {
echo <<<eof
<option value="{$item['name']}">{$item['name']}</option>
eof;
}
}
?>
</select>
<button class="btn" type="button" id="btn_addfav">保存</button>
</form>

48
themes/tajian/views/site/index.php

@ -3,24 +3,6 @@
require_once __DIR__ . '/../../../../plugins/Html.php'; require_once __DIR__ . '/../../../../plugins/Html.php';
$imgPreffix = '/' . FSC::$app['config']['content_directory'] . FSC::$app['config']['tajian']['data_dir']; $imgPreffix = '/' . FSC::$app['config']['content_directory'] . FSC::$app['config']['tajian']['data_dir'];
?><div class="menu">
<?php
$selectedId = $viewData['cateId'];
$breadcrumbs = !empty($viewData['breadcrumbs']) ? $viewData['breadcrumbs'] : [];
if (!empty($viewData['tags'])) { //显示tags分类
foreach($viewData['tags'] as $id => $item) {
$selected = $item['id'] == $selectedId || (!empty($breadcrumbs) && $item['id'] == $breadcrumbs[0]['id']) ? 'selected' : '';
echo <<<eof
<a href="/list/?id={$item['id']}" class="{$selected}">{$item['name']}</a>
eof;
}
}
?>
</div>
<div class="hr"></div>
<?php
if (!empty($breadcrumbs)) { if (!empty($breadcrumbs)) {
echo <<<eof echo <<<eof
<div class="breadcrumbs"> <div class="breadcrumbs">
@ -43,11 +25,10 @@ eof;
</div> </div>
eof; eof;
} }
include_once __DIR__ . '/form_addfav.php';
?> ?>
<div class="content"> <main class="g_main_lay">
<div class="videos_list clearfix">
<?php <?php
$imgExts = array('jpg', 'jpeg', 'png', 'gif'); $imgExts = array('jpg', 'jpeg', 'png', 'gif');
$videoExts = array('url'); $videoExts = array('url');
@ -77,19 +58,22 @@ eof;
$pubDate = date('m/d', $file['fstat']['ctime']); $pubDate = date('m/d', $file['fstat']['ctime']);
echo <<<eof echo <<<eof
<a href="{$file['shortcut']['url']}" class="img-item img-preview" target="_blank"> <div class="vl_list_main advideo-item">
<span class="img-con video-js vjs-big-play-centered"> <div class="video_img_vl">
<img data-src="{$snapshot}" class="lazyload" alt="封面图 - {$title}"> <a href="{$file['shortcut']['url']}"target="_blank">
<span class="duration">{$platform}</span> <img data-original="{$snapshot}" src="" class="lazy" alt="封面图 - {$title}">
<button class="vjs-big-play-button" type="button" title="Play Video" aria-disabled="false" style="display:none"> </a>
<span class="vjs-icon-placeholder" aria-hidden="true"></span> </div>
<span class="vjs-control-text" aria-live="polite">Play Video</span> <div class="video_title_vl">
</button> <a href="{$file['shortcut']['url']}" target="_blank">
</span> <span class="duration">{$platform}</span>
<strong>{$pubDate},{$title}</strong> <strong>{$pubDate},{$title}</strong>
</a> </a>
</div>
</div>
eof; eof;
} }
} }
?> ?>
</div> </div>
</div>

38
themes/tajian/views/site/new.php

@ -0,0 +1,38 @@
<main class="g_main_lay g_main_border">
<form class="add_video_form g_form_style" id="add_video_form" action="" method="get">
<div class="">
<label for="text_input_link" class="form-label">分享网址/内容</label>
<input type="text" id="text_input_link" name="share_content" placeholder="请粘贴分享网址/内容">
</div>
<div class="mb-3">
<label for="text_input_title" class="form-label">视频标题(可选)</label>
<input type="text" id="text_input_title" name="video_title" placeholder="请输入视频标题">
</div>
<div class="mb-3">
<label for="text_input_title" class="form-label">选分类(可选)</label>
<select name="tag">
<option value="">选分类</option>
<?php
if (!empty($viewData['tags'])) { //显示tags分类
foreach($viewData['tags'] as $id => $item) {
echo <<<eof
<option value="{$item['name']}">{$item['name']}</option>
eof;
}
}
?>
</select>
</div>
<div class="avform_bt vercenter">
<button class="jsbtn" aria-label="提交" type="button">
<div class="loading_bt bt_class_JS elementNone verMiddle">
<svg viewBox="25 25 50 50">
<circle cx="50" cy="50" r="20"></circle>
</svg>
</div>
<span class="bt_text_JS">提交</span>
<div class="bt_loading_cover bt_class_JS elementNone"></div>
</button>
</div>
</form>
</main>

223
www/css/tajian.css

@ -0,0 +1,223 @@
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,select,p,blockquote,th,td{margin:0;padding:0;}
/* body{position:relative;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;word-break: break-all;background-color:#FFF;color:#FFF;font-size:14px;line-height:1.428571429} */
body{position:relative;font-family:"Roboto","Arial",sans-serif;background-color:#FFF;color:#000;font-size:14px;line-height:1.428571429}
html{scroll-behavior:smooth}
ul,li{list-style:none;margin:0;padding:0;}
img,span,em,a{display:inline-block;max-width:100%}
*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
a{color:#464c5c;}
.clearfix{zoom:1;}
.clearfix:after{content:'.';display:block;visibility:hidden;clear:both;overflow:hidden;height:0px;}
.img-responsive{max-width:100%;display:block;}
.elementBlock{display:block !important;}
.elementNone{display:none !important;}
.elementhidden{visibility:hidden !important;}
.verMiddle{vertical-align:middle !important;}
.vercenter{text-align:center !important;}
.verbold{font-weight:bold !important;}
.opacityshow{opacity:1 !important;}
a:hover{text-decoration:none;}
a:active{text-decoration:none;}
a:visited{text-decoration:none;}
a:link{text-decoration:none;}
.breadcrumbs{padding-left:1em;padding-top:1em}
.footer{margin:5em auto 6em auto;text-align:center}
/* 首页 star*/
.g_app_lay{padding:56px 0 0 200px;}
/* 顶部导航 */
.top_nav{position:fixed;top:0;left:0;z-index:1100;width:100%;height:56px;overflow:hidden;background:#FFF;padding:8px 22px;display:flex;flex-wrap:wrap;flex-direction:row;align-items:center;justify-content: space-between;}
.log_tn img{width:37px;float:left;}
.log_tn span{
font-family: Brush Script MT;
color: #181818;
font-size: 24px;
text-shadow: 1px 1px 0 rgb(122 122 122),
1px 1px 5px rgb(183 183 183 / 80%);
margin-top:3px;
}
.right_class_tn{padding-top:5px;}
.right_class_tn img{margin-left:5px;}
.search_move_tn img{width:24px;}
.connect_me_tn img{width:22px;}
.search{flex:1;display:flex;align-items: center;margin:0 30px;max-width:555px;}
.search-left-arrow{padding:5px 13px;display:none;}
.search-left-arrow img{width:32px;display:block;}
.search_form{display:flex;flex:1;align-items: center;border-radius:5px;background-color: #dedede;}
.search_form .input_sf{flex:1;}
.search_form .input_sf input{border-radius:5px;width:100%;border-top-right-radius:0;border-bottom-right-radius: 0;border:none;padding:0 0 0 14px;font-size:15px;height:40px;background:transparent;}
.search_form .input_sm{cursor:pointer;width:52px;border:none;background:transparent;border-radius:5px;border-top-left-radius:0;border-bottom-left-radius: 0;}
.search_form .input_sm img{width:22px;}
/* 移动端搜索 */
.mobile_search{opacity:0;transform:translateX(101%);position:fixed;left:0;right:0;top:0;bottom:0;opacity:0;transform:translateX(101%);background-color:#FFF;z-index:1200;}
.mob_search_form{background:none;margin-top:18px;}
.mob_search_form .close{width:52px;text-align:center;}
.mob_search_form .input_sf{background-color:#f7f7f7;border-radius:9px;border:solid 1px #e0e0e0;}
/* 左侧菜单 */
.app_layout_side{padding:3px 0 0 0;width:200px;height:100vh;position:fixed;top:56px;left:0;z-index: 1000;overflow-y:auto;background:#FFF;}
.g_ls_menus{padding:9px 12px 6px 12px;border-bottom:solid 1px #eeeeee;}
.g_ls_menus .meuns_title{color:#686868;padding:10px 0 4px 8px;font-weight: bold;}
.g_ls_menus>a{display:block;padding:12px 18px;margin-bottom:4px;color:#4c4c4c;}
.g_ls_menus>a img{width:22px;vertical-align:middle;margin-right:8px;}
.g_ls_menus>a span{vertical-align:middle;}
.g_ls_menus>a:hover, .g_ls_menus .this_set{background-color: #f0f0f0;border-radius: 10px;}
.g_ls_menus .this_set{color: #000;font-weight:bold;font-size:15px;}
/* 主内容 */
.g_main_lay{padding:0 2% 0 3.4%;margin-top:18px;min-height:280px;position:relative;max-width:1700px;}
.g_main_border{border-top:solid 1px #eeeeee;}
.vl_list_main{float:left;width:25%;margin:10px 0 22px 0;position:relative}
.video-menu-ow{border-bottom:1px solid rgba(0,0,0,.1)}
/* .vl_list_main:hover .video_img_vl img{transform:scale(1.01)} */
.vl_list_main:hover .video_title_vl>a{font-weight:bold;}
.video_img_vl{border-radius:6px;width:calc(100% - 16px);position:relative;padding-top:71%;overflow:hidden;background:rgb(0 0 0 / 1)}
.video_img_vl a{text-align:center;position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center}
.video_img_vl img{transform:scale(1);transition:all 0.3s ease-in-out;display:inline-block;max-width:100%;max-height:100%;}
.video_title_vl{padding:0 16px 0 0;color:#bbbbbb;background: #FFF;}
.video_title_vl>a{color:#000;min-height:49px;padding:9px 3px 0 3px;word-break:break-all;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2; /* 这里是超出几行省略 */
overflow: hidden;
}
/* 首页 end*/
/* 联系我们 */
.svgimg{width:2em;height:2em;vertical-align:middle;fill: currentColor;overflow: hidden;}
.blank_cover{transition: all 0.5s ease;position:fixed;left:0;right:0;top:0;bottom:0;background:rgba(0, 0, 0, .7);opacity:0;z-index: 1199}
.right_sidebox{padding:15px 10px 15px 18px;opacity:0;transform:translateX(101%);background-color:#FFF;position:fixed;right:0;top:0;bottom:0;color:#333;width:396px;overflow-y:auto;max-width:100%;z-index:1200;}
.right_sidebox>h5{display:flex;padding:15px 0 10px 0;border-bottom:solid 1px #e9e2e2;margin-bottom:20px;}
.right_sidebox>h5 span{font-size:20px;font-weight:bold;flex: 1;}
.right_sidebox .link{text-decoration: underline;color:#457fc1;}
.right_sidebox .sort1{font-size:16px;font-weight:bold;margin-top:10px;}
.right_sidebox p{margin:5px 0;}
.right_sidebox .codeimg{width:48%;}
.sideboxShow{animation:bounceInRight 0.5s ease forwards;}
/* 添加视频 */
.g_form_style{width:406px;margin:11% auto 0 auto;}
.g_form_style input,.g_form_style select{width:100%;font-size:15px;padding:12px 10px;border-radius:5px;border:solid 1px #9b9b9b;margin:6px 0 0 0;}
.g_form_style>div{margin-bottom:11px;}
.avform_bt{margin-top:18px;}
.avform_bt button{position: relative;font-size:15px;min-width:100px;border-radius:6px;padding:10px 3px;border:none;background-color:#0d6efd;color:#FFF;cursor: pointer;}
.loading_bt{display:inline-block;}
.bt_loading_cover{z-index:100;position:absolute;left:-1px;right:-1px;top:-1px;bottom:-1px;background:rgba(225,225,225,.5);}
.loading_bt svg{width: 20px;transform-origin: center;animation: change 2.5s linear infinite;
}
.loading_bt circle {fill: none;stroke: #FFF;stroke-width: 7;stroke-dasharray: 1, 200;stroke-dashoffset: 0;stroke-linecap: round;animation: diansh 2s ease-in-out infinite;
}
/* 个人中心 */
.ui_name{padding:3% 0 0 0;margin-bottom:20px;display:flex;align-items: center;justify-content:center;}
.ui_name img{width:112px;border:solid 4px #e6e6e6;border-radius:50%;}
.ui_name span{font-size:21px;font-weight:bold;margin-left:18px;}
.ui_menu{border-bottom: solid 1px #eeeeee;padding:0 0 0 3%;}
.ui_menu>a{padding:0 2px 6px 2px;margin:0 9px;}
.ui_menu .this_sel{font-weight:bold;border-bottom:solid 3px #000;font-size:15px;}
.ui_video_state{color:#ada7a7;margin:18% 0 10% 0;}
@keyframes bounceInRight {
0%,
60%,
75%,
90%,
to {
-webkit-animation-timing-function: cubic-bezier(.215, .61, .355, 1);
animation-timing-function: cubic-bezier(.215, .61, .355, 1)
}
0% {
opacity: 0;
-webkit-transform: translate3d(3000px, 0, 0) scaleX(3);
transform: translate3d(3000px, 0, 0) scaleX(3)
}
60% {
opacity: 1;
-webkit-transform: translate3d(0, 0, 0) scaleX(1);
transform: translate3d(0, 0, 0) scaleX(1)
}
75% {
-webkit-transform: translate3d(0, 0, 0) scaleX(.98);
transform: translate3d(0, 0, 0) scaleX(.98)
}
90% {
-webkit-transform: translate3d(0, 0, 0) scaleX(.995);
transform: translate3d(0, 0, 0) scaleX(.995)
}
to {
opacity: 1;
-webkit-transform: translateZ(0);
transform: translateZ(0)
}
}
@keyframes circle {
0% {
transform: rotate(0);
}
100% {
transform: rotate(360deg);
}
}
@keyframes change {
100% {
transform: rotate(360deg);
}
}
@keyframes diansh {
0% {
stroke-dasharray: 1, 200;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 90, 200;
stroke-dashoffset: -35px;
}
100% {
stroke-dashoffset: -125px;
}
}
@media screen and (max-width: 1199px) {
}
@media screen and (max-width: 991px) {
}
@media screen and (max-width: 767px) {
.vl_list_main{width:50%;}
}
.visible_movi_xs{display:none;}
.hide_movi_xs{display:block;}
@media screen and (max-width:480px) {
.visible_movi_xs{display:inline-block;}
.hide_movi_xs{display:none;}
.top_nav{box-shadow:0 0 7px 0 rgb(155 155 155);}
.g_app_lay{padding:56px 0 60px 0}
.g_main_lay{margin-top:5px;padding:0 0 0 6px;}
.video_img_vl{width:calc(100% - 6px);padding-top:72.6%;}
.app_layout_side{padding:6px 0 6px 0;box-shadow: 0 0 7px 0 rgb(155 155 155);top:initial;bottom:0;right:0;width:100%;height:auto;}
.menu_ls{display:flex;justify-content:space-around;padding:0;border:none;}
.menu_ls>a{flex:1;text-align:center;padding:10px 0;margin:0;}
.menu_ls>a img{margin:0;}
.g_form_style{padding:0 12% 0 10%;width:100%;}
}
.hide{display:none}

2
www/img/PersonalCenter.svg

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg class="icon" style="width:2em;height:2em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="13602"><path d="M899.640668 897.714805c-7.238868-108.132766-60.680011-208.738092-146.610102-276.03173l-5.16565-3.568269-0.047072 0.069585c-4.88731-2.988054-10.458189-4.586458-16.192797-4.586458-19.701714 0-31.458479 9.498328-31.458479 25.411763 0 9.266038 4.285606 17.975397 11.477402 23.882943l-0.080841 0.13917 4.562922 3.266393c72.065316 51.518351 112.638383 129.652895 120.584356 232.273111l0.084934 1.119497c-0.071631 0.862647-0.116657 1.731434-0.116657 2.612501 0 17.340947 14.058181 31.400151 31.400151 31.400151 16.759709 0 30.449499-13.131065 31.350009-29.665647l0.624217 0L899.640668 897.714805zM798.515502 371.795794c0-156.107407-128.529305-283.119149-286.524712-283.119149s-286.525736 127.011742-286.525736 283.119149c0 84.110653 37.19104 162.570609 102.377692 216.660528-117.01711 62.452377-194.688097 181.588755-203.479321 313.118394l-0.36225 5.482875c-0.007163 0.113587-0.016373 0.226151-0.022513 0.340761l-0.032746 0.499373 0.019443 0c-0.008186 0.267083-0.019443 0.533143-0.019443 0.802272 0 14.702863 11.918447 26.622334 26.622334 26.622334 14.702863 0 26.622334-11.918447 26.622334-26.622334 0-0.26913-0.01228-0.535189-0.019443-0.802272l0.553609 0 0.417509-5.467525c9.647731-124.997875 88.871073-234.450706 202.112184-279.552927 33.809013 15.705704 85.420485 32.060183 131.714857 32.060183 42.889833 0 84.540442-9.451256 124.198673-28.307719l29.048593-16.863063 23.720238-15.566534C758.567675 539.996634 798.515502 458.919061 798.515502 371.795794zM511.989767 597.931115c-126.247332 0-228.949412-101.461833-228.949412-226.157833 0-124.673487 102.701057-226.111784 228.949412-226.111784 126.259612 0 228.972948 101.438297 228.972948 226.111784C740.961692 496.469282 638.249379 597.931115 511.989767 597.931115z" fill="#000" p-id="13603"></path></svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

2
www/img/addvideos.svg

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg class="icon" style="width:2em;height:2em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="12559"><path d="M892.352 245.312c-30.048-14.816-63.744 0.96-79.904 13.344L704 348.096 704 256c0-52.928-43.072-96-96-96L192 160C139.072 160 96 203.072 96 256l0 224c0 17.664 14.336 32 32 32s32-14.336 32-32L160 256c0-17.632 14.368-32 32-32l416 0c17.664 0 32 14.368 32 32l0 160c0 12.384 7.168 23.648 18.336 28.928 11.296 5.312 24.512 3.616 34.016-4.256l159.872-131.936c2.912-2.208 7.2-4.128 10.336-4.992C863.264 306.336 864 310.816 864 317.984l0 388.064c0 7.072-0.704 11.52-1.376 14.144-3.04-0.832-6.912-2.56-9.056-4.224l-161.216-132.672c-9.568-7.872-22.88-9.504-33.984-4.224C647.168 584.352 640 595.616 640 608l0 160c0 17.664-14.336 32-32 32l-160 0c-17.664 0-32 14.304-32 32s14.336 32 32 32l160 0c52.928 0 96-43.072 96-96l0-92.224 109.792 90.336c18.912 14.4 50.944 26.272 78.624 12.608C908.672 770.688 928 751.552 928 706.016L928 317.984C928 272.48 908.608 253.344 892.352 245.312z" fill="#5F636D" p-id="12560"></path><path d="M384 672 288 672l0-96c0-17.696-14.336-32-32-32s-32 14.304-32 32l0 96L128 672c-17.664 0-32 14.304-32 32s14.336 32 32 32l96 0 0 96c0 17.696 14.336 32 32 32s32-14.304 32-32l0-96 96 0c17.664 0 32-14.304 32-32S401.664 672 384 672z" fill="#000" p-id="12561"></path></svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

15
www/img/buld.svg

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg class="icon1" viewBox="0 0 1024 1024" style="color:#6c6c6c;width: 2em;height: 2em;vertical-align: middle;fill: currentColor;overflow: hidden;" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5317">
<path
d="M497.9 897.3c-19 0-36.3-7.7-49.1-19.9 6.1 21.4 25.8 36.9 49.1 36.9h26.7c23.3 0 43-15.5 49.1-36.9-12.8 12.2-30.1 19.9-49.1 19.9h-26.7zM444.2 667.9c-34-21.6-62.9-51.3-82.9-86.2-21.5-37.6-33.2-80.6-33.2-124.5 0-66.7 25.9-129.5 73.1-176.7 15.9-15.9 33.4-29.3 52.4-40.2C354 265.5 280 355.8 280 463.2c0 81.2 41.8 154.7 111 196.5l5.3 2.9v52.2c0 1.2 3.8 4.5 10.4 4.5h39.2c-1.7-3-1.6-6.8-1.6-10.2v-41.2z"
p-id="5318"></path>
<path
d="M614.8 738.7H408.6c-17.6 0-31.4-10.3-31.4-23.5v-41.3c-34-21.6-62.4-51.3-82.4-86.2-21.5-37.6-32.9-80.6-32.9-124.5 0-66.7 26-129.5 73.2-176.7s109.9-73.2 176.7-73.2 129.5 26 176.7 73.2 73.2 109.9 73.2 176.7c0 86.5-43 164.8-115.4 210.5v41.4c-0.1 13.3-13.9 23.6-31.5 23.6z m-217.5-23.8c0.7 1.2 4.7 3.8 11.4 3.8h206.2c6.6 0 10.6-2.6 11.4-3.8v-52.4l4.8-2.9c69.2-41.6 110.5-115 110.5-196.3 0-126.7-103.1-229.9-229.9-229.9-126.7 0-229.9 103.1-229.9 229.9 0 81.2 41.3 154.7 110.5 196.5l4.8 2.9v52.2zM632.4 790.6H391.1c-6.5 0-11.7-5.3-11.7-11.7v-26.6c0-6.5 5.3-11.7 11.7-11.7h241.3c6.5 0 11.7 5.3 11.7 11.7v26.6c0 6.5-5.2 11.7-11.7 11.7z m-233-20h224.8v-10H399.4v10zM632.4 844.6H391.1c-6.5 0-11.7-5.3-11.7-11.7v-25.1c0-6.5 5.3-11.7 11.7-11.7h241.3c6.5 0 11.7 5.3 11.7 11.7v25.1c0 6.5-5.2 11.7-11.7 11.7z m-233-20h224.8v-8.5H399.4v8.5zM525.1 931.2h-26.7c-39.2 0-71-31.9-71-71v-10h168.7v10c0 39.2-31.9 71-71 71z m-76.7-61c4.7 23.4 25.3 41 50 41h26.7c24.7 0 45.4-17.7 50-41H448.4zM884 484.5h-70.1c-5.5 0-10-4.5-10-10s4.5-10 10-10H884c5.5 0 10 4.5 10 10s-4.5 10-10 10zM839 297.2l-60.7 35c-4.8 2.8-10.9 1.1-13.7-3.7s-1.1-10.9 3.7-13.7l60.7-35c4.8-2.8 10.9-1.1 13.7 3.7s1.1 11-3.7 13.7zM706.4 157.5l-35 60.7c-2.8 4.8-8.9 6.4-13.7 3.7s-6.4-8.9-3.7-13.7l35-60.7c2.8-4.8 8.9-6.4 13.7-3.7s6.5 8.9 3.7 13.7zM521.8 102.8v70.1c0 5.5-4.5 10-10 10s-10-4.5-10-10v-70.1c0-5.5 4.5-10 10-10s10 4.5 10 10zM334.4 147.7l35 60.7c2.8 4.8 1.1 10.9-3.7 13.7s-10.9 1.1-13.7-3.7l-35-60.7c-2.8-4.8-1.1-10.9 3.7-13.7s11-1 13.7 3.7zM194.7 280.3l60.7 35c4.8 2.8 6.4 8.9 3.7 13.7s-8.9 6.4-13.7 3.7l-60.7-35c-4.8-2.8-6.4-8.9-3.7-13.7s8.9-6.4 13.7-3.7zM140 465h70.1c5.5 0 10 4.5 10 10s-4.5 10-10 10H140c-5.5 0-10-4.5-10-10s4.5-10 10-10z"
p-id="5319"></path>
<path
d="M537.4 729.3c-3.3-55.5 0.7-125.7 10.8-192.7 1.9-12.5 5.1-31.9 9.4-51.8-17.9 0.6-36.2-1.8-51.2-8-0.9 0.3-1.9 0.5-2.8 0.7-11 2.7-23.4 3.4-36.2 2.1 5.3 26.3 9.8 58.6 13.2 96.3 7 77.3 7.5 152 7.5 152.7l-20 0.1c0-0.7-0.4-74.6-7.4-151.1-4.1-44.9-9.2-77.8-14.5-101.8-1.1-0.3-2.1-0.6-3.2-0.9-32.8-9.4-65.9-31.9-60.9-59.3 1.5-8 6.5-15.2 13.9-19.8 13.7-8.5 24.8-5.8 31.7-2 14.6 8.1 25.8 28.7 35 64.9 6.6 1.1 13.3 1.6 19.9 1.4-6.5-7.7-10.1-17-10.6-27.4-1.7-35.7 16.6-48.6 24.5-52.5 13.5-6.7 29.7-4.6 41.4 5.2 13.8 11.6 18.2 31.2 11.9 52.5l-0.3 0.8c-3.8 9.8-9.7 18-17.2 24.5 9.6 1.6 20 1.9 30.2 1.2 5.9-22.8 13.3-43.4 21.9-51.9l0.3-0.3c11.9-10.7 25.3-14.2 36.8-9.7 10.6 4.2 17.8 14.7 18.8 27.2 1.2 15.7-7.3 30.6-22.8 39.8-10.1 6-23.9 10.5-39 13-3.6 15.8-7.3 34.8-10.6 56.8-9.9 65.7-13.8 134.4-10.6 188.5l-19.9 1.5z m61-302.3c-3.8 3.9-8.9 15.4-14.2 34.3 9.1-2.1 17.2-5.1 23.3-8.7 8.8-5.3 13.7-13.1 13.1-21.1-0.4-4.8-2.8-8.9-6.3-10.2-4.2-1.7-10 0.4-15.9 5.7z m-85.2-30.5c-2.7 0-5.3 0.6-7.8 1.8-9.3 4.6-14.2 16.9-13.4 33.7 0.5 9.9 5.6 17.6 15.7 23.3 10.1-4.4 18.4-11.8 23-23.3 3.9-13.4 1.8-24.7-5.8-31.1-3.3-2.9-7.5-4.4-11.7-4.4zM414 410.3c-1.9 0-4.2 0.7-7.3 2.6-2.6 1.6-4.3 4-4.8 6.4-1.8 9.6 13.1 24.6 38.6 33.8-8.9-30-17.6-39-22.4-41.6-1.1-0.7-2.4-1.2-4.1-1.2z"
p-id="5320"></path>
<path d="M646.7 380.9m-12 0a12 12 0 1 0 24 0 12 12 0 1 0-24 0Z" fill="#FF3333" p-id="5321"></path>
<path d="M519.7 332.9m-12 0a12 12 0 1 0 24 0 12 12 0 1 0-24 0Z" fill="#FF3333" p-id="5322"></path>
<path d="M385.7 360.9m-12 0a12 12 0 1 0 24 0 12 12 0 1 0-24 0Z" fill="#FF3333" p-id="5323"></path>
</svg>

After

Width:  |  Height:  |  Size: 3.9 KiB

2
www/img/choice.svg

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg class="icon" style="width:2em;height:2em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10040"><path d="M236.880363 1019.283956l250.648631-139.044461c8.344715-4.607512 30.204798-13.668951 50.221876-0.10239l251.211772 138.225349a36.501731 36.501731 0 0 0 53.754302-38.037568l-48.942012-292.321014s-10.136526-47.559759 12.54267-65.119498l207.286828-198.839723a36.501731 36.501731 0 0 0 8.549494-36.757703c-4.24915-12.901032-13.259395-26.621178-26.621178-28.924934H798.689611c-16.894209 0-30.409577 14.180897-26.774762 28.924934 3.634815 14.692843 12.440281 22.269639 34.402753 22.269639h160.597377l-200.529144 180.512066c-26.211622 23.242336-28.054626 53.498329-26.211621 64.914719l5.631403 34.607531 43.310609 269.283456-254.539419-143.651973a45.460781 45.460781 0 0 0-39.778184 0l-242.35511 138.737294 64.1468-271.382433c5.529014-29.744047-9.931747-61.996628-28.412988-81.757734L57.904134 409.556587s93.58368 0.972697 153.327747 0c74.539299-1.22867 157.525702-14.180897 188.344836-51.194573 19.300354-15.204788 67.730421-146.41648 67.73042-146.41648l43.822555-141.60419 145.750951 316.894409c8.703077 18.327657 22.474418 20.529024 34.863504 17.047793 12.440281-3.532426 21.092164-19.351549 12.440281-37.679206L544.252581 20.989775a36.60412 36.60412 0 0 0-66.194583 0.153584l-60.56318 183.276572S381.197865 304.505322 360.976009 322.372229C324.115916 355.034366 235.549304 358.362014 109.149902 358.362014H33.484323c-13.566562 2.047783-25.597287 10.75086-29.948826 23.754282-4.300344 12.952227-2.559729 34.14678 6.962462 43.873749 0 0 210.256113 185.221966 222.6452 196.894329 34.044391 32.098998 28.822545 37.935179 27.593875 65.119498 1.22867 0-63.225298 272.45752-68.498339 288.276642-5.273041 15.870318-5.529014 32.866916 5.887376 40.955659a35.989785 35.989785 0 0 0 38.754292 2.047783z" fill="#000" p-id="10041"></path></svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

7
www/img/clos.svg

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg class="icon" style="width: 2em;height: 2em;color:#464c5c;vertical-align: middle;fill: currentColor;overflow: hidden;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7837">
<path
d="M512 64c-247.00852 0-448 200.960516-448 448S264.960516 960 512 960c247.00852 0 448-200.960516 448-448S759.039484 64 512 64zM694.752211 649.984034c12.480043 12.54369 12.447359 32.768069-0.063647 45.248112-6.239161 6.208198-14.399785 9.34412-22.591372 9.34412-8.224271 0-16.415858-3.135923-22.65674-9.407768l-137.60043-138.016718-138.047682 136.576912c-6.239161 6.14455-14.368821 9.247789-22.496761 9.247789-8.255235 0-16.479505-3.168606-22.751351-9.504099-12.416396-12.576374-12.320065-32.800753 0.25631-45.248112l137.887703-136.384249-137.376804-137.824056c-12.480043-12.512727-12.447359-32.768069 0.063647-45.248112 12.512727-12.512727 32.735385-12.447359 45.248112 0.063647l137.567746 137.984034 138.047682-136.575192c12.54369-12.447359 32.831716-12.320065 45.248112 0.25631 12.447359 12.576374 12.320065 32.831716-0.25631 45.248112L557.344443 512.127295 694.752211 649.984034z"
p-id="7838"></path>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

2
www/img/contactUs.svg

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg class="icon" style="width:2em;height:2em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4177"><path d="M182.091294 756.705882H57.690353C45.281882 756.705882 7.529412 756.675765 7.529412 709.074824V463.631059c0-33.927529 18.748235-53.278118 50.160941-53.278118h124.416c34.032941 0 66.379294 20.871529 66.379294 53.278118v245.443765c-0.015059 17.769412-16.865882 47.631059-66.394353 47.631058zM966.174118 756.705882h-128.692706c-22.678588 0-46.878118-5.436235-46.878118-47.631058V463.631059c0-47.134118 28.687059-53.278118 46.878118-53.278118h128.692706c33.355294 0 50.296471 19.862588 50.29647 53.278118v245.443765c0 31.593412-14.426353 47.631059-50.29647 47.631058zM60.054588 428.739765a14.471529 14.471529 0 0 1-14.396235-16.00753C70.098824 184.801882 266.405647 19.365647 512.421647 19.365647c245.684706 0 441.976471 165.391059 466.718118 393.261177a14.456471 14.456471 0 0 1-28.762353 3.132235C927.262118 202.842353 743.062588 48.308706 512.421647 48.308706c-234.676706 0-414.795294 151.130353-438.000941 367.510588a14.456471 14.456471 0 0 1-14.366118 12.920471z m797.936941-3.282824a14.456471 14.456471 0 0 1-14.411294-13.342117C831.563294 259.403294 679.920941 130.379294 512.421647 130.379294s-319.156706 129.008941-331.143529 281.720471a14.471529 14.471529 0 0 1-28.852706-2.258824c13.146353-167.168 177.995294-308.389647 359.996235-308.389647 182.000941 0 346.849882 141.221647 359.996235 308.404706a14.471529 14.471529 0 0 1-14.426353 15.600941zM607.472941 984.139294a14.456471 14.456471 0 0 1-3.072-28.596706c106.601412-23.356235 233.773176-105.336471 259.553883-211.275294a14.456471 14.456471 0 1 1 28.114823 6.851765C863.518118 868.442353 725.729882 958.569412 610.575059 983.792941a14.607059 14.607059 0 0 1-3.102118 0.346353zM603.934118 1007.962353a38.339765 38.339765 0 0 1-38.294589-38.294588 38.339765 38.339765 0 0 1 38.294589-38.294589 38.339765 38.339765 0 0 1 38.294588 38.294589 38.324706 38.324706 0 0 1-38.294588 38.294588z m0-47.661177a9.366588 9.366588 0 0 0 0 18.718118 9.366588 9.366588 0 0 0 0-18.718118z" p-id="4178"></path></svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

2
www/img/other.svg

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg class="icon" style="width:2em;height:2em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="30546"><path d="M755.712 483.328c79.93 0 144.725 64.796 144.725 144.725v270.932h-60.074V628.053c0-46.75-37.9-84.65-84.651-84.65H266.757c-46.75 0-84.65 37.9-84.65 84.65v270.932h-60.075V628.053c0-79.93 64.796-144.725 144.725-144.725z m-208.213 125.61v202.07h-60.075v-202.07h60.075zM502.443 120.15c87.47 0 158.378 70.909 158.378 158.379 0 87.47-70.908 158.379-158.378 158.379-87.47 0-158.379-70.909-158.379-158.379 0-87.47 70.909-158.379 158.379-158.379z m0 60.075c-54.292 0-98.304 44.012-98.304 98.304s44.012 98.304 98.304 98.304c54.291 0 98.304-44.012 98.304-98.304s-44.013-98.304-98.304-98.304z" fill="#191F39" p-id="30547"></path></svg>

After

Width:  |  Height:  |  Size: 862 B

2
www/img/search.svg

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg class="icon" style="width: 2em;height: 2em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3239"><path d="M448 768c176.725333 0 320-143.274667 320-320 0-176.725333-143.274667-320-320-320-176.725333 0-320 143.274667-320 320 0 176.725333 143.274667 320 320 320z m0 42.666667c-200.298667 0-362.666667-162.368-362.666667-362.666667S247.701333 85.333333 448 85.333333s362.666667 162.368 362.666667 362.666667-162.368 362.666667-362.666667 362.666667z m304.917333-27.584a21.333333 21.333333 0 0 1 30.165334-30.165334l150.848 150.848a21.333333 21.333333 0 0 1-30.165334 30.165334l-150.848-150.826667z" fill="#000" p-id="3240"></path></svg>

After

Width:  |  Height:  |  Size: 768 B

215
www/js/tajian.js

@ -1,6 +1,220 @@
/* for theme TaJian */ /* for theme TaJian */
(function() { (function() {
// 公用功能
var taJian = {
debug: false,
domain: 'https://tajian.tv',
apis: {
addVideos: '/frontapi/addfav', //添加视频
register: '/frontapi/register', //注册
login: '/frontapi/login' //登入
}
};
//--v2.0--
// 图片异步加载
if ($("img.lazy").get(0)) {
$("img.lazy").lazyload({
effect: "fadeIn",
event: "scroll"
});
}
// 返回顶部
// var scrolltop = $('.scroll_topJS');
// $(window).scroll(function () {
// if ($(this).scrollTop() > 100) {
// scrolltop.fadeIn();
// } else {
// scrolltop.fadeOut();
// }
// });
if ($('.connectmeJS').get(0)) {
// 点击打开右侧弹出框
$('.connectmeJS').click(function () {
$('.blank_coverJS, .right_sideboxJS').removeClass('elementNone');
window.setTimeout(function () {
$('.blank_coverJS').addClass('opacityshow');
$('.right_sideboxJS').addClass('sideboxShow');
}, 0);
});
// 点击关闭右侧弹出框
$('.rtcloseJS').click(function () {
$('.blank_coverJS').removeClass('opacityshow');
$('.right_sideboxJS').removeClass('sideboxShow');
window.setTimeout(function () {
$('.blank_coverJS, .right_sideboxJS').addClass('elementNone');
}, 500);
});
}
// 打开移动端搜索框
if ($('.search_mob_JS').get(0)) {
$('.search_mob_JS').click(function () {
$('.blank_coverJS, .mobile_search_JS').removeClass('elementNone');
window.setTimeout(function () {
$('.blank_coverJS').addClass('opacityshow');
$('.mobile_search_JS').addClass('sideboxShow');
}, 0);
$('#mobile_search .ms_input_js').focus();
});
$('.ms_close_JS').click(function () {
$('.blank_coverJS').removeClass('opacityshow');
$('.mobile_search_JS').removeClass('sideboxShow');
window.setTimeout(function () {
$('.blank_coverJS, .mobile_search_JS').addClass('elementNone');
}, 500);
});
}
// 搜索相关
$('#search_form .jsbtn').click(function (e) {
e.preventDefault();
if (!$('#search_form .input_sf_JS').val()) {
return;
}
$('#search_form').submit();
});
// 添加视频
if ($('#add_video_form').get(0)) {
// 添加视频表单处理
$('#add_video_form .jsbtn').click(function (e) {
console.log('btn clicked');
e.preventDefault();
let inputList = $('#add_video_form input');
// console.log(inputList[0].value);
if (!inputList[0].value) {
alert('请填写分享内容或网址!');
return false;
} else if (/https:\/\/[\w\.]+\/[\w]+/ig.test(inputList[0].value) == false) {
alert('目前只支持抖音、快手、西瓜视频和Bilibili的分享网址哦!');
return false;
}
let bt = $(this), btLoading = bt.children('.bt_class_JS'), btText = bt.children('.bt_text_JS');
btLoading.removeClass('elementNone');
bt.prop('disabled', true);
btText.text('提交中...');
let datas = {
'content': inputList[0].value,
'title': inputList[1].value
}
let apiUrl = taJian.debug ? taJian.domain + taJian.apis.addVideos : taJian.apis.addVideos;
// console.log(apiUrl);
publicAjax(apiUrl, 'POST', datas, function (data) {
bt.prop('disabled', false);
btLoading.addClass('elementNone');
if (data.code == 1) {
$(inputList[0]).val('');
alert(data.msg || data.err);
} else {
alert(data.err);
}
}, function (jqXHR, textStatus, errorThrown) {
bt.prop('disabled', false);
btLoading.removeClass('elementNone');
console.log(jqXHR);
});
// $.ajax({
// url: '/frontapi/addfav',
// method: 'POST',
// dataType: 'JSON',
// data: datas
// }).done(function (data, textStatus, jqXHR) {
// bt.prop('disabled', false);
// if (data.code == 1) {
// $(inputList[0]).val('');
// alert(data.msg || data.err);
// } else {
// alert(data.err);
// }
// }).fail(function (jqXHR, textStatus, errorThrown) {
// bt.prop('disabled', false);
// alert(errorThrown);
// });
});
}
// form表单
if ($('.g_form_js').get(0)) {
$('.g_form_js .jsbtn').click(function (e) {
e.preventDefault();
let inputList = $('.g_form_js input');
for (let i = 0; i < inputList.length; i++) {
if (!inputList[i].value) {
alert($(inputList[i]).attr('Warning'));
return false;
}
}
let bt = $(this), btLoading = bt.children('.bt_class_JS'), btText = bt.children('.bt_text_JS');
btLoading.removeClass('elementNone');
bt.prop('disabled', true);
btText.text('请求中...');
});
}
function publicAjax(apiUrl, method, datas, callback, fail) {
let self = this;
let Options = {
url: apiUrl,
method: method,
data: datas,
dataType: 'json'
};
if (self.debug) {
Options.crossDomain = true;
Options.xhrFields = {
withCredentials: true
};
}
$.ajax(Options).done(function (data) {
callback(data);
}).fail(function (jqXHR, textStatus, errorThrown) {
fail(jqXHR, textStatus, errorThrown);
});
};
//--v1.0--
/*
//show modal //show modal
$('.btn-open').click(function(evt) { $('.btn-open').click(function(evt) {
var target_id = $(evt.target).parents('.btn-open').attr('href'); var target_id = $(evt.target).parents('.btn-open').attr('href');
@ -58,5 +272,6 @@
alert('服务器异常了:' + errorThrown); alert('服务器异常了:' + errorThrown);
}); });
}); });
*/
})(); })();

Loading…
Cancel
Save