Skip to content

Commit

Permalink
update index
Browse files Browse the repository at this point in the history
  • Loading branch information
ylebre committed Oct 17, 2024
1 parent 021ba7a commit 7d7b70c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<!-- Component CSS -->
<style>
/* extra */
@import url('https://fonts.googleapis.com/css?family=Alegreya+Sans:400,400i,700,700i');

html, body {
margin: 0;
padding: 0;
Expand Down Expand Up @@ -32,8 +34,6 @@
padding: 5px;
}
/* style */
@import url('https://fonts.googleapis.com/css?family=Alegreya+Sans:400,400i,700,700i');

:root {
--highlight-dark: #f16623;
--highlight-light: #ff8003;
Expand Down Expand Up @@ -3970,14 +3970,14 @@ <h1>App preview</h1>
"footHtml": editor.transformers.simplyPreviewFootHtml.render(data.footHtml ?? []),
"bodyHtml" : editor.transformers.simplyPreviewBodyHtml.render(data.bodyHtml ?? [])
};

Object.keys(replacements).forEach(function(replacement) {
matches = fullApp.match("(\\s+){{" + replacement + "}}");
if (matches) {
fullApp = fullApp.replace("{{" + replacement + "}}", replacements[replacement].replace(/\n/g, matches[1]));
}
});

// escape html
var dataDiv = document.createElement("div");
dataDiv.appendChild(document.createTextNode(fullApp));
Expand Down

0 comments on commit 7d7b70c

Please sign in to comment.