mirror of
https://github.com/PavelDoGreat/WebGL-Fluid-Simulation.git
synced 2025-10-03 17:31:53 +02:00
add link to my new app
This commit is contained in:
BIN
iconfont.ttf
BIN
iconfont.ttf
Binary file not shown.
20
index.html
20
index.html
@@ -57,6 +57,22 @@
|
||||
color: #8C8C8C;
|
||||
}
|
||||
|
||||
.cr.function.appBigFont {
|
||||
width: 288px;
|
||||
font-size: 150%;
|
||||
line-height: 27px;
|
||||
background-color: #2F4F4F;
|
||||
}
|
||||
|
||||
.cr.function.appBigFont .property-name {
|
||||
float: none;
|
||||
}
|
||||
|
||||
.cr.function.appBigFont .icon {
|
||||
position: relative;
|
||||
bottom: 27px;
|
||||
}
|
||||
|
||||
.icon {
|
||||
font-family: 'iconfont';
|
||||
font-size: 130%;
|
||||
@@ -70,6 +86,10 @@
|
||||
.github:before {
|
||||
content: 'b';
|
||||
}
|
||||
|
||||
.app:before {
|
||||
content: 'c';
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
|
||||
|
27
script.js
27
script.js
@@ -125,25 +125,40 @@ function startGUI () {
|
||||
gui.add(config, 'CURL', 0, 50).name('vorticity').step(1);
|
||||
gui.add(config, 'SPLAT_RADIUS', 0.0001, 0.01).name('splat radius');
|
||||
|
||||
let randomSplats = gui.add({ fun: () => {
|
||||
splatStack.push(parseInt(Math.random() * 20) + 5);
|
||||
}
|
||||
}, 'fun').name('Random splats');
|
||||
gui.add({ fun: () => {
|
||||
splatStack.push(parseInt(Math.random() * 20) + 5);
|
||||
} }, 'fun').name('Random splats');
|
||||
|
||||
let github = gui.add({ fun : () => { window.open('https://github.com/PavelDoGreat/WebGL-Fluid-Simulation'); } }, 'fun').name('Github');
|
||||
let github = gui.add({ fun : () => {
|
||||
window.open('https://github.com/PavelDoGreat/WebGL-Fluid-Simulation');
|
||||
ga('send', 'event', 'link button', 'github');
|
||||
} }, 'fun').name('Github');
|
||||
github.__li.className = 'cr function bigFont';
|
||||
github.__li.style.borderLeft = '3px solid #8C8C8C';
|
||||
let githubIcon = document.createElement('span');
|
||||
github.domElement.parentElement.appendChild(githubIcon);
|
||||
githubIcon.className = 'icon github';
|
||||
|
||||
let twitter = gui.add({ fun : () => { window.open('https://twitter.com/PavelDoGreat'); } }, 'fun').name('Twitter');
|
||||
let twitter = gui.add({ fun : () => {
|
||||
window.open('https://twitter.com/PavelDoGreat');
|
||||
ga('send', 'event', 'link button', 'twitter');
|
||||
} }, 'fun').name('Twitter');
|
||||
twitter.__li.className = 'cr function bigFont';
|
||||
twitter.__li.style.borderLeft = '3px solid #8C8C8C';
|
||||
let twitterIcon = document.createElement('span');
|
||||
twitter.domElement.parentElement.appendChild(twitterIcon);
|
||||
twitterIcon.className = 'icon twitter';
|
||||
|
||||
let app = gui.add({ fun : () => {
|
||||
window.open('https://play.google.com/store/apps/details?id=games.paveldogreat.fluidsim');
|
||||
ga('send', 'event', 'link button', 'app');
|
||||
} }, 'fun').name('Check out new improved version');
|
||||
app.__li.className = 'cr function appBigFont';
|
||||
app.__li.style.borderLeft = '3px solid #00FF7F';
|
||||
let appIcon = document.createElement('span');
|
||||
app.domElement.parentElement.appendChild(appIcon);
|
||||
appIcon.className = 'icon app';
|
||||
|
||||
gui.close();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user