-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogo3d.js
More file actions
23 lines (23 loc) · 726 Bytes
/
Copy pathlogo3d.js
File metadata and controls
23 lines (23 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Dodaje fixed małe logo 3D (prawy dolny róg) na każdej podstronie
(function() {
var mv = document.createElement('model-viewer');
mv.setAttribute('src', 'logo.glb');
mv.setAttribute('alt', 'DetailPro');
mv.setAttribute('auto-rotate', '');
mv.setAttribute('rotation-per-second', '22deg');
mv.setAttribute('camera-controls', '');
mv.setAttribute('touch-action', 'pan-y');
mv.style.cssText = [
'position:fixed',
'bottom:20px',
'right:20px',
'width:64px',
'height:64px',
'z-index:999',
'background:transparent',
'--progress-bar-color:transparent',
'filter:drop-shadow(0 0 10px rgba(245,197,24,0.4))',
'cursor:grab',
].join(';');
document.body.appendChild(mv);
})();