-
Notifications
You must be signed in to change notification settings - Fork 0
/
news.js
161 lines (125 loc) · 4.01 KB
/
news.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
/* split screen code*/
let slideIndex = 1;
showSlides(slideIndex);
function plusSlides(n) {
showSlides(slideIndex += n);
}
function currentSlide(n) {
showSlides(slideIndex = n);
}
function showSlides(n) {
let i;
let slides = document.getElementsByClassName("mySlides");
let dots = document.getElementsByClassName("dot");
if (n > slides.length) {slideIndex = 1}
if (n < 1) {slideIndex = slides.length}
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
for (i = 0; i < dots.length; i++) {
dots[i].className = dots[i].className.replace(" active", "");
}
slides[slideIndex-1].style.display = "block";
dots[slideIndex-1].className += " active";
}
/*******************row1 video part*********************** */
document.querySelector(".row2").addEventListener("click",videoplay)
function videoplay(){
console.log(" Hi Ramya Priya")
window.location="playing.html"
}
document.querySelector(".r1v2").addEventListener("click",videoplay2)
function videoplay2(){
console.log(" Hi Ramya Priya")
window.location="playing.html"
}
document.querySelector(".r1v3").addEventListener("click",videoplay3)
function videoplay3(){
console.log(" Hi Ramya Priya")
window.location="playing.html"
}
document.querySelector(".r1v4").addEventListener("click",videoplay4)
function videoplay4(){
console.log(" Hi Ramya Priya")
window.location="playing.html"
}
document.querySelector(".r1v5").addEventListener("click",videoplay5)
function videoplay5(){
console.log(" Hi Ramya Priya")
window.location="playing.html"
}
document.querySelector(".r2v1").addEventListener("click",videoplay6)
function videoplay6(){
console.log(" Hi Ramya Priya")
window.location="playing.html"
}
document.querySelector(".r2v2").addEventListener("click",videoplay7)
function videoplay7(){
console.log(" Hi Ramya Priya")
window.location="playing.html"
}
document.querySelector(".r2v3").addEventListener("click",videoplay8)
function videoplay8(){
console.log(" Hi Ramya Priya")
window.location="playing.html"
}
document.querySelector(".r2v4").addEventListener("click",videoplay9)
function videoplay9(){
console.log(" Hi Ramya Priya")
window.location="playing.html"
}
document.querySelector(".r2v5").addEventListener("click",videoplay10)
function videoplay10(){
console.log(" Hi Ramya Priya")
window.location="playing.html"
}
document.querySelector(".r3v1").addEventListener("click",videoplay11)
function videoplay11(){
console.log(" Hi Ramya Priya")
window.location="playing.html"
}
document.querySelector(".r3v2").addEventListener("click",videoplay12)
function videoplay12(){
console.log(" Hi Ramya Priya")
window.location="playing.html"
}
document.querySelector(".r3v3").addEventListener("click",videoplay13)
function videoplay13(){
console.log(" Hi Ramya Priya")
window.location="playing.html"
}
document.querySelector(".r3v4").addEventListener("click",videoplay14)
function videoplay14(){
console.log(" Hi Ramya Priya")
window.location="playing.html"
}
document.querySelector(".r3v5").addEventListener("click",videoplay15)
function videoplay15(){
console.log(" Hi Ramya Priya")
window.location="playing.html"
}
document.querySelector(".r4v1").addEventListener("click",videoplay16)
function videoplay16(){
console.log(" Hi Ramya Priya")
window.location="playing.html"
}
document.querySelector(".r4v2").addEventListener("click",videoplay17)
function videoplay17(){
console.log(" Hi Ramya Priya")
window.location="playing.html"
}
document.querySelector(".r4v3").addEventListener("click",videoplay18)
function videoplay18(){
console.log(" Hi Ramya Priya")
window.location="playing.html"
}
document.querySelector(".r4v4").addEventListener("click",videoplay19)
function videoplay19(){
console.log(" Hi Ramya Priya")
window.location="playing.html"
}
document.querySelector(".r4v5").addEventListener("click",videoplay20)
function videoplay20(){
console.log(" Hi Ramya Priya")
window.location="playing.html"
}