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

23
LINES

< > BotCompany Repo | #1006016 // HTML screenshot linking functions

JavaX fragment (include)

sS screenshotLin2(S imgID, S progID) {
  ret screenshotLink(progID, imgID);
}

sS screenshotLink(S progID, S imgID) {
  ret ahref(snippetLink(imgID), himgw(snippetImgLink(imgID), 200))
    + " " + ahref(snippetLink(progID), "(src)");
}

static S bigScreenshot(S imgID, S progID) {
  ret bigScreenshot(imgID, progID, "");
}

static S bigScreenshot(S imgID, S progID, S title) {
  if (empty(title)) title = getSnippetTitle(imgID);
  ret h2(htmlencode("= " + title + " ="))
    + bigScreenshot_noTitle(imgID, progID);
}

static S bigScreenshot_noTitle(S imgID, S progID) {
  ret p(ahref(snippetLink(progID), himg(snippetImgLink(imgID)))
    + "<br>" + ahref(snippetLink(progID), "(src)"));
}

Author comment

Began life as a copy of #1003253

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006016
Snippet name: HTML screenshot linking functions
Eternal ID of this version: #1006016/1
Text MD5: e15d11657ed7b5414417bf7b7cbd1d3b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-01-10 14:24:13
Source code size: 712 bytes / 23 lines
Pitched / IR pitched: No / No
Views / Downloads: 493 / 989
Referenced in: #1003253 - New Homepage (LIVE)