-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
125 lines (102 loc) · 2.43 KB
/
script.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
var height = 100;
let Int;
let check = 0;
let check2 = 0;
function Change_Bg()
{
if(check2 == 0)
{
Int = setInterval(Inc_Height,4);
var el = document.getElementsByClassName("bg");
el[0].style.backgroundImage = "url('./styles/Thumbnails/milky-way-2.jpg')";
check = 1;
check2 = 1;
}
}
function Change_Bg_2()
{
if (check == 1)
{
Int = setTimeout(a, 300);
}
}
function a()
{
var el = document.getElementsByClassName("bg");
el[0].style.backgroundImage = "url('./styles/Thumbnails/milky-way-5.jpg')";
check = 2;
}
function Change_Bg_3()
{
if (check == 2)
{
Int = setTimeout(b, 300);
Int = setInterval(Dec_Height,4);
var el2 = document.getElementsByClassName("mid");
}
}
function b()
{
var el = document.getElementsByClassName("bg");
el[0].style.backgroundImage = "url('./styles/Thumbnails/milky-way-4.jpg')";
el[0].style.backgroundSize = "";
}
function Inc_Height()
{
if (height < 1000)
{
height = height + 5;
let str = height.toString();
str = str.concat("","px");
var element = document.getElementById("BG");
element.style.height = str;
}
else
{
clearInterval(Int)
}
}
function Dec_Height()
{
if (height > 50)
{
height = height - 5;
let str = height.toString();
str = str.concat("","px");
var element = document.getElementById("BG");
element.style.height = str;
}
else
{
check = 3;
clearInterval(Int)
}
}
function About_Call()
{
document.getElementsByClassName("mid-txt")[0].scrollIntoView({behavior: 'smooth'});
}
function Skill_Call()
{
document.getElementsByClassName("mid-txt-low")[0].scrollIntoView({behavior: 'smooth'});
}
function Contact_Call()
{
document.getElementsByClassName("contact-head")[0].scrollIntoView({behavior: 'smooth'});
}
function Insta_Call()
{
location.href = "https://www.instagram.com/dark_o_ether/";
}
function Github_Call()
{
location.href = "https://github.com/Tasmay-Tibrewal";
}
function LinkedIn_Call()
{
location.href = "https://www.linkedin.com/in/tasmay-tibrewal/";
}
function Facebook_Call()
{
location.href = "https://www.facebook.com/profile.php?id=100087979943376";
}