typescript rewrite
This commit is contained in:
23
dist/frontend.js
vendored
Normal file
23
dist/frontend.js
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const inputElement = document.getElementById('input');
|
||||
const box = document.getElementById('response_text');
|
||||
const response_text = document.getElementById('response_text');
|
||||
inputElement.addEventListener('keydown', function (event) {
|
||||
if (event.key === 'Enter') {
|
||||
convert_form();
|
||||
}
|
||||
});
|
||||
function convert_form() {
|
||||
const user_input = inputElement.value;
|
||||
const converted_user_input = user_input.replace(/ /g, "");
|
||||
box.textContent = converted_user_input;
|
||||
inputElement.value = '';
|
||||
return converted_user_input;
|
||||
}
|
||||
function copy_to_clipboard() {
|
||||
const text_to_copy = response_text.textContent;
|
||||
navigator.clipboard.writeText(text_to_copy);
|
||||
}
|
||||
});
|
||||
//# sourceMappingURL=frontend.js.map
|
||||
1
dist/frontend.js.map
vendored
Normal file
1
dist/frontend.js.map
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"frontend.js","sourceRoot":"","sources":["../frontend.ts"],"names":[],"mappings":";AAAA,QAAQ,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAEnD,MAAM,YAAY,GAAG,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAmB,CAAC;IACxE,MAAM,GAAG,GAAG,QAAQ,CAAC,cAAc,CAAC,eAAe,CAAmB,CAAC;IACvE,MAAM,aAAa,GAAG,QAAQ,CAAC,cAAc,CAAC,eAAe,CAAmB,CAAC;IAIjF,YAAY,CAAC,gBAAgB,CAAC,SAAS,EAAE,UAAS,KAAK;QACnD,IAAI,KAAK,CAAC,GAAG,KAAK,OAAO,EAAC,CAAC;YAC3B,YAAY,EAAE,CAAC;QACf,CAAC;IACL,CAAC,CAAC,CAAA;IASF,SAAS,YAAY;QAEjB,MAAM,UAAU,GAAG,YAAY,CAAC,KAAK,CAAC;QACtC,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAE1D,GAAG,CAAC,WAAW,GAAG,oBAAoB,CAAC;QAEvC,YAAY,CAAC,KAAK,GAAG,EAAE,CAAC;QAExB,OAAO,oBAAoB,CAAC;IAChC,CAAC;IAGD,SAAS,iBAAiB;QACtB,MAAM,YAAY,GAAG,aAAa,CAAC,WAAW,CAAC;QAE/C,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IAChD,CAAC;AAGD,CAAC,CAAC,CAAC"}
|
||||
Reference in New Issue
Block a user