// Plugin database with expanded list let pluginData = JSON.parse(localStorage.getItem('pluginDatabase')) || [ // Plugin Alliance { id: 1, name: "bx_console SSL 4000 E", developer: "Plugin Alliance", cpuUsage: 8, rating: 4.7, category: "Channel Strip", icon: "http://static.photos/technology/200x200/1" }, { id: 2, name: "bx_console SSL 4000 G", developer: "Plugin Alliance", cpuUsage: 8, rating: 4.7, category: "Channel Strip", icon: "http://static.photos/technology/200x200/2" }, { id: 3, name: "bx_console Focusrite SC", developer: "Plugin Alliance", cpuUsage: 7, rating: 4.6, category: "Channel Strip", icon: "http://static.photos/technology/200x200/3" }, { id: 4, name: "MAAT thEQorange", developer: "Plugin Alliance", cpuUsage: 4, rating: 4.8, category: "EQ", icon: "http://static.photos/technology/200x200/4" }, { id: 5, name: "Unfiltered Audio G8", developer: "Plugin Alliance", cpuUsage: 12, rating: 4.5, category: "Dynamic EQ", icon: "http://static.photos/technology/200x200/5" }, { id: 6, name: "SPL Iron", developer: "Plugin Alliance", cpuUsage: 5, rating: 4.5, category: "Compressor", icon: "http://static.photos/technology/200x200/6" }, { id: 7, name: "AMEK EQ 200", developer: "Plugin Alliance", cpuUsage: 3, rating: 4.7, category: "EQ", icon: "http://static.photos/technology/200x200/7" }, // Soundtoys { id: 8, name: "Decapitator", developer: "Soundtoys", cpuUsage: 6, rating: 4.9, category: "Saturation", icon: "http://static.photos/technology/200x200/8" }, { id: 9, name: "EchoBoy", developer: "Soundtoys", cpuUsage: 9, rating: 4.8, category: "Delay", icon: "http://static.photos/technology/200x200/9" }, { id: 10, name: "Little AlterBoy", developer: "Soundtoys", cpuUsage: 14, rating: 4.6, category: "Vocals", icon: "http://static.photos/technology/200x200/10" }, // Waves { id: 11, name: "CLA-76", developer: "Waves", cpuUsage: 4, rating: 4.5, category: "Compressor", icon: "http://static.photos/technology/200x200/11" }, { id: 12, name: "SSL E-Channel", developer: "Waves", cpuUsage: 6, rating: 4.6, category: "Channel Strip", icon: "http://static.photos/technology/200x200/12" }, { id: 13, name: "H-Delay", developer: "Waves", cpuUsage: 5, rating: 4.4, category: "Delay", icon: "http://static.photos/technology/200x200/13" }, // Eventide { id: 14, name: "H3000 Factory", developer: "Eventide", cpuUsage: 16, rating: 4.7, category: "Effects", icon: "http://static.photos/technology/200x200/14" }, { id: 15, name: "UltraChannel", developer: "Eventide", cpuUsage: 8, rating: 4.5, category: "Channel Strip", icon: "http://static.photos/technology/200x200/15" }, // TDR { id: 16, name: "Kotelnikov", developer: "TDR", cpuUsage: 2, rating: 4.8, category: "Compressor", icon: "http://static.photos/technology/200x200/16" }, { id: 17, name: "Nova", developer: "TDR", cpuUsage: 3, rating: 4.7, category: "Dynamic EQ", icon: "http://static.photos/technology/200x200/17" } ]; // Developers with their plugin counts const developersData = [ { id: 1, name: "Plugin Alliance", rating: 4.7, pluginsCount: 75, icon: "http://static.photos/technology/200x200/18" }, { id: 2, name: "Soundtoys", rating: 4.8, pluginsCount: 12, icon: "http://static.photos/technology/200x200/19" }, { id: 3, name: "Waves", rating: 4.3, pluginsCount: 200, icon: "http://static.photos/technology/200x200/20" }, { id: 4, name: "Eventide", rating: 4.6, pluginsCount: 25, icon: "http://static.photos/technology/200x200/21" }, { id: 5, name: "TDR", rating: 4.8, pluginsCount: 10, icon: "http://static.photos/technology/200x200/22" } ]; document.addEventListener('DOMContentLoaded', function() { // Initialize the page with data populateTiers(); populateDevelopers(); // Set up search functionality document.getElementById('search-btn').addEventListener('click', performSearch); document.getElementById('plugin-search').addEventListener('keypress', function(e) { if (e.key === 'Enter') { performSearch(); } }); }); function populateTiers() { const highCpuList = document.getElementById('high-cpu-list'); const mediumCpuList = document.getElementById('medium-cpu-list'); const lowCpuList = document.getElementById('low-cpu-list'); // Clear existing content highCpuList.innerHTML = ''; mediumCpuList.innerHTML = ''; lowCpuList.innerHTML = ''; // Sort plugins by rating (highest first) const sortedPlugins = [...pluginData].sort((a, b) => b.rating - a.rating); sortedPlugins.forEach(plugin => { const pluginCard = createPluginCard(plugin); if (plugin.cpuUsage > 15) { highCpuList.appendChild(pluginCard); } else if (plugin.cpuUsage >= 5) { mediumCpuList.appendChild(pluginCard); } else { lowCpuList.appendChild(pluginCard); } }); } function populateDevelopers() { const developersGrid = document.getElementById('developers-grid'); developersGrid.innerHTML = ''; // Sort developers by rating (highest first) const sortedDevelopers = [...developersData].sort((a, b) => b.rating - a.rating); sortedDevelopers.forEach(dev => { const developerCard = document.createElement('div'); developerCard.className = 'developer-card'; developerCard.innerHTML = `
${dev.pluginsCount} plugins
${plugin.developer}
No results found for "${query}"
${dev.pluginsCount} plugins