-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathburdan kopyala.html
More file actions
96 lines (68 loc) · 3.52 KB
/
burdan kopyala.html
File metadata and controls
96 lines (68 loc) · 3.52 KB
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
<body bgcolor="#333"><center>
<style>
textarea{background-color:darkgray;border:2px solid black;outline:none;width:60%;margin-bottom:5px}
button{background-color:darkgray;border:2px solid black;outline:none;margin-bottom:-2px}
</style>
<script>
window.onload = function () {
var copyTextareaBtn = Array.prototype.slice.call(document.querySelectorAll('.jskopyalabuton'));
var copyTextarea = Array.prototype.slice.call(document.querySelectorAll('.jsicerik'));
copyTextareaBtn.forEach(function(btn, idx){
btn.addEventListener("click", function(){
copyTextarea[idx].select();
try {
var msg = document.execCommand('copy') ? 'başarılı' : 'başarısız';
alert('kopyalama ' + msg); // alert yerine console.log da yazılabilir
} catch (err) {
console.log('Whoops, unable to copy');
}});});}
</script>
<textarea class="jsicerik" rows="5"><style>
textarea{text-align:;outline:none;border:2px solid black;background-color:black;color:darkgreen;width:450px;height:150px}
</style></textarea><br>
<button class="jskopyalabuton">kopyala</button><br><hr>
<textarea class="jsicerik" rows="5"><style>
textarea{background-color:darkgray;border:2px solid black;outline:none;width:60%}
button{background-color:darkgray;border:2px solid black;outline:none;}
</style></textarea><br>
<button class="jskopyalabuton">kopyala</button><br><hr>
<textarea class="jsicerik" rows="5"><body bgcolor="#333"></textarea><br>
<button class="jskopyalabuton">kopyala</button><br><hr>
<textarea class="jsicerik" rows="5"><body bgcolor="#333"><center></textarea><br>
<button class="jskopyalabuton">kopyala</button><br><hr>
<textarea class="jsicerik" rows="5"><script>
</script></textarea><br>
<button class="jskopyalabuton">kopyala</button><br><hr>
<textarea class="jsicerik" rows="5"><style>
</style></textarea><br>
<button class="jskopyalabuton">kopyala</button><br><hr>
<textarea class="jsicerik" rows="5">textarea{background-color:darkgray;border:2px solid black;outline:none;width:;}</textarea><br>
<button class="jskopyalabuton">kopyala</button><br><hr>
<textarea class="jsicerik" rows="5"></textarea><br>
<button class="jskopyalabuton">kopyala</button><br><hr>
<textarea class="jsicerik" rows="5"><base target="_blank"></textarea><br>
<button class="jskopyalabuton">kopyala</button><br><hr>
<textarea class="jsicerik" rows="5"><meta charset="UTF-8"></textarea><br>
<button class="jskopyalabuton">kopyala</button><br><hr>
<textarea class="jsicerik" rows="5"></textarea><br>
<button class="jskopyalabuton">kopyala</button><br><hr>
<textarea class="jsicerik" rows="5"></textarea><br>
<button class="jskopyalabuton">kopyala</button><br><hr>
<textarea class="jsicerik" rows="5"></textarea><br>
<button class="jskopyalabuton">kopyala</button><br><hr>
<textarea class="jsicerik" rows="5"></textarea><br>
<button class="jskopyalabuton">kopyala</button><br><hr>
<textarea class="jsicerik" rows="5"></textarea><br>
<button class="jskopyalabuton">kopyala</button><br><hr>
<textarea class="jsicerik" rows="5"></textarea><br>
<button class="jskopyalabuton">kopyala</button><br><hr>
<textarea class="jsicerik" rows="5"></textarea><br>
<button class="jskopyalabuton">kopyala</button><br><hr>
<textarea class="jsicerik" rows="5"></textarea><br>
<button class="jskopyalabuton">kopyala</button><br><hr>
<textarea class="jsicerik" rows="5"></textarea><br>
<button class="jskopyalabuton">kopyala</button><br><hr>
<textarea class="jsicerik" rows="5"></textarea><br>
<button class="jskopyalabuton">kopyala</button><br><hr>
<textarea class="jsicerik" rows="5"></textarea><br>
<button class="jskopyalabuton">kopyala</button><br><hr>