Coder Social home page Coder Social logo

wellingtoneacademy / adapt-block-branching Goto Github PK

View Code? Open in Web Editor NEW

This project forked from simondate/adapt-block-branching

0.0 0.0 0.0 25 KB

Adds block-based branching to Adapt. Ideal for creating non-linear scenarios.

License: GNU General Public License v3.0

JavaScript 100.00%

adapt-block-branching's Introduction

adapt-block-branching

An Adapt framework extension to add block based branching to an article.

Attributes

articles.json

The extension enables different blocks within an Article to be hidden or shown according to which branching path the learner takes.

_isEnabled (boolean) Disables branching functionality in the Article. Ideal to use for QA or testing purposes

_resetOnRevisit (boolean) If set to true the extension resets if you navigate to off the page.

blocks.json

_blockBranching (object) The setting is required for every single block on the page with Branching

_isEnabled (boolean) Turns the current block into a branching block. This will hide any blocks that appear later in the page.

_scenarioId (string) Used to assign an ID for the current block. This is used instead of the normal Block ID so that the extension still functions when you import/export the course from the Adapt Authoring Tool.

_userAnswer (array - strings): This array links to the scenario ID of the following blocks on the page to the answers of the items array in any question component inside this block.

adapt-block-branching's People

Contributors

simondate avatar

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.