From 34f0c728dae80125e45a875eb2beade164e0da6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Hern=C3=A1ndez=20Medina?= Date: Mon, 27 Feb 2023 22:26:43 +0100 Subject: [PATCH] :memo: Update copyright year --- index.html | 8 ++++---- static/script.js | 16 ++++++++-------- static/style.css | 10 +++++----- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/index.html b/index.html index 580abc8..3bd4726 100644 --- a/index.html +++ b/index.html @@ -26,7 +26,7 @@ - +
@@ -140,11 +140,11 @@ - + diff --git a/static/script.js b/static/script.js index ef7aa8d..3ee820c 100644 --- a/static/script.js +++ b/static/script.js @@ -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() { diff --git a/static/style.css b/static/style.css index 78d13fa..0ee7b90 100644 --- a/static/style.css +++ b/static/style.css @@ -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 {