assets/test2.html in edge_framework-0.6.0 vs assets/test2.html in edge_framework-0.6.1

- old
+ new

@@ -16,23 +16,10 @@ width:1140px; margin:0 auto; background: #333; color: white; position:fixed; top:0; right:0; left:0; z-index: 2; padding: 10px 0; } </style> - - <!--SYNTAX HIGHLIGHTER--> - <link rel="stylesheet" href="css/sh/shCoreDefault.css" /> - <script type="text/javascript" src="js/sh/shCore.js"></script> - <script type="text/javascript" src="js/sh/shBrushSass.js"></script> - <script type="text/javascript" src="js/sh/shBrushCss.js"></script> - <script type="text/javascript" src="js/sh/shBrushXml.js"></script> - <script type="text/javascript" src="js/sh/shBrushJScript.js"></script> - - <script type="text/javascript"> - SyntaxHighlighter.config.clipboardSwf = 'js/sh/clipboard.swf'; - SyntaxHighlighter.all(); - </script> <style> .hide-for-small { color: red; } .hide-for-large { @@ -47,16 +34,41 @@ <div class="row"> <div class="large-8 large-centered column"> <p> Lorem ipsum <span class="hide-for-small">show on large</span>, <span class="hide-for-large">show on small</span>. Labore, non eaque dolor fugiat ex provident quis! Reprehenderit reiciendis eum maiores </p> + + <pre><code> + <ul class="with-tab"> + <li>...</li> + </ul> + </code></pre> + </div> </div> - - - <div id="footer-push"></div> </div> <footer id="footer"> </footer> + +<script src="js-docs/jquery.min.js"></script> +<script> + (function () { + var htmlText = $("pre > code").html(); + // remove trailing and following line break + var filteredText = htmlText.replace(/</g, "&lt;").replace(/^\n/, "").replace(/\n\s+$/, ""); + + // split the lines and count the offset + var lines = filteredText.split("\n"); + var offset = lines[0].match(/^\s*/)[ 0 ].length; + + // remove excess whitespace from each line + lines = lines.map(function(line) { + return line.slice(offset); + }); + + //.replace(/(\n)\s+/g, "$1").replace(/^\n/, ""); + $("pre > code").html(lines.join("\n") ); + }() ); +</script> </body> </html> \ No newline at end of file