feat: new encoder (wip)

This commit is contained in:
Jamie Peabody
2023-08-27 11:16:37 +01:00
parent cd09815b7d
commit 8c2d68074c
12 changed files with 231 additions and 130 deletions

View File

@@ -4,15 +4,9 @@ require('codemirror/addon/selection/mark-selection.js');
require('codemirror/lib/codemirror.css');
require('../src/mergely.css');
const lhs = `\
the quick red fox
jumped over the hairy dog
`;
const lhs = `hello`;
const rhs = `\
the quick brown fox
jumped over the lazy dog
`;
const rhs = `hello\ngoodbye`;
document.onreadystatechange = function () {
@@ -22,6 +16,7 @@ document.onreadystatechange = function () {
const mergely = new Mergely('#compare', {
license: 'lgpl',
inline: 'words',
lhs,
rhs
});

View File

@@ -304,7 +304,6 @@ dog
and the postman
`
}];
console.log(data.length);
for (let i = 0; i < data.length; ++i) {
const { lhs, rhs } = data[i];
const darkModeOptions = i === 11 ? {

View File

@@ -298,7 +298,6 @@
rhs.style = 'color:initial';
});
jQuery('#search-text').on('keypress', (ev) => {
console.log(ev.which)
if (event.which === 13) {
ev.preventDefault();
jQuery('#search').click();