-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathindex.html
209 lines (173 loc) · 7.69 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>PyWeb3D - three.js with python syntax</title>
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<meta name="keywords" content="pyweb3d, PyWeb3D, pyweb3D, threejs, three.js, threejs with python, threejs with python syntax, python, 3d, 3d python">
<meta name="author" content="Bruno Odinukweze">
<meta name="description" content="Exploring three.js with python syntax">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@pyweb3D">
<meta name="twitter:title" content="PyWeb3D – three.js with python syntax">
<!-- <meta property="og:image" content="https://threejs.org/files/share.png"> -->
<link rel="shortcut icon" href="/docs/" media="(prefers-color-scheme: dark)"/>
<link rel="shortcut icon" href="/docs/logo/pyweb3d_logo.ico" media="(prefers-color-scheme: light)" />
<link rel="stylesheet" type="text/css" href="/docs/files/main.css">
<link rel="stylesheet" href="/docs/sponsor_modal.css">
</head>
<body class="home">
<!-- <script src="//cdn.webglstats.com/stat.js" defer="defer" async="async"></script> -->
<script type="text/javascript">
// Google analytics goes here
</script>
<div id="custom_model_main" class="custom-model-main">
<div class="custom-model-inner">
<div class="close-btn" id="close_sponsor">×</div>
<div class="custom-model-wrap">
<div class="pop-up-content-wrap">
<ul style="list-style-type: none;">
<h1>Sponsor PyWeb3D</h1>
<li style="display: flex; flex-direction: row; align-items: center;">
<span style="min-width:30px;height:30px; padding: 0%; margin: 0%;">
<img width="30" height="30" alt="patreon" src="https://github.githubassets.com/images/modules/site/icons/funding_platforms/patreon.svg">
</span>
<span >
<a style="text-decoration: none!important;" target="_blank" href="https://patreon.com/brunoodinukweze"><span>patreon.com/<strong>brunoodinukweze</strong></span></a>
</span>
</li>
</ul>
</div>
</div>
</div>
<div id="overlay" class="bg-overlay"></div>
</div>
<div id="panel">
<div id="header">
<h1><div>PyWeb3D</div><a id="version" href=".">v1.0</a></h1>
<div id="sections">
<a href="#">docs</a>
<a href="#">examples</a>
</div>
<div id="expandButton"></div>
</div>
<div id="panelScrim"></div>
<div id="contentWrapper">
<div id="content">
<h2>Learn</h2>
<ul>
<li><a style="cursor: pointer;" onclick="loadIntroduction()">introduction</a></li>
<li><a href="docs/docs.html#manual/en/introduction/Installation">documentation</a></li>
<li><a href="examples/">examples</a></li>
<!-- <li><a href="editor/">editor</a></li> -->
</ul>
<h2>Community</h2>
<ul>
<li><a href="https://stackoverflow.com/questions/tagged/pyweb3d">questions</a></li>
<!-- <li><a href=".">discord</a></li> -->
<!-- <li><a href=".">forum</a></li> -->
<li><a href="https://twitter.com/pyweb3d">twitter</a></li>
</ul>
<h2>Code</h2>
<ul>
<li><a href="https://github.com/Bruno-Odinukweze/PyWeb3D">github</a></li>
<li><a href="https://github.com/Bruno-Odinukweze/PyWeb3D/archive/refs/heads/main.zip">download</a></li>
</ul>
<h2>Resources</h2>
<ul>
<li><a href="https://brython.info/static_doc/en/intro.html" target="_blank" rel="noopener">brython docs</a></li>
<!-- <li><a href="https://betterprogramming.pub/three-js-with-python-syntax-pyweb3d-2152bed1a43d" target="_blank" rel="noopener">Medium articles</a></li> -->
</ul>
<h2>Contributting</h2>
<ul>
<li><a href="https://github.com/Bruno-Odinukweze/PyWeb3D#how-to-contribute" target="_blank" rel="noopener">How to Contribute</a></li>
</ul>
<!-- <h2>Sponsor PyWeb3D</h2> -->
<h2>Three.js</h2>
<ul>
<li><a href="https://threejs.org/" target="_blank" rel="noopener">threejs.org</a></li>
</ul>
<h2>Brython</h2>
<ul>
<li><a href="http://brython.info/" target="_blank" rel="noopener">brython.info</a></li>
</ul>
<ul>
<li >
<a id="sponsor" class="Click-here" style="outline:thick ridge #f40438; border-radius: 10px; display: flex; justify-content: center; padding: 5px;" target="_blank" rel="noopener">Sponsor
<svg style="height: 1.5em; margin-bottom:0%; padding-bottom:0%" xmlns="http://www.w3.org/2000/svg" fill="#f40438" viewBox="0 0 24 24" stroke-width="1.5" stroke="#f40438" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z" />
</svg> PyWeb3D
</a>
</li>
</ul>
<br>
</div>
</div>
</div>
<script>
var panel = document.getElementById( 'panel' );
var expandButton = document.getElementById( 'expandButton' );
var panelScrim = document.getElementById( 'panelScrim' );
// var introduction = document.getElementById('viewer')
expandButton.addEventListener( 'click', function ( event ) {
panel.classList.toggle( 'open' );
event.preventDefault();
} );
panelScrim.onclick = function ( event ) {
event.preventDefault();
panel.classList.toggle( 'open' );
};
function loadIntroduction(){
fetch('docs/introduction.html')
.then(response=> response.text())
.then(text=> document.getElementById('viewer').innerHTML = text);
};
// Sponsor Modal
btn = document.getElementById('sponsor')
close_btn = document.getElementById('close_sponsor')
close_with_overlay = document.getElementById('overlay')
custom_model_main = document.getElementById('custom_model_main')
btn.addEventListener('click', () => {
custom_model_main.classList.add('model-open')
})
close_btn.addEventListener('click', () => {
custom_model_main.classList.remove('model-open')
})
close_with_overlay.addEventListener('click', () => {
custom_model_main.classList.remove('model-open')
})
</script>
<div id="viewer">
<!-- <a id="button" class="text" href=".">submit project</a> -->
<!-- <div style="color:rgb(158, 156, 156);align-items: center; margin-left: auto; margin-right: auto; padding-top:20%; width: 29em">
<h1>Submitted projects will show here....</h1>
<h1>Please continue to introduction or documentation.</h1>
</div > -->
<div id="projects">
<a href="https://Bruno-Bells.github.io/dexfurniture/" target="_blank" rel="noopener"><img src="docs/files/projects/dexfurniture.png" loading="lazy"/></a>
</div>
</div>
<!-- Google Analytics -->
<script type="module">
// Import the functions you need from the SDKs you need
import { initializeApp } from "https://www.gstatic.com/firebasejs/9.14.0/firebase-app.js";
import { getAnalytics } from "https://www.gstatic.com/firebasejs/9.14.0/firebase-analytics.js";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
apiKey: "AIzaSyDOdMc3CgbTYGoIReE_yANl1Y4Uzb91ejM",
authDomain: "pyweb3d1.firebaseapp.com",
projectId: "pyweb3d1",
storageBucket: "pyweb3d1.appspot.com",
messagingSenderId: "72072322102",
appId: "1:72072322102:web:11d36f20ed7c92e7844c97",
measurementId: "G-VB7RHWRVT4"
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
const analytics = getAnalytics(app);
</script>
</body>
</html>