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

11
LINES

< > BotCompany Repo | #1002965 // hrefresh - make HTML "refresh" tag

JavaX fragment (include)

static S hrefresh(S target) {
  ret hrefresh(0, target);
}

static S hrefresh(double seconds) {
  ret hrefresh(seconds, "");
}

static S hrefresh(double seconds, S target) {
  ret tag("meta", "", "http-equiv", "refresh", "content", iceil(seconds) + (nempty(target) ? "; url=" + target : ""));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1002965
Snippet name: hrefresh - make HTML "refresh" tag
Eternal ID of this version: #1002965/4
Text MD5: 9a82ca9b8dafe9e5519eb3ccc1dbc388
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-06-20 03:52:33
Source code size: 304 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 765 / 804
Version history: 3 change(s)
Referenced in: [show references]