-
Notifications
You must be signed in to change notification settings - Fork 0
/
index2.html
executable file
·68 lines (62 loc) · 2.32 KB
/
index2.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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<title>TEXTOS OUTACK - CONTATO</title>
<link rel="stylesheet" href="example.css">
<link rel="icon" type="image/png" href="favicon.ico" />
</head>
<body>
<h1 id="logo"><img src="./path33.png" width="200px" alt=""></h1>
<div id="peter">Project by <a target="_blank" href="https://peterson047.github.io/portfolio/">Peterson Alves</a></div>
<div id="menu">
<ul>
<li><a href="index.html">Principal</a></li>
<li><a href="index2.html">Contato iFood</a></li>
<li><a href="index3.html">Outros</a></li>
<li><a href="form.html">Abrir Ticket</a></li>
</ul>
</div>
<div class="container">
<h2 class="subtitulo" id="basic-text">Solicitar Motoboy</h2>
<textarea disabled class="code half">Olá, me chamo XXXXX. Preciso de um novo motoboy para o pedido XXXX.
</textarea>
<div class="half">
<button data-test="init-basic-text">Copiar Texto</button>
</div>
</div>
<hr>
<div class="container">
<h2 class="subtitulo" id="multiline-text">Pedir segundo Motoboy</h2>
<textarea disabled class="code half">
Olá, me chamo XXXXX. Preciso de mais um motoboy para o pedido XXXX.
Tenho muitos volumes e um só motoboy não consegue levar todo o pedido.
</textarea>
<div class="half">
<button data-test="init-multiline-text">Copiar Texto</button>
</div>
</div>
<hr>
<script src="./index.js"></script>
<script>
document.querySelector('#basic-text ~ .half button')
.addEventListener('click', function () {
copyToClipboard("Olá, me chamo XXXXX. Preciso de um novo motoboy para o pedido XXXX.")
});
(function () {
var multilineContainer = document.querySelector('#multiline-text + textarea');
document.querySelector('#multiline-text ~ .half button')
.addEventListener('click', function () {
copyToClipboard(multilineContainer.textContent)
})
})();
(function () {
var markupContainer = document.querySelector('#multiline-markup + textarea');
document.querySelector('#multiline-markup ~ .half button')
.addEventListener('click', function () {
copyToClipboard(markupContainer.textContent)
})
})();
</script>
</body>
</html>