{"size": 688, "ext": "js", "max_stars_repo_path": "JS-jQuery/js/cookies.js", "max_stars_repo_name": "bb-87/wifi-jwe21", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "JS-jQuery/js/cookies.js", "max_issues_repo_name": "bb-87/wifi-jwe21", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "JS-jQuery/js/cookies.js", "max_forks_repo_name": "bb-87/wifi-jwe21", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 36.2105263158, "max_line_length": 96, "alphanum_fraction": 0.6468023256}
$('#set_cookie').click(function(){
    let cookieValue = $('#cookie_value').val();
    console.log(cookieValue);

    if(cookieValue.length > 0) {
        Cookies.set('jwe', cookieValue, {expires: 7}); // https://github.com/js-cookie/js-cookie
        console.log(`Cookie wurde mit dem Wert ${cookieValue} erstellt.`);
    } else {
        console.warn('Sie haben keinen Wert für das Cookie angegeben!')
    }
});

$('#read_cookie').click(function(){
    // Vom gelesenen Cookie bereitgestellter Wert wird in die Variable gespeichert
    let cookieValue = Cookies.get('jwe');

    // Übergabe des Wertes über die Variable an das <div id="output" />
    $('#output').html(cookieValue);
});