1 | sS hMakeComputerID() {
|
2 | ret hjavascript([[ |
3 | function makeComputerID() {
|
4 | var text = ""; |
5 | var possible = "abcdefghijklmnopqrstuvwxyz"; |
6 | |
7 | for (var i = 0; i < 12; i++) |
8 | text += possible.charAt(Math.floor(Math.random() * possible.length)); |
9 | return text; |
10 | } |
11 | |
12 | var computerID = localStorage.getItem('computer-id');
|
13 | if (computerID == null || computerID.length != 12) {
|
14 | computerID = makeComputerID(); |
15 | localStorage.setItem('computer-id', computerID);
|
16 | } |
17 | ]]); |
18 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1018536 |
| Snippet name: | hMakeComputerID |
| Eternal ID of this version: | #1018536/2 |
| Text MD5: | 481a20e99a08fd5a0b71f13d2fda3553 |
| Author: | stefan |
| Category: | javax / web |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-10-03 16:50:28 |
| Source code size: | 504 bytes / 18 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 575 / 630 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |