7 return uci
.load('ttyd');
10 var port
= uci
.get_first('ttyd', 'ttyd', 'port') || '7681',
11 ssl
= uci
.get_first('ttyd', 'ttyd', 'ssl') || '0',
12 url
= uci
.get_first('ttyd', 'ttyd', 'url_override');
14 return E('div', { class: 'alert-message warning' },
15 _('Random ttyd port (port=0) is not supported.<br />Change to a fixed port and try again.'));
17 src
: url
|| ((ssl
=== '1' ? 'https' : 'http') + '://' + window
.location
.hostname
+ ':' + port
),
18 style
: 'width: 100%; min-height: 500px; border: none; border-radius: 3px; resize: vertical;'
21 handleSaveApply
: null,