Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- searchValue: function(argument, value) {
- var found = 0;
- var hashStr = Base64.decode(window.location.hash.substr(1));
- var hashArgs = hashStr.split("&");
- for (var arg in hashArgs) {
- var hashArg = hashArgs[arg].split("=");
- if (hashArg[0] == argument) {
- var hashVal = hashArg[1].split(",");
- for (val in hashVal) {
- if (hashVal[val] == value) {
- found++;
- }
- }
- }
- }
- return found;
- }
Add Comment
Please, Sign In to add comment