-
Notifications
You must be signed in to change notification settings - Fork 0
/
power.js
102 lines (86 loc) · 2.54 KB
/
power.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
document.addEventListener('DOMContentLoaded', function() {
let var0 = document.querySelectorAll(".causalleavesallowed");
var0.forEach(function(column){
column.textContent = 12;
})
});
document.addEventListener('DOMContentLoaded', function(){
let var1=document.querySelectorAll(".medicalleavesallowed")
var1.forEach(function(column2){
column2.textContent=7
})
});
document.addEventListener('DOMContentLoaded', function(){
let var1=document.querySelectorAll(".earnedleavebalance")
var1.forEach(function(column2){
column2.textContent=10
})
});
document.addEventListener('DOMContentLoaded', function(){
let var1=document.querySelectorAll(".earnedleaveallowed")
var1.forEach(function(column2){
column2.textContent=10
})
});
document.addEventListener('DOMContentLoaded', function(){
let var1=document.querySelectorAll(".status")
var1.forEach(function(column2){
column2.textContent="confirm";
})
});
document.addEventListener('DOMContentLoaded', function(){
let var1=document.querySelectorAll(".casualleavesavailed")
var1.forEach(function(column2){
column2.textContent=0;
})
});
document.addEventListener('DOMContentLoaded', function(){
let var1=document.querySelectorAll(".medicalleavesavailed")
var1.forEach(function(column2){
column2.textContent=0;
})
});
// Get the screen width
var screenWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
// Log the screen width to the console
console.log("Screen Width: " + screenWidth + " pixels");
// class Person{
// constructor(name = "Tom", age = 20, energy = 100) {
// this.name = name;
// this.age = age;
// this.energy = energy;
// }
// sleep() {
// this.energy += 10
// }
// doSomethingFun() {
// this.energy -= 10
// }
// }
// // Task 2: Code a Worker class
// class Worker extends Person{
// constructor(xp = 0, hourlyWage = 10, name="raja", age=17, energy=18) {
// super(name, age, energy)
// this.xp = xp;
// this.hourlyWage=hourlyWage
// }
// }
// var ww=new Worker()
// console.log(ww.xp);
// console.log(ww.hourlyWage);
// console.log(ww.name);
// console.log(ww.age);
// console.log(ww.energy);
// Task 1: Code a Person class
// class Person{
// sleep() {
// console.log("sleep")
// }
// doSomethingFun() {
// console.log("Fun")
// }
// }
// let tt= new Person();
// tt.sleep();
// tt. doSomethingFun()
// ;