Add support for hiding QR code via a parameter

pull/128/merge
John McLear 2011-12-04 15:33:56 +00:00 committed by Peter 'Pita' Martischka
parent 990a559a09
commit b2f1f04b54
1 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,7 @@ var LineNumbersDisabled = false;
var noColors = false; var noColors = false;
var useMonospaceFontGlobal = false; var useMonospaceFontGlobal = false;
var globalUserName = false; var globalUserName = false;
var hideQRCode = false;
$(document).ready(function() $(document).ready(function()
{ {
@ -86,6 +87,7 @@ function getParams()
var showLineNumbers = params["showLineNumbers"]; var showLineNumbers = params["showLineNumbers"];
var useMonospaceFont = params["useMonospaceFont"]; var useMonospaceFont = params["useMonospaceFont"];
var IsnoColors = params["noColors"]; var IsnoColors = params["noColors"];
var hideQRCode = params["hideQRCode"];
if(IsnoColors) if(IsnoColors)
{ {
@ -129,6 +131,10 @@ function getParams()
// If the username is set as a parameter we should set a global value that we can call once we have initiated the pad. // If the username is set as a parameter we should set a global value that we can call once we have initiated the pad.
globalUserName = unescape(userName); globalUserName = unescape(userName);
} }
if(hideQRCode)
{
$('#qrcode').hide();
}
} }
function getUrlVars() function getUrlVars()