Changes between Version 13 and Version 14 of BoltTutorial


Ignore:
Timestamp:
Feb 6, 2008, 1:37:36 PM (16 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BoltTutorial

    v13 v14  
    77player on any computer).
    88
    9 Use [MakeProject make_project] to create a BOINC project named "bolt_test":
     9Use [MakeProject make_project] to create a BOINC project named "test":
    1010{{{
    1111> cd boinc/tools
    12 > make_project --web_only bolt_test
     12> make_project --web_only test
    1313}}}
    1414Edit httpd.conf as directed (you'll need root access to do this).
     
    1818
    1919Visit http://a.b.c/test_ops/bolt_ops.php,
    20 and create a course named "Test course"
    21 with course document "course_doc.php" (we'll create this later).
     20and create a course named "Identifying California conifers"
     21with course document "conifer.php" (we'll create this later).
    2222
    2323== Lessons and sequences ==
     
    4747}}}
    4848
    49 lesson2.html
     49conifer_decid.php
    5050{{{
    5151<?php
     
    7070}}}
    7171
    72 course_doc.php
     72conifer.php
    7373{{{
    7474<?php
     75
     76function bolt_header($title) {
     77    echo "
     78        <link rel=stylesheet href=conifer.css type=text/css>
     79        <table><tr><td width=600 height=126 background=images/conifers.jpg>
     80        <font size=6 color=#ffffff>
     81        &nbsp;Identifying<br>&nbsp;California<br>&nbsp;Conifers
     82        </font>
     83        </td></tr></table>
     84        <p>
     85        <h2>$title</h2>
     86    ";
     87}
     88
     89function bolt_footer() {
     90    echo "
     91        <div id='footer'>
     92        <table width=100%><tr><td align=center>
     93        &copy; 2008
     94        </td></tr></table>
     95        </div>
     96    ";
     97}
     98
    7599return sequence(
    76100    name('course'),
    77101    lesson(
    78         name('lesson 1'),
    79         filename('lesson1.php')
     102        name('Introduction'),
     103        filename('conifer_intro.php')
    80104    ),
    81105    lesson(
    82         name('lesson 2'),
    83         filename('lesson2.html')
     106        name('Conifers and deciduous trees'),
     107        filename('conifer_decid.php')
    84108    )
    85109);
    86110?>
     111}}}
     112
     113conifer.css:
     114{{{
     115body {
     116    background-color: white;
     117    font-family: "Trebuchet MS", Verdana, Arial, Sans-Serif;
     118    font-size: 16px;
     119    color: black;
     120    width: 800px;
     121}
     122
     123img {
     124    display: block;
     125    margin-top: 10px;
     126    margin-bottom: 10px;
     127    margin-left: auto;
     128    margin-right: auto;
     129    border: 0px;
     130}
     131
     132p.caption {
     133    text-align: center;
     134    font-weight: bold;
     135    margin-left: auto;
     136    margin-right: auto;
     137}
    87138}}}
    88139
     
    93144Now visit http://a.b.c/test/bolt.php.
    94145You'll be asked to log in; do so.
    95 Click on the button to start the test course.
    96 You'll see:
     146Click on the button to start the course.
     147Fill in the form asking for your demographic info.
     148Then you'll see:
    97149
    98150[[Image(bolt_l1.jpg, nolink)]]
     
    107159Now suppose that instead of reading the lesson,
    108160you go away (for an hour or a month) and return.
    109 Simulate this by visiting http://a.b.c.test/bolt.php.
    110 You'll see
    111 
    112 [[Image(restart.png, nolink)]]
    113 
     161Simulate this by visiting http://a.b.c.test/bolt.php; click Resume.
    114162Notice that Bolt "remembers" where you are in the course
    115163(this is stored in the database;
    116164it will work even if you go to a different computer).
    117 
    118 Now click "Resume", and you'll see the second lesson again.
    119 Click on Next.
    120 You'll see:
    121 
    122 [[Image(finished.png, nolink)]]
    123165
    124166Now visit http://a.b.c.test/bolt.php again,
     
    126168You'll see something like:
    127169
    128 [[Image(history.png, nolink)]]
     170[[Image(bolt_history.jpg, nolink)]]
    129171
    130172Bolt has recorded your course interactions and their timing,