1
0
mirror of synced 2024-11-22 13:06:08 +03:00

Prettify <pre> on homepage.

This commit is contained in:
Florian Kissling 2015-04-25 04:34:15 +02:00
parent 8a1a35aa15
commit 25ba1ef1f3
2 changed files with 10 additions and 3 deletions

View File

@ -19,4 +19,11 @@
{% include ga.html %}
</body>
<script>
(function () {
'use strict';
prettyPrint();
})();
</script>
</html>

View File

@ -64,7 +64,7 @@ slug: home
Include the following lines of code in the <code>&lt;head&gt;</code>
section of your HTML.
<pre class="code">
<pre class="code prettyprint">
&lt;link href="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0-rc.2/css/select2.min.css" rel="stylesheet" /&gt;
&lt;script src="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0-rc.2/js/select2.min.js"&gt;&lt;/script&gt;
</pre>
@ -79,7 +79,7 @@ slug: home
Initialize Select2 on the <code>&lt;select&gt;</code> element that you
want to make awesome.
<pre class="code">
<pre class="code prettyprint">
&lt;script type="text/javascript"&gt;
$('select').select2();
&lt;/script&gt;
@ -111,7 +111,7 @@ slug: home
Include the following lines of code in the <code>&lt;head&gt;</code>
section of your HTML.
<pre class="code">
<pre class="code prettyprint">
&lt;link href="path/to/select2.min.css" rel="stylesheet" /&gt;
&lt;script src="path/to/select2.min.js"&gt;&lt;/script&gt;
</pre>