Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var keys = [],
- inputs = document.getElementsByTagName("input"),
- total = inputs.length,
- x;
- for (x = 0; x < total; x++) {
- input = inputs[x];
- if ("game.key" === input.getAttribute("ng-model")) {
- if (-1 === keys.indexOf(input.value)) {
- keys.push(input.value)
- }
- }
- };
- prompt("", keys.join(","));
- void(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement