Skip to content

Commit

Permalink
Fix writing file
Browse files Browse the repository at this point in the history
  • Loading branch information
itok01 committed Aug 20, 2019
1 parent 5b32b4b commit f356b82
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions result/point.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,6 @@ function getParam(name, url) {
return decodeURIComponent(results[2].replace(/\+/g, " "));
}

function getCSVFile() {
var xhr = new XMLHttpRequest();
xhr.onload = function () {
createArray(xhr.responseText);
};

xhr.open("get", "data.csv", true);
xhr.send(null);
}
getCSVFile();

function createArray(csvData) {
var tempArray = csvData.split("\n");
var csvArray = new Array();
for (var i = 0; i < tempArray.length; i++) {
csvArray[i] = tempArray[i].split(",");
}
console.log(csvArray);
}

function tweet() {
window.open("https://twitter.com/intent/tweet?text=私は%20%23DynamicDance%20で" + score + "点を獲得しました!", "_blank");
}

0 comments on commit f356b82

Please sign in to comment.