📝 Update copyright year

This commit is contained in:
Ricardo Hernández Medina 2023-02-27 22:26:43 +01:00
parent 91e54b509e
commit 34f0c728da
3 changed files with 17 additions and 17 deletions

View File

@ -26,7 +26,7 @@
<input id="pokemon" name="pokemon" list="pokemon-list">
<datalist id="pokemon-list"></datalist>
</dd>
<dt><label for="curve"><abbr title="Experience">Exp.</abbr> Curve</label></dt>
<dd><input id="curve" name="curve" type="text" readonly tabindex="-1"></dd>
@ -140,11 +140,11 @@
</dl>
</section>
<footer>
<p>
© of <a href="http://twitter.com/richi3f">richi3f</a>, <time datetime="2022">2022</time><br>
Pokémon is © of Nintendo, <time datetime="1995">1995</time>-<time datetime="2022">2022</time>
© of <a href="http://twitter.com/richi3f">richi3f</a>, <time datetime="2023">2023</time><br>
Pokémon is © of Nintendo, <time datetime="1995">1995</time>-<time datetime="2023">2023</time>
</p>
</footer>

View File

@ -39,7 +39,7 @@ curves = {
return Math.floor( Math.pow( n, 3 ) * ( 64 + n ) / 100 );
}
}
function log( mssg = false ) {
var $log = $( '#log' );
if ( mssg ) {
@ -70,7 +70,7 @@ function validate() {
log( disable );
$( '[type=submit]' ).prop( 'disabled', disable.length > 0 );
}
function testTimeout( start ) {
var d, now = new Date();
d = ( now.getTime() - start.getTime() ) / 1000;
@ -79,7 +79,7 @@ function testTimeout( start ) {
function optimize( problem ) {
var lp, iocp, start, colname, colval, objval;
start = new Date();
lp = glp_create_prob();
@ -93,7 +93,7 @@ function optimize( problem ) {
try {
objval = glp_mip_obj_val( lp );
testTimeout( start );
for( let i = 1; i <= glp_get_num_cols( lp ); i++ ){
colname = glp_get_col_name( lp, i ),
colval = glp_mip_col_val( lp, i );
@ -111,12 +111,12 @@ $( document ).ready( function() {
// read candy MILP problem
$.get( 'problem.txt', function( problemTemplate ) {
var i, len;
// read Pokémon names and experience curves
$.getJSON( 'static/pokemon.json', function( pokemonData ) {
var slug, slugs;
// add each Pokémon to the datalist
// add each Pokémon to the datalist
slugs = Object.keys( pokemonData );
len = slugs.length;
for ( i = 0; i < len; i++ ) {
@ -126,7 +126,7 @@ $( document ).ready( function() {
.attr( 'data-exp-curve', pokemonData[ slug ].experience_group )
.appendTo( 'datalist' );
}
// show the experience curve when a Pokémon name is typed
$( '#pokemon' ).on( 'input', function() {
var value, $match;
@ -179,7 +179,7 @@ $( document ).ready( function() {
$template.appendTo( target );
}
} )();
// restrict numerical input
( () => {
$( 'input[type=number]' ).on( 'change', function() {

View File

@ -74,7 +74,7 @@ input[readonly] {
}
.var {
font-style: italic
font-style: italic
}
main {
@ -109,7 +109,7 @@ h1:after, h1:before,
h2:after, h2:before {
content: '';
width: 0;
height: 0;
height: 0;
position: absolute;
top: 0;
}
@ -295,7 +295,7 @@ tr th[rowspan] {
#calc #log {
text-align: center;
padding: 0.5em;
padding: 0.5em;
}
#calc #log a {
@ -318,13 +318,13 @@ tr th[rowspan] {
h2:after {
left: 0;
border-bottom: 2.5em solid transparent;
border-left: 1em solid #2c2125
border-left: 1em solid #2c2125
}
h2:before {
right: 0;
border-top: 2.5em solid transparent;
border-right: 1em solid #2c2125
border-right: 1em solid #2c2125
}
#faq table {