Skip to content

Installing Amplitude.js on Joomla #320

@NesteA88

Description

@NesteA88

Good day!

Version Amplitude.js - 4.0.0

Installation instructions studied. I'm trying to install the player on Joomla by the third method - manual installation (while on the local server). What am I doing wrong?

I downloaded Amplitude.js from GitHub. The amplitude.js file added to the </ head> area - <script type="text/javascript" src="/js/amplitude.js"> </ script>. In the place of the site where I want to see the player, I initialize its output:

<script type="text/javascript"> Amplitude.init({ "songs": [ { "name": "Song Name 1", "artist": "Artist Name", "album": "Album Name", "url": "/song/url.mp3", "cover_art_url": "/cover/art/url.jpg" }, { "name": "Song Name 2", "artist": "Artist Name", "album": "Album Name", "url": "/song/url.mp3", "cover_art_url": "/cover/art/url.jpg" }, { "name": "Song Name 3", "artist": "Artist Name", "album": "Album Name", "url": "/song/url.mp3", "cover_art_url": "/cover/art/url.jpg" } ] }); </script>

Result: the player does not even appear. In the console, such a picture - https://prnt.sc/meo2ix

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions