-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
80 lines (72 loc) · 2.17 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
69
70
71
72
73
74
75
76
77
78
79
80
// Hero
document.addEventListener("DOMContentLoaded", function (event) {
let strong = document.querySelectorAll(".hero strong");
strong.forEach((item) => {
item.classList.add("text-shifter-purple-primary");
});
});
// Features
document.addEventListener("DOMContentLoaded", function (event) {
let link = document.querySelectorAll(".features .elementor-post__card a");
link.forEach((item) => {
item.removeAttribute("href");
});
});
// Showcase
document.addEventListener("DOMContentLoaded", function (event) {
let link = document.querySelectorAll(".showcase .elementor-post a");
link.forEach((item) => {
item.removeAttribute("href");
var e = item;
var d = document.createElement("span");
d.innerHTML = e.innerHTML;
e.parentNode.replaceChild(d, e);
});
});
// Post Info
document.addEventListener("DOMContentLoaded", function (event) {
let link = document.querySelectorAll(".elementor-post-info a");
link.forEach((item) => {
item.removeAttribute("href");
var e = item;
var d = document.createElement("span");
d.innerHTML = e.innerHTML;
e.parentNode.replaceChild(d, e);
});
});
// Team
document.addEventListener("DOMContentLoaded", function (event) {
let link = document.querySelectorAll(".team .elementor-post a");
link.forEach((item) => {
item.removeAttribute("href");
});
});
// Post Tags
document.addEventListener("DOMContentLoaded", function (event) {
const link = document.querySelectorAll(".post-tags a");
link.forEach((item) => {
// Remove links
item.removeAttribute("href");
var e = item;
var d = document.createElement("span");
d.innerHTML = e.innerHTML;
e.parentNode.replaceChild(d, e);
});
// Add classes
const tag = document.querySelectorAll(".post-tags");
tag.forEach((item) => {
item.classList.add(
"font-weight-strong",
"font-size-4",
"text-shifter-gray-500",
"text-transform-lowercase"
);
});
});
// Post Navigation
document.addEventListener("DOMContentLoaded", function (event) {
let nav = document.querySelectorAll(".elementor-post-navigation");
nav.forEach((item) => {
item.classList.add("font-weight-strong", "font-size-6");
});
});