Skip to content

Commit

Permalink
Merge pull request #38 from etrusci-org/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
etrusci-org authored Aug 4, 2023
2 parents 676b211 + f3831cc commit 2534694
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/mod/chat/chat.conf.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// For help see chat.md
// For help see chat/README.md

export const modConf = {
channels: `
Expand Down
2 changes: 1 addition & 1 deletion app/mod/clock/clock.conf.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// For help see clock.md
// For help see clock/README.md

export const modConf = {
updaterate: '1000',
Expand Down
2 changes: 1 addition & 1 deletion app/mod/colorfader/colorfader.conf.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// For help see colorfader.md
// For help see colorfader/README.md

export const modConf = {
delay: '0',
Expand Down
2 changes: 1 addition & 1 deletion app/mod/goal/goal.conf.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// For help see goal.md
// For help see goal/README.md

export const modConf = {
description: 'Current Goal Status',
Expand Down
2 changes: 1 addition & 1 deletion app/mod/numbers/numbers.conf.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// For help see numbers.md
// For help see numbers/README.md

export const modConf = {
updaterate: '3000',
Expand Down
2 changes: 1 addition & 1 deletion app/mod/quotes/quotes.conf.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// For help see quotes.md
// For help see quotes/README.md

export const modConf = {
updaterate: '90000',
Expand Down
11 changes: 9 additions & 2 deletions app/mod/rotator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ Valid: `text, HTML`

Start each item with `|`.
Separate sub-items with `*`.
Prefix image URL/paths with `img:`.
Prefix image URL/paths with `img:`.
Prefix video URL/paths with `vid:`.

Example:
```js
Expand All @@ -52,6 +53,7 @@ items: `
|img:https://example.org/test.png
|text before image*img:https://example.org/test.png
|img:https://example.org/test.png*text after image
|vid:https://example.org/test.mp4
`
```

Expand All @@ -63,7 +65,9 @@ items: `

```html
<div class="mod rotator">
{quote_text}
[<div class="txt">{text}</div>]
[<div class="img"><img src="{image}" alt="{image}"></div>]
[<div class="vid"><video src="{video}" autoplay="true" loop="true" playsinline="true"></video></div>]
</div>
```

Expand All @@ -78,6 +82,9 @@ items: `

.img > img {} /* Image tags inside image items */

.vid {} /* Video items */

.vid > video {} /* Video tags inside video items */
```

---
2 changes: 1 addition & 1 deletion app/mod/rotator/rotator.conf.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// For help see rotator.md
// For help see rotator/README.md

export const modConf = {
updaterate: '10000',
Expand Down
3 changes: 3 additions & 0 deletions app/mod/rotator/rotator.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ export class Mod extends ModBase
if (itemPart.startsWith('img:')) {
out += `<div class="img"><img src="${itemPart.substr(4)}" alt="${itemPart}"></div>`
}
else if (itemPart.startsWith('vid:')) {
out += `<div class="vid"><video src="${itemPart.substr(4)}" autoplay="true" loop="true" playsinline="true"></video></div>`
}
else {
out += `<div class="txt">${itemPart}</div>`
}
Expand Down

0 comments on commit 2534694

Please sign in to comment.