Skip to content

Instantly share code, notes, and snippets.

Tarikul Islam tarikul05

View GitHub Profile
View reivo-employee.json
{
"admin":[
{
"id": 100,
"name": "Keita Ashihara ",
"position": "President",
"image": "https://ca.slack-edge.com/T02KTANCU-U02KTANCW-63999c5e6bfc-72"
},
{
"id": 101,
@tarikul05
tarikul05 / querystring.js
Last active Dec 13, 2017
Change current page query string with jquery.
View querystring.js
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];
}
}
You can’t perform that action at this time.