Add support for hiding QR code via a parameter
parent
990a559a09
commit
b2f1f04b54
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue