import Tagify from '@yaireo/tagify'; import '@yaireo/tagify/dist/tagify.css'; const taginput = document.querySelector("#tags"); const studioinput = document.querySelector("#studio"); // Get Tags from API window.axios.get('/admin/tags').then(function (response) { if (response.status != 200) { return; } new Tagify(taginput, { whitelist: response.data.tags, dropdown: { classname: "color-blue", enabled: 0, // show the dropdown immediately on focus maxItems: 10, position: "text", // place the dropdown near the typed text closeOnSelect: false, // keep the dropdown open after selecting a suggestion highlightFirst: true } }); }).catch(function (error) { console.log(error); }); // Get Studios from API window.axios.get('/admin/studios').then(function (response) { if (response.status != 200) { return; } new Tagify(studioinput, { whitelist: response.data.studios, dropdown: { classname: "color-blue", enabled: 0, // show the dropdown immediately on focus maxItems: 10, position: "text", // place the dropdown near the typed text closeOnSelect: false, // keep the dropdown open after selecting a suggestion highlightFirst: true } }); }).catch(function (error) { console.log(error); }); let eps = 1; function dynEpisode() { let amount = this.value; if (amount > eps) { eps += 1; var episodeUploads = `