diff options
| -rw-r--r-- | doc/irssi.txt | 43 | ||||
| -rw-r--r-- | index.html | 1 | ||||
| -rw-r--r-- | js/ui/keys.js | 27 |
3 files changed, 39 insertions, 32 deletions
diff --git a/doc/irssi.txt b/doc/irssi.txt index 58e84e2..b73ace1 100644 --- a/doc/irssi.txt +++ b/doc/irssi.txt @@ -85,24 +85,24 @@ NORMAL IRSSI OPERATION If you do not want to do the autojoin thing these are the commands you'd normally use to connect: -/server -ssl irc.jollo.org 9999 -/join #sally +/server -ssl irc.asdf.us 7777 +/join #ascii -SETTING UP IRSSI TO AUTOJOIN #SALLY +SETTING UP IRSSI TO AUTOJOIN #ASCII =================================== First run irssi, then paste in these commands. Please change YOUR_NICK_HERE to your preferred username! -/network add -nick YOUR_NICK_HERE -user YOUR_NICK_HERE -realname "YOUR NAME HERE" Jollo -/server add -network Jollo -auto -ssl irc.jollo.org 9999 -/channel add -auto #sally Jollo +/network add -nick YOUR_NICK_HERE -user YOUR_NICK_HERE -realname "YOUR NAME HERE" asdf +/server add -network asdf -auto -ssl irc.asdf.us 7777 +/channel add -auto #ascii asdf /save /quit Now run irssi again.. it should autoconnect to the channels and stuff. -If you want it to move you into sally by default, you can do ctrl-N and then +If you want it to move you into #ascii by default, you can do ctrl-N and then /layout save /save @@ -111,12 +111,12 @@ If you want it to move you into sally by default, you can do ctrl-N and then IRC TIPS ======== -/join #sally -- join a channel :) -/part #sally -- leave a channel ;( +/join #ascii -- join a channel :) +/part #ascii -- leave a channel ;( /quit blabla -- quit irc (with the quit message 'blabla') /list -- list channels /nick booboo -- change your nick to booboo -/who #sally -- show complete list of people on #sally +/who #ascii -- show complete list of people on #ascii /names -- show quick list of names /msg nick blabla -- send someone a private message ;) @@ -131,26 +131,10 @@ Fn-up arrow -- page up (if you don't have a pageup key) Fn-down arrow -- page down (if you don't have a pagedown key) -PLINKO TIPS -=========== - -Le Jollo IRC is home to a fine bot named PLINKO who you should make friends with :o) - -To get started, type: /query plinko register - -Plinko lives in #sally and also #pffffffff where you can ask him to draw things. - -He prefers an uncluttered canvas, so in irssi you might want to do: - -/ignore -channels #pffffffff * JOINS PARTS QUITS NICKS - - IRSSI SCRIPTING =============== -This is its own can of worms.. One script which is necessary for playing les parlour games -on Jollo (chess, literati) is "noticelogic.pl". Another script which is nice for differentiating -ppl in the chat is "nickcolor.pl".. +This is its own can of worms. May we suggest: http://scripts.irssi.org/scripts/noticelogic.pl http://scripts.irssi.org/scripts/nickcolor.pl @@ -158,7 +142,6 @@ http://scripts.irssi.org/scripts/nickcolor.pl To make it run on startup, copy it into ~/.irssi/scripts/autorun/ (and restart irssi) Another fun IRC thing is running an XDCC server for sharing files.. -There may be someone running an XDCC server on Jollo, but you can run your own -- for more info see http://asdf.us/xdcc/ @@ -167,10 +150,6 @@ AND REMEMBER... Have fun and be safe online! -This irssi FAQ is distributed under the terms of the Jollo LNT License (version 1) -A copy of this license is available: https://jollo.org/licensing/public/LNT-1.txt - -:o) @@ -3,6 +3,7 @@ <head> <meta charset="UTF-8"> <title>asciiblaster</title> +<meta name="viewport" content="width=device-width,initial-scale=device-width"> <link rel="stylesheet" href="css/sally.css" type="text/css" charset="utf-8" /> <link rel="stylesheet" href="css/ak.css" type="text/css" charset="utf-8" /> </head> diff --git a/js/ui/keys.js b/js/ui/keys.js index 77922c7..c157671 100644 --- a/js/ui/keys.js +++ b/js/ui/keys.js @@ -204,6 +204,33 @@ var keys = (function(){ } } + function cancelZoom() { + var d = document, + viewport, + content, + maxScale = ',maximum-scale=', + maxScaleRegex = /,*maximum\-scale\=\d*\.*\d*/; + + // this should be a focusable DOM Element + if (!this.addEventListener || !d.querySelector) { + return; + } + + viewport = d.querySelector('meta[name="viewport"]'); + content = viewport.content; + + function changeViewport(event) { + // http://nerd.vasilis.nl/prevent-ios-from-zooming-onfocus/ + viewport.content = content + (event.type == 'blur' ? (content.match(maxScaleRegex, '') ? '' : maxScale + 10) : maxScale + 1); + } + + // We could use DOMFocusIn here, but it's deprecated. + this.addEventListener('focus', changeViewport, true); + this.addEventListener('blur', changeViewport, false); + } + + cancelZoom.bind(cursor_input)(); + return keys })() |
