diff --git a/tests/playground.html b/tests/playground.html
index 8c87b6383..a8bcb4a8f 100644
--- a/tests/playground.html
+++ b/tests/playground.html
@@ -64,6 +64,8 @@ var workspace = null;
var fakeDragStack = [];
function start() {
+ setBackgroundColor();
+
// Parse the URL arguments.
var match = location.search.match(/dir=([^&]+)/);
var rtl = match && match[1] == 'rtl';
@@ -117,6 +119,17 @@ function start() {
taChange();
}
+function setBackgroundColor() {
+ var lilac = '#d6d6ff';
+
+ var currentPage = window.location.href;
+ var regexFile = /^file[\S]*$/;
+
+ if (regexFile.test(currentPage)) {
+ document.getElementsByTagName('body')[0].style.backgroundColor = lilac;
+ }
+}
+
function getToolboxElement() {
var match = location.search.match(/toolbox=([^&]+)/);
return document.getElementById('toolbox-' + (match ? match[1] : 'categories'));