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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-fesd-app",
3
- "version": "1.0.0-bate.92",
3
+ "version": "1.0.0-bate.94",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -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
- const firstEntry = {
19
- init() {
20
- const firstEntry = localStorage.getItem('firstEntry');
21
- if (!firstEntry) this.saveState()
22
- this.active()
23
- },
24
- saveState() {
25
- // 進場動畫...
26
- localStorage.setItem('firstEntry', true);
27
- },
28
- active() {
29
- $('.main-wrapper').addClass('show');
30
- setTimeout(() => {
31
- new Aost4('[data-aost]', {
32
- start: 95,
33
- });
34
- }, 100);
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
- firstEntry.init();
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 === 'noContent') {
28
+ if (val.toLowerCase() === 'nocontent') {
29
29
  contentBox.hide();
30
30
  noContentBox.show();
31
31
  }