JSFiddle - React, Tailwind, and code Playground

by Brandon Shelley

HTML

Fielder's choice: times reaching base safely because a fielder chose to try for an out on another runner FC is Fielder's choice, times reaching base safely because a fielder chose to try for an out on another runner. Something about PO and whatever. Oh and GIDP is pretty useful too. Blah blah blah.

CSS

abbr {
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

JavaScript

var acronyms = {
    "1B": "Single: hits on which the batter reaches first base safely without the contribution of a fielding error.",
        "2B": "Double: hits on which the batter reaches second base safely without the contribution of a fielding error.",
        "3B": "Triple: hits on which the batter reaches third base safely without the contribution of a fielding error.",
        "AB": "At bat: Plate appearances, not including bases on balls, being hit by pitch, sacrifices, interference, or obstruction.",
        "AB/HR": "At bats per home run: at bats divided by home runs.",
        "BA": "Batting average (also abbreviated AVG): hits divided by at bats (H/AB)",
        "BB": "Base on balls (also called a 'walk'): hitter not swinging at four pitches called out of the strike zone and awarded first base.",
        "BABIP": "Batting average on balls in play: frequency at which a batter reaches a base after putting the ball in the field of play. Also a pitching category.",
        "BB/K": "Walk-to-strikeout ratio: number of bases on balls divided by number of strikeouts",
        "BsR": "Base Runs: Another run estimator, like Runs Created; a favorite of writer Tom Tango",
        "FC": "Fielder's choice: times reaching base safely because a fielder chose to try for an out on another runner",
        "GO/AO": "Ground ball fly ball ratio: number of ground ball outs divided by number of fly ball outs",
        "GDP": "Ground into double play: number of ground balls hit that became double plays",
        "GPA": "Gross Production Average: 1.8 times on-base percentage plus slugging percentage, divided by four",
        "GS": "Grand Slam: a home run with the bases loaded, resulting in four runs scoring, and four RBI credited to the batter.",
        "H": "Hits: times reached base because of a batted, fair ball without error by the defense",
        "HBP": "Hit by pitch: times touched by a pitch and awarded first base as a result",
        "HR": "Home runs: hits on...