Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

869 B
Raw Blame
<script>
// dropdown toggle for data-dropdown-toggle
(function() {
  if (window.__dropdownInit) return;
  window.__dropdownInit = true;
  
  document.addEventListener('DOMContentLoaded', function() {
    document.querySelectorAll('[data-dropdown-toggle]').forEach(function(btn) {
      var dropdownId = btn.getAttribute('data-dropdown-toggle');
      var dropdown = document.getElementById(dropdownId);
      if (!dropdown) return;

      btn.addEventListener('click', function(e) {
        e.stopPropagation();
        dropdown.classList.toggle('hidden');
      });
    });

    document.addEventListener('click', function(e) {
      if (!e.target.closest('[data-dropdown-toggle], [id$="-dropdown"]')) {
        document.querySelectorAll('[id$="-dropdown"]').forEach(function(d) {
          d.classList.add('hidden');
        });
      }
    });
  });
})();
</script>