Compare commits

...

3 Commits

3 changed files with 4 additions and 14 deletions

View File

@ -10,16 +10,7 @@
type="text/css" type="text/css"
href="https://cdn.jsdelivr.net/combine/ href="https://cdn.jsdelivr.net/combine/
npm/codemirror@5.65.16/lib/codemirror.min.css, npm/codemirror@5.65.16/lib/codemirror.min.css,
npm/codemirror@5.65.16/theme/nord.min.css" npm/codemirror@5.65.16/theme/nord.min.css" />
/>
<script
async
src="https://stats.scambier.xyz/script.js"
data-website-id="c78680ff-ef20-43a4-b204-32721cf679f5"
data-auto-track="false"
data-do-not-track="true"
data-domains="paste.scambier.xyz"
></script>
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<meta property="og:title" content="Paste - No-database paste service" /> <meta property="og:title" content="Paste - No-database paste service" />
<meta property="og:url" content="https://paste.scambier.xyz" /> <meta property="og:url" content="https://paste.scambier.xyz" />
@ -27,8 +18,7 @@ npm/codemirror@5.65.16/theme/nord.min.css"
<meta <meta
name="description" name="description"
property="og:description" property="og:description"
content="Paste is a client-side paste service with no database, and no back-end code. The data is stored entirely in the shared link" content="Paste is a client-side paste service with no database, and no back-end code. The data is stored entirely in the shared link" />
/>
%sveltekit.head% %sveltekit.head%
</head> </head>
<body data-sveltekit-preload-data="hover"> <body data-sveltekit-preload-data="hover">

View File

@ -8,7 +8,7 @@
<a href="/new" title="Create a new note">Paste</a> <a href="/new" title="Create a new note">Paste</a>
</h1> </h1>
<span class="ml-8 text-xs"> <span class="ml-8 text-xs">
<a href="/about">About</a> <a href="/about" target="_blank">About</a>
<a class="ml-4" href="https://git.scambier.xyz/scambier/paste" target="_blank">Source</a> <a class="ml-4" href="https://git.scambier.xyz/scambier/paste" target="_blank">Source</a>
</span> </span>
</div> </div>

View File

@ -33,7 +33,7 @@
}, 1000) }, 1000)
async function initCodeEditor() { async function initCodeEditor() {
$selectedLang = new URLSearchParams(window.location.search).get('l') ?? ' plt' $selectedLang = new URLSearchParams(window.location.search).get('l') ?? 'plt'
CodeMirror.modeURL = 'https://cdn.jsdelivr.net/npm/codemirror@5.65.16/mode/%N/%N.js' CodeMirror.modeURL = 'https://cdn.jsdelivr.net/npm/codemirror@5.65.16/mode/%N/%N.js'
editor = new CodeMirror(byId('editor'), { editor = new CodeMirror(byId('editor'), {