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   

Travelled to 11 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz

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: 469 / 470
Version history: 3 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1002965 & http://1002965.tinybrain.de