diff options
| author | s1n <[email protected]> | 2020-01-03 19:22:48 -0800 |
|---|---|---|
| committer | s1n <[email protected]> | 2020-01-03 19:22:48 -0800 |
| commit | d19298cb97655c0d7c4e96508f9ff20387bcdf42 (patch) | |
| tree | 47c77b8c22f97b1e7bf7d06098345c4441d95f55 | |
| parent | media queries for navbar size (diff) | |
| download | s1n.pw-admin-d19298cb97655c0d7c4e96508f9ff20387bcdf42.tar.xz s1n.pw-admin-d19298cb97655c0d7c4e96508f9ff20387bcdf42.zip | |
remove snow, comment normal colours, correct key
| -rw-r--r-- | aes/index.html | 4 | ||||
| -rw-r--r-- | index.html | 7 | ||||
| -rw-r--r-- | js/app.js | 2 | ||||
| -rw-r--r-- | js/background-sparkles.js | 6 | ||||
| -rw-r--r-- | js/snow.js | 115 |
5 files changed, 8 insertions, 126 deletions
diff --git a/aes/index.html b/aes/index.html index 1cd6ba2..857fc45 100644 --- a/aes/index.html +++ b/aes/index.html @@ -54,7 +54,9 @@ <div class="links"> <div class="blog-slider"> <div class="content" style="text-align: center;"> - <h2 class="aes" style="font-size: 10px; word-wrap: break-word; white-space: pre-wrap;">{"additionalKeys":{"pakchunk1002-WindowsClient.pak":"0x9586EC6C22CCC2316F75A94DC6C0548FE3D98899ADA1AFF0725CF6B00390C6E3","pakchunk1003-WindowsClient.pak":"0x80C5FBEA798B57671ACF6F11A3F8B715AB42538B5D8B58C780948F6DD9CB4D47"},"mainKey":"0x60b40115a36dd9f17cc4a352f03211e3a859ac664fef7e7200930f849fd8a980"}</h2> + <h2 class="aes" style="font-size: 10px; word-wrap: break-word; white-space: pre-wrap;"> + {"additionalKeys":{"pakchunk1005-WindowsClient.pak":"0xE40130A02A7BF678D8722F10605FAC2CC906A630E714260B482B73E0B0FD0FBF","pakchunk1011-WindowsClient.pak":"0x77DC00E2C9E9978238078CD91715B2BBD70BF734A45EACBDFAF4F0F4F5211E5C","pakchunk1018-WindowsClient.pak":"0xE688FC078479DE994FC5189CB4C37A42443BE350A26CC6E6CD1258203210E623","pakchunk1002-WindowsClient.pak":"0xFA1524F3FC03EF7EAEE6CCA540F5DC28A444A28E6F48F6963C6FB7C714F99C53","pakchunk1015-WindowsClient.pak":"0xF84CD02B8A23364D43AB171E41E02B00666140F432B9004A5F8815B8612A4B13","pakchunk1009-WindowsClient.pak":"0x5C6C00F1159D6AFA5E49C429A8CFDA1687774864C1DCF89B74613B886291E238","pakchunk1006-WindowsClient.pak":"0x23673E49009D0EF2690BACF5C678914FE938D4A029D2995AFA8FC7EBCA1714B4","pakchunk1000-WindowsClient.pak":"0x146E7972681D067B33B2BE694B46810B8E0D565ECEC88F80B8E5F100BC9A34A0","pakchunk1003-WindowsClient.pak":"0x08C25C97243523D898F9590389A8E11B1C584266461EB4C094497FC2D953FA99","pakchunk1016-WindowsClient.pak":"0xBDEAFC074E884B4BA9EED358CB4DF39210A5F82AD39777338265CF61838D70CF","pakchunk1004-WindowsClient.pak":"0xC591E53D3CFF77135A86BA7D22A4D9FAD8CE65260CC506FD299157960F4DEB7F","pakchunk1001-WindowsClient.pak":"0xECD456F4540E35FA0D1303890116B20B5BA92A48E0DE86F1016202BDC5DF516B","pakchunk1014-WindowsClient.pak":"0xCC0C9E945CBA45CC86216FFDCFD22F8046E6456F69740CADBE00483DBD7F91D9","pakchunk1007-WindowsClient.pak":"0x19B31C426769BF78EEFCFDFA5102250C56744398EBD217BB3B6A1327BD3631C6"},"mainKey":"0x6C51ABA88CA1240A0D14EB94701F6C41FD7799B102E9060D1E6C316993196FDF"} + </h2> </div> </div> </div> @@ -70,13 +70,6 @@ <script src="/js/app.js"></script>
<script id="js-konami" src="/js/background-sparkles.js"></script>
- <!-- Snow -->
- <span id="snow">
- <canvas class="snow" style="position: absolute; top: 0; left: 0; pointer-events:none;">
- <script src="/js/snow.js"></script>
- </canvas>
- </span>
-
<!-- Navigation Bar -->
<div class="navigation-bar">
<nav class="nav">
@@ -146,8 +146,6 @@ function Cheats() { `;
}
- document.getElementById("snow").innerHTML = ``;
-
document.title = "// s1n.ical // Landing Page //"
CheatsState = true;
diff --git a/js/background-sparkles.js b/js/background-sparkles.js index d4690ec..9c67fc2 100644 --- a/js/background-sparkles.js +++ b/js/background-sparkles.js @@ -13,13 +13,17 @@ var pattern = Trianglify({ height: window.innerHeight, // White: #fdfbfb, Salmon: #cc3300 width: window.innerWidth, // Christmas Colours: - x_colors: ['#0F8A5F', '#f9f9f9', '#fffff4', '#fbf7f5', '#CC231E'], // Cappuccino: ['#854442', '#3c2f2f', '#fff4e6', '#be9b7b', '#4b3832'] + x_colors: ['#040404', '#f9f9f9', '#fffff4', '#fbf7f5', '#d55454'], // Cappuccino: ['#854442', '#3c2f2f', '#fff4e6', '#be9b7b', '#4b3832'] y_colors: ['#f9f1f1', '#f9f9f9', '#fffff4', '#fbf7f5', '#f9f1f1'], // Random colour generator: "#"+((1<<24)*Math.random()|0).toString(16) // // Normal Colours: // x_colors: ['#040404', '#f9f9f9', '#fffff4', '#fbf7f5', '#d55454'], // y_colors: ['#f9f1f1', '#f9f9f9', '#fffff4', '#fbf7f5', '#f9f1f1'], // + // Christmas Colours: + // x_colors: ['#0F8A5F', '#f9f9f9', '#fffff4', '#fbf7f5', '#CC231E'], + // y_colors: ['#f9f1f1', '#f9f9f9', '#fffff4', '#fbf7f5', '#f9f1f1'], + // variance: 10, // Gives it more style seed: Number.parseInt(Math.floor(Math.random() * 100)), // TODO: Live seed transitioning. cell_size: 160 // Cell size diff --git a/js/snow.js b/js/snow.js deleted file mode 100644 index 174b321..0000000 --- a/js/snow.js +++ /dev/null @@ -1,115 +0,0 @@ -var canvas = document.querySelector('.snow'), - ctx = canvas.getContext('2d'), - windowW = window.innerWidth, - windowH = window.innerHeight, - numFlakes = 125, - flakes = []; - -if (screen.width < 768) { - numFlakes = 50; -} // If Mobile - -function Flake(x, y) { - var maxWeight = 5, - maxSpeed = 1.2; - - if (screen.width < 768) { - maxSpeed = 1; - } // If Mobile - - this.x = x; - this.y = y; - this.r = randomBetween(0, 1); - this.a = randomBetween(0, Math.PI); - this.aStep = 0.01; - - this.weight = randomBetween(2, maxWeight); - this.alpha = (this.weight / maxWeight); - this.speed = (this.weight / maxWeight) * maxSpeed; - - this.update = function () { - this.x += Math.cos(this.a) * this.r; - this.a += this.aStep; - - this.y += this.speed; - } -} - -function init() { - var i = numFlakes, - flake, - x, - y; - - while (i--) { - x = randomBetween(0, windowW, true); - y = randomBetween(0, windowH, true); - - flake = new Flake(x, y); - flakes.push(flake); - } - - scaleCanvas(); - loop(); -} - -function scaleCanvas() { - canvas.width = windowW; - canvas.height = windowH; -} - -function loop() { - var i = flakes.length, - z, - dist, - flakeA, - flakeB; - - // clear canvas - ctx.save(); - ctx.setTransform(1, 0, 0, 1, 0, 0); - ctx.clearRect(0, 0, windowW, windowH); - ctx.restore(); - - // loop of hell - while (i--) { - - flakeA = flakes[i]; - flakeA.update(); - - - /*for (z = 0; z < flakes.length; z++) { flakeB=flakes[z]; if (flakeA !==flakeB && distanceBetween(flakeA, - flakeB) < 150) { ctx.beginPath(); ctx.moveTo(flakeA.x, flakeA.y); ctx.lineTo(flakeB.x, flakeB.y); - ctx.strokeStyle='#444444' ; ctx.stroke(); ctx.closePath(); } }*/ - - ctx.beginPath(); - ctx.arc(flakeA.x, flakeA.y, flakeA.weight, 0, 2 * Math.PI, false); - ctx.fillStyle = 'rgba(255, 255, 255, ' + flakeA.alpha + ')'; - ctx.fill(); - - if (flakeA.y >= windowH) { - flakeA.y = -flakeA.weight; - } - } - - requestAnimationFrame(loop); -} - -function randomBetween(min, max, round) { - var num = Math.random() * (max - min + 1) + min; - - if (round) { - return Math.floor(num); - } else { - return num; - } -} - -function distanceBetween(vector1, vector2) { - var dx = vector2.x - vector1.x, - dy = vector2.y - vector1.y; - - return Math.sqrt(dx * dx + dy * dy); -} - -init(); |