Skip to content
This repository has been archived by the owner on Jan 9, 2022. It is now read-only.

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Clazex committed Mar 13, 2020
1 parent c27ae5b commit e1a5108
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var app = new Vue({
el: '#app',
el: "#app",
data: {
urlInput: "https://cdn.jsdelivr.net/gh/Sciencmine/mdpreview@latest/example.md",
urlInput: "",
source: "",
compiled: "",
statusCode: 200,
Expand Down Expand Up @@ -175,6 +175,7 @@ var app = new Vue({
},
init: function () {
app.loadI18n();
app.urlInput = "https://cdn.jsdelivr.net/gh/Sciencmine/mdpreview@latest/example.md";
app.loadQuery();
app.loadI18n();
}
Expand Down
2 changes: 1 addition & 1 deletion app.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<div id="control" v-if="options.showControl">
<p>
{{ i18n.language }}
<select name="langs" @change="loadi18n()" v-model="langChoice">
<select name="langs" @change="loadI18n()" v-model="langChoice">
<option v-for="lang in langs">{{ lang.displayName }}</option>
</select>
</p>
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><link rel="icon" type="image/png" sizes="32x32" href="https://cdn.jsdelivr.net/combine/gh/Sciencmine/mdpreview@master/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="https://cdn.jsdelivr.net/combine/gh/Sciencmine/mdpreview@master/favicon-16x16.png"><link rel="apple-touch-icon" sizes="180x180" href="https://cdn.jsdelivr.net/combine/gh/Sciencmine/mdpreview@master/apple-touch-icon.png"><script type="text/javascript" src="https://cdn.jsdelivr.net/combine/npm/vue@2.6.11,npm/marked@0.8.0/marked.min.js,npm/superagent@5.2.2,npm/dompurify@2.0.8/dist/purify.min.js"></script><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/combine/gh/Sciencmine/mdpreview@master/style.min.css,gh/Sciencmine/mdpreview@master/v-cloak.min.css"></head><body onload="app.init()"><div id="app" v-cloak><div id="control" v-if="options.showControl"><p>{{i18n.language}}<select name="langs" @change="loadi18n()" v-model="langChoice"><option v-for="lang in langs">{{lang.displayName}}</option></select></p><p>{{ i18n.mdUrl }}<input type="string" v-model="urlInput" /> <button @click="loadMd()"> {{i18n.load}} </button></p><p><input type="checkbox" v-model="options.showSource" /> {{i18n.source}} <input type="checkbox" v-model="options.shouldSanitize" @click="compile()" /> {{i18n.sanitize}} </p><hr /></div><div id="display" v-if="statusCode===200"><div v-if="options.showSource&&source.length>0"><div v-html='app.source.replace(/\n/g,"<br>")' id="source"></div><hr /></div><div v-if="compiled.length>0"><div v-html="compiled"></div><hr v-if="options.showCredit" /></div></div><div id="credit" v-if="options.showCredit">{{ i18n.poweredBy }}<a href="https://vuejs.org">Vue</a> <a href="https://marked.js.org">Marked</a> <a href="https://cure53.de/purify">DOMPurify</a> <a href="https://visionmedia.github.io/superagent/">Superagent</a> <a href="https://typora.io">Typora</a></div></div><script type="text/javascript" src="https://cdn.jsdelivr.net/gh/Sciencmine/mdpreview@master/app.min.js"></script></body></html>
<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><link rel="icon" type="image/png" sizes="32x32" href="https://cdn.jsdelivr.net/combine/gh/Sciencmine/mdpreview@master/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="https://cdn.jsdelivr.net/combine/gh/Sciencmine/mdpreview@master/favicon-16x16.png"><link rel="apple-touch-icon" sizes="180x180" href="https://cdn.jsdelivr.net/combine/gh/Sciencmine/mdpreview@master/apple-touch-icon.png"><script type="text/javascript" src="https://cdn.jsdelivr.net/combine/npm/vue@2.6.11,npm/marked@0.8.0/marked.min.js,npm/superagent@5.2.2,npm/dompurify@2.0.8/dist/purify.min.js"></script><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/combine/gh/Sciencmine/mdpreview@master/style.min.css,gh/Sciencmine/mdpreview@master/v-cloak.min.css"></head><body onload="app.init()"><div id="app" v-cloak><div id="control" v-if="options.showControl"><p>{{i18n.language}}<select name="langs" @change="loadI18n()" v-model="langChoice"><option v-for="lang in langs">{{lang.displayName}}</option></select></p><p>{{ i18n.mdUrl }}<input type="string" v-model="urlInput" /> <button @click="loadMd()"> {{i18n.load}} </button></p><p><input type="checkbox" v-model="options.showSource" /> {{i18n.source}} <input type="checkbox" v-model="options.shouldSanitize" @click="compile()" /> {{i18n.sanitize}} </p><hr /></div><div id="display" v-if="statusCode===200"><div v-if="options.showSource&&source.length>0"><div v-html='app.source.replace(/\n/g,"<br>")' id="source"></div><hr /></div><div v-if="compiled.length>0"><div v-html="compiled"></div><hr v-if="options.showCredit" /></div></div><div id="credit" v-if="options.showCredit">{{ i18n.poweredBy }}<a href="https://vuejs.org">Vue</a> <a href="https://marked.js.org">Marked</a> <a href="https://cure53.de/purify">DOMPurify</a> <a href="https://visionmedia.github.io/superagent/">Superagent</a> <a href="https://typora.io">Typora</a></div></div><script type="text/javascript" src="https://cdn.jsdelivr.net/gh/Sciencmine/mdpreview@master/app.min.js"></script></body></html>

0 comments on commit e1a5108

Please sign in to comment.