Giter Site home page Giter Site logo

"Expecting double quoted ..." about beaqlejs HOT 8 OPEN

nise avatar nise commented on August 9, 2024
"Expecting double quoted ..."

from beaqlejs.

Comments (8)

timobaumann avatar timobaumann commented on August 9, 2024

what is your browser? what precisely is the complaint?

from beaqlejs.

seebk avatar seebk commented on August 9, 2024

Yes, please give more details if you intersted in a solution. If the demo page works in your browser there is probably a syntax error in your configuration file.

from beaqlejs.

nise avatar nise commented on August 9, 2024

Have look at the abx, mushra, and preference config:
{ "Name": "Castanets", "TestID": "id2", "Files": { "A": "audio/castanets_ref.wav", "B": "audio/castanets_2.wav", } }, ] }
The last coma leads to errors in Firefox.

from beaqlejs.

nise avatar nise commented on August 9, 2024

I would further suggest to define the config files as JSON, instead of putting a singe JS variable in such a file.

In the index.html the JS code can be easily changed.

window.onload = function () {
            $.ajax({
                url: '/config/ab-experiment-config.json', // change your config file here
                type: 'GET',
                dataType: 'json',
                success: function (data) {
                    //testHandle = new MushraTest(data);    // <-- MUSHRA test class
                    testHandle = new AbxTest(data);     // <-- ABX test class
                    $('#Footer').prepend(testHandle.browserFeatureString() + '<br/>'); // still a bad coding practice here
                },
                error: function (err) {
                    console.error(err); 
                }
            });
        };

from beaqlejs.

seebk avatar seebk commented on August 9, 2024

from beaqlejs.

seebk avatar seebk commented on August 9, 2024

The last coma leads to errors in Firefox.

I agree that this comma is not required, but I do neither get any warnings nor errors in the Firefox web console window. I have just verified this with Firefox 60.5 ESR from my Debian system.

from beaqlejs.

nise avatar nise commented on August 9, 2024

I expected that a web-based app would run on a remote or local web server.

The things with the comma might be more a matter of coding standards. However, I was not able to run the app because of this bugs.

from beaqlejs.

timobaumann avatar timobaumann commented on August 9, 2024

can we close this then as there's no bug and possibly move the discussion about requiring a web server (which, at the same time would simplify the JS) into a different bug/feature request/issue?

from beaqlejs.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.