Libraryless. Click here for Pure Java version (2515L/16K).
1 | sS googleSignIn_header() { |
2 | ret googleSignIn_header(""); |
3 | } |
4 | |
5 | sS googleSignIn_header(S onLoad) { |
6 | ret googleSignIn_header(onLoad, botCompanyGoogleSignInID()); |
7 | } |
8 | |
9 | sS googleSignIn_header(S onLoad, S clientID) { |
10 | if (empty(clientID)) ret ""; |
11 | ret [[<script src="https://apis.google.com/js/platform.js$PARAM" async defer></script> |
12 | <meta name="google-signin-client_id" content="$CLIENTID">]] |
13 | .replace("$PARAM", nempty(onLoad) ? "?onload=" + urlencode(onLoad) : "") |
14 | .replace("$CLIENTID", clientID); |
15 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1013823 |
Snippet name: | googleSignIn_header |
Eternal ID of this version: | #1013823/5 |
Text MD5: | b6653d803101b2ca79905c90c4b2498d |
Transpilation MD5: | 80c93d3b8a895efdfe095736e3a0a5d8 |
Author: | stefan |
Category: | javax / web |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-08-05 23:58:06 |
Source code size: | 522 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 363 / 448 |
Version history: | 4 change(s) |
Referenced in: | [show references] |