Preview:
async function turnierplan_mit_helfer_teilen() {
  var url_string = window.location.href;
  var url = new URL(url_string);
  var pw = url.searchParams.get("pw");
  var turnier_id = url.searchParams.get("turnier_id");
  
  let turnier = await read_turnier_details(turnier_id, "*", "*");
  ...
}
  
async function read_turnier_details(turnier_id, runde, gruppe){
    var base_url = window.location.origin;
    if( base_url.includes("https://localhost") ){
        base_url = "https://localhost/mytman-repo";
    }
    return jQuery.ajax({
        type: "POST",
        dataType: "json",
        url: base_url + "/app/api/read_turnier_details",
        data: {
            turnier_id: turnier_id,
            runde: runde,
            gruppe: gruppe
        },
        success: function(response){
        }
    });
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter