Commit 795e4395 authored by dapphp's avatar dapphp
Browse files

Support changing background color using bgcol URL parameter

No related merge requests found
Showing with 7 additions and 1 deletion
+7 -1
......@@ -109,7 +109,6 @@ package {
_flashVars = parameters;
_iconArea = iconArea;
// Set up accessibility for screen reader support
_accessProps = new AccessibilityProperties();
_accessProps.name = "Play Audio Captcha";
......@@ -155,6 +154,13 @@ package {
if (_flashVars.lang != undefined) {
lang = _flashVars.lang;
}
if (_flashVars.bgcol != undefined) {
if (_flashVars.bgcol.match(/^#[0-9a-fA-F]{6}$/) != null) {
_flashVars.bgcol = _flashVars.bgcol.replace("#", "");
_iconArea.opaqueBackground = parseInt(_flashVars.bgcol, 16);
}
}
if (_flashVars.icon_file != undefined) {
icon_file = _flashVars.icon_file;
......
No preview for this file type
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment