Deploying to gh-pages from @ harttle/liquidjs@aebeae9e1b 🚀

This commit is contained in:
harttle
2021-10-27 16:01:21 +00:00
parent 4faf9ab57c
commit 159ac8f558
527 changed files with 4577 additions and 3438 deletions
+7
View File
@@ -59,6 +59,7 @@
// playground
/* global liquidjs, ace */
if (!location.pathname.match(/playground.html$/)) return;
updateVersion(liquidjs.version);
const engine = new liquidjs.Liquid();
const editor = createEditor('editorEl', 'liquid');
const dataEditor = createEditor('dataEl', 'json');
@@ -121,6 +122,12 @@
function utoa(str) {
return btoa(unescape(encodeURIComponent(str)));
}
function updateVersion(version) {
document.querySelector('.version').innerHTML = `
liquidjs@<a target="_blank" href="https://www.npmjs.com/package/liquidjs/v/${version}">${version}</a>
`
}
}());
if ('serviceWorker' in navigator) {