Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added option to remove background image to colour changer dialog and …
…changed other options so they hide the title page's background image.
  • Loading branch information
FayCross committed Sep 24, 2015
1 parent 09c84c1 commit 7cb36bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions languages/engine_en-GB.xml
Expand Up @@ -147,6 +147,7 @@
<selectTxt label="Please select from the options below"/>
<adviceTxt label="Need more advice? Visit the Jisc TechDis &lt;a target=&apos;_blank&apos; href=&apos;http://accessiblepractice.org/v/xerte/play_427&apos;&gt;Xerte Toolkits accessibility guide&lt;/a&gt;."/>
<off label="Off"/>
<noBg label="Remove Background Images"/>
<invert label="Invert"/>
<blackYellow label="Black on Yellow"/>
</colourChanger>
Expand Down
Expand Up @@ -26,6 +26,7 @@

this.filterMap = [
{class:'filter_off', name:'off', default:'Off'},
{class:'filter_nobg', name:'noBg', default:'Remove Background Images'},
{class:'filter_inv', name:'invert', default:'Invert'},
{class:'filter_boy', name:'blackYellow', default:'Black on Yellow'}
];
Expand Down Expand Up @@ -61,7 +62,7 @@
styles.push(['.filter_inv #x_pageNo', 'color:white;']);
styles.push(['.filter_inv .panel', 'background:black;']);
styles.push(['.filter_inv #x_footerBg', 'visibility:hidden;']);
styles.push(['.filter_inv #x_mainBg', 'visibility:hidden;']);
styles.push(['.filter_inv #x_background', 'visibility:hidden;']);

styles.push(['.filter_inv div#thumbHolder a.thumbBox', 'color:white; background:black;']);
styles.push(['.filter_inv .thumbBox h3', 'color:white; background:black;']);
Expand Down Expand Up @@ -106,7 +107,7 @@
styles.push(['.filter_boy #x_footerBlock', 'color:#ffff99; background:black; filter:none;']);
styles.push(['.filter_boy .panel', 'background:#ffff99;']);
styles.push(['.filter_boy #x_footerBg', 'visibility:hidden;']);
styles.push(['.filter_boy #x_mainBg', 'visibility:hidden;']);
styles.push(['.filter_boy #x_background', 'visibility:hidden;']);
styles.push(['.filter_boy div#thumbHolder a.thumbBox', 'color:black; background:#ffff99;']);
styles.push(['.filter_boy #x_colourChanger', 'color:black; background:#ffff99;']);
styles.push(['.filter_boy .paneInfo', 'color:black; background:#ffff99;']);
Expand Down Expand Up @@ -186,7 +187,7 @@
}

this.applyFilter = function (index) {
if (index % 3) $("#x_mainBg").hide(); else $("#x_mainBg").show();
if (index % 4) $("#x_background").hide(); else $("#x_background").show();
//console.log("Applying filter " + index);

for (var i=0; i<this.filterMap.length; i++) {
Expand Down

0 comments on commit 7cb36bc

Please sign in to comment.