Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/d43m0nhlint3r/pepegaboard

An Open Source Pepega Board
https://github.com/d43m0nhlint3r/pepegaboard

bootstrap bttv-emotes electron memes twitch

Last synced: 27 days ago
JSON representation

An Open Source Pepega Board

Awesome Lists containing this project

README

        

# PepegaBoard
An Open Source Pepega Board



## How to add an image
index.html
```bash
$
$
$

```
renderer.js
```bash
$ document.getElementById("myNewEmote").addEventListener("click", (event) => {
$ localStorage.setItem("id", "myNewEmote");
$ const modalPath = path.join("file://", __dirname, "frame.html");
$ let win = new BrowserWindow({ frame: false, width: 256, height: 256, alwaysOnTop: true });
$ win.on("close", () => {
$ win = null;
$ });
$ win.loadURL(modalPath);
$ win.show();
$ });
```
frame.html
```bash
$ case "myNewEmote":
$ document.getElementById("view").src = './images/myNewEmote.jpg';
$ break;
```
## How to add an audio
index.html
```bash
$
$
$

```
renderer.js
```bash
$ document.getElementById("myNewAudio").addEventListener("click", (event) => {
$ localStorage.setItem("id", "myNewAudio");
$ const modalPath = path.join("file://", __dirname, "audio.html");
$ let win = new BrowserWindow({ frame: false, width: 256, height: 256, alwaysOnTop: true });
$ win.on("close", () => {
$ win = null;
$ });
$ win.loadURL(modalPath);
$ win.show();
$ });
```
frame.html
```bash
case "myNewAudio":
document.getElementById("play").src = './audio/myNewAudio.mp3';
document.getElementById("view").src = './images/myNewAudio.jpg';
break;
```