Sha256: 547f87610b5ec5db6983c56ed670f577e4edfe97900b4d053fba8f9ca91d6ce3

Contents?: true

Size: 550 Bytes

Versions: 2

Compression:

Stored size: 550 Bytes

Contents

<h1>Standalone Assessment Example</h1>
<div id="learnosity_assess"></div>
<script src="https://items.learnosity.com?latest-lts"></script>
<script>
  var eventOptions = {
    readyListener: init
  },
    itemsApp = LearnosityItems.init(<%= raw @init.generate %>);

  function init () {
    var assessApp = itemsApp.assessApp();

    assessApp.on('item:load', function () {
      console.log('Active item:', getActiveItem(this.getItems()));
    });

    assessApp.on('test:submit:success', function () {
      toggleModalClass();
    });
  }
</script>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
learnosity-sdk-0.3.0 docs/quickstart/lrn-sdk-rails/app/views/items/index.html.erb
learnosity-sdk-0.2.2 docs/quickstart/lrn-sdk-rails/app/views/items/index.html.erb