-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex2.html
170 lines (137 loc) · 6.76 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
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:site_name" content="O GUARANI VOLTOU!">
<meta property="og:title" content="Mesa Tática do GUARANI FC">
<meta property="og:description" content="Mesa Tática para aprimoramento esportivo do Guarani Futebol Clube">
<meta property="og:image" itemprop="image" content="http://oguaranivoltou.a0001.net/images/guarani22.svg">
<meta property="og:type" content="website">
<title>Mesa Tática do GUARANI FC</title>
<link rel="shortcut icon" href="images/guarani22.ico" width=32px>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;800&display=swap" rel="stylesheet">
<!-- css styles -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" hrxef="css/all.min.css">
<link media="all" rel="stylesheet" href="css/style.css">
</head>
<body>
<header>
<div class="wrapper">
<section style="background-image: url('images/bg-01.jpg')">
<article>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 48" onload="makeDraggable(evt)">
<style>
.background {
fill: #137718;
}
.static {
cursor: not-allowed;
}
.draggable {
cursor: move;
}
</style>
<script type="text/javascript">
function makeDraggable(evt) {
var svg = evt.target;
svg.addEventListener('mousedown', startDrag, false);
svg.addEventListener('mousemove', drag, false);
svg.addEventListener('mouseup', endDrag, false);
svg.addEventListener('mouseleave', endDrag);
function getMousePosition(evt) {
var CTM = svg.getScreenCTM();
return {
x: (evt.clientX - CTM.e) / CTM.a,
y: (evt.clientY - CTM.f) / CTM.d
};
}
var selectedElement, offset, transform;
function startDrag(evt) {
if (evt.target.classList.contains('draggable')) {
selectedElement = evt.target;
offset = getMousePosition(evt);
// Make sure the first transform on the element is a translate transform
var transforms = selectedElement.transform.baseVal;
if (transforms.length === 0 || transforms.getItem(0).type !== SVGTransform.SVG_TRANSFORM_TRANSLATE) {
// Create an transform that translates by (0, 0)
var translate = svg.createSVGTransform();
translate.setTranslate(0, 0);
selectedElement.transform.baseVal.insertItemBefore(translate, 0);
}
// Get initial translation
transform = transforms.getItem(0);
offset.x -= transform.matrix.e;
offset.y -= transform.matrix.f;
}
}
function drag(evt) {
if (selectedElement) {
evt.preventDefault();
var coord = getMousePosition(evt);
transform.setTranslate(coord.x - offset.x, coord.y - offset.y);
}
}
function endDrag(evt) {
selectedElement = false;
}
}
</script>
<rect class="background" x="0" y="0" width="320" height="480"></rect>
<rect class="static" fill="#888" x="2" y="4" width="6" height="2"></rect>
<rect class="draggable" fill="#007bff" x="2" y="4" width="6" height="2" transform="translate(0.298693 -2.68824) rotate(90 5 5) translate(10 0)"></rect>
<ellipse class="draggable" fill="#ff00af" cx="5" cy="5" rx="3" ry="2" transform="translate(8.10828 0.497822)"></ellipse>
<polygon class="draggable" fill="#ffa500" transform="translate(0.497822 -2.68824) rotate(15 15 15)" points="16.9 15.6 17.4 18.2 15 17 12.6 18.2 13.1 15.6 11.2 13.8 13.8 13.4 15 11 16.2 13.4 18.8 13.8"></polygon>
<path class="draggable" stroke="#2bad7b" stroke-width="0.5" fill="none" d="M1 5C5 1 5 9 9 5" transform="translate(20)"></path>
<text class="draggable" x="25" y="15" text-anchor="middle" font-size="3px" alignment-baseline="middle" transform="translate(-6.96951 -0.597386)">Drag</text>
</svg>
</article>
</section>
</div>
</header>
<section style="background-image: url('images/bg-01.jpg')">
<div id="container">
<button type="button">Gols p/ Colecionadores</button><br><br><br>
</div>
</section>
<!-- Footer. -->
<footer class="bg-dark text-center text-white"><br><br>
<!-- Grid container -->
<div class="container p-4 pb-0">
<!-- Section: Social media -->
<section class="mb-4">
<!-- Facebook -->
<a class="btn btn-outline-light btn-floating m-1" href="#" role="button"><i
class="fab fa-facebook-f"></i></a>
<!-- Twitter -->
<a class="btn btn-outline-light btn-floating m-1" href="http://twitter.com/oficialguarani" role="button"><i
class="fab fa-twitter"></i></a>
<!-- Google -->
<a class="btn btn-outline-light btn-floating m-1" href="mailto: [email protected]" role="button"><i
class="fab fa-google"></i></a>
<!-- Instagram -->
<a class="btn btn-outline-light btn-floating m-1" href="http://intagram.com/ritc.ardo" role="button"><i
class="fab fa-instagram"></i></a>
</section>
<!-- Section: Social media -->
</div>
<!-- Grid container -->
<!-- Copyright -->
<div class="text-center p-3 text-muted mt-auto" style="background-color: rgba(0, 0, 0, 0.2);">
© 2022 Copyright: RIRO Biolabs LLC Procuction
</div>
</footer>
<!-- Footer -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://code.jquery.com/jquery-3.6.0.slim.min.js"
integrity="sha256-u7e5khyithlIdTpu22PHhENmPcRdFiHRjhAuHcs05RI=" crossorigin="anonymous"></script>
<script src="js/script.js"></script>
<script src="js/jquery-3.5.1.min.js"></script>
<script src="js/bootstrap.bundle.min.js"></script>
<script src="js/all.min.js"></script>
<script src="js/iscroll-probe.js"></script>
<script src="js/fixed-background.js"></script>
</body>
</html>