Merge branch 'MDL-46496-master' of git://github.com/andrewnicols/moodle

This commit is contained in:
Dan Poltawski 2014-08-11 14:38:33 +01:00
commit c068b0814b

View file

@ -40,15 +40,33 @@ $PAGE->requires->jquery_plugin('migrate');
echo $OUTPUT->header(); echo $OUTPUT->header();
// Note: the example was copied from http://jqueryui.com/accordion/ page. // Note: the examples were copied from http://jqueryui.com/accordion/, and
// http://jqueryui.com/progressbar/#label.
?> ?>
<script> <script>
$(function() { $(function() {
$( "#accordion" ).accordion(); $( "#accordion" ).accordion();
$( "#progressbar" ).progressbar({
value: false
});
}); });
</script> </script>
<style>
.ui-progressbar {
position: relative;
}
.progress-label {
position: absolute;
left: 50%;
top: 4px;
font-weight: bold;
text-shadow: 1px 1px 0 #fff;
}
</style>
<div id="progressbar"><div class="progress-label">Loading...</div></div>
<div id="accordion"> <div id="accordion">
<h3>Section 1</h3> <h3>Section 1</h3>