Skip to content

Commit

Permalink
[FEATURE] Updated Question Editor demo page to include all demos from
Browse files Browse the repository at this point in the history
the existing docs site demo page.

https://app.asana.com/0/8825147419757/8855479765458
  • Loading branch information
michaelsharman committed Nov 27, 2013
1 parent 758fc44 commit 8aac630
Show file tree
Hide file tree
Showing 6 changed files with 412 additions and 41 deletions.
35 changes: 35 additions & 0 deletions src/views/modals/asset-upload.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!--
********************************************************************
*
* Setup a modal window for the asset handler demo
*
********************************************************************
-->
<div class="modal fade img-upload">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title">Image gallery</h4>
</div>
<div class="modal-body">
<p>Please chose an image in the gallery.</p>
<div class="gallery-wrapper">
<p class="asset-img-gallery">
<img src="http://upload.wikimedia.org/wikipedia/commons/thumb/e/ed/Thomas_Watling_-_A_Direct_North_General_View_of_Sydney_Cove%2C_1794.jpg/220px-Thomas_Watling_-_A_Direct_North_General_View_of_Sydney_Cove%2C_1794.jpg" data-img="http://upload.wikimedia.org/wikipedia/commons/thumb/e/ed/Thomas_Watling_-_A_Direct_North_General_View_of_Sydney_Cove%2C_1794.jpg/800px-Thomas_Watling_-_A_Direct_North_General_View_of_Sydney_Cove%2C_1794.jpg">
<img src="http://upload.wikimedia.org/wikipedia/commons/thumb/5/5f/Sydney_1932.jpg/220px-Sydney_1932.jpg" data-img="http://upload.wikimedia.org/wikipedia/commons/5/5f/Sydney_1932.jpg">
<img src="http://upload.wikimedia.org/wikipedia/commons/thumb/2/27/City_of_sydney_from_the_balmain_wharf_dusk_cropped2.jpg/220px-City_of_sydney_from_the_balmain_wharf_dusk_cropped2.jpg" data-img="http://upload.wikimedia.org/wikipedia/commons/thumb/2/27/City_of_sydney_from_the_balmain_wharf_dusk_cropped2.jpg/800px-City_of_sydney_from_the_balmain_wharf_dusk_cropped2.jpg">
<img src="http://upload.wikimedia.org/wikipedia/commons/thumb/c/c3/NRL_Grand_Final_2006.JPG/220px-NRL_Grand_Final_2006.JPG" data-img="http://upload.wikimedia.org/wikipedia/commons/c/c3/NRL_Grand_Final_2006.JPG">
<img src="http://upload.wikimedia.org/wikipedia/commons/thumb/c/cd/QantasSYD.jpg/220px-QantasSYD.jpg" data-img="http://upload.wikimedia.org/wikipedia/commons/thumb/c/cd/QantasSYD.jpg/800px-QantasSYD.jpg">
<img src="http://upload.wikimedia.org/wikipedia/commons/thumb/9/9b/Trams_on_George_Street_in_front_of_the_QVB.jpg/220px-Trams_on_George_Street_in_front_of_the_QVB.jpg" data-img="http://upload.wikimedia.org/wikipedia/commons/9/9b/Trams_on_George_Street_in_front_of_the_QVB.jpg">
<img src="http://upload.wikimedia.org/wikipedia/commons/thumb/c/c4/Qvbsyd.jpg/220px-Qvbsyd.jpg" data-img="http://upload.wikimedia.org/wikipedia/commons/c/c4/Qvbsyd.jpg">
<img src="http://upload.wikimedia.org/wikipedia/commons/thumb/d/d0/QVB.jpg/113px-QVB.jpg" data-img="http://upload.wikimedia.org/wikipedia/en/5/5f/QVB136lg.jpg">
</p>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
File renamed without changes.
4 changes: 2 additions & 2 deletions www/authorapi.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
* packet. The response is the HTML of a modal window with the
* Items API initialised to render whatever was found in the content
* editor window (if anything).
* See ./src/views/modals/itemsinline.php
* See ./src/views/modals/items-inline.php
*
********************************************************************
-->
Expand All @@ -170,7 +170,7 @@
function signItemsRequest() {
var data = {
item_references: [],
sign_type: 'itemsinline',
sign_type: 'items-inline',
content: editor.getValue()
};
$(data.content).each(function() {
Expand Down
4 changes: 2 additions & 2 deletions www/itemsapi_assess.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
'name' => 'Items API demo - assess activity',
'rendering_type' => 'assess',
'state' => 'initial',
'type' => 'local_practice',
'type' => 'submit_practice',
'course_id' => $courseid,
'session_id' => UUID::generateUuid(),
'user_id' => $studentid,
Expand All @@ -41,7 +41,7 @@
'transition_speed' => 400
),
'time' => array(
'max_time' => 120,
'max_time' => 10,
'limit_type' => 'soft',
'show_pause' => true,
'warning_time' => 60,
Expand Down
Loading

0 comments on commit 8aac630

Please sign in to comment.