-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
68 lines (46 loc) · 1.9 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import './style.css';
import $ from 'jquery';
import 'animate.css';
import darkMode from "./js/module/setting/darkMode.js";
import logoTop from "./js/module/header/logoTop.js";
import desktopNavBarFetch from "./js/module/header/desktopNavbarFetch.js";
import desktopNavbarSettings from "./js/module/header/desktopNavbarSettings.js";
import mobileNavbarFetch from './js/module/header/mobileNavbarFetch';
import mobileNavbarSettings from "./js/module/header/mobileNavbarSettings.js";
import blueIntroFetch from './js/module/posts/blueIntroFetch.js';
import paymentGateway from './js/module/posts/paymentGateway.js';
import postsFade from './js/module/setting/postsFade.js';
import zarinLink from './js/module/posts/zarin-link.js';
import zarinCard from './js/module/posts/zarin-card.js';
import payOut from './js/module/posts/pay-out.js';
import zarinPlus from './js/module/posts/zarin-plus.js';
import readMore from './js/module/posts/read-more.js';
import joinBox from './js/module/posts/join-box.js';
import support from './js/module/footer/support.js';
import footerMenu from './js/module/footer/footerMenu.js';
try {
$(window).on("load",()=>{
$('.pl').fadeOut(5000);
$("div#app").delay(4600).fadeIn(300)
});
window.$ = $;
darkMode.setting();
logoTop.fetchLogo();
await desktopNavBarFetch.fetchDeskNav();
desktopNavbarSettings.setting();
await mobileNavbarFetch.fetchMobileNav();
mobileNavbarSettings.setting();
await blueIntroFetch.fetchBlueIntro();
await paymentGateway.fetchPgPost();
await zarinLink.fetchZlPost();
await zarinCard.fetchZcPost();
await payOut.fetchPoPost();
await zarinPlus.fetchZpPost();
postsFade.fadePosts();
await readMore.fetchRMPost();
await joinBox.fetchJbPost();
await support.fetchSup();
await footerMenu.fetchFooterMenu();
} catch (error) {
throw error;
}