JavaScript preprocessors can help make authoring JavaScript easier and more convenient. For instance, CoffeeScript can help prevent easy-to-make mistakes and offer a cleaner syntax and Babel can bring ECMAScript 6 features to browsers that only support ECMAScript 5.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
HTML Settings
Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.
<table>
<tr>
<td></td>
<td>EQUIPOS</td>
<td>PJ</td>
<td>PG</td>
<td>PE</td>
<td>PP</td>
<td>GF</td>
<td>GC</td>
<td>DG</td>
<td>PTS</td>
</tr>
<tr>
<td>1</td>
<td>Alianza Lima</td>
<td>11</td>
<td>8</td>
<td>3</td>
<td>0</td>
<td>20</td>
<td>5</td>
<td>15</td>
<td>27</td>
</tr>
<tr>
<td>2</td>
<td>Sporting Cristal</td>
<td>11</td>
<td>8</td>
<td>2</td>
<td>1</td>
<td>27</td>
<td>13</td>
<td>14</td>
<td>26</td>
</tr>
<tr>
<td>3</td>
<td>Melgar</td>
<td>12</td>
<td>7</td>
<td>3</td>
<td>2</td>
<td>16</td>
<td>9</td>
<td>7</td>
<td>24</td>
</tr>
<tr>
<td>4</td>
<td>Unión Comercio</td>
<td>12</td>
<td>6</td>
<td>1</td>
<td>5</td>
<td>17</td>
<td>13</td>
<td>4</td>
<td>19</td>
</tr>
<tr>
<td>5</td>
<td>Universitario</td>
<td>12</td>
<td>5</td>
<td>3</td>
<td>4</td>
<td>13</td>
<td>12</td>
<td>1</td>
<td>18</td>
</tr>
<tr>
<td>6</td>
<td>Sport Huancayo</td>
<td>12</td>
<td>5</td>
<td>3</td>
<td>4</td>
<td>10</td>
<td>12</td>
<td>-2</td>
<td>18</td>
</tr>
<tr>
<td>7</td>
<td>Cienciano</td>
<td>12</td>
<td>5</td>
<td>2</td>
<td>5</td>
<td>16</td>
<td>18</td>
<td>-2</td>
<td>17</td>
</tr>
<tr>
<td>8</td>
<td>Los Caimanes</td>
<td>12</td>
<td>4</td>
<td>3</td>
<td>5</td>
<td>13</td>
<td>17</td>
<td>-4</td>
<td>15</td>
</tr>
<tr>
<td>9</td>
<td>Real Garcilaso</td>
<td>12</td>
<td>3</td>
<td>5</td>
<td>4</td>
<td>15</td>
<td>14</td>
<td>1</td>
<td>14</td>
</tr>
<tr>
<td>10</td>
<td>León de Huánuco</td>
<td>11</td>
<td>4</td>
<td>2</td>
<td>5</td>
<td>15</td>
<td>16</td>
<td>-1</td>
<td>14</td>
</tr>
<tr>
<td></td>
<td>EQUIPOS</td>
<td>PJ</td>
<td>PG</td>
<td>PE</td>
<td>PP</td>
<td>GF</td>
<td>GC</td>
<td>DG</td>
<td>PTS</td>
</tr>
</table>
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
table {
border-collapse: separate;
border-spacing: 5px;
font-family: 'Segoe UI', Arial;
margin: 10px auto;
}
td {
padding: 5px;
text-align: right;
}
/* Filas pares */
tr:nth-child(even) {
background: LightCyan;
}
/* Filas impares */
tr:nth-child(2n-1) {
background: Moccasin;
}
/* primera y ultima fila */
tr:nth-child(1),
tr:nth-last-child(1) {
background: gray;
color: white;
font-weight: bold;
text-align: center;
}
/* Primera columna */
td:first-child {
text-align: left;
}
/* Segunda columna */
td:nth-child(2) {
font-weight: bold;
text-align: left;
}
/* Ultima columna */
td:last-child {
font-weight: bold;
}
/* Celdas vacias */
td:empty {
background: white;
}
/* 2ª fila, última columna */
tr:nth-child(2) td:last-child {
background: LightSalmon ;
}
// celdas negativas
$("td:contains('-')").css("color", "red");
Also see: Tab Triggers