PageSourceSearch

https://betterstack.com/assets/common_controllers/cloud_fit_controller-2f9024d0.js

js betterstack.com collected 2026-10-09 23:01:16 UTC 573 bytes, 15 lines download raw bytes

1import { Controller } from '@hotwired/stimulus'
2
3// Highlights one cloud category at a time on the /cloud "Which cloud is the right for you?" card:
4// the hovered tag group gets the purple outline, its scatter-chart cluster switches to colored icons.
5export default class extends Controller {
6  static targets = ['group', 'cluster']
7
8  activate(event) {
9    const group = event.currentTarget.dataset.group
10
11    for (const element of [...this.groupTargets, ...this.clusterTargets]) {
12      element.toggleAttribute('data-active', element.dataset.group === group)
13    }
14  }
15}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.