create-fesd-app 1.0.0-bate.92 → 1.0.0-bate.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -14,26 +14,28 @@ import { toBackend } from "@/commons/methods";
|
|
14
14
|
import { lazyLoadImg } from '@/plugins';
|
15
15
|
import { navbar } from '@/ui';
|
16
16
|
|
17
|
+
const firstEntryHandler = {}
|
18
|
+
|
17
19
|
// 進場
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
}
|
20
|
+
firstEntryHandler.saveState = () => {
|
21
|
+
// 進場動畫...
|
22
|
+
localStorage.setItem('firstEntry', true);
|
23
|
+
}
|
24
|
+
|
25
|
+
firstEntryHandler.active = () => {
|
26
|
+
$('.main-wrapper').addClass('show');
|
27
|
+
setTimeout(() => {
|
28
|
+
new Aost4('[data-aost]', {
|
29
|
+
start: 95,
|
30
|
+
});
|
31
|
+
}, 100);
|
32
|
+
}
|
33
|
+
|
34
|
+
firstEntryHandler.init = () => {
|
35
|
+
const firstEntry = localStorage.getItem('firstEntry');
|
36
|
+
if (!firstEntry) firstEntryHandler.saveState()
|
37
|
+
firstEntryHandler.active()
|
38
|
+
}
|
37
39
|
|
38
40
|
toBackend({ scrollLock, scrollUnlock });
|
39
41
|
|
@@ -49,7 +51,7 @@ export const inits = () => {
|
|
49
51
|
// uiInit
|
50
52
|
navbar.init();
|
51
53
|
// coding...
|
52
|
-
|
54
|
+
firstEntryHandler.init();
|
53
55
|
}
|
54
56
|
|
55
57
|
//Don't Move and Delete!!!
|
@@ -25,7 +25,7 @@ export function noContentCheck() {
|
|
25
25
|
const contentBox = $('[data-content]')
|
26
26
|
const noContentBox = $('[data-noContent]')
|
27
27
|
if (!val || !contentBox || !noContentBox) return
|
28
|
-
if (val === '
|
28
|
+
if (val.toLowerCase() === 'nocontent') {
|
29
29
|
contentBox.hide();
|
30
30
|
noContentBox.show();
|
31
31
|
}
|