Traitement commandes et ajout J/arrow + Fix login
This commit is contained in:
14
public/panel/config.html
Normal file
14
public/panel/config.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<script src="https://extension-files.twitch.tv/helper/v1/twitch-ext.min.js"></script>
|
||||
<script src="https://angels-dev.fr/twitch/panel/script.js"></script>
|
||||
|
||||
<title>Panel Laytho Config</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="div__title">
|
||||
<h2 class="title">Configuration</h2>
|
||||
</div>
|
||||
<p>Work in Progress !</p>
|
||||
</html>
|
||||
@@ -6,7 +6,7 @@
|
||||
<link rel="stylesheet" href="https://angels-dev.fr/twitch/panel/panel.css">
|
||||
<link rel="image/svg" href="https://angels-dev.fr/twitch/panel/arrow.svg">
|
||||
|
||||
<title>Laytho Panel</title>
|
||||
<title>Panel Laytho</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="div__title">
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
const xhr = new XMLHttpRequest()
|
||||
const url = 'https://angels-dev.fr/twitch/panel/data'
|
||||
|
||||
xhr.open('GET', url, true)
|
||||
xhr.open('GET', 'https://angels-dev.fr/twitch/panel/data', true)
|
||||
xhr.onload = () => {
|
||||
if (xhr.status === 200) {
|
||||
let data = JSON.parse(xhr.responseText)
|
||||
@@ -12,7 +11,7 @@ xhr.onload = () => {
|
||||
let row = tbodyRef.insertRow()
|
||||
|
||||
row.insertCell().appendChild(document.createTextNode(data.scoreboard.indexOf(entry) + 1))
|
||||
row.insertCell().appendChild(document.createTextNode(entry.user_name))
|
||||
row.insertCell().appendChild(document.createTextNode(entry.viewer_name))
|
||||
row.insertCell().appendChild(document.createTextNode(entry.count))
|
||||
|
||||
let i = 0
|
||||
|
||||
Reference in New Issue
Block a user