From 10322253f37b86e35e73885be7ca2ec4513f7217 Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Sun, 26 Nov 2023 22:13:14 -0500 Subject: [PATCH] update code style --- frontend/src/App.tsx | 58 ++++++++++++++++++++++++++------------------ 1 file changed, 35 insertions(+), 23 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index e449b7c..0a3bf3d 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -97,36 +97,40 @@ function App() { setAppState(AppState.CODE_READY); }; - function doOpenInCodepenio(){ - const code = generatedCode + function doOpenInCodepenio() { + const code = generatedCode; - var form = document.createElement('form'); - form.setAttribute('method', 'POST'); - form.setAttribute('action', 'https://codepen.io/pen/define'); - form.setAttribute('target', '_blank'); // open in new window + const form = document.createElement("form"); + form.setAttribute("method", "POST"); + form.setAttribute("action", "https://codepen.io/pen/define"); + form.setAttribute("target", "_blank"); // open in new window - const data = { + const data = { html: code, editors: "100", // 1:Open html, 0:close CSS, 0:Close Js layout: "left", - css_external: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" - + (generatedCode.includes('