|
52 | 52 | function get_output() { |
53 | 53 | global $CFG; |
54 | 54 |
|
55 | | - $out = '<div id="alert" class="alert hide">Use Firefox for best experience</div>'."\n"; |
56 | | - $out .= '<div class="recordrtc">'."\n"; |
57 | | - $out .= ' <div class="header">'."\n"; |
58 | | - $out .= ' <select class="recording-media" style="display:none">'."\n"; |
59 | | - $out .= ' <option value="record-audio">Audio</option>'."\n"; |
60 | | - $out .= ' </select>'."\n"; |
61 | | - $out .= ' <select class="media-container-format" style="display:none">'."\n"; |
62 | | - $out .= ' <option>Ogg</option>'."\n"; |
63 | | - $out .= ' </select>'."\n"; |
64 | | - $out .= ' <button class="btn btn-primary btn-lg btn-danger">Start Recording</button>'."\n"; |
| 55 | + $out = '<div class="container-fluid">'."\n"; |
| 56 | + $out = ' <div class="row">'."\n"; |
| 57 | + $out = ' <div class="col-md-16">'."\n"; |
| 58 | + $out .= ' <div id="alert" class="alert h5 hide">Use Firefox for best experience</div>'."\n"; |
| 59 | + $out .= ' <div class="recordrtc">'."\n"; |
| 60 | + $out .= ' <div class="header">'."\n"; |
| 61 | + $out .= ' <select class="recording-media" style="display:none">'."\n"; |
| 62 | + $out .= ' <option value="record-audio">Audio</option>'."\n"; |
| 63 | + $out .= ' </select>'."\n"; |
| 64 | + $out .= ' <select class="media-container-format" style="display:none">'."\n"; |
| 65 | + $out .= ' <option>Ogg</option>'."\n"; |
| 66 | + $out .= ' </select>'."\n"; |
| 67 | + $out .= ' <button class="btn btn-primary btn-lg btn-danger">Start Recording</button>'."\n"; |
| 68 | + $out .= ' </div>'."\n"; |
| 69 | + $out .= ' <div style="display:none;">'."\n"; |
| 70 | + $out .= ' <button class="btn btn-primary btn-md" id="upload-to-server">Upload Recording to Server</button>'."\n"; |
| 71 | + $out .= ' </div>'."\n"; |
| 72 | + $out .= ' <video width="1" height="1" muted></video>'."\n"; |
| 73 | + $out .= ' </div>'."\n"; |
| 74 | + $out .= ' </div>'."\n"; |
65 | 75 | $out .= ' </div>'."\n"; |
66 | | - $out .= ' <div style="display:none;">'."\n"; |
67 | | - $out .= ' <button class="btn btn-primary btn-md" id="upload-to-server">Upload Recording to Server</button>'."\n"; |
68 | | - $out .= ' </div>'."\n"; |
69 | | - $out .= ' <video width="1" height="1" muted></video>'."\n"; |
70 | 76 | $out .= '</div>'."\n"; |
71 | 77 |
|
72 | 78 | // Because there is no relative path to TinyMCE, we have to use JavaScript |
|
0 commit comments