0.8.4 ā¢ Published 3 years ago
@visbot/webvsc-ui v0.8.4
webvsc-ui
Description
Web frontend for webvsc, a converter for Winamp AVS presets.
Demo Time š
Installation
Use your preferred Node package manager to install the mode
yarn add @visbot/webvsc-ui || npm install @visbot/webvsc-ui
Usage
Embedding the converter into a website is easy
<head>
<!-- Import the style-sheet -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@visbot/webvsc-ui@latest/dist/webvsc-ui.css">
</head>
<body>
<!-- Add a droparea -->
<div id="drop-area"></div>
<!-- Import the script -->
<script src="https://cdn.jsdelivr.net/npm/@visbot/webvsc-ui@latest/dist/webvsc-ui.js"></script>
<!-- Initialize the script -->
<script>
var ui = new Webvsc(document.getElementById('drop-area'));
</script>
</body>
</html>
Options
Pass options in an object to configure the appearance
var element = document.getElementById('drop-area');
var options = {
innerHTML: "<p>Drop it like it's hot</p>",
width: '800px',
height: '600px'
};
var ui = new Webvsc(element, options);
Parameters
Advanced users can tweak some of the defaults using URL parameters
URL Parameter | Description |
---|---|
verbose=<n> | adjust output level (0-2) |
level=<n> | adjust ZIP compression (0-9) |
minify | minify output JSON |
Support
The converter has been only been tested on most recent browsers at the time of its first release. These include the following, but might extend to older versions.
Browser | Known Issues |
---|---|
š Android Browser (Nougat) | fails to upload |
šÆ Chrome 62 | - |
šÆ Firefox 56 | - |
š Edge (Windows 10.0.15063) | fails on upload |
šÆ Opera 49 | - |
šÆ Safari 11 | - |
š¤ Mobile Chrome 62 | single upload |
š¤ Mobile Safari (iOS 11) | single upload, saves ZIP as untitled.zip |
šÆ Vivaldi 1.12 | - |
License
All code is licensed under The MIT License