===================================
Open your terminal using Ctrl+Alt+T and type the following commands
##Step 1: Update & Upgrade
sudo apt-get update
sudo apt-get upgrade##Getting Started
##Tin Can API (aka. Experience API)
#Setting Up TinCan API with Moodle LMS and Learning Locker LRS
#Part 1: Virtual Container
Before we get our hands dirty with the entire setup, it is necessary to ensure we do not mess with the existing installation. Setting up and configuring a local server is tricky and may sometimes break your existing configuration rendering other programs which rely on it useless. So we will use LXC to create a virtual container, where we will do all good stuff. You can read the official LXC documentation here or a brief introduction about LXC here or get started right away with the commands below.
sudo apt-get install lxc lxd-client
sudo lxc-create -t download -n LMSprototype#Javascript Objects and Prototypes
##Chapter 1: Creating Javascript Objects
There are 4 ways of creating Javascript objects:
var cat = {#Module 1: Introduction
##Lesson 1: Introduction
#Chapter 1
#Chapter 2
##Lesson 1
##Lesson 2
##Lesson 3
| // index.html | |
| <p id="timer"> | |
| 00:00:00 | |
| </p> | |
| // script.js | |
| let count = 0; | |
| let intervalRef = null; | |
| intervalRef = setInterval(_ => { |
| // index.html | |
| <p id="timer"> | |
| 00:00:00 | |
| </p> | |
| <button onClick="hangTheBrowser()"> | |
| Hang the browser | |
| </button> | |
| // script.js |