1 Star 2 Fork 0

fuzui / tiangou

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.html 9.90 KB
一键复制 编辑 原始数据 按行查看 历史
fuzui 提交于 2020-09-24 01:24 . 更改jquery为cdn
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>舔狗日记</title>
<meta name="referrer" content="no-referrer"/>
<meta name="baidu-site-verification" content="frrI8eSaxg" />
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover" />
<meta name="copyright" content="aHR0cHM6Ly93ZS5kb2c=">
<meta name="contact" content="eW5zQHFxLmNvbQ==">
<meta itemprop="name" content="舔狗日记">
<meta name="description" itemprop="description" content="舔狗舔狗,舔到最后一无所有。">
<meta itemprop="image" content="assets/images/logo.jpg">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="icon" type="image/png" href="assets/images/logo.jpg">
<link rel="icon" type="image/png" sizes="144x144" href="assets/images/logo.jpg">
<link rel="apple-touch-icon" type="image/png" href="assets/images/logo.jpg">
<style>
@font-face {
font-family: 'MFShangYa';
src: url('./assets/font/MFShangYa.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'HYTiaoTiao';
src: url('./assets/font/HYTiaoTiao.ttf?20200415') format('truetype');
font-weight: normal;
font-style: normal;
}
.border-1 {
border-bottom-left-radius: 15px 255px;
border-bottom-right-radius: 225px 15px;
border-top-left-radius: 255px 15px;
border-top-right-radius: 15px 225px
}
.border-2 {
border-bottom-left-radius: 185px 25px;
border-bottom-right-radius: 20px 205px;
border-top-left-radius: 125px 25px;
border-top-right-radius: 10px 205px
}
.border-3 {
border-bottom-left-radius: 225px 15px;
border-bottom-right-radius: 15px 255px;
border-top-left-radius: 15px 225px;
border-top-right-radius: 255px 15px
}
.border-4 {
border-bottom-left-radius: 25px 115px;
border-bottom-right-radius: 155px 25px;
border-top-left-radius: 15px 225px;
border-top-right-radius: 25px 150px
}
.border-5 {
border-bottom-left-radius: 20px 115px;
border-bottom-right-radius: 115px 20px;
border-top-left-radius: 250px 15px;
border-top-right-radius: 25px 80px
}
.border-6 {
border-bottom-left-radius: 15px 225px;
border-bottom-right-radius: 20px 205px;
border-top-left-radius: 28px 125px;
border-top-right-radius: 100px 30px
}
html,body {margin:0;padding:0;height:100%;width:100%;color:#333;}
html {font-size: 13.3333vw;}
body {
display: flex;
flex-direction: column;
font-family:-apple-system,'Helvetica Neue','Helvetica','Tahoma','Arial','PingFang SC',STHeiTi,'Microsoft Yahei';
font-size: 16px;
background-color: #f4f5fd;
color: #03081a;
}
mark {
background-color: transparent;
background-image: -webkit-linear-gradient(#ffe21d, #ffe21d);
background-image: -o-linear-gradient(#ffe21d, #ffe21d);
background-image: linear-gradient(#ffe21d, #ffe21d);
background-position: 0 85%;
background-size: 100% 20%;
background-repeat: no-repeat;
}
header {
display: flex;
align-items: center;
padding: .2rem .4rem;
margin: 0 0 .45rem;
flex-shrink: 0;
background-color: #fff;
box-shadow: 0 0 10px rgba(0,0,0,.1);
}
header img {width:.72rem;height: .72rem;}
header h1 {margin:.1rem 0 0;font-size: .64rem;line-height: 105%;font-family: "MFShangYa";font-weight: normal;}
header p {font-size: .32rem;margin: .08rem 0 0 auto;font-family: "HYTiaoTiao"}
section {
font-family: "HYTiaoTiao";
margin: auto .4rem;
border-width: 2px 5px 4px 3px;
border-style: solid;
border-color: #03081a;
overflow-y: scroll;
display: flex;
flex-direction: column;
background-color: #fff;
-webkit-overflow-scrolling: touch;
-ms-overflow-style: none;
}
article img {display: none;}
article {
font-size: .45rem;
margin: 0;
padding: .4rem;
letter-spacing: 2px;
text-align: justify;
flex: 1;
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
-ms-overflow-style: none;
}
section::-webkit-scrollbar,
article::-webkit-scrollbar {display: none;}
address {
display: flex;
align-items: center;
flex-shrink: 0;
height: .8rem;
margin: 0 .4rem;
font-style: normal;
color: #8c8c8c;
font-size: .32rem;
}
address time {margin-right: auto;}
footer {
display: flex;
justify-content: center;
align-items: center;
flex-shrink: 0;
padding: 0 0 .5rem;
padding-bottom: calc(constant(safe-area-inset-bottom) + .5rem);
padding-bottom: calc(env(safe-area-inset-bottom) + .5rem);
margin: .45rem 0 0;
}
button {
border: 0 none;
margin: 0 .3rem;
padding: 0;
background-color: #fff;
width: 1rem;
height: 1rem;
color: transparent;
border-radius: 100%;
background-image: url(./assets/images/refresh.gif);
background-size: cover;
background-position: 50% 50%;
background-repeat: no-repeat;
box-shadow: 0 0 0.2rem rgba(0,0,0,.2);
cursor: pointer;
outline: 0;
}
footer a,
footer a:active,
footer a:visited {
vertical-align: middle;
text-decoration: none;
font-size: .32rem;
color: #3078e6;
padding: .2rem;
}
footer a:hover {
color: #03081a;
}
tips {
display: none;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
background-color: rgba(0,0,0,.5);
border-radius: .04rem;
font-size: .32rem;
padding: .12rem .24rem;
color: #fff;
}
@media (min-width: 750px) {
html {font-size: 100px;}
section {
margin: auto;
max-width: 80%;
border: 0 none;
background-color: transparent;
border-radius: none;
}
article {padding:0 .4rem;}
address {justify-content: flex-end;}
address time {margin-right: .15rem;}
}
@media (orientation : landscape) and (min-width: 750px) {
header {padding: 10px 20px;}
header img {width: 36px;height: 36px;}
header h1 {font-size: 32px;margin-top:5px;}
header p {font-size: 18px;margin:0 0 0 auto;}
}
</style>
<script src="https://cdn.fuzui.net/js/jquery.min.js"></script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?f15c93060994a0b07262603677e7374e";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body>
<header>
<img src="./assets/images/logo.gif" alt="logo">
<h1>舔狗日记</h1>
<p>I'm 舔狗</p>
</header>
<section class="border-1">
<article>
昨天你领完红包就把我删了,我陷入久久地沉思。我想这其中一定有什么含义,原来你是在欲擒故纵,嫌我不够爱你。无理取闹的你变得更加可爱了,我会<mark>坚守我对你的爱</mark>的。你放心好啦!今天发工资了,发了1850,给你微信转了520,支付宝1314,还剩下16。给你发了很多消息你没回。剩下16块我在小卖部买了你爱吃的老坛酸菜牛肉面,给你寄过去了。希望你保护好食欲,我去上班了爱你~~
</article>
<address></address>
</section>
<footer><button title="点击刷新,再来一篇" onclick="randomSoul()">再来一篇</button><a href="javascript:;" data-btn="copy" data-clipboard-target="article">复制</a></footer>
<tips>已复制</tips>
<script src="./assets/js/index.js?20200415"></script>
<script src="https://cdn.bootcss.com/clipboard.js/2.0.6/clipboard.min.js"></script>
<script>
var content = '';
randomSoul();
$('meta[name="description"]').attr('content',content.replace(/\*\*(.*?)\*\*/g,''));
var clipboard = new ClipboardJS('a[data-btn="copy"]');
clipboard.on('success', function(e) {
$('tips').show(
setTimeout(function() {
$('tips').hide()
}, 1500)
);
e.clearSelection();
});
function randomNumBoth(min,max){
var range = max - min;
var rand = Math.random();
var num = min + Math.round(rand * range);
return num;
}
var date = new Date();
var year = date.getFullYear().toString();
var month = (date.getMonth() + 1).toString();
var day = date.getDate().toString();
var city = localStorage.getItem('city') || '';
var cloud = localStorage.getItem('cloud') || '';
var cond = localStorage.getItem('cond') || '';
var dateStart = new Date(localStorage.getItem('date') || new Date());
var dayDiff = date.getDate() - dateStart.getDate();
var weatherKeys = ['8cca6628be6045a895157d2f0e3a9cee'];
if(city == '' || dayDiff >= 1) {
var weather = {};
for(var i=0;i < weatherKeys.length; i++) {
weather = getWeather(weatherKeys[i]);
console.log(weatherKeys[i]+':'+weather.status)
if (weather.status == 'ok') { break };
}
city = weather.basic.parent_city || '';
cloud = weather.now.fl || ''
cond = weather.now.cond_txt || ''
localStorage.setItem('city',city);
localStorage.setItem('cloud',cloud);
localStorage.setItem('cond',cond);
localStorage.setItem('date',new Date());
}
renderWeather();
function getWeather(key) {
var weatherData = {};
$.ajax({
url: 'https://free-api.heweather.net/s6/weather/now?location=auto_ip&key='+key,
type: 'get',
async: false,
success : function(data){
weatherData = data.HeWeather6[0];
}
});
return weatherData;
}
function renderWeather(){
var weatherHTML = '<time>'+ year+'-'+month+'-'+day+'</time><span>'+city+'·'+cond+'·'+cloud+'&#8451;</span>'
$('address').html(weatherHTML);
}
</script>
</body>
</html>
1
https://gitee.com/fuzui/tiangou.git
git@gitee.com:fuzui/tiangou.git
fuzui
tiangou
tiangou
master

搜索帮助