transition from javascript to typescript

This commit is contained in:
Spedon
2023-03-14 01:01:23 +08:00
parent b05c475841
commit 211e2fd4fb
9 changed files with 343 additions and 236 deletions

13
assets/ts/main.ts Normal file
View File

@@ -0,0 +1,13 @@
import { footerHeightUpdateInit } from './utils'
import { imgIndexSpanUpdate } from './indexDisp'
import { imagesArrayLen, trackMouseInit } from './trackMouse'
import { thresholdCtlInit } from './thresholdCtl'
function init(): void {
footerHeightUpdateInit()
imgIndexSpanUpdate(0, imagesArrayLen)
thresholdCtlInit()
trackMouseInit()
}
init()