This file contains 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
{ | |
"admin":[ | |
{ | |
"id": 100, | |
"name": "Keita Ashihara ", | |
"position": "President", | |
"image": "https://ca.slack-edge.com/T02KTANCU-U02KTANCW-63999c5e6bfc-72" | |
}, | |
{ | |
"id": 101, |
This file contains 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 getQueryVariable(url, variable) { | |
var queryString = url.substring(1); | |
var index = queryString.indexOf("?"); | |
var vars = queryString.substr(index+1).split('&'); | |
for (var i=0; i<vars.length; i++) { | |
var pair = vars[i].split('='); | |
if (pair[0] == variable) { | |
return pair[1]; | |
} | |
} |