Update pipeline.js

This commit is contained in:
tpollina 2019-12-10 17:22:06 -08:00 committed by GitHub
parent 7da17e36b2
commit 39fef41e38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,10 +1,21 @@
function pipeline() {
var value = $("#value").val();
var string = $("#string").text();
$(document).ready(function(){
console.log("pipeline.php?value="+value+"&string="+string);
$( "#send_nb_step" ).click(function() {
pipeline()
});
function pipeline() {
var value = $("#nb_step").val();
var orientation = $("#orientation").val();
console.log("pipeline.php?nb_step="+value+"&orientation="+orientation);
var xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET", "pipeline.php?value="+value+"&string="+string, true);
xmlhttp.open("GET", "pipeline.php?nb_step="+value+"&orientation="+orientation, true);
xmlhttp.send();
}
});