Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
Xzensi committed Jun 1, 2024
2 parents c05eb27 + ee626f1 commit 37ba44b
Show file tree
Hide file tree
Showing 52 changed files with 896 additions and 27 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ node_modules
vendor
@excluded
dist/**/*
assets/**/*.css
!dist/userscript
!dist/userscript/client.user.js
!dist/css
Expand Down
54 changes: 27 additions & 27 deletions src/UserInterface/Modals/UserInfoModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -665,37 +665,32 @@ export class UserInfoModal extends AbstractModal {
// label: 'Verified',
// active: true
// },
// {
// type: 'staff',
// label: 'Staff',
// active: true
// },
// {
// type: 'Partner',
// label: 'partner',
// active: true
// },
// {
// type: 'global_moderator',
// label: 'Global moderator',
// active: true
// },
// {
// type: 'global_admin',
// label: 'Global admin',
// active: true
// },
// // {
// // type: 'staff',
// // label: 'Staff',
// // active: true
// // },
// // {
// // type: 'Partner',
// // label: 'partner',
// // active: true
// // },
// // {
// // type: 'global_moderator',
// // label: 'Global moderator',
// // active: true
// // },
// // {
// // type: 'global_admin',
// // label: 'Global admin',
// // active: true
// // },
// {
// type: 'moderator',
// label: 'Moderator',
// active: true
// },
// {
// type: 'vip',
// label: 'VIP',
// active: true
// },
// {
// type: 'founder',
// label: 'Founder',
// active: true
Expand All @@ -706,10 +701,15 @@ export class UserInfoModal extends AbstractModal {
// active: true
// },
// {
// type: 'sidekick',
// label: 'Sidekick',
// type: 'vip',
// label: 'VIP',
// active: true
// },
// // {
// // type: 'sidekick',
// // label: 'Sidekick',
// // active: true
// // },
// {
// type: 'subscriber',
// label: 'Subscriber',
Expand Down
Binary file added web/img/NTV_icon_128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/img/brave_3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/img/chrome_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/img/chrome_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/img/chrome_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/img/commands_menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/img/edge_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/img/edge_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/img/edge_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/img/emote_menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/img/emotes/bedge.webp
Binary file not shown.
Binary file added web/img/emotes/booba.webp
Binary file not shown.
Binary file added web/img/emotes/clueless.webp
Binary file not shown.
Binary file added web/img/emotes/donowall.webp
Binary file not shown.
Binary file added web/img/emotes/gigachad.webp
Binary file not shown.
Binary file added web/img/emotes/hmm.webp
Binary file not shown.
Binary file added web/img/emotes/huh.webp
Binary file not shown.
Binary file added web/img/emotes/letsgo.webp
Binary file not shown.
Binary file added web/img/emotes/monkasteer.webp
Binary file not shown.
Binary file added web/img/emotes/noooo.webp
Binary file not shown.
Binary file added web/img/emotes/omegalul.webp
Binary file not shown.
Binary file added web/img/emotes/ooo.webp
Binary file not shown.
Binary file added web/img/emotes/peepodj.webp
Binary file not shown.
Binary file added web/img/emotes/peepohey.webp
Binary file not shown.
Binary file added web/img/emotes/peeporiot.webp
Binary file not shown.
Binary file added web/img/emotes/peeposhy.webp
Binary file not shown.
Binary file added web/img/emotes/peped.webp
Binary file not shown.
Binary file added web/img/emotes/petthemods.webp
Binary file not shown.
Binary file added web/img/emotes/pog.webp
Binary file not shown.
Binary file added web/img/emotes/pogu.webp
Binary file not shown.
Binary file added web/img/emotes/prayge.webp
Binary file not shown.
Binary file added web/img/emotes/ratjam.webp
Binary file not shown.
Binary file added web/img/emotes/sniffa.webp
Binary file not shown.
Binary file added web/img/emotes/sussy.webp
Binary file not shown.
Binary file added web/img/emotes/xdd.webp
Binary file not shown.
Binary file added web/img/firefox_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/img/firefox_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/img/firefox_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/img/firefox_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/img/firefox_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/img/firefox_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/img/firefox_7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions web/img/icons/github-mark-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/img/logo_full.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/img/quick_emote_picker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/img/settings_panel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
155 changes: 155 additions & 0 deletions web/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>NipahTV</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:[email protected]&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header>
<div class="container">
<img src="img/NTV_icon_128.png" alt="Logo icon" />
<nav>
<ul>
<li class="active"><a href="index.html">HOME</a></li>
<li><a href="userscript.html">USERSCRIPT</a></li>
</ul>
</nav>
</div>
</header>

<main>
<section id="banner">
<div class="emotes_box"></div>
<img src="img/logo_full.png" alt="NipahTV Logo" />
<h2>A Better Kick and 7TV Emote Integration for Kick.</h2>
<!-- <a href="#" class="button">Install for Chrome</a> -->
<a href="userscript.html" class="button">Get Userscript</a>
</section>
<section>
<img src="img/emote_menu.png" alt="Emote menu" class="elevation-3" />
<h3>Easy to use emote menu</h3>
</section>
<section>
<img src="img/quick_emote_picker.png" alt="Quick emote picker" class="elevation-3" />
<h3>Quick emote picker for easy access</h3>
</section>
<section>
<img src="img/commands_menu.png" alt="Commands menu" class="elevation-3" />
<h3>Improved moderator experience with enhanced Kick commands</h3>
</section>
<section>
<img src="img/settings_panel.png" alt="Settings panel" class="elevation-3" />
<h3>Quality of life features</h3>
</section>
<section>
<div class="container text-center">
<h3>Follow us on Github</h3>
<a href="https://github.com/Xzensi/NipahTV" target="_blank" rel="noopener">
<img src="img/icons/github-mark-white.svg" alt="Github logo" target="_blank" />
</a>
</div>
</section>
</main>

<script>
const emojis = [
'peped',
'petthemods',
'pog',
'pogu',
'prayge',
'ratjam',
'sniffa',
'sussy',
'xdd',
'bedge',
'booba',
'clueless',
'donowall',
'gigachad',
'hmm',
'huh',
'letsgo',
'monkasteer',
'noooo',
'omegalul',
'ooo',
'peepodj',
'peepohey',
'peeporiot',
'peeposhy'
]

function debounce(func, wait, immediate) {
let timeout
return function () {
const context = this
const args = arguments
const later = function () {
timeout = null
if (!immediate) func.apply(context, args)
}
const callNow = immediate && !timeout
clearTimeout(timeout)
timeout = setTimeout(later, wait)
if (callNow) func.apply(context, args)
}
}

function splitmix32(a) {
return function () {
a |= 0
a = (a + 0x9e3779b9) | 0
let t = a ^ (a >>> 16)
t = Math.imul(t, 0x21f0aaad)
t = t ^ (t >>> 15)
t = Math.imul(t, 0x735a2d97)
return ((t = t ^ (t >>> 15)) >>> 0) / 4294967296
}
}

const prng = splitmix32((Math.random() * 2 ** 32) >>> 0)
const interval = 500
const imgSize = 48
const rand = Math.random

let clientWidth = document.body.clientWidth

function loop(width) {
if (width !== clientWidth) return

const emoji = emojis[(prng() * emojis.length) << 0]
const img = document.createElement('img')

img.src = `img/emotes/${emoji}.webp`
img.style.position = 'absolute'
img.style.left = `${prng() * 100}%`
img.addEventListener('animationend', img.remove)

document.querySelector('#banner .emotes_box').appendChild(img)

requestAnimationFrame(() => {
setTimeout(loop.bind(this, width), prng() * interval + interval / 2)
})
}

const loopCount = document.body.clientWidth / 700
for (let i = loopCount; i > 0; i--) loop(clientWidth)

function resize() {
if (clientWidth === document.body.clientWidth) return

clientWidth = document.body.clientWidth
const loopCount = document.body.clientWidth / 700 + 0.5
for (let i = loopCount; i > 0; i--) loop(clientWidth)
}

window.addEventListener('resize', debounce(resize, 500))
</script>
</body>
</html>
Loading

0 comments on commit 37ba44b

Please sign in to comment.