Skip to content

Commit

Permalink
style fixes and empty functions for use by desktop application
Browse files Browse the repository at this point in the history
  • Loading branch information
fsw committed Jul 31, 2011
1 parent 2bafa87 commit ae0f094
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 2 deletions.
1 change: 1 addition & 0 deletions VERSION
@@ -0,0 +1 @@
0.1 beta
2 changes: 2 additions & 0 deletions armycalc.css
Expand Up @@ -200,9 +200,11 @@ div.acCanvas div.workspace {
div.acCanvas div.workspace div.unitslist{
margin-left: 160px;
height: 300px;
/*
overflow: auto;
overflow-x: hidden;
-ms-overflow-x: hidden;
*/
}
div.acCanvas div.workspace div.unitdetails{
width: 160px;
Expand Down
19 changes: 19 additions & 0 deletions armycalc.js
Expand Up @@ -905,6 +905,23 @@ function jsArmyCalc( selector, templateurl ){

}


calc.getArmyHtml = function( ){
if(! this.army ){
this.flashMsg( "Please create new army first!" );
return false;
}
return "Not <b>yet</b> implemented.HTML";
}

calc.getArmyTwa = function( ){
if(! this.army ){
this.flashMsg( "Please create new army first!" );
return false;
}
return "Not <b>yet</b> implemented.TWA";
}

calc.newArmy = function( ){

that = this;
Expand Down Expand Up @@ -1049,6 +1066,8 @@ function jsArmyCalc( selector, templateurl ){
if( eb ){
this.setFullscreen(true);
//TODO hide unnecesairy icons
calc.canvas.find('#acMinimize').hide();
calc.canvas.find('.buttons1').hide();
}
}

Expand Down
2 changes: 1 addition & 1 deletion armycalc.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion armycalc.min.js

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions src/class.armycalc.js
Expand Up @@ -158,6 +158,23 @@ function jsArmyCalc( selector, templateurl ){

}


calc.getArmyHtml = function( ){
if(! this.army ){
this.flashMsg( "Please create new army first!" );
return false;
}
return "Not <b>yet</b> implemented.HTML";
}

calc.getArmyTwa = function( ){
if(! this.army ){
this.flashMsg( "Please create new army first!" );
return false;
}
return "Not <b>yet</b> implemented.TWA";
}

calc.newArmy = function( ){

that = this;
Expand Down Expand Up @@ -302,6 +319,8 @@ function jsArmyCalc( selector, templateurl ){
if( eb ){
this.setFullscreen(true);
//TODO hide unnecesairy icons
calc.canvas.find('#acMinimize').hide();
calc.canvas.find('.buttons1').hide();
}
}

Expand Down
2 changes: 2 additions & 0 deletions src/style.css
Expand Up @@ -200,9 +200,11 @@ div.acCanvas div.workspace {
div.acCanvas div.workspace div.unitslist{
margin-left: 160px;
height: 300px;
/*
overflow: auto;
overflow-x: hidden;
-ms-overflow-x: hidden;
*/
}
div.acCanvas div.workspace div.unitdetails{
width: 160px;
Expand Down

0 comments on commit ae0f094

Please sign in to comment.