120 Commits

Author SHA1 Message Date
Spedon
19e89db88a change function style to const 2023-03-16 20:18:11 +08:00
Spedon
27d4cb0277 create mobile.ts 2023-03-16 00:07:42 +08:00
Spedon
9b5b5a758a get device type 2023-03-16 00:07:23 +08:00
Spedon
4d6f75d50f rename import 2023-03-16 00:07:09 +08:00
Spedon
87b4453e64 rename 2023-03-16 00:06:21 +08:00
Spedon
81477f0ed8 add lazyload background 2023-03-14 23:31:20 +08:00
Spedon
37d62f85fb add image cache function 2023-03-14 23:31:02 +08:00
Spedon
6cc03a3fc9 add time delay to overlay enable 2023-03-14 13:16:12 +08:00
Spedon
533ab5fb35 add the function of clicking prev and next to control displaying image 2023-03-14 12:00:48 +08:00
Spedon
72760e6388 make the return value of the calcImageIndex function more robust 2023-03-14 11:16:11 +08:00
Spedon
8aa97b2c06 now img index calculation is a standalone function in utils.ts 2023-03-14 11:05:41 +08:00
Spedon
438256a683 The old way of using layers is discarded 2023-03-14 02:08:01 +08:00
Spedon
9a7281f6da now creation of image element can be achieved by createImgElement function in utils.ts 2023-03-14 02:02:56 +08:00
Spedon
38d1a8ab38 move all interfaces to utils.ts 2023-03-14 01:57:56 +08:00
Spedon
dc32f66f2c modify the comment 2023-03-14 01:53:19 +08:00
Spedon
f1820a851c add comments to the code 2023-03-14 01:49:35 +08:00
Spedon
c8e6ab505b move footerUpdate function to overlay.ts and combine it with recenter function 2023-03-14 01:31:35 +08:00
Spedon
f3d3efb4ff move json data fetching to a standalone module 2023-03-14 01:19:01 +08:00
Spedon
1785e1e7ce [bug fix] close text still show after closing the overlay section 2023-03-14 01:10:11 +08:00
Spedon
211e2fd4fb transition from javascript to typescript 2023-03-14 01:01:23 +08:00