Prettify <pre> on homepage.
This commit is contained in:
parent
8a1a35aa15
commit
25ba1ef1f3
@ -19,4 +19,11 @@
|
|||||||
|
|
||||||
{% include ga.html %}
|
{% include ga.html %}
|
||||||
</body>
|
</body>
|
||||||
|
<script>
|
||||||
|
(function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
prettyPrint();
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
</html>
|
</html>
|
||||||
|
@ -64,7 +64,7 @@ slug: home
|
|||||||
Include the following lines of code in the <code><head></code>
|
Include the following lines of code in the <code><head></code>
|
||||||
section of your HTML.
|
section of your HTML.
|
||||||
|
|
||||||
<pre class="code">
|
<pre class="code prettyprint">
|
||||||
<link href="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0-rc.2/css/select2.min.css" rel="stylesheet" />
|
<link href="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0-rc.2/css/select2.min.css" rel="stylesheet" />
|
||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0-rc.2/js/select2.min.js"></script>
|
<script src="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0-rc.2/js/select2.min.js"></script>
|
||||||
</pre>
|
</pre>
|
||||||
@ -79,7 +79,7 @@ slug: home
|
|||||||
Initialize Select2 on the <code><select></code> element that you
|
Initialize Select2 on the <code><select></code> element that you
|
||||||
want to make awesome.
|
want to make awesome.
|
||||||
|
|
||||||
<pre class="code">
|
<pre class="code prettyprint">
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$('select').select2();
|
$('select').select2();
|
||||||
</script>
|
</script>
|
||||||
@ -111,7 +111,7 @@ slug: home
|
|||||||
Include the following lines of code in the <code><head></code>
|
Include the following lines of code in the <code><head></code>
|
||||||
section of your HTML.
|
section of your HTML.
|
||||||
|
|
||||||
<pre class="code">
|
<pre class="code prettyprint">
|
||||||
<link href="path/to/select2.min.css" rel="stylesheet" />
|
<link href="path/to/select2.min.css" rel="stylesheet" />
|
||||||
<script src="path/to/select2.min.js"></script>
|
<script src="path/to/select2.min.js"></script>
|
||||||
</pre>
|
</pre>
|
||||||
|
Loading…
Reference in New Issue
Block a user