diff --git a/source/_posts/javascript.md b/source/_posts/javascript.md
index 392126d..758d3b2 100644
--- a/source/_posts/javascript.md
+++ b/source/_posts/javascript.md
@@ -11,6 +11,7 @@ intro: |
A JavaScript cheat sheet with the most important concepts, functions, methods, and more. A complete quick reference for beginners.
plugins:
- copyCode
+ - runCode
---
## Getting Started
diff --git a/source/_posts/jquery.md b/source/_posts/jquery.md
index f334b0c..0b6b957 100644
--- a/source/_posts/jquery.md
+++ b/source/_posts/jquery.md
@@ -14,19 +14,20 @@ intro: |
plugins:
- tooltip
- copyCode
+ - runCode
---
## Getting Started
### Including jQuery
-```javascript {.wrap}
+```html {.wrap}
```
#### Official CDN
-```javascript {.wrap}
+```html {.wrap}
```
diff --git a/source/_posts/markdown.md b/source/_posts/markdown.md
index 5be5ff3..4d5655d 100644
--- a/source/_posts/markdown.md
+++ b/source/_posts/markdown.md
@@ -12,6 +12,7 @@ categories:
intro: This is a quick reference cheat sheet to the Markdown syntax.
plugins:
- copyCode
+ - runCode
---
## Markdown Quick Reference
diff --git a/source/_posts/python.md b/source/_posts/python.md
index 53f3220..e0c670b 100644
--- a/source/_posts/python.md
+++ b/source/_posts/python.md
@@ -11,6 +11,7 @@ intro: |
The [Python](https://www.python.org/) cheat sheet is a one-page reference sheet for the Python 3 programming language.
plugins:
- copyCode
+ - runCode
---
## Getting Started
diff --git a/source/_posts/sass.md b/source/_posts/sass.md
index 312c160..2ac1181 100644
--- a/source/_posts/sass.md
+++ b/source/_posts/sass.md
@@ -11,6 +11,7 @@ intro: |
This is a quick reference cheat sheet that lists the most useful features of [SASS](https://sass-lang.com).
plugins:
- copyCode
+ - runCode
---
## Sass Basics
diff --git a/source/_posts/typescript.md b/source/_posts/typescript.md
index d864b41..340a5e2 100644
--- a/source/_posts/typescript.md
+++ b/source/_posts/typescript.md
@@ -11,6 +11,7 @@ intro: |
A TypeScript cheat sheet with the most important concepts, functions, methods, and more. A complete quick reference for beginners.
plugins:
- copyCode
+ - runCode
---
## Getting Started
@@ -293,11 +294,7 @@ class Greeter {
```ts
function enumerable(value: boolean) {
- return function (
- target: any,
- propertyKey: string,
- descriptor: PropertyDescriptor
- ) {
+ return function (target: any, propertyKey: string, descriptor: PropertyDescriptor) {
descriptor.enumerable = value;
};
}
diff --git a/themes/coo/layout/_partial/scripts.ejs b/themes/coo/layout/_partial/scripts.ejs
index 41c0302..e5d09a9 100644
--- a/themes/coo/layout/_partial/scripts.ejs
+++ b/themes/coo/layout/_partial/scripts.ejs
@@ -72,3 +72,120 @@
});
<% } %>
+
+
+<% if (is_post() && page.plugins != undefined && page.plugins.includes("runCode") ){ %>
+
+
+<% } %>