Coder Social home page Coder Social logo

lu16j / 6.005specsapp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from michelleoj/6.005specsapp

0.0 1.0 0.0 509 KB

A web application that allows students in 6.005 to practice creating adequate specifications for their implementations.

CSS 7.45% JavaScript 92.55%

6.005specsapp's Introduction

6.005SpecsApp

A web application that allows students in 6.005 to practice creating adequate specifications for their implementations.

Libraries

jQuery, jQueryUI, Bootstrap, Bootbox, Prettify, Fabric.js, Highcharts, Node.js

Instructors

Use JSONEditor.html to generate specs/impls matching questions. When finished, paste the assembled JSON into questions.js, within the array 'questions'. (KEEP THE FORMAT OF THE ARRAY DECLARATION, INCLUDING THE NEWLINE BEFORE THE CLOSING SQUARE BRACKET.)
Example questions have been loaded in questions.js. Run 6005specs.html to test them.

Embedding

To embed this applet, load appropriate files (detailed below) into the same folder as your webpage, minus 6005specs.html.
Include the following code in your HTML head:

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
    <script src="http://web.mit.edu/lu16j/www/boots/bootstrap/js/bootstrap.min.js"></script>
    <link href="http://web.mit.edu/lu16j/www/boots/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <script src="bootbox.min.js"></script>
    <script src="prettify.js"></script>
    <script src="fabric.js"></script>
    <script src="6005specs.js"></script>
    <link href='prettify.css' rel='stylesheet' type='text/css'/>
    <link href="6005specs.css" rel="stylesheet">  

Insert the following code where you want to place the applet (alter as needed, detailed below):

    <div class="specs" data-server="off" data-ip=""></div>
    <script src="questions.js"></script>

Deployment - Homework Mode

In 6005specs.html, or in the embedded code, set the "data-server" attribute of div.specs to "off".
Load the following files into an online folder:

  • 6005specs.css, .js, .html
  • correct.png, wrong.png
  • bootbox.min.js
  • fabric.js
  • prettify.js, .css
  • questions.js

Direct students to 6005specs.html.

Deployment - Quiz Mode

In 6005specs.html, or in the embedded code, set the "data-server" attribute of div.specs to "on". Set "data-ip" to the appropriate address and port number ("http://XXX.X.X.X:####")
Load the same files as above into an online folder, minus questions.js. Delete the HTML line to include questions.js.
Make sure questions.js and specserver.js are in the same folder on your machine; run a Node.js server from specserver.js.
Direct students to 6005specs.html, and allow students to submit answers.
Open displayresults.html. Hit "Close" when you want to close the quiz.
A pie chart detailing the student answers for each question will appear in a tab for each question, along with an example visualization of the selected answer.

6.005specsapp's People

Contributors

lu16j avatar

Watchers

 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.