眼尖的同学应该看到了侧边栏的恋爱计时⏲今天就有一位小伙伴问我要代码,于是就在这里给分享一下。

源码下载地址:https://code.haiyong.site/334/

HTML

1
2
3
4
5
6
7
8
9
10
11
<div class="container">
<div class="row">
<div class="col-12 col-md-3 position-relative right d-none d-md-block">
<div class="sidebar-box couple"> <img class="pic" src="https://haiyong.site/img/avatar/jingluo.jpg" alt="博主"><img
class="couple-love" src="https://dyedd.cn/usr/themes/lanstar/assets/img/love.png" alt="爱心"> <img class="pic" src="https://haiyong.site/img/avatar/haiyong.jpg"
alt="另一半">
<div id="our-company" data-start="2016-11-26"></div>
</div>
</div>
</div>
</div>

CSS

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.icon {
width: 3em;
height: 3em;
vertical-align: middle;
fill: currentColor;
overflow: hidden;
}
@media screen and (max-width: 576px) {
.nav-search-btn {
right: 0!important;
}
}
.couple {
text-align: center;
}
.info .pic,.couple .pic {
border-radius: 50%;
width: 5rem;
background: #fff;
padding: 2px;
}
.couple-love {
width: 35px;
margin: 20px 0;
animation: heartbeat 1.33s ease-in-out infinite;
}

JS

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
eval(function (p, a, c, k, e, r) {
e = function (c) {
return c.toString(a)
};
if (!''.replace(/^/, String)) {
while (c--) r[e(c)] = k[c] || e(c);
k = [function (e) {
return r[e]
}];
e = function () {
return '\\w+'
};
c = 1
}
;
while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]);
return p
}('a.f(\' %c 9 1 %c b://d.e/8/1\',\'2:#3;4:#5;6:7 0\',\'2:#5;4:#3;6:7\');', 16, 16, '|lanstar|color|444|background|eee|padding|5px|dyedd|Theme|console|https||github|com|log'.split('|'), 0, {}));