Sha256: 4c291377f63b8692f63ffbcf1f17d9b928f8c31b44b3f6b85db8e7f7015fc9a3
Contents?: true
Size: 1.77 KB
Versions: 8
Compression:
Stored size: 1.77 KB
Contents
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width" /> <title>Edge Framework</title> <!-- VENDOR --> <link rel="stylesheet" href="css/edge.css"> <!-- APP Specific --> <link rel="stylesheet" href="css/for-test.css"> <style> .bar1140 { width:1140px; margin:0 auto; background: #333; color: white; position:fixed; top:0; right:0; left:0; z-index: 2; padding: 10px 0; } </style> <style> .hide-for-small { color: red; } .hide-for-large { color: blue; } </style> </head> <body> <div id="main-wrapper"> <header class="top-bar"></header> <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, "<").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>
Version data entries
8 entries across 7 versions & 1 rubygems