Skip to content

Commit b0df434

Browse files
committed
Added warning when not using firefox
1 parent b48ca42 commit b0df434

2 files changed

Lines changed: 41 additions & 32 deletions

File tree

recordrtc.php

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,27 @@
5252
function get_output() {
5353
global $CFG;
5454

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";
6575
$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";
7076
$out .= '</div>'."\n";
7177

7278
// Because there is no relative path to TinyMCE, we have to use JavaScript

tinymce/css/style.css

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
1-
div {
2-
display: inline;
3-
font-weight: normal;
4-
line-height: 40px;
5-
padding: 3px 0 3px 0;
6-
}
7-
8-
button, input[type=button] {
9-
display: inline-block;
1+
.alert {
102
font-family: inherit;
11-
line-height: 1.3;
12-
padding: 5px 12px;
133
text-align: center;
14-
text-shadow: 1px 1px 1px #076bd2;
4+
margin: 10px 15px 20px 20px;
155
}
166

177
.recordrtc, .recordrtc .header {
@@ -24,8 +14,22 @@ button, input[type=button] {
2414
display: none;
2515
}
2616

27-
.hide {
28-
display: none !important;
17+
div {
18+
font-weight: normal;
19+
line-height: 40px;
20+
padding: 3px 0 3px 0;
21+
}
22+
23+
div.alert {
24+
line-height: 10px;
25+
}
26+
button, input[type=button] {
27+
display: inline-block;
28+
font-family: inherit;
29+
line-height: 1.3;
30+
padding: 5px 12px;
31+
text-align: center;
32+
text-shadow: 1px 1px 1px #076bd2;
2933
}
3034

3135
audio {
@@ -50,7 +54,6 @@ audio.selected {
5054
transform: scale(1.05);
5155
}
5256

53-
.alert {
54-
text-align:center;
55-
width: 100%;
56-
}
57+
.hide {
58+
display: none !important;
59+
}

0 commit comments

Comments
 (0)