Skip to content

Commit

Permalink
Rewrite JS code, add parceljs with babel
Browse files Browse the repository at this point in the history
  • Loading branch information
ymatuhin committed Dec 22, 2017
1 parent 937928e commit 729ac25
Show file tree
Hide file tree
Showing 17 changed files with 7,734 additions and 21,666 deletions.
4 changes: 4 additions & 0 deletions .babelrc
@@ -0,0 +1,4 @@
{
"presets": ["env"],
"plugins": ["transform-runtime"]
}
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -3,3 +3,5 @@ _site
.jekyll-metadata
/.DS_Store
.DS_Store
node_modules
.cache
15 changes: 11 additions & 4 deletions _includes/code-box.html
@@ -1,7 +1,14 @@
<div class="textarea-box">
<textarea autofocus
class="textarea textarea-left js-input"
placeholder="/* Put your CSS code in the left column, instead of example, to add or remove unnecessary prefixes. */"></textarea>
<textarea autofocus
class="textarea textarea-left js-input">{% if page.lang == 'ru' %}/* Вставьте ваш CSS сюда вместо этого примера */{% endif %}{% if page.lang == 'en' %}/* Paste your CSS here instead of this example */{% endif %}

<pre class="textarea textarea-right" contenteditable=""><code class="language-css js-output">/* Here is your CSS with the appropriate prefixes */</code></pre>
.example {
display: flex;
transition: all .5s;
user-select: none;
background: linear-gradient(to bottom, white, black);
}</textarea>

<pre class="textarea textarea-right"
contenteditable=""><code class="language-css js-output"><strong>Loading...</strong></code></pre>
</div>
10 changes: 1 addition & 9 deletions _includes/scripts.html
Expand Up @@ -8,15 +8,7 @@
});
</script>

<script src="/assets/redirect.js?v={{ site.time | date: '%s%N' }}"></script>
<script src="/assets/log2.js"></script>
<script src="https://rawgit.com/ai/autoprefixer-rails/master/vendor/autoprefixer.js"
crossorigin="anonymous"></script>
<script>window.autoprefixer || document.write('<script src="https://wzrd.in/standalone/autoprefixer@latest" crossorigin="anonymous">\x3C/script>');</script>
<script>window.autoprefixer || document.write('<script src="/assets/autoprefixer.js" crossorigin="anonymous">\x3C/script>');</script>
<script src="/assets/code.js?v={{ site.time | date: '%s%N' }}"></script>
<script async
src="/assets/highlight.js"></script>
<script src="/assets/main.js?v={{ site.time | date: '%s%N' }}"></script>

<!-- Yandex.Metrika counter -->
<script src="//mc.yandex.ru/metrika/watch.js"
Expand Down

0 comments on commit 729ac25

Please sign in to comment.