-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.html
119 lines (98 loc) · 3.7 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>To-Do Lists</title>
<link rel="stylesheet" href="https://unpkg.com/mouse-follower@1/dist/mouse-follower.min.css">
<script src="https://unpkg.com/mouse-follower@1/dist/mouse-follower.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.10.4/gsap.min.js"></script>
<script src="https://unpkg.com/mouse-follower@1/dist/mouse-follower.min.js"></script>
<link rel="stylesheet" href="./sheryCss.css" />
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
<button class="dark-button" onclick="darkfuncation()"><i class="fa-solid fa-lightbulb fa-lg" style="color: #ff1100;"></i></button>
<!-- java script -->
<script>
function darkfuncation(){
let element=document.body;
element.classList.toggle("dark-mode");
}
</script>
<section class="container magnet-target">
<div class="heading">
<img class="heading__img magnet-target " src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/756881/laptop.svg">
<h1 class="heading__title magnet-target h1"> My To-Do List</h1>
</div>
<form class="form" onsubmit="event.preventDefault()">
<div>
<div class="todoContainer">
<label class="form__label" for="todo">~My Tasks ~</label>
<input class="form__input " type="text" id="userInputBox" name="to-do" size="30"
placeholder="Enter your task here.." type="text" name="userInput" id="userInputBox">
<button class="aadButton button magnet-target" id="insertButton" type="button">Create Task</button>
</div>
</div>
</form>
<div class="lists magnet-target">
</div>
<div class="lists">
</div>
<div>
<ul class="toDoList">
</ul>
</div>
</section>
<script src="./localCDN/gsap.js"></script>
<script src="./localCDN/scrollTrigger.js"></script>
<script src="./localCDN/threejs.js"></script>
<script src="./localCDN/controlKit.js"></script>
<script
type="text/javascript"
src="./localCDN/sheryJs.js"
></script>
<script>
const cursor = new MouseFollower({
el: null,
container: document.body,
className: 'mf-cursor',
innerClassName: 'mf-cursor-inner',
textClassName: 'mf-cursor-text',
mediaClassName: 'mf-cursor-media',
mediaBoxClassName: 'mf-cursor-media-box',
iconSvgClassName: 'mf-svgsprite',
iconSvgNamePrefix: '-',
iconSvgSrc: '',
dataAttr: 'cursor',
hiddenState: '-hidden',
textState: '-text',
iconState: '-icon',
activeState: '-active',
mediaState: '-media',
stateDetection: {
'-pointer': 'a,button',
'-hidden': 'iframe'
},
visible: true,
visibleOnState: false,
speed: 0.96,
ease: 'expo.out',
overwrite: true,
skewing: 0,
skewingText: 2,
skewingIcon: 2,
skewingMedia: 2,
skewingDelta: 0.001,
skewingDeltaMax: 0.15,
stickDelta: 0.15,
showTimeout: 20,
hideOnLeave: true,
hideTimeout: 300,
hideMediaTimeout: 300
});
</script>
<script src="./app.js"></script>
</body>
</html>