-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcuzinhoje.html
133 lines (126 loc) · 6.2 KB
/
cuzinhoje.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
<!DOCTYPE html>
<html>
<head>
<title>Cuzinho hoje???</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<style>html, body{height: 100%;}</style>
<script src="https://www.polisoftware.com.br/polisoftware/resources/dhtmlxsuite/7.3.13/codebase/suite.min.js?v=3.3.0"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.dhtmlx.com/suite/pro/edge/suite.css?a1683809163633"/>
</head>
<body style="height: 100%; margin: 0;">
<!-- component container -->
<div id="form" style="background-color: red!important;"></div>
<!-- styles for custom buttons -->
<style>
#form div, body {
background-color: red!important;
color: white!important;
}
.dhx_label, .dhx_input--textinput {
color: white!important;
}
</style>
<script>
const form = new dhx.Form("form", {
css: "dhx_widget--bordered",
padding: 40,
width: document.body.offsetWidth,
height: document.body.offsetHeight - 50,
rows: [
{
type: "spacer",
},
{
align: "center",
cols: [
{
type: "spacer",
},
{
align: "center",
name: "text",
type: "text",
label: "CUZINHO HOJE??? 🤩",
labelPosition: "top",
value: "Pfvzinho 🙏🏽🙏🏽🙏🏽",
},
{
type: "spacer",
}
]
},
{
type: "spacer",
},
{
align: "center",
cols: [
{
type: "spacer",
},
{
id: "buttonYes",
name: "buttonYes",
type: "button",
submit: false,
text: "Oh Yeah! 😍",
size: "medium",
view: "flat",
color: "primary"
},
{
type: "spacer",
},
{
id: "buttonNo",
name: "button2",
type: "button",
submit: true,
text: "Nããão!😭",
size: "medium",
view: "flat",
color: "primary"
},
{
type: "spacer",
}
]
},
{
type: "spacer",
},
{
type: "spacer",
}
]
});
form.events.on('click', function (id) {
if (id === 'buttonYes') {
var url = "https://www.youtube.com/watch?v=orWnzqBA63w";
window.open(url,'_blank');
}
});
dhx.awaitRedraw().then(function () {
const button1 = document.getElementById('buttonYes');
const button2 = document.getElementById('buttonNo');
button2.addEventListener('mouseover', function () {
const { width, height } = getPositions();
button2.style.position = 'fixed';
button2.style.left = width;
button2.style.top = height;
button2.style.zIndex = 100;
}, false);
});
function getPositions() {
var doc = document,
body = doc.getElementsByTagName('body')[0],
x = body.offsetWidth - 87,
y = body.offsetHeight - 32;
return {
width: Math.round(Math.random() * x) + 'px',
height: Math.round(Math.random() * y) + 'px'
};
}
</script>
</body>
</html>