-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.aspx
More file actions
95 lines (81 loc) · 3.84 KB
/
Copy pathmain.aspx
File metadata and controls
95 lines (81 loc) · 3.84 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="main.aspx.cs" Inherits="DomainChecker.main" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>ACS Domain Checker</title>
<style type="text/css">
.auto-style1 {
width: 100%;
}
.auto-style2 { text-align: left;
}
.table-responsive {
table {
width: 100%; /* Set the width of the table */
table-layout:fixed;
border-collapse: collapse; /* Collapse table borders */
border: 2px solid #000; /* Set border for the table */
}
th, td {
border: 1px solid #000; /* Set border for table cells */
padding: 2px; /* Add padding to table cells */
overflow-wrap: normal; /* Wrap long words to the next line */
}
}
.loader {
border: 6px solid #f3f3f3;
border-top: 6px solid #3498db;
border-radius: 50%;
width: 40px;
height: 40px;
animation: spin 1s linear infinite;
margin: 20px auto;
display: none; /* Hidden by default */
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
</head>
<body style="width=100%">
<form id="form1" runat="server">
<div>
<table class="auto-style1">
<tr>
<td class="auto-style2" style="border-width: 0px; border-style: hidden; background-color: #E5E5E5">
<asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="24pt" Text="Domain Checker"></asp:Label>
<br />
<asp:TextBox ID="DomainTextBox" runat="server" BorderColor="#CCCCCC" Height="26px" Width="30%"></asp:TextBox>
<asp:Button ID="Button1" runat="server" BackColor="#0066CC" Font-Bold="True" ForeColor="White" Height="28px" OnClientClick="showSpinner()" OnClick="Button1_Click" Text="Lookup" Width="85px" />
<br />
<button runat="server" id="copyButton" onclick="copyToClipboard()" visible="false">Copy table to clipboard</button>
<asp:LinkButton ID="LinkButton1" style="float:right;" runat="server" OnClientClick="window.open('https://newacsdomainchecker.azurewebsites.net/checkEligibility.aspx', '_blank'); return false;" >Click here</asp:LinkButton>
<asp:Label ID="Label3" style="float:right;" runat="server" Text="Need to check quota eligibility? "></asp:Label>
</td>
</tr>
</table>
<div id="loadingSpinner" class="loader"></div>
<asp:Label ID="Label2" runat="server" Visible="False"></asp:Label>
<div class="table-responsive" id="RecordsDiv" runat="server"></div>
</div>
<script>
function copyToClipboard() {
var range = document.createRange();
range.selectNode(document.getElementById("RecordsDiv"));
window.getSelection().removeAllRanges(); // Clear current selection
window.getSelection().addRange(range); // Add the range to the selection
document.execCommand('copy'); // Copy the selected content
window.getSelection().removeAllRanges(); // Clear the selection after copying
}
function showSpinner() {
document.getElementById("RecordsDiv").innerHTML = "";
document.getElementById("loadingSpinner").style.display = "block";
}
function hideSpinner() {
document.getElementById("loadingSpinner").style.display = "none";
}
</script>
</form>
</body>
</html>