mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-14 10:09:31 -07:00
24 lines
651 B
TypeScript
24 lines
651 B
TypeScript
import { createDesktopElements } from './elemGen'
|
|
import { imgIndexSpanUpdate } from './indexDisp'
|
|
import { trackMouseInit } from './desktop'
|
|
import { thresholdCtlInit } from './thresholdCtl'
|
|
import { imagesArrayLen } from './dataFetch'
|
|
import { vwRefreshInit } from './overlay'
|
|
import { preloader } from './imageCache'
|
|
import { getDeviceType } from './utils'
|
|
|
|
const desktopInit = (): void => {
|
|
createDesktopElements()
|
|
preloader(0)
|
|
vwRefreshInit()
|
|
imgIndexSpanUpdate(0, imagesArrayLen)
|
|
thresholdCtlInit()
|
|
trackMouseInit()
|
|
}
|
|
|
|
const mobileInit = (): void => {
|
|
console.log('mobile')
|
|
}
|
|
|
|
getDeviceType().mobile ? mobileInit() : desktopInit()
|