Skip to content

Commit

Permalink
up link
Browse files Browse the repository at this point in the history
  • Loading branch information
底层用户 committed Mar 21, 2022
1 parent bee5fe6 commit 1ac1c05
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 26 deletions.
14 changes: 11 additions & 3 deletions css/font.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
@font-face {
font-family: "iconfont";
/* Project id 2831425 */
src: url('../font/font_2831425_x34rhwyvdnp.woff2') format('woff2'),
url('../font/font_2831425_x34rhwyvdnp.woff') format('woff'),
url('../font/font_2831425_x34rhwyvdnp.ttf') format('truetype');
src: url('../font/iconfont.woff2') format('woff2'),
url('../font/iconfont.woff') format('woff'),
url('../font/iconfont.ttf') format('truetype');
}

.iconfont {
Expand All @@ -29,6 +29,14 @@
-moz-osx-font-smoothing: grayscale;
}

.icon-z_shangpinheji:before {
content: "\e683";
}

.icon-a-daohangzhiyindingwei-05:before {
content: "\e970";
}

.icon-volume-x:before {
content: "\e67a";
}
Expand Down
2 changes: 1 addition & 1 deletion css/mobile.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@charset"utf-8";
@charset "utf-8";

/*小于1400px时*/
@media (max-width: 1400px) {}
Expand Down
14 changes: 14 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,15 @@ i.iconfont.icon-yinhao-copy {
font-size: 1.10rem;
}

#hitokoto_text {
word-break: break-all;
text-overflow: ellipsis;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}

.hitokoto-from {
margin-top: 10px;
font-weight: bold;
Expand Down Expand Up @@ -462,6 +471,11 @@ span.link-name {
font-size: 1.15rem;
}

i.iconfont.icon-a-daohangzhiyindingwei-05,
i.iconfont.icon-z_shangpinheji {
font-size: 2rem;
}

/*更多页面*/
.more {
display: none !important;
Expand Down
Binary file removed font/font_2831425_x34rhwyvdnp.woff
Binary file not shown.
Binary file removed font/font_2831425_x34rhwyvdnp.woff2
Binary file not shown.
Binary file not shown.
Binary file added font/iconfont.woff
Binary file not shown.
Binary file added font/iconfont.woff2
Binary file not shown.
30 changes: 16 additions & 14 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,12 @@
class="weekday">星期一</span><br><span class="time-text">00:00:00</span>
</div>
<div class="weather">
<span id="city_text">天气</span>&nbsp;<span
id="wea_text">加载失败</span>&nbsp;<span id="tem_night">N/A</span>°C~<span
id="tem_day">N/A</span>°C&nbsp;<span id="win_text"></span><span
id="win_speed"></span>
<span id="city_text">天气</span>&nbsp;
<span id="wea_text">加载失败</span>&nbsp;
<span id="tem_night"></span>°C~
<span id="tem_day"></span>°C&nbsp;
<span id="win_text"></span>
<span id="win_speed"></span>
</div>
</div>
</div>
Expand Down Expand Up @@ -212,26 +214,26 @@
<!--第二组-->
<div class="row" style="margin-top: 1.5rem;">
<div class="col">
<a href="https://lab.imsyy.top/" target="_blank">
<a href="https://nav.imsyy.top/" target="_blank">
<div class="link-card cards">
<i class="iconfont icon-lab"></i>
<span class="link-name">实验室</span>
<i class="iconfont icon-a-daohangzhiyindingwei-05"></i>
<span class="link-name">起始页</span>
</div>
</a>
</div>
<div class="col 2">
<a href="https://web.imsyy.top/" target="_blank">
<div class="link-card cards">
<i class="iconfont icon-navigation1"></i>
<span class="link-name">网址导航</span>
<i class="iconfont icon-z_shangpinheji"></i>
<span class="link-name">网址集</span>
</div>
</a>
</div>
<div class="col">
<a href="https://photo.imsyy.top/" target="_blank">
<a href="https://lab.imsyy.top/" target="_blank">
<div class="link-card cards">
<i class="iconfont icon-photo"></i>
<span class="link-name">相册</span>
<i class="iconfont icon-lab"></i>
<span class="link-name">实验室</span>
</div>
</a>
</div>
Expand Down Expand Up @@ -312,9 +314,9 @@
</div>
<div class="row" style="margin-top: 1.5rem;">
<div class="col">
<a href="https://img.imsyy.top/" target="_blank">
<a href="https://photo.imsyy.top/" target="_blank">
<div class="link-card cards">
<span class="link-name">图片站</span>
<span class="link-name">时光相册</span>
</div>
</a>
</div>
Expand Down
16 changes: 8 additions & 8 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ if (isFirefox = navigator.userAgent.indexOf("Firefox") > 0) {
fetch('https://v1.hitokoto.cn?max_length=24')
.then(response => response.json())
.then(data => {
$('#hitokoto_text').text(data.hitokoto)
$('#from_text').text(data.from)
$('#hitokoto_text').html(data.hitokoto)
$('#from_text').html(data.from)
})
.catch(console.error)

Expand All @@ -94,12 +94,12 @@ fetch('https://v1.hitokoto.cn?max_length=24')
fetch('https://www.yiketianqi.com/free/day?appid=43986679&appsecret=TksqGZT7&unescape=1')
.then(response => response.json())
.then(data => {
$('#wea_text').text(data.wea)
$('#city_text').text(data.city)
$('#tem_night').text(data.tem_night)
$('#tem_day').text(data.tem_day)
$('#win_text').text(data.win)
$('#win_speed').text(data.win_speed)
$('#wea_text').html(data.wea)
$('#city_text').html(data.city)
$('#tem_night').html(data.tem_night)
$('#tem_day').html(data.tem_day)
$('#win_text').html(data.win)
$('#win_speed').html(data.win_speed)
})
.catch(console.error)

Expand Down

1 comment on commit 1ac1c05

@vercel
Copy link

@vercel vercel bot commented on 1ac1c05 Mar 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.