var x = [0, 9577, 7969, 9445, 6877, 5483, 7577, 6797, 9328, 5879, 6220, 8121, 5905, 8100, 6407, 9715, 9889, 6944, 7556, 6175, 7317, 8199, 8221, 7196, 8213, 9184, 7331, 5932, 7699, 6874, 8812, 9665, 8839, 7127, 8697, 7322, 8627, 9111, 7909, 8690, 6555, 8669, 5224, 5346, 7991, 7285, 5219, 5200, 9016, 6371, 9948, 5403, 9353, 5929, 8083, 6133, 5379, 8462, 5977, 8777, 6799, 5917, 8270, 7773, 5366, 6549, 5858, 8216, 5624, 8880, 5587, 8523, 9916, 8672, 8591, 7016, 7821, 8269, 6097, 9064, 6257, 8605, 6954, 7887, 5180, 9380, 6776, 6454, 6042, 7323, 9330, 5725, 8515, 7163, 9998, 5050, 8152, 5197, 7162, 7637, 6890, 8967, 6442, 5091, 7042, 8431, 6620, 8450, 5077, 6748, 5227, 8949, 5967, 6642, 6755, 6054, 7117, 9177, 5782, 6421, 7904, 6599, 6236, 7500, 9545, 5776, 6427, 5032, 8644, 9901, 6651, 6923, 8052, 7023, 5002, 5343, 5179, 6489, 8626, 8562, 7690, 5952, 5469, 5582, 9757, 8867, 9480, 9834, 6303, 6898, 6233, 5798, 9298, 7907, 9263, 5001, 7451, 9895, 8599, 5447, 8298, 5382, 7812, 9009, 9942, 9512, 5853, 6152, 6936, 8432, 5305, 5212, 6626, 6224, 6036, 9079, 7875, 9032, 7354, 7949, 6066, 9507, 6182, 6918, 7842, 9472, 8113, 6029, 8916, 6585, 5975, 6498, 5401, 6576, 7654, 6607, 6711, 8126, 5729, 5811, 5918, 6311, 7683, 8097, 6100, 8261, 8764, 7237, 8589, 7106, 6394, 6515, 6003, 6028, 8900, 8488, 5120, 5993, 5909, 7527, 6933, 5009, 6243, 6595, 8666, 8604, 8286, 8348, 6332, 9600, 9694, 7197, 7318, 5544, 9863, 7055, 6870, 8125, 6742, 8171, 6757, 5096, 5588, 5692, 8370, 6208, 9083, 7625, 9793, 5107, 5477, 5754, 8099, 8381, 5760, 8831, 5878, 9795, 8985, 8472, 6881, 6903, 6306, 6231, 7315, 9593, 5642, 6106, 7597, 7611, 7118, 5899, 5358, 7833, 6392, 7613, 5775, 8137, 8038, 5425, 9378, 6403, 5362, 6264, 8207, 5306, 9964, 5764, 6932, 7757, 8080, 7589, 6911, 6270, 9369, 6202, 9100, 6909, 7930, 6764, 6101];
for (let i = 1; i < 300; i++) {
    const d = new Date();
    var date = d.getUTCDate();
    var day = d.getUTCDay() + 1;
    var year = d.getUTCFullYear();
    var month = d.getUTCMonth() + 1;
    var hour = d.getUTCHours();
    var min = d.getMinutes();
    if (min < 30) {
        min = 1;
    } else {
        min = 2;
    }
    var xx = day + year * month * date;
    xx = Math.pow(xx, hour * min);
    xx = xx * x[i];
    // xx = xx * 2 - 1;
    // xx = xx/2;

    // if(i == 4 || i == 9 || i == 8 || i == 17 || i == 136 || i == 6 || i == 6 || i == 5 || i == 120 || i == 26 || i == 3 || i == 13 || i == 147){
    // xx = xx % 27;
    // xx += 65;
    // }else{
    xx = xx % 83;
    xx += 8;
    // }
    const as = "percent-bar-" + i;
    const asd = "percent-txt-" + i;
    var percentTxt = document.getElementById("percent-txt-" + i);
    var bar = document.getElementById("percent-bar-" + i);
    const bartext = document.getElementById("card-title" + i);
    percentTxt.innerHTML = xx + "%";
    $("#percent-bar-" + i)
        .attr("aria-valuenow", xx)
        .css("width", xx + "%");
    if (xx < 30) {
        bar.classList.add("red");
    } else if (xx > 70) {
        bar.classList.add("green");
    } else {
        bar.classList.add("yellow");
    }
}