website: Mention all styles

Part of #185
This commit is contained in:
Thaddee Tyl 2015-02-02 10:58:08 +01:00
parent f2319a2d48
commit 3154c4d638

View File

@ -524,9 +524,13 @@ Pixel-perfect   Retina-ready   Fast   Consistent   Hackable
<h2> Styles </h2>
<p>
One of those two designs may become the default one. Vote by using them!
The following styles are available:
</p>
<table><tbody>
<tr>
<td><img src='/badge/style-flat-green.svg?style=plastic' alt=''/></td>
<td><code>https://img.shields.io/badge/style-flat-green.svg?style=plastic</code></td>
</tr>
<tr>
<td><img src='/badge/style-flat-green.svg?style=flat' alt=''/></td>
<td><code>https://img.shields.io/badge/style-flat-green.svg?style=flat</code></td>
@ -673,8 +677,8 @@ is where the current server got started.
</p><p><label> Image <input type='url' name='img'/></label>
</p><p><label> Style
<select name='style'>
<option value='plastic' selected> plastic
<option value='flat'> flat
<option value='plastic'> plastic
<option value='flat' selected> flat
<option value='flat-square'> flat-square
</select>
</label>
@ -804,7 +808,7 @@ function markupDialog(tr) {
var img = copyForm.img.value;
var style = copyForm.style.value;
// Default style doesn't show.
if (style !== 'plastic') { img += '?style=' + style; }
if (style !== 'flat') { img += '?style=' + style; }
var md = '[![' + trname + '](' + img + ')](' + url + ')';
var rst = '.. image:: ' + img + ' :target: ' + url;
copyMarkdown.value = md;