-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhtml_yesno.js
26 lines (23 loc) · 1.09 KB
/
html_yesno.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// $Id: html_yesno.js,v 1.5 2007/07/29 04:53:35 deuce Exp $
load("sbbsdefs.js");
load("text.js");
load("asc2htmlterm.js");
if(user.settings & USER_HTML) {
var os = bbs.sys_status;
bbs.sys_status |= SS_PAUSEOFF;
bbs.sys_status &= ~SS_PAUSEON;
console.write("\2\2<html><head><title>"+strip_ctrl(console.question)+"</title></head>");
console.write('<body bgcolor="black" text="#a8a8a8">');
console.write(' <br> <br> <br> <br> <br> <br> <br>');
console.write('<center><h1>'+asc2htmlterm(console.question,false,true).replace(/(?: )*<br>/g,'').replace(/nowrap/g,'').replace(/(?: )/g,' ')+'</h1></center>');
console.write(' <br> <br> <br>');
console.write('<table width="100%"><tr><td align="center" width="50%">');
console.write('<h2><font color="#a8a8a8"><a href="Y">Yes</a></h2>');
console.write('</td><td align="center" width="50%">');
console.write('<h3><font color="#a8a8a8"><a href="N">No</a></h3>');
console.write('</td></tr></table>');
console.write('</body></html>\2');
bbs.sys_status=os;
}
else
console.putmsg("@EXEC:yesnobar@");