mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-21 13:39:30 -07:00
debugging
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { createDesktopElements } from './elemGen'
|
import { createDesktopElements, createMobileElements } from './elemGen'
|
||||||
import { imgIndexSpanUpdate } from './indexDisp'
|
import { imgIndexSpanUpdate } from './indexDisp'
|
||||||
import { trackMouseInit } from './desktop'
|
import { trackMouseInit } from './desktop'
|
||||||
import { thresholdCtlInit } from './thresholdCtl'
|
import { thresholdCtlInit } from './thresholdCtl'
|
||||||
@@ -6,6 +6,7 @@ import { imagesArrayLen } from './dataFetch'
|
|||||||
import { vwRefreshInit } from './overlay'
|
import { vwRefreshInit } from './overlay'
|
||||||
import { preloader } from './imageCache'
|
import { preloader } from './imageCache'
|
||||||
import { getDeviceType } from './utils'
|
import { getDeviceType } from './utils'
|
||||||
|
import { renderImages } from './mobile'
|
||||||
|
|
||||||
const desktopInit = (): void => {
|
const desktopInit = (): void => {
|
||||||
createDesktopElements()
|
createDesktopElements()
|
||||||
@@ -17,7 +18,11 @@ const desktopInit = (): void => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const mobileInit = (): void => {
|
const mobileInit = (): void => {
|
||||||
|
createMobileElements()
|
||||||
|
vwRefreshInit()
|
||||||
|
imgIndexSpanUpdate(0, imagesArrayLen)
|
||||||
|
renderImages()
|
||||||
console.log('mobile')
|
console.log('mobile')
|
||||||
}
|
}
|
||||||
|
|
||||||
getDeviceType().mobile ? mobileInit() : desktopInit()
|
getDeviceType().desktop ? mobileInit() : desktopInit()
|
||||||
|
|||||||
Reference in New Issue
Block a user