-
-
Notifications
You must be signed in to change notification settings - Fork 578
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes #18
- Loading branch information
Showing
6 changed files
with
39 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
<script type="text/javascript" src="public/js/google-analytics.js"></script> | ||
<link rel="canonical" href="http://azu.github.io/promises-book/"> | ||
<link href="public/img/favicon.ico" rel="shortcut icon" type="image/x-icon"> | ||
<link rel="icon" sizes="16x16 32x32" href="public/img/favicon.ico"> | ||
<link rel="stylesheet" type="text/css" href="public/css/overload.css"/> | ||
<script type="text/javascript" src="public/js/sync-toc.js"></script> | ||
<script type="text/javascript" src="public/js/google-analytics.js"></script> | ||
<script type="text/javascript" src="public/js/bug-report.js"></script> | ||
<link rel="stylesheet" type="text/css" href="node_modules/codemirror-console-ui/components/mirror-console-compoenent.css"/> | ||
<link rel="stylesheet" type="text/css" | ||
href="node_modules/codemirror-console-ui/components/mirror-console-compoenent.css"/> | ||
<link rel="stylesheet" type="text/css" href="node_modules/codemirror/lib/codemirror.css"> | ||
<script type="text/javascript" src="public/js/app.js"></script> | ||
<script type="text/javascript" src="public/js/app.js" async defer></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* Created by azu on 2014/06/11. | ||
* LICENSE : MIT | ||
*/ | ||
"use strict"; | ||
module.exports.initilize = function () { | ||
var consoleUI = require("codemirror-console-ui"); | ||
var codeBlocks = document.querySelectorAll("div.listingblock"); | ||
for (var i = 0; i < codeBlocks.length; i++) { | ||
var codeBlock = codeBlocks[i]; | ||
var code = codeBlock.getElementsByTagName("code")[0]; | ||
if (code) { | ||
consoleUI(codeBlock, code.textContent); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters