Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some changes #6

Open
zimorodokan opened this issue Sep 13, 2017 · 4 comments
Open

some changes #6

zimorodokan opened this issue Sep 13, 2017 · 4 comments

Comments

@zimorodokan
Copy link

zimorodokan commented Sep 13, 2017

`$('body').on('input', function(e) {
    try {
        if ($(e.target).is('.typing input.typing-type-here')) {
            var g = MEMRISE.garden;
            var b = g.box;
            var s = g.scoring.score_response(
                b.$input.val(), b.testData.accepted, b.learnable.is_typing_strict);
            if (s === 1) {
                MEMRISE.garden.box.check();
            }
        }
    } catch (err) {
        console.log('error - falling back to default behavior', err);
    }
});`
@eneej
Copy link

eneej commented Sep 21, 2017

Thank you. This change really helped!

@zimorodokan
Copy link
Author

you can try also next code

`$('body').on('input', function(e) {
    try {
        if ($(e.target).is('.typing input.typing-type-here') || $(e.target).is('.audio-typing input.typing-type-here')) {
            var g = MEMRISE.garden;
            var b = g.box;
            var s = g.scoring.score_response(b.$input.val(), b.accepted, b.learnable.is_typing_strict);
            if (b.$input.val() === b.correct || s === 1) {
                b.$next.click();
            }
        }
    } catch (err) {
        console.log('error - falling back to default behavior', err);
    }
});`

@eneej
Copy link

eneej commented Apr 1, 2018

Now the script has stopped working. What needs to be changed?

@zimorodokan
Copy link
Author

You can use https://github.com/cooljingle/memrise-turbo instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants