Skip to content

Commit

Permalink
formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kaurjasleen240305 committed Jan 7, 2024
1 parent 53bf64b commit cc9fc12
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions js/widgets/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class HelpWidget {
if (page==0) {
this.widgetWindow.updateTitle("TAKE A TOUR");
}
else{
else {
this.widgetWindow.updateTitle(HELPCONTENT[page][0]);
}
rightArrow = document.getElementById("right-arrow");
Expand All @@ -121,10 +121,10 @@ class HelpWidget {
if (page > 0){
page = page - 1;
leftArrow.classList.remove('disabled');
if(page==0){
if (page==0) {
this.widgetWindow.updateTitle("TAKE A TOUR");
}
else{
else {
this.widgetWindow.updateTitle(HELPCONTENT[page][0]);
}
this._showPage(page);
Expand All @@ -142,10 +142,10 @@ class HelpWidget {
if (page === HELPCONTENT.length) {
page = 0;
}
if(page==0){
if (page==0) {
this.widgetWindow.updateTitle("TAKE A TOUR");
}
else{
else {
this.widgetWindow.updateTitle(HELPCONTENT[page][0]);
}
this._showPage(page);
Expand All @@ -154,10 +154,10 @@ class HelpWidget {
if (this.activity.blocks.activeBlock.name !== null) {
const label = this.activity.blocks.blockList[this.activity.blocks.activeBlock]
.protoblock.staticLabels[0];
if(page==0){
if (page==0) {
this.widgetWindow.updateTitle("TAKE A TOUR");
}
else{
else {
this.widgetWindow.updateTitle(HELPCONTENT[page][0]);
}
}
Expand Down Expand Up @@ -372,10 +372,10 @@ class HelpWidget {
if (page === HELPCONTENT.length) {
page = 0;
}
if(page==0){
if (page==0) {
this.widgetWindow.updateTitle("TAKE A TOUR");
}
else{
else {
this.widgetWindow.updateTitle(HELPCONTENT[page][0]);
}
this._showPage(page);
Expand Down Expand Up @@ -474,14 +474,14 @@ class HelpWidget {
cell = docById("left-arrow");

cell.onclick = () => {
if(this.index==0){
if (this.index==0) {
const widgetWindow = window.widgetWindows.windowFor(this, "help", "help");
this.widgetWindow = widgetWindow;
widgetWindow.clear();
this._helpDiv = document.createElement("div");
this._setup(false,HELPCONTENT.length-1);
}
else{
else {
this.index-=1;
this._blockHelp(
this.activity.blocks.protoBlockDict[this.appendedBlockList[this.index]]
Expand Down

0 comments on commit cc9fc12

Please sign in to comment.