Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

25
LINES

< > BotCompany Repo | #1000902 // Testing SelectFinder (find snippet types)

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (622L/6K/17K).

!747

m {
  !include #1000903 // SelectFinder
  
  p {
    S s = loadPage("http://tinybrain.de:8080/tb/snippets.php?action=list");
    new SelectFinder f;
    f.go(s);
    S tag = f.select.get(1);
    print(tag);
    S name = htmlgetparams(tag).get("name");
    if (name != "type")
      error("huch: " + tag);
      
    print(structure(f.options));
    
    for (S[] o : f.options) {
      if (o[0].equals("")) continue;
      name = o[1].replaceAll(".*\\]", "").trim();
      int id = parseInt(o[0]);
      print("Type found: " + "[" + id + "] " + name);
    }
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1000902
Snippet name: Testing SelectFinder (find snippet types)
Eternal ID of this version: #1000902/1
Text MD5: 86eb129557ac945ac1794f979c9f9d50
Transpilation MD5: 11aaaea03bd63652041fe8b13185cb60
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-09-07 16:39:23
Source code size: 593 bytes / 25 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 627 / 702
Referenced in: [show references]