-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex-old.html
214 lines (192 loc) · 5.51 KB
/
index-old.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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<!doctype html>
<html>
<head>
<title>PythonMonkey - JavaScript meets Python</title>
<meta charset="utf-8">
<meta name="description" content="PythonMonkey allows Python developers to use complex JavaScript libraries without awkward syntax or performance penalties.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:title" content="PythonMonkey - JavaScript meets Python">
<meta property="og:description" content="PythonMonkey allows Python developers to use complex JavaScript libraries without awkward syntax or performance penalties.">
<meta property="og:image" content="https://pythonmonkey.io/images/pythonmonkey-site-preview.png">
<meta property="og:url" content="https://pythonmonkey.io/">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="PythonMonkey - JavaScript meets Python">
<meta name="twitter:description" content="PythonMonkey allows Python developers to use complex JavaScript libraries without awkward syntax or performance penalties.">
<meta name="twitter:image" content="https://pythonmonkey.io/images/pythonmonkey-site-preview.png">
<style>
HTML
{
width: 100%;
height: 100%;
}
BODY
{
position: static;
background-color: #1a1d21;
background-image: url(./pythonmonkey-full-reverse.png);
background-size: 80% auto;
background-repeat: no-repeat;
background-position: center;
height: 100%;
width: 100%;
overflow: hidden;
text-align: center;
font-family: arial, helvetica, sans-serif;
color: #c4c5c6;
line-height: 1.5em;
}
BODY[gdpr-query=complete]
{
cursor: pointer;
}
A
{
color: #c4c5c6;
text-decoration: none;
}
A:hover
{
text-decoration: underline;
}
A.no-show, SPAN.no-show
{
opacity: 0;
}
DIV#gdpr-blocker
{
position: fixed;
overflow: hidden;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.7);
transition: all 450ms ease-out;
}
BODY[gdpr-query=complete] DIV#gdpr-blocker
{
opacity: 0;
pointer-events: none;
}
DIV#gdpr-dialog
{
position: fixed;
display: inline-block;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: 5px;
border: 1px solid #666;
background-color: #1a1d21;
padding: 1em;
width: 80%;
max-width: 30em;
transition: all 150ms ease-in;
opacity: 0.9;
box-shadow: 0px 0px 100px black;
}
BODY[gdpr-query=complete] DIV#gdpr-dialog,
BODY[gdpr-query=complete] DIV#gdpr-dialog BUTTON
{
opacity: 0;
font-size: 0;
border: 0;
padding: 0;
color: #000;
}
DIV#gdpr-dialog P
{
text-align: left;
}
BUTTON
{
background-color: #102338;
color: #c4c5c6;
padding: 0.5em;
margin-bottom: 1em;
border: 1px solid black;
cursor: pointer;
}
BUTTON:hover
{
border: 1px solid #102338;
}
BUTTON.default-action
{
background-color: #fecd45;
color: #102338;
}
BUTTON.default-action:hover
{
border: 1px solid #fecd45;
}
BUTTON:active
{
position: relative;
top: 1px;
left: 1px;
filter: brightness(0.9);
}
</style>
</head>
<body>
<span class='no-show'>
PythonMonkey allows Python developers to use complex JavaScript libraries without awkward syntax or performance penalties.
This deep integration of JavaScript and Python is achieved by embedding a <a href="https://spidermonkey.dev/">SpiderMonkey</a>
runtime in the Python VM. PythonMonkey makes it possible to share data, functions, events, etc, across runtimes. Data sharing
respects host language idioms and shares memory between runtimes whenever possible.
</span>
<a class='no-show' href="https://github.com/Distributive-Network/PythonMonkey#pythonmonkey">Source Code</a>
<a class='no-show' href="https://pypi.org/project/pythonmonkey/">PyPI PIP package</a>
</body>
<script>
'use strict';
const gtagHTML = `
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-F6ZF7J18CR"></sc${''}ript>
<script>
</sc${''}ript>
`;
function setTracking(allow)
{
document.body.setAttribute('gdpr-query', 'complete');
window.localStorage.setItem('gdpr-query', JSON.stringify(allow));
window.setTimeout(() => {
console.log('allow-tracking=', allow);
if (allow)
{
const gaScript = document.createElement('SCRIPT');
gaScript.setAttribute('type', 'text/javascript');
gaScript.setAttribute('src', 'https://www.googletagmanager.com/gtag/js?id=G-F6ZF7J18CR');
gaScript.onload = function gaScript$onload() {
console.debug('loaded google analytics');
window.dataLayer = window.dataLayer || [];
function gtag()
{
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-F6ZF7J18CR');
};
gaScript.onerror = console.error;
document.body.appendChild(gaScript);
}
document.body.onclick = () => { window.location.href = document.querySelector('A.no-show').getAttribute('href') };
}, 30);
}
if (window.localStorage.getItem('gdpr-query'))
{
const trackingAllowed = JSON.parse(window.localStorage.getItem('gdpr-query'));
if (trackingAllowed)
setTracking(true);
}
</script>
<div id="gdpr-blocker">
<div id="gdpr-dialog">
<p>This site uses cookies to track unique visitors via Google Analytics. <a href="https://distributve.network">Distributive</a> does not and will not share this data with anyone.</p>
<button onclick='setTracking(false)'>Do Not Track</button>
<button onclick='setTracking(true)' class='default-action'>Allow Cookies</button>
</div>
</div>
</html>