mirror of
https://github.com/PavelDoGreat/WebGL-Fluid-Simulation.git
synced 2025-10-03 17:31:53 +02:00
add discord link
This commit is contained in:
BIN
iconfont.ttf
Normal file → Executable file
BIN
iconfont.ttf
Normal file → Executable file
Binary file not shown.
@@ -62,7 +62,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.cr.function.appBigFont {
|
.cr.function.appBigFont {
|
||||||
width: 288px;
|
|
||||||
font-size: 150%;
|
font-size: 150%;
|
||||||
line-height: 27px;
|
line-height: 27px;
|
||||||
background-color: #2F4F4F;
|
background-color: #2F4F4F;
|
||||||
@@ -73,7 +72,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.cr.function.appBigFont .icon {
|
.cr.function.appBigFont .icon {
|
||||||
position: relative;
|
position: sticky;
|
||||||
bottom: 27px;
|
bottom: 27px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -94,6 +93,10 @@
|
|||||||
.app:before {
|
.app:before {
|
||||||
content: 'c';
|
content: 'c';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.discord:before {
|
||||||
|
content: 'd';
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
|
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
|
||||||
|
16
script.js
16
script.js
@@ -37,10 +37,8 @@ pointers.push(new pointerPrototype());
|
|||||||
|
|
||||||
const { gl, ext } = getWebGLContext(canvas);
|
const { gl, ext } = getWebGLContext(canvas);
|
||||||
|
|
||||||
if (isMobile()) {
|
if (isMobile())
|
||||||
config.DYE_RESOLUTION = 256;
|
|
||||||
config.SHADING = false;
|
config.SHADING = false;
|
||||||
}
|
|
||||||
if (!ext.supportLinearFiltering)
|
if (!ext.supportLinearFiltering)
|
||||||
config.SHADING = false;
|
config.SHADING = false;
|
||||||
|
|
||||||
@@ -184,6 +182,16 @@ function startGUI () {
|
|||||||
twitter.domElement.parentElement.appendChild(twitterIcon);
|
twitter.domElement.parentElement.appendChild(twitterIcon);
|
||||||
twitterIcon.className = 'icon twitter';
|
twitterIcon.className = 'icon twitter';
|
||||||
|
|
||||||
|
let discord = gui.add({ fun : () => {
|
||||||
|
window.open('https://discordapp.com/invite/CeqZDDE');
|
||||||
|
ga('send', 'event', 'link button', 'discord');
|
||||||
|
} }, 'fun').name('Discord');
|
||||||
|
discord.__li.className = 'cr function bigFont';
|
||||||
|
discord.__li.style.borderLeft = '3px solid #8C8C8C';
|
||||||
|
let discordIcon = document.createElement('span');
|
||||||
|
discord.domElement.parentElement.appendChild(discordIcon);
|
||||||
|
discordIcon.className = 'icon discord';
|
||||||
|
|
||||||
let app = gui.add({ fun : () => {
|
let app = gui.add({ fun : () => {
|
||||||
window.open('http://onelink.to/5b58bn');
|
window.open('http://onelink.to/5b58bn');
|
||||||
ga('send', 'event', 'link button', 'app');
|
ga('send', 'event', 'link button', 'app');
|
||||||
@@ -975,6 +983,8 @@ window.addEventListener('touchend', e => {
|
|||||||
window.addEventListener('keydown', e => {
|
window.addEventListener('keydown', e => {
|
||||||
if (e.key === 'p')
|
if (e.key === 'p')
|
||||||
config.PAUSED = !config.PAUSED;
|
config.PAUSED = !config.PAUSED;
|
||||||
|
if (e.key === ' ')
|
||||||
|
splatStack.push(parseInt(Math.random() * 20) + 5);
|
||||||
});
|
});
|
||||||
|
|
||||||
function generateColor () {
|
function generateColor () {
|
||||||
|
Reference in New Issue
Block a user