diff --git a/exolve-from-ipuz.js b/exolve-from-ipuz.js index 59c284a3..c84da060 100644 --- a/exolve-from-ipuz.js +++ b/exolve-from-ipuz.js @@ -24,7 +24,7 @@ SOFTWARE. The latest code and documentation for Exolve can be found at: https://github.com/viresh-ratnakar/exolve -Version: Exolve v1.05 February 19 2021 +Version: Exolve v1.06 February 26 2021 */ /** @@ -39,7 +39,7 @@ Version: Exolve v1.05 February 19 2021 * - Clue directions other than Across and Down. * - Omitted cells (they get rendered as black cells). */ -exolveFromIpuz = function(ipuz, id=null) { +exolveFromIpuz = function(ipuz, id=null, fname='') { if (!ipuz['dimensions']) { console.log('ipuz: missing "dimensions"') return ''; @@ -66,6 +66,12 @@ exolveFromIpuz = function(ipuz, id=null) { exolve-id: ${id} exolve-width: ${w} exolve-height: ${h}` + if (!fname) { + fname = 'unknown' + } + exolve += ` + exolve-maker: + Converted by exolve-from-ipuz.js from ${fname}` if (ipuz['title']) { exolve += ` exolve-title: ${ipuz['title']}` diff --git a/exolve-from-puz.js b/exolve-from-puz.js index 865e86fe..7f0cc40d 100644 --- a/exolve-from-puz.js +++ b/exolve-from-puz.js @@ -24,7 +24,7 @@ SOFTWARE. The latest code and documentation for Exolve can be found at: https://github.com/viresh-ratnakar/exolve -Version: Exolve v1.05 February 19 2021 +Version: Exolve v1.06 February 26 2021 */ function exolveFromPuzNextNull(buffer, offset) { @@ -37,7 +37,7 @@ function exolveFromPuzNextNull(buffer, offset) { return offset; } -function exolveFromPuz(buffer, id=null) { +function exolveFromPuz(buffer, id=null, fname='') { const dotPuzShort = function(buffer, offset) { return (buffer[offset + 1] << 8) + buffer[offset]; } @@ -172,6 +172,9 @@ ${exolveGrid} } } + if (!fname) { + fname = 'unknown' + } if (!id) { id = `puzxlv-${Math.random().toString(36).substring(2, 8)}` } @@ -182,6 +185,8 @@ ${exolveGrid} exolve-title: ${title} exolve-setter: ${setter} exolve-copyright: ${copyright} + exolve-maker: + Converted by exolve-from-puz.js from ${fname} exolve-grid: ${exolveGrid} exolve-across: diff --git a/exolve-m-simple.html b/exolve-m-simple.html index 00b8230a..ce34f143 100644 --- a/exolve-m-simple.html +++ b/exolve-m-simple.html @@ -14,11 +14,11 @@ See the full Exolve license notice in exolve-m.js. -Version: Exolve v1.04 February 11 2021 +Version: Exolve v1.06 February 26 2021 --> - - + + Exolve diff --git a/exolve-m.css b/exolve-m.css index 66f714fd..5180d077 100644 --- a/exolve-m.css +++ b/exolve-m.css @@ -5,7 +5,7 @@ Copyright (c) 2019 Viresh Ratnakar See the full license notice in exolve-m.js. -Version: Exolve v1.05 February 19 2021 +Version: Exolve v1.06 February 26 2021 */ @media (max-width: 500px) { @@ -15,7 +15,6 @@ Version: Exolve v1.05 February 19 2021 } .xlv-anno-text, -.xlv-small-print, .xlv-status, .xlv-saving, .xlv-solution, @@ -26,8 +25,10 @@ Version: Exolve v1.05 February 19 2021 font-size: 12px; font-family: monospace; } +.xlv-small-print, +.xlv-metadata, .xlv-saving { - font-size: 10px; + font-size: x-small; font-family: monospace; } .xlv-grid-panel { @@ -200,7 +201,6 @@ Version: Exolve v1.05 February 19 2021 } .xlv-small-print { margin: 4px 0 6px 0; - font-size: x-small; } .xlv-small-print > * { padding: 2px 4px 0 0; @@ -213,6 +213,9 @@ Version: Exolve v1.05 February 19 2021 .xlv-submit { margin: 4px 0 6px 0; } +.xlv-metadata { + padding: 0 0 4px 0; +} .xlv-errors { font-weight: bold; color: red; diff --git a/exolve-m.html b/exolve-m.html index 8dc2e675..bce6ebee 100644 --- a/exolve-m.html +++ b/exolve-m.html @@ -10,10 +10,10 @@ See the full Exolve license notice in exolve-m.js. -Version: Exolve v1.04 February 11 2021 +Version: Exolve v1.06 February 26 2021 --> - - + + Exolve (replace with puzzle title) diff --git a/exolve-m.js b/exolve-m.js index 4e862222..247ce5ef 100644 --- a/exolve-m.js +++ b/exolve-m.js @@ -79,7 +79,7 @@ function Exolve(puzzleSpec, visTop=0, maxDim=0, saveState=true) { - this.VERSION = 'Exolve v1.05 February 19 2021' + this.VERSION = 'Exolve v1.06 February 26 2021' this.puzzleText = puzzleSpec this.containerId = containerId @@ -244,6 +244,8 @@ function Exolve(puzzleSpec,
  • Arrow keys: Move to the nearest light square in that direction
  • Spacebar: Place/clear block in the current square if it's diagramless
  • `, + 'crossword-id': 'Crossword ID', + 'maker-info': 'Exolve-maker info', 'manage-storage': 'Manage local storage', 'manage-storage.hover': 'View puzzle Ids for which state has been saved. Delete old saved states to free up local storage space if needed', 'manage-storage-close': 'Close (local storage)', @@ -380,6 +382,12 @@ Exolve.prototype.init = function() {