Skip to content

Commit

Permalink
Removed buggy JS
Browse files Browse the repository at this point in the history
  • Loading branch information
Otakar Andrysek authored Jan 27, 2017
1 parent 6b8db80 commit 3dd45d3
Showing 1 changed file with 0 additions and 47 deletions.
47 changes: 0 additions & 47 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,50 +400,3 @@ function doCheck() {
beginTest(); // Yes, we should -- consider it done!
}
}


(htmlWidth = $("html").width();
$.ajax({
type: "POST",
url: "mobileView.php",
data:{ width: htmlWidth, somevar : "yes" },
success: function(data){
console.log(data);
}
}));

(function sendWPM($) {
var person = prompt('Please enter your name', '');
$.ajax({
type: 'POST',
url: './backend.php2',
data: { wpm: $("select[wpm='players']").val() },
success: function (msg) {
alert('Data Saved: ' + msg);
}
});
}(jQuery));

(function sendIssues($) {
var totalTime = prompt('Please enter your name', '');
$.ajax({
type: 'POST',
url: './backend.php2',
data: { issues: $("select[issues='players']").val() },
success: function (msg) {
alert('Data Saved: ' + msg);
}
});
}(jQuery));

(function sendAccuracy($) {
var = prompt('Please enter your name', '');
$.ajax({
type: 'POST',
url: './backend.php2',
data: { accuracy: $("select[accuracy='players']").val() },
success: function (msg) {
alert('Data Saved: ' + msg);
}
});
}(jQuery));

0 comments on commit 3dd45d3

Please sign in to comment.