Skip to content

Commit 1744f0f

Browse files
committed
Updated documtnation to support carbon ads and sponsors
1 parent 741df96 commit 1744f0f

28 files changed

Lines changed: 29 additions & 18 deletions

docs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ meta:
3636
---
3737

3838
# Overview
39+
<carbon-ads/>
3940
The concept of Amplitude.js is simple, allow designers to fully control the look
4041
and feel of their audio player through the web without having to understand
4142
advanced scripting. In HTML5, the audio tag allows users to add common audio

docs/configuration/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ meta:
3636
---
3737

3838
# Configuring Amplitude.js
39+
<carbon-ads/>
3940
Amplitude JS contains many variables that can be configured to determine the
4041
functionality of AmplitudeJS.
4142

docs/configuration/binding-key-events.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ meta:
3636
---
3737

3838
# Binding Key Events
39+
<carbon-ads/>
3940
This allows you to configure certain
4041
events to trigger on key presses. The main piece of information needed is the
4142
key code [https://keycode.info/](https://keycode.info/). Once you have that, you

docs/configuration/callbacks.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ meta:
3636
---
3737

3838
# Callbacks
39+
<carbon-ads/>
3940
There are a variety of callbacks specific to AmplitudeJS that get called at certain times that the developer can bind to.
4041

4142

docs/configuration/continue-next.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ meta:
3535
content: "@521dimensions"
3636
---
3737

38+
<carbon-ads/>
39+
3840
AmplitudeJS allows you to stop playing a song after it has been finished. To stop a song after it has been finished playing you need to configure AmplitudeJS with the `continue_next` flag set to `false` on initialization. By default, AmplitudeJS will go to the next song in the list or playlist depending on state. To set the flag as false, initialize AmplitudeJS with the following parameter:
3941

4042
```javascript

docs/configuration/debug.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ meta:
3636
---
3737

3838
# Debug Mode
39-
39+
<carbon-ads/>
4040
Debug mode outputs verbose updates when Amplitude actions take place to see the
4141
current config and statuses of the AmplitudeJS player. To turn on AmplitudeJS
4242
debug mode you can set it in the config or call:

docs/configuration/default-art.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ meta:
3636
---
3737

3838
# Default Art
39-
39+
<carbon-ads/>
4040
If you have audio that doesn't have a specific piece of album art, you can define
4141
a default image url using the "default_album_art" key. The value can be set on initialization or through a public method. You can also set the default playlist art for metadata. If you don't define a piece of album art for your playlist you can also set that on initialization through the "default_playlist_art" key or through a public method.
4242

docs/configuration/delay.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ meta:
3636
---
3737

3838
# Delay Between Audio
39-
39+
<carbon-ads/>
4040
AmplitudeJS allows the developer to add a time delay between the audio objects defined. By default, this value is `0`. When you initialize AmplitudeJS you can provide an integer in MS for how long you want AmplitudeJS to wait before it starts playing the next audio track.
4141

4242
## Initialization

docs/configuration/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ meta:
3636
---
3737

3838
# Installation
39-
39+
<carbon-ads/>
4040
## Option 1: Use CDN from jsDelivr
4141
No installation is required to use Amplitude.js. All you need to do is include a single line in your `<head>` section of your HTML page.
4242

docs/configuration/playback-speed.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ meta:
3636
---
3737

3838
# Setting the Default Playback Speed
39-
39+
<carbon-ads/>
4040
By default, AmplitudeJS plays back the audio at the normal speed of `1.0`. However, you can initialize AmplitudeJS to play at `1.5`x the normal rate or `2.0`x times the normal rate. To do that, you can set the `playback_speed` attribute on initialization.
4141

4242
```javascript

0 commit comments

Comments
 (0)