Increased the size of headers in snippets.

master
Pacman Ghost 5 years ago
parent e63430fc1f
commit 2845ce5aeb
  1. 6
      vasl_templates/webapp/data/default-template-pack/atmm.j2
  2. 6
      vasl_templates/webapp/data/default-template-pack/baz.j2
  3. 4
      vasl_templates/webapp/data/default-template-pack/extras/blank-space.j2
  4. 5
      vasl_templates/webapp/data/default-template-pack/extras/count-remaining.j2
  5. 3
      vasl_templates/webapp/data/default-template-pack/extras/grid.j2
  6. 8
      vasl_templates/webapp/data/default-template-pack/extras/hip-guns.j2
  7. 20
      vasl_templates/webapp/data/default-template-pack/extras/kgs/grenade-bundles.j2
  8. 27
      vasl_templates/webapp/data/default-template-pack/extras/kgs/molotov-cocktails.j2
  9. 13
      vasl_templates/webapp/data/default-template-pack/extras/turn-track-shading.j2
  10. 7
      vasl_templates/webapp/data/default-template-pack/extras/victory-points.j2
  11. 6
      vasl_templates/webapp/data/default-template-pack/mol-p.j2
  12. 2
      vasl_templates/webapp/data/default-template-pack/mol.j2
  13. 6
      vasl_templates/webapp/data/default-template-pack/ob_ma_notes.j2
  14. 2
      vasl_templates/webapp/data/default-template-pack/ob_vo.j2
  15. 2
      vasl_templates/webapp/data/default-template-pack/ob_vo_note.css
  16. 2
      vasl_templates/webapp/data/default-template-pack/ob_vo_note.j2
  17. 12
      vasl_templates/webapp/data/default-template-pack/pf.j2
  18. 10
      vasl_templates/webapp/data/default-template-pack/piat.j2
  19. 4
      vasl_templates/webapp/data/default-template-pack/players.j2
  20. 10
      vasl_templates/webapp/data/default-template-pack/psk.j2
  21. 7
      vasl_templates/webapp/data/default-template-pack/scenario.j2
  22. 4
      vasl_templates/webapp/data/default-template-pack/scenario_note.j2
  23. 5
      vasl_templates/webapp/data/default-template-pack/ssr.j2
  24. 10
      vasl_templates/webapp/data/default-template-pack/thh.j2
  25. 8
      vasl_templates/webapp/data/default-template-pack/victory_conditions.j2
  26. 2
      vasl_templates/webapp/static/extras.js
  27. 5
      vasl_templates/webapp/static/snippets.js

@ -2,9 +2,7 @@
<head>
<meta charset="utf-8">
<style>
{{CSS:common}}
</style>
<style> {{CSS:common}} </style>
</head>
<table>
@ -14,7 +12,7 @@
background: {{OB_COLOR}} ;
border-bottom: 1px solid {{OB_COLOR_2}} ;
padding: 2px 5px ;
font-weight: bold ;
font-size: 105% ; font-weight: bold ;
">
{{INCLUDE:player_flag}}Anti-Tank Magnetic Mines

@ -14,13 +14,13 @@
background: {{OB_COLOR}} ;
border-bottom: 1px solid {{OB_COLOR_2}} ;
padding: 2px 5px ;
font-weight: bold ;
font-size: 105% ; font-weight: bold ;
">
{{INCLUDE:player_flag}}Bazooka {%if BAZ_TYPE%} ('{{BAZ_TYPE}}) {%endif%}
<tr>
<td style="padding:0 3px;">
<td style="padding:0 5px;">
<table>
<tr>
<td> <b>Range</b> <td> <b>TH#</b>
@ -51,7 +51,7 @@
{%endif%}
</table>
<td valign="top" style="padding:0 3px;">
<td valign="top" style="padding:0 5px;">
<table>
{%if BAZ_BREAKDOWN%}
<tr>

@ -3,6 +3,10 @@
<!-- vasl-templates:name Blank space -->
<!-- vasl-templates:description Generates a white label that can be used to cover up and hide things in your scenario. -->
<head>
<style> {{CSS:common}} </style>
</head>
<table>
<tr>
<td style="width:{{WIDTH:60px/5|Width}};height:{{HEIGHT:60px/5|Height}};background:white;"> &nbsp;

@ -4,4 +4,9 @@
<!-- vasl-templates:description Add the snippet as the label of a counter (e.g. Panzerfaust or Tank-Hunter Hero), then press <i>Ctrl-L</i> when you need to update how many are left. -->
<!-- vasl-templates:comment The HTML is deliberately malformed, so that the number remaining is the last thing in snippet, which makes it easier to change during the course of a game. -->
<head>
<style> {{CSS:common}} </style>
</head>
{# NOTE: We specify the font size in pixels, rather than as a percentage, since this label should be added to a counter. #}
<div style="font-size:12px;font-weight:bold;"> {{COUNT:/3|Number}}

@ -4,7 +4,10 @@
<!-- vasl-templates:description Generates a grid. -->
<!-- #cols = {{COLS:3/2|# columns}} ; #rows = {{ROWS:2/2|# rows}} ; color = {{PLAYER_COLOR2_DROPLIST_EX:|Border color}} -->
<head>
<style>
{{CSS:common}}
td {
width: {{WIDTH:160px/5|Cell width}} ;
height: {{HEIGHT:60px/5|Cell height}} ;

@ -6,6 +6,7 @@
<head>
<meta charset="utf-8">
<style>
{{CSS:common}}
td { margin: 0 ; padding: 0 5px ; text-align: center ; }
td.header { font-weight: bold ; }
td.header2 { background: #f8f8f8 ; padding: 2px 5px ; font-weight: bold ; }
@ -16,7 +17,12 @@ td.status { font-weight: bold ; text-align: left ; }
<table>
<tr>
<td colspan="5" style="background: #f0f0f0 ; border-bottom: 1px solid #c0c0c0 ; padding: 2px 5px ; font-weight: bold ;">
<td colspan="5" style="
background: #f0f0f0 ;
border-bottom: 1px solid #c0c0c0 ;
padding: 2px 5px ;
font-size: 105% ; font-weight: bold ;
">
<center> Hidden Guns </center>
<tr>

@ -5,22 +5,28 @@
<head>
<meta charset="utf-8">
<style>
td { margin: 0 ; padding: 0 ; }
</style>
<style> {{CSS:common}} </style>
</head>
<table>
<tr>
<td colspan="2" style="background: {{PLAYER_COLORS["german"][0]}} ; border-bottom: 1px solid {{PLAYER_COLORS["german"][2]}} ; padding: 2px 5px ; font-weight: bold ;">
<td colspan="2" style="
background: {{PLAYER_COLORS["german"][0]}} ;
border-bottom: 1px solid {{PLAYER_COLORS["german"][2]}} ;
padding: 2px 5px ;
font-size: 105% ; font-weight: bold ;
">
{# Some versions of Java require <img> tags to have the width and height specified!?! #}
{%if PLAYER_FLAGS["german"]%}<img src="{{PLAYER_FLAGS["german"]}}" {{PLAYER_FLAG_SIZE}}>&nbsp;{%endif%}Grenade Bundles
<tr>
<td style="padding:2px 5px;">
-2 CC Attack DRM <br>
ATMM check: dr &le; 3 (&#9651;) <br>
<td style="padding:3px 5px 0 5px;">
-2 CC Attack DRM
<tr>
<td style="padding:3px 5px 0 5px;">
ATMM check: dr &le; 3 (&#9651;)
<table style="margin-left:10px;">
<tr>
<td style="width:20px;"> +1

@ -5,23 +5,28 @@
<head>
<meta charset="utf-8">
<style>
td { margin: 0 ; padding: 0 ; }
ul { margin: 0 0 0 10px ; padding: 0 ; }
</style>
<style> {{CSS:common}} </style>
</head>
<table>
<tr>
<td colspan="2" style="background: {{PLAYER_COLORS["german"][0]}} ; border-bottom: 1px solid {{PLAYER_COLORS["german"][2]}} ; padding: 2px 5px ; font-weight: bold ;">
<td colspan="2" style="
background: {{PLAYER_COLORS["german"][0]}} ;
border-bottom: 1px solid {{PLAYER_COLORS["german"][2]}} ;
padding: 2px 5px ;
font-size: 105% ; font-weight: bold ;
">
{# Some versions of Java require <img> tags to have the width and height specified!?! #}
{%if PLAYER_FLAGS["german"]%}<img src="{{PLAYER_FLAGS["german"]}}" {{PLAYER_FLAG_SIZE}}>&nbsp;{%endif%}Molotov Cocktails
<tr>
<td style="padding:0 5px;">
vs. AFV only <br>
MOL check: dr &le; 3 (&#9651;) <br>
<td style="padding:3px 5px 0 5px;">
vs. AFV only
<tr>
<td style="padding:3px 5px 0 5px;">
MOL check: dr &le; 3 (&#9651;)
<table style="margin-left:10px;">
<tr>
<td style="width:20px;"> +1
@ -33,11 +38,17 @@ ul { margin: 0 0 0 10px ; padding: 0 ; }
<td> +1
<td> CX
</table>
<tr>
<td style="padding:3px 5px 0 5px;">
IFT DR original colored dr:
<ul>
<li> 1 = Flame in target Location
<li> 6 = thrower breaks, Flame in their Location
</ul>
<tr>
<td style="padding:3px 5px 0 5px;">
Kindling Attempt: +2 DRM
</table>

@ -3,9 +3,16 @@
<!-- vasl-templates:name Turn Track shading -->
<!-- vasl-templates:description Generates a shaded square that you can place behind the Turn Track to indicate an LV Hindrance e.g. because of dusk/dawn. -->
<table>
<tr>
<td style="width:{{WIDTH:45px/6|Width}};height:{{HEIGHT:45px/6|Height}};background:{{COLOR:#f0f0f0/6|Color}};"> &nbsp;
<head>
<style> {{CSS:common}} </style>
</head>
<table> <tr>
<td style="
width: {{WIDTH:45px/6|Width}} ;
height: {{HEIGHT:45px/6|Height}} ;
background: {{COLOR:#f0f0f0/6|Color}} ;
">
</table>
</html>

@ -4,4 +4,9 @@
<!-- vasl-templates:description Add a label to keep track of your victory points, and press <i>Ctrl-L</i> when you need to update them. -->
<!-- vasl-templates:comment The HTML is deliberately malformed, so that the number remaining is the last thing in snippet, which makes it easier to change during the course of a game. -->
<div style="font-size:12px;"> <b>{{TYPE:Victory Points::Casualty VP::Exit VP|Type}}:</b> 0
<head>
<style> {{CSS:common}} </style>
</head>
<div style="font-size:110%">
<b>{{TYPE:Victory Points::Casualty VP::Exit VP|Type}}:</b> 0

@ -14,13 +14,13 @@
background: {{OB_COLOR}} ;
border-bottom: 1px solid {{OB_COLOR_2}} ;
padding: 2px 5px ;
font-weight: bold ;
font-size: 105% ; font-weight: bold ;
">
{{INCLUDE:player_flag}}MOL Projector
<tr>
<td style="padding:0 3px;">
<td style="padding:0 5px;">
<table>
<tr>
<td> <b>Range</b> <td> <b>TH#</b>
@ -36,7 +36,7 @@
<td class="c"> 4 <td class="c"> 4
</table>
<td valign="top" style="padding:0 3px;">
<td valign="top" style="padding:0 5px;">
<table>
<tr>
<td> <b>X#:</b>

@ -14,7 +14,7 @@
background: {{OB_COLOR}} ;
border-bottom: 1px solid {{OB_COLOR_2}} ;
padding: 2px 5px ;
font-weight: bold ;
font-size: 105% ; font-weight: bold ;
">
{{INCLUDE:player_flag}}Molotov Cocktail

@ -26,19 +26,19 @@
background: {{OB_COLOR}} ;
border-bottom: 1px solid {{OB_COLOR_2}} ;
padding: 2px 5px ;
font-weight: bold ;
font-size: 105% ; font-weight: bold ;
">
{{INCLUDE:player_flag}}{{PLAYER_NAME}} {{VO_TYPE}} Notes
{%if OB_MA_NOTES%}
<tr> <td style="padding: 0 5px;">
<tr> <td style="padding:0 5px;">
{%for ma_note in OB_MA_NOTES%}
<div class="ma-note"> {{ma_note}} </div>
{%endfor%}
{%endif%}
{%if OB_EXTRA_MA_NOTES%}
<tr> <td style="padding: 0 5px;">
<tr> <td style="padding:0 5px;">
{%if OB_EXTRA_MA_NOTES_CAPTION%} <div class="extra-notes-caption"> {{OB_EXTRA_MA_NOTES_CAPTION}} </div> {%endif%}
{%for ma_note in OB_EXTRA_MA_NOTES%}
<div class="ma-note"> {{ma_note}} </div>

@ -20,7 +20,7 @@
background: {{OB_COLOR}} ;
border-bottom: 1px solid {{OB_COLOR_2}} ;
padding: 2px 5px 0 5px ;
font-weight: bold ;
font-size: 105% ; font-weight: bold ;
">
<nobr>{{INCLUDE:player_flag}}{{PLAYER_NAME|nbsp}}&nbsp;{{VO_TYPES}}</nobr>

@ -16,6 +16,6 @@ img.piece { float: left ; margin-right: 0.5em ; }
.content table th { padding: 2px 10px 2px 5px ; text-align: left ; background: #f0f0f0 ; }
.content table td { padding: 0 10px 0 5px ; }
table.layout td { padding: 0 5px 0 5px ; }
table.layout td { padding: 0 5px ; }
.content .rf { display: none ; }

@ -15,7 +15,7 @@
background: {{OB_COLOR}} ;
border-bottom: 1px solid {{OB_COLOR_2}} ;
padding: 2px 5px ;
font-weight: bold ;
font-size: 105% ; font-weight: bold ;
">
{{INCLUDE:player_flag}}{{VO_NAME}}

@ -2,9 +2,7 @@
<head>
<meta charset="utf-8">
<style>
{{CSS:common}}
</style>
<style> {{CSS:common}} </style>
</head>
<table>
@ -14,13 +12,13 @@
background: {{OB_COLOR}} ;
border-bottom: 1px solid {{OB_COLOR_2}} ;
padding: 2px 5px ;
font-weight: bold ;
font-size: 105% ; font-weight: bold ;
">
{{INCLUDE:player_flag}}Panzerfaust
<tr>
<td valign="top" rowspan="2" style="padding:2px 0 0 3px;">
<td valign="top" rowspan="2" style="padding:2px 5px;">
PF check: dr &le; {{PF_CHECK_DR}} (&#9651;)
<table style="margin-left:10px;">
<tr>
@ -34,7 +32,7 @@
</table>
original 6 = pinned
<td valign="top" style="padding:0 3px;">
<td valign="top" style="padding:0 5px;">
<table>
<tr>
<td> <b>Range</b> <td> <b>TH#</b>
@ -54,7 +52,7 @@
<tr>
<td style="padding:0 3px;text-align:right;">
<td style="padding:0 5px;text-align:right;">
<b>TK#:</b> 31 <br>
16-3

@ -2,9 +2,7 @@
<head>
<meta charset="utf-8">
<style>
{{CSS:common}}
</style>
<style> {{CSS:common}} </style>
</head>
<table>
@ -14,13 +12,13 @@
background: {{OB_COLOR}} ;
border-bottom: 1px solid {{OB_COLOR_2}} ;
padding: 2px 5px ;
font-weight: bold ;
font-size: 105% ; font-weight: bold ;
">
{{INCLUDE:player_flag}}PIAT
<tr>
<td style="padding:0 3px;">
<td style="padding:0 5px;">
<table>
<tr>
<td> <b>Range</b> <td> <b>TH#</b>
@ -34,7 +32,7 @@
<td class="c"> 3 <td class="c"> 5
</table>
<td valign="top" style="padding:0 3px;">
<td valign="top" style="padding:0 5px;">
<table>
<tr>
<td> <b>B#:</b>

@ -2,9 +2,7 @@
<head>
<meta charset="utf-8">
<style>
{{CSS:common}}
</style>
<style> {{CSS:common}} </style>
</head>
<table style="

@ -2,9 +2,7 @@
<head>
<meta charset="utf-8">
<style>
{{CSS:common}}
</style>
<style> {{CSS:common}} </style>
</head>
<table>
@ -14,13 +12,13 @@
background: {{OB_COLOR}} ;
border-bottom: 1px solid {{OB_COLOR_2}} ;
padding: 2px 5px ;
font-weight: bold ;
font-size: 105% ; font-weight: bold ;
">
{{INCLUDE:player_flag}}Panzerschrek
<tr>
<td style="padding:0 3px;">
<td style="padding:0 5px;">
<table>
<tr>
<td> <b>Range</b> <td> <b>TH#</b>
@ -36,7 +34,7 @@
<td class="c"> 4 <td class="c"> 4
</table>
<td valign="top" style="padding:0 3px;">
<td valign="top" style="padding:0 5px;">
<table>
<tr>
<td> <b>X#:</b>

@ -4,6 +4,7 @@
<meta charset="utf-8">
<style>
{{CSS:common}}
.small { font-size: 75% ; font-style: italic ; }
</style>
</head>
@ -13,17 +14,17 @@
<tr>
<td style="
padding: 5px 10px 5px 10px ;
padding: 5px 10px ;
background: #f0f0f0 ;
border-bottom: 1px solid #c0c0c0 ;
">
<div style="font-size:115%;">
<b> {%if SCENARIO_NAME%} {{SCENARIO_NAME}} {%else%} Untitled scenario {%endif%} </b>
{%if SCENARIO_ID%} <small><i> ({{SCENARIO_ID}}) </i></small> {%endif%}
{%if SCENARIO_ID%} <span class="small"> ({{SCENARIO_ID}}) </span> {%endif%}
</div>
{%if SCENARIO_LOCATION%} {{SCENARIO_LOCATION}} {%endif%}
{%if SCENARIO_DATE%}
<small><i>({{SCENARIO_DAY_OF_MONTH_POSTFIX}} {{SCENARIO_MONTH_NAME}}, {{SCENARIO_YEAR}})</i></small>
<span class="small"> ({{SCENARIO_DAY_OF_MONTH_POSTFIX}} {{SCENARIO_MONTH_NAME}}, {{SCENARIO_YEAR}}) </span>
{%endif%}
</table>

@ -2,9 +2,7 @@
<head>
<meta charset="utf-8">
<style>
{{CSS:common}}
</style>
<style> {{CSS:common}} </style>
</head>
<table>

@ -4,7 +4,7 @@
<meta charset="utf-8">
<style>
{{CSS:common}}
ul#ssr { padding: 0 5px 0 10px ; }
ul#ssr { padding: 0 5px 0 13px ; }
ul#ssr li { margin-top: 2px ; }
</style>
</head>
@ -18,8 +18,9 @@ ul#ssr li { margin-top: 2px ; }
background: #f0f0f0 ;
border-bottom: 1px solid #c0c0c0 ;
padding: 2px 5px ;
font-size: 105% ; font-weight: bold ;
">
<b>Scenario Special Rules</b>
Scenario Special Rules
<tr>
<td>

@ -2,9 +2,7 @@
<head>
<meta charset="utf-8">
<style>
{{CSS:common}}
</style>
<style> {{CSS:common}} </style>
</head>
<table>
@ -14,13 +12,13 @@
background: {{OB_COLOR}} ;
border-bottom: 1px solid {{OB_COLOR_2}} ;
padding: 2px 5px ;
font-weight: bold ;
font-size: 105% ; font-weight: bold ;
">
{{INCLUDE:player_flag}}Tank-Hunter Heroes
<tr>
<td valign="top" style="padding:2px 0 0 3px;">
<td valign="top" style="padding:2px 5px;">
THH creation: dr &le; 3 (&#9651;)
<table style="margin-left:10px;">
<tr>
@ -35,7 +33,7 @@
<tr>
{% if SCENARIO_YEAR %}
<td valign="top" style="padding:10px 0 0 3px;">
<td valign="top" style="padding:10px 5px;">
ATMM check: dr &le; {%if SCENARIO_YEAR < 1944%} 2 {%else%} 3 {%endif%} (&#9651;)
{%endif%}

@ -2,9 +2,7 @@
<head>
<meta charset="utf-8">
<style>
{{CSS:common}}
</style>
<style> {{CSS:common}} </style>
</head>
<table style="
@ -16,12 +14,12 @@
background: #f0f0f0 ;
border-bottom: 1px solid #c0c0c0 ;
padding: 2px 5px ;
font-weight: bold ;
font-size: 105% ; font-weight: bold ;
">
Victory Conditions
<tr>
<td style="padding:0 3px;">
<td style="padding:0 5px;">
{{VICTORY_CONDITIONS}}
</table>

@ -150,6 +150,8 @@ function _parse_extra_template( template_id, template )
continue ;
var val = param.name.substr( pos+1 ) ;
param.name = param.name.substr( 0, pos ) ;
if ( param.name === "CSS" )
continue ;
// figure out what type of parameter we have
if ( val.indexOf( "::" ) !== -1 ) {
// we have a <select>

@ -1149,8 +1149,11 @@ function get_template( template_id, fixup )
if ( template_id in gTemplatePack.templates ) {
var template = gTemplatePack.templates[ template_id ] ;
if ( fixup ) {
if ( template_id.substr(0,7) === "extras/" )
if ( template_id.substr(0,7) === "extras/" ) {
for ( var key in gTemplatePack.css )
template = strReplaceAll( template, "{{CSS:"+key+"}}", gTemplatePack.css[key] ) ;
template = fixup_template_parameters( template ) ;
}
}
return template ;
}

Loading…
Cancel
Save