Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/d43m0nhlint3r/pepegaboard
- Owner: d43m0nhLInt3r
- License: gpl-3.0
- Created: 2020-07-28T10:03:40.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T12:39:48.000Z (about 2 years ago)
- Last Synced: 2024-10-27T20:31:05.358Z (3 months ago)
- Topics: bootstrap, bttv-emotes, electron, memes, twitch
- Language: HTML
- Homepage:
- Size: 7.31 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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;
```