|
14 | 14 | along with this program. If not, see https://www.gnu.org/licenses/. |
15 | 15 | --> |
16 | 16 | <!DOCTYPE html> |
17 | | -<html> |
| 17 | +<html lang="en-US"> |
18 | 18 | <head> |
19 | 19 | <meta charset="UTF-8"> |
20 | 20 | <title>Modica to Flex test page</title> |
|
25 | 25 | </style> |
26 | 26 | </head> |
27 | 27 | <body> |
28 | | -<div style="font-family: courier" id="message-history"> |
| 28 | +<div style="font-family: courier,serif" id="message-history"> |
29 | 29 | </div> |
30 | 30 | <form name="modica-message-input" onsubmit="sendMessage(event); return false;"> |
31 | 31 | <select name="destination-drop-down"> |
|
35 | 35 | <option value="+15375688305">AS_STG</option> |
36 | 36 | <option value="+12165428033">AS_PROD</option> |
37 | 37 | </select> |
38 | | - <label for="message-sender-textbox">Sender Number</label> <input type="number" name="message-sender-textbox" value="1111111"/> |
| 38 | + <label for="message-sender-textbox">Sender Number</label> <input type="text" id="message-sender-textbox" name="message-sender-textbox" value="1111111"/> |
39 | 39 | <br/> |
40 | 40 | <textarea name="message-input-box"></textarea> |
41 | 41 | <input type="submit" name="message-input-send" /> |
42 | 42 | </form> |
43 | | -<pre style="font-family: courier" id="message-response"> |
| 43 | +<pre style="font-family: courier,serif" id="message-response"> |
44 | 44 | </pre> |
45 | 45 |
|
46 | 46 | <script> |
|
63 | 63 | const response = await fetch(WEBHOOK_URL, { |
64 | 64 | method: "POST", |
65 | 65 | headers: { "Content-Type": "application/json" }, |
66 | | - body: JSON.stringify({ destination, source, content, useTestApi: true, testSessionId: 'JSFIDDLE' }), |
| 66 | + body: JSON.stringify({ destination, source, content, useTestApi: true, testSessionId: 'TESTPAGE' }), |
67 | 67 | }); |
68 | 68 | messageHistoryElement.append(messageElement); |
69 | 69 | messageResponseElement.innerText = `status: ${response.status} [${response.statusText}] |
|
0 commit comments