Skip to content

Commit

Permalink
summer vacation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kicamon committed Jul 4, 2024
1 parent 5286ffe commit 245f112
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/story.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ let $timeline = $(".timeline");
let Timeline = function() {
// 使用同步加载
let data = $.parseJSON($.ajax({
url: "../static/img-story/timeline.json",
url: "https://raw.githubusercontent.com/Kicamon/Kicamon.github.io/main/static/img-story/timeline.json",
dataType: "json",
async: false
}).responseText);
$.each(data, function(_, item) {
$timeline.append(`
<div class="item" data-text="《执子之手,与子偕老》">
<div class="content">
<img src="../static/img-story/${item.img}" alt="" class="img">
<img src="https://raw.githubusercontent.com/Kicamon/Kicamon.github.io/main/static/img-story/${item.img}" alt="" class="img">
<h2 class="content-title">${item.time}</h2>
<p class="content-desc">${item.text}</p>
</div>
Expand Down
Binary file added static/img-story/12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img-story/13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img-story/14.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img-story/15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions static/img-story/timeline.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,25 @@
"img": "11.jpg",
"time": "2024.06.01",
"text": "我们是永远的彼此~"
},
{
"img": "12.png",
"time": "2024.06.30",
"text": "第一次去衡阳找允宝"
},
{
"img": "13.png",
"time": "2024.07.01",
"text": "我们一起星露谷~"
},
{
"img": "14.jpg",
"time": "2024.07.04",
"text": "头脑特工队2,好看~3D眼镜有点贵"
},
{
"img": "15.png",
"time": "2024.07.04",
"text": "回家了~舍不得允宝qwq"
}
]

0 comments on commit 245f112

Please sign in to comment.