From 4819394676048c92710a7ed6ea8f26ae82bf730c Mon Sep 17 00:00:00 2001 From: Doug Orleans Date: Thu, 12 Jun 2014 20:42:15 -0400 Subject: [PATCH] Oops, make hyperlinks be hyperlinks and not command links. Also, open them in a blank target to avoid same-origin iframe restrictions. --- shufflecomp.t | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/shufflecomp.t b/shufflecomp.t index 36165c6..515ae38 100644 --- a/shufflecomp.t +++ b/shufflecomp.t @@ -50,8 +50,8 @@ versionInfo: GameID showAbout() { """ An interactive fiction (an entry in ShuffleComp 2014) inspired by the song - <>\b + <>\b Thanks to my testers: Scooter Burch, Juhana Leinonen, Jason McIntosh, Zach Samuels, Carolyn VanEseltine, Olly V., and Caleb Wilson. Also thanks to Sam Kabo Ashwell for organizing the competition, and thanks to @@ -60,16 +60,24 @@ versionInfo: GameID Extra-special thanks to the Mysterious Strangers who submitted the song "Look Around the Corner" and the pseudonym "Robert Whitlock". I hope to learn your identities some day so I can properly thank you here!\b - Please feel free to <>. The source code is - available (under the <>) on - <>, where you can also + Please feel free to <>. The source code is + available (under the <>) on + <>, where you can also submit bug reports. The text is licensed under - <>. + <>. """; } showCredit() { showAbout(); } - link(href, text) { // for console mode, include the href in the alt text. - "<> <<>>')>>"; + link(href, text) { + "<>"; + } + linkAndURL(href, text) { + if (outputManager.htmlMode) { + link(href, text); + } else { + // No HTML; display the href after the text so it can be copy/pasted. + "<> <<>>"; + } } ;