Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Bimmr committed May 2, 2022
2 parents 2bf7030 + f8ed884 commit 990f492
Show file tree
Hide file tree
Showing 3 changed files with 235 additions and 238 deletions.
7 changes: 7 additions & 0 deletions css/styles.css
Expand Up @@ -2,6 +2,13 @@ html,
body {
height: 100%
}
.preview-body{
opacity: 0;
transition: opacity 0.35s;
}
.preview-body.loaded{
opacity: 1;
}


/* TinyMCE Styles */
Expand Down
2 changes: 2 additions & 0 deletions js/scripts.js
Expand Up @@ -430,6 +430,7 @@ let app = new Vue({
},
},
mounted() {
document.querySelector(".preview-body").classList.add("loaded");
this.stylesBackup = JSON.parse(JSON.stringify(this.styles));

var style = document.createElement("style");
Expand Down Expand Up @@ -819,6 +820,7 @@ let app = new Vue({
loadJSONFile((d) => this.loadOptions(d));
},
loadTemplate(){
sendInfo("Loading Template...");
fetch("templates/Newsletter - Template 1.json")
.then(res => res.json())
.then(data => {
Expand Down

0 comments on commit 990f492

Please sign in to comment.