Files
minisrv/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Username-Not-Available.aspx.js
2026-05-05 09:20:31 -04:00

60 lines
2.1 KiB
JavaScript

const minisrv_service_file = true;
headers = `Status: 200 OK
Content-type: text/html`;
data = `<HTML xmlns:msntv>
<?import namespace="msntv" implementation="/Include/HTC/Shared/CustomButton.htc">
<HEAD>
<title id="title">Username Not Available</title>
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<link rel="stylesheet" type="text/css" href="msntv:/Registration/css/Registration.css">
<STYLE>
body {
background-image: url(msntv:/Registration/images/bgimage.jpg);
background-color: #23B3DF;
}
#main td {
padding-bottom: 9px;
padding-right: 0px;
}
.input-container {
margin-left: 50px;
}
</STYLE>
<script>
function SubmitForm() {
var tvShell = new ActiveXObject("MSNTV.TVShell");
var baseUrl = window.location.protocol + "//" + window.location.hostname;
if (window.location.port) {
baseUrl += ":" + window.location.port;
}
var url = baseUrl + '/Register/Promotion-code.aspx';
var email = document.getElementById('email').value;
var parms = 'email=' + encodeURIComponent(email);
var myPanel = tvShell.PanelManager.Item('main');
if (myPanel) {
myPanel.PostToURL(url, parms);
}
}
</script>
</HEAD>
<BODY width="520" height="388">
<DIV id="title">Username Not Available</DIV>
<DIV id="main">
<p>
The username you have chosen is not available. Please choose a different username.
</p>
<p>Type your minisrv username:</p>
<div>
<td><input type="text" id="email" class="inputText" name="email" maxlength="32" size="25"> </td>
<p style="display: inline; bottom: 4px; position: relative;">@${minisrv_config.config.service_name}</p>
</div>
<br>
</DIV>
<div id="footer">
<msntv:CustomButton id="continue" label="Continue" href="javascript:SubmitForm()" />
</div>
</BODY>
</HTML>`;