MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / onClickEvent

Function onClickEvent

static/widgets/fontscale.ts:42–48  ·  view source on GitHub ↗
(this: JQuery)

Source from the content-addressed store, hash-verified

40
41function makeFontSizeDropdown(elem: JQuery, obj: FontScale, buttonDropdown: JQuery) {
42 function onClickEvent(this: JQuery) {
43 // Toggle off the selection of the others
44 $(this).addClass('active').siblings().removeClass('active');
45 // Send the data
46 obj.applyScale($(this).data('value'));
47 obj.emit('change');
48 }
49
50 for (let i = 8; i <= 30; i++) {
51 const item = $('<button></button>');

Callers

nothing calls this directly

Calls 3

applyScaleMethod · 0.80
dataMethod · 0.80
emitMethod · 0.45

Tested by

no test coverage detected