Streaming live at 10am (PST)

Upload JavaScript files


#1

I would like to use a JavaScript audio player rather than a standard html embed audio player. I found one simple JavaScript player that meets my needs, though it requires to upload three files in the same folder, somewhere on my site. I found it from http://kolber.github.io/audiojs/ You can see it's a very simple instruction, copy and paste a few JS, change the file links, and upload three files on my server. Since there is no asset manager, I would like to see if you can help or there is any suggestions.

This JS consists of three files, JavaScript files (.js), flash (.swf), and GIF (Although I can upload the gif, it has to be in the same folder with .js and .swf file.) I tried to upload these files on google doc or dropbox, recommendation from other post, but js player doesn't work.

I can't just copy and paste the coding from the .js file here because it's too long. But you can download or see the three important files in the following link:
https://drive.google.com/folderview?id=0B-9kThePSDz7fjJ3cUhobVNKSVVhNzBUd2dBSThiajNBMVhVd0pFQ05oeFRMek1udVozMDA&usp=sharing

Let me know if you can help. Once I figure out how to upload these files, it will be very helpful if I need to implement other JavaScript in the future, if needed, too.

Thanks!


#2

Hi @gummytiger, at the moment, we do not have support in the Asset Manager for uploading anything other than images.

If you have scripts that you need to link to, there are some options:

  1. Link to the script from a public script CDN repository, cdnjs.com
  2. Upload the script to a file storage service, like Dropbox. When linking to a shared public link to the file in Dropbox, replace the www in the url to "dl", so the file opens up like a file, and not a webpage. You can also use any other file storage you may have service with.
  3. If the script is less than 20k characters, it can be directly pasted into the head or footer of your site. I would recommend linking to files before trying to paste a huge amount of script in the custom code panels.

http://help.webflow.com/site-settings/custom-code

​I hope this helps. If not, please let me know – I'm happy to assist further! smile

Cheers,
Dave


#3

I moved a post to a new topic: Help to setup custom code for Slick Carousel plugin


#4

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.