Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
popa39 authored Nov 28, 2024
1 parent c7c994f commit 4b12daa
Show file tree
Hide file tree
Showing 3 changed files with 123 additions and 40 deletions.
Binary file added image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
163 changes: 123 additions & 40 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,42 +1,125 @@
<!--АААА ПОСХАЛКИИ!!-->
<!doctype html>
<html>
<head>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="https://unpkg.com/7.css">
<style>
html{
background-image: url(bliss.jpg);
background-size: cover;
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>lol i hate pizza</title>
<link rel="stylesheet" href="style.css">
<style>
body {
margin: 0; color: black;
}
canvas {
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
h1 {
position: absolute;
color: rgb(183, 0, 255);
font-family: Comic Sans MS;
bottom: 200px;
left: 300px;
z-index: 1;
animation: colorChange 1s infinite, rotate 5s linear infinite;

}
td {
padding: 10px;
border: 1px solid #000;
}


@keyframes colorChange {
0% { color: red; }
25% { color: blue; }
50% { color: green; }
75% { color: orange; }
100% { color: red; }
}

@keyframes rotate {
from { transform: translateX(-50%) rotate(0deg); }
to { transform: translateX(-50%) rotate(360deg); }
}
</style>
<script type="importmap">
{
"imports": {
"three": "https://cdn.jsdelivr.net/npm/[email protected]/build/three.module.js",
"GLTFLoader": "https://cdn.jsdelivr.net/npm/[email protected]/examples/jsm/loaders/GLTFLoader.js"
}
}
</script>
<script src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
</head>
<body>

<h1>пошел нахуй лололллл:3333</h1>


<script type="module">
import * as THREE from 'three';
import { GLTFLoader } from 'GLTFLoader';

const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
const renderer = new THREE.WebGLRenderer({ antialias: true });
renderer.setSize(window.innerWidth, window.innerHeight);
document.body.appendChild(renderer.domElement);


const textureLoader = new THREE.TextureLoader();
textureLoader.load('image.jpg', (texture) => {
const aspect = texture.image.width / texture.image.height;
const backgroundGeometry = new THREE.PlaneGeometry(aspect * 2, 2);
const backgroundMaterial = new THREE.MeshBasicMaterial({
map: texture,
side: THREE.DoubleSide
});
const backgroundMesh = new THREE.Mesh(backgroundGeometry, backgroundMaterial);
backgroundMesh.position.z = -5;
scene.add(backgroundMesh);
});

const loader = new GLTFLoader();
let model;

loader.load('model.glb', (gltf) => {
model = gltf.scene;
scene.add(model);
model.position.set(-0.5, 5, -5);

animate();
}, undefined, function (error) {
console.error('Произошла ошибка при загрузке модели:', error);
});

const ambientLight = new THREE.AmbientLight(0xffffff, 1.5);
scene.add(ambientLight);

const pointLight = new THREE.PointLight(0xffffff, 2);
pointLight.position.set(10, 10, 10);
scene.add(pointLight);

camera.position.z = 2;

function animate() {
requestAnimationFrame(animate);
if (model) {
model.rotation.y += 0.01;
}
</style>
</head>
<title>:3</title>
<body>
<!--ПОСХАЛКОО-->
<div style="display: flex; justify-content: center; align-items: center; height: 800px;">
<div class="window active" style="max-width: 800px;">
<div class="title-bar">
<div class="title-bar-text">VZLOM KAZINO.exe</div>
<div class="title-bar-controls">
<!--мяу-->
<button aria-label="Minimize"></button>
<button aria-label="Maximize"></button>
<button onclick="alert('пошел нахуй:3333')" aria-label="Close"></button>
</div>
</div>
<div class="window-body has-space">
<p>КАЗИНО ВЗЛОМАНО НА 60 ПРОЦеНТОВ!</p>
<p>выкачано 140000 газилионов долларов из 1000000</p>
<div role="progressbar" class="animate">
<div style="width: 60%"></div>
</div>
<!--ОП ПОСХАЛКО-->
<p>ПРОДОЛЖИТЬ?</p>
<button onclick="window.open('https://www.youtube.com/watch?v=rC05wOfxBo8')">да</button>
<button onclick="window.open('https://store.steampowered.com/app/730/CounterStrike_2/')">нет</button>
</div>
</div>
</body>
</html>
renderer.render(scene, camera);
}

window.addEventListener('resize', () => {
camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();
renderer.setSize(window.innerWidth, window.innerHeight);
});
</script>
</body>
</html>
Binary file added model.glb
Binary file not shown.

0 comments on commit 4b12daa

Please sign in to comment.