Guest User

Untitled

a guest
Jul 17th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. searchValue: function(argument, value) {
  2. var found = 0;
  3. var hashStr = Base64.decode(window.location.hash.substr(1));
  4. var hashArgs = hashStr.split("&");
  5. for (var arg in hashArgs) {
  6. var hashArg = hashArgs[arg].split("=");
  7. if (hashArg[0] == argument) {
  8. var hashVal = hashArg[1].split(",");
  9. for (val in hashVal) {
  10. if (hashVal[val] == value) {
  11. found++;
  12. }
  13. }
  14. }
  15. }
  16. return found;
  17. }
Add Comment
Please, Sign In to add comment