Created
April 14, 2020 16:16
-
-
Save saswata-dutta/1a0c3c0fdbca1de697d1c11938f42f58 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function loadJquery() { | |
var jq = document.createElement('script'); | |
jq.src = "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
jQuery.noConflict(); | |
}; | |
function moveSim(id) { | |
payload = { | |
??? | |
}; | |
url = "???"; | |
jQuery.post( url, payload, function( data ) { | |
console.log("Success for " + id); | |
console.log(data); | |
}); | |
}; | |
function moveSims(ids) { | |
ids.forEach(id => moveSim(id)); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment