diff --git a/lib/coder.js b/lib/coder.js index 386de17..cb1c356 100644 --- a/lib/coder.js +++ b/lib/coder.js @@ -368,12 +368,14 @@ var ICEcoder = { // Reset all tabs to be without a highlight and then highlight the selected redoTabHighlight: function(selectedTab) { - var bgVPos; + var bgVPos, tColor; for(var i=1;i<=ICEcoder.changedContent.length;i++) { ICEcoder.changedContent[i-1]==1 ? bgVPos = -44 : bgVPos = 0; i==selectedTab ? ICEcoder.changedContent[selectedTab-1]==1 ? bgVPos = -33 : bgVPos = -22 : bgVPos = bgVPos; + bgVPos == 0 ? tColor = "#ffffff" : bgVPos == -44 ? tColor = "#ffffff" : tColor = "#000000"; document.getElementById('tab'+i).style.backgroundPosition = "0px "+bgVPos+"px"; + document.getElementById('tab'+i).style.color = tColor; } ICEcoder.changedContent[selectedTab-1]==1 ? top.ICEcoder.fMIconVis('fMSave',1) : top.ICEcoder.fMIconVis('fMSave',0.3); }, @@ -687,8 +689,8 @@ var ICEcoder = { // Select or deselect file selectDeselectFile: function(action,file) { - action == "select" ? file.style.backgroundColor="#888888" : file.style.backgroundColor="#dddddd"; - action == "select" ? file.style.color="#f8f8f8" : file.style.color="#000000"; + action == "select" ? file.style.backgroundColor="#888888" : file.style.backgroundColor="#444444"; + action == "select" ? file.style.color="#ffffff" : file.style.color="#eeeeee"; }, // Create a new file (start & instant save) @@ -1441,6 +1443,14 @@ var ICEcoder = { top.ICEcoder.showHide(vis,top.document.getElementById('blackMask')); }, + // Show the help screen + helpScreen: function(vis) { + if (vis=="show") { + top.document.getElementById('mediaContainer').innerHTML = ''; + } + top.ICEcoder.showHide(vis,top.document.getElementById('blackMask')); + }, + // Update the settings used when we make a change to them useNewSettings: function(themeURL,tabsIndent,codeAssist,lockedNav,visibleTabs,refreshFM) { var styleNode, strCSS, cMCSS;