-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
71 lines (49 loc) · 2.06 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
<!DOCTYPE html>
<html>
<head>
<title> hand writing</title>
<link rel="stylesheet" href="index.css">
<script src="audio.js"></script>
<link rel = "icon" href ="mySchoolLogo.png" type = "image/x-icon">
</head>
<body class="body">
<div class="head">
<h1 class="h1"> 😊Start Writing 😊</h1>
<h2 class="h2"> ✊Best of luck👍</h2>
<audio controls autoplay loop class="myaudio">
<source src="audio.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</div>
<h2 class="wbox" id="writing" contenteditable="true" >Start writting here</h2>
<button id="button" onclick="copyElementText('writing')"></button>
<div class="samiCopyright"> <i>This website was developed by Aajamn Sami, therefore, every copyright belongs to him</i></div>
<script>
function copyElementText(id) {
var text = document.getElementById(id).innerText;
var elem = document.createElement("textarea");
document.body.appendChild(elem);
elem.value = text;
elem.select();
document.execCommand("copy");
document.body.removeChild(elem);
$(function() {
$( "#button" ).click(function() {
$( "#button" ).addClass( "onclic", 250, validate);
});
function validate() {
setTimeout(function() {
$( "#button" ).removeClass( "onclic" );
$( "#button" ).addClass( "validate", 450, callback );
}, 2250 );
}
function callback() {
setTimeout(function() {
$( "#button" ).removeClass( "validate" );
}, 1250 );
}
});
}
</script>
</body>
</html>