-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
68 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
function loadTimeLine() { | ||
|
||
$.getJSON('../../JSON/LAYOUT/home_timeline.json', function(data) { | ||
|
||
LenData = data.length; | ||
for(var items = 0; items < LenData; items++) { | ||
let item = data[items]['img']; | ||
let item_src = './MATERIALS/' + item + '.avif'; | ||
let item_area_id = "area_" + item.replace("-", "_"); | ||
let item_time = item.substring(0, 4) + "." + item.substring(4, 6) + "." + item.substring(6, 8); | ||
let item_lang_obj = "_t" + item.replace("-", "_") + "_"; | ||
|
||
$('#main_timeline').html( | ||
$('#main_timeline').html() | ||
+ '<div id="' + item_area_id + '">' | ||
+ '<img src="' + item_src + '" alt="">' | ||
+ '<p class="p_time">' + item_time + '</p>' | ||
+ '<p class="_switch_lang_ p_descript" lang_obj="' + item_lang_obj + '"></p>' | ||
+ '</div>' | ||
) | ||
} | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"zh" : [{ | ||
"_t20000806_01_": "我出生啦!!!", | ||
"_t20200901_01_": "入学北京理工大学.", | ||
"_t20240630_01_": "在北京理工大学获得数据科学与大数据技术学士学位." | ||
}], | ||
|
||
"en" : [{ | ||
"_t20000806_01_": "I was BORN!", | ||
"_t20200901_01_": "Admission to Beijing Institute of Technology.", | ||
"_t20240630_01_": "Received a bachelor's degree in Data Science and Big Data Technology from Beijing Institute of Technology." | ||
}] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[{ | ||
"img": "20000806-01" | ||
}, | ||
{ | ||
"img": "20200901-01" | ||
}, | ||
{ | ||
"img": "20240630-01" | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
from PIL import Image | ||
import pillow_avif | ||
|
||
JPGimg = Image.open('home-background' + '.jpg') | ||
JPGimg.save('home-background' + '.AVIF','AVIF', exif=None) | ||
JPGimg = Image.open('20200901-01' + '.jpg') | ||
JPGimg.save('20200901-01' + '.avif','AVIF', exif=None) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters