JSFiddle - React, Tailwind, and code Playground

by D S

JavaScript

/*
 * Hero - Shoutcast and Icecast Radio Player With History - v3.5.1
 * Copyright 2017-2020, LambertGroup
 *
 */

(function(f) {
  function M(a, b, d, e) {
    f(a.thumbsHolder_Thumbs[a.current_img_no]).css({
      background: b.playlistRecordBgOnColor,
      "border-bottom-color": b.playlistRecordBottomBorderOnColor,
      color: b.playlistRecordTextOnColor
    });
    a.is_very_first || Q(-1, a, b, d);
    if ("" != b.radio_stream) var p = b.radio_stream;
    return p
  }

  function Y(a) {
    var b = new XMLHttpRequest;
    b.open("HEAD", a, !1);
    b.send();
    console.log(a + "   ----   " + b.status);
    return 404 != b.status
  }

  function Z(a, b, d, e) {
    var p = b.noImageAvailable,
      m = "",
      w = "";
    if ("" != a && void 0 != a) {
      m = a.match(/\.([^\./\?#]+)($|\?|#)/)[1];
      if ("jpg" == m || "jpeg" == m || "JPG" == m || "JPEG" == m) w = "&iiurlparam=qlow-1000px";
      f.get("https://commons.wikimedia.org/w/api.php?action=query&titles=Image:" + a + "&prop=imageinfo&format=xml&origin=*&iiprop=url" + w, {}, function(n) {
        "" != f("ii", n).attr("thumburl") && void 0 != f("ii", n).attr("thumburl") ? (p = f("ii", n).attr("thumburl"), d.wiki_photo_path = p) : "" != f("ii", n).attr("url") && void 0 != f("ii", n).attr("url") && (p = f("ii", n).attr("url"), d.wiki_photo_path = p);
        R(b, d, e, p)
      })
    }
  }

  function T(a, b, d, e, p, m, w, n, r, y, q, t, v, C, z, B, k, g) {
    var u =
      d.noImageAvailable,
      l = "",
      x = "";
    if ("" != d.optional_images_path) b.playlist_images_arr[g] = a;
    else if ("" != a && void 0 != a) {
      l = a.match(/\.([^\./\?#]+)($|\?|#)/)[1];
      if ("jpg" == l || "jpeg" == l || "JPG" == l || "JPEGs" == l) x = "&iiurlparam=qlow-200px";
      f.get("https://commons.wikimedia.org/w/api.php?action=query&titles=Image:" + a + "&prop=imageinfo&format=xml&origin=*&iiprop=url" + x, {}, function(A) {
        "" != f("ii", A).attr("thumburl") && void 0 != f("ii",...