Mercurial > doc-thingy
comparison thingy.js @ 8:f3f56cc75bfd
Code column is now colored differently.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Mon, 05 Jan 2009 18:40:10 -0800 |
parents | 0d5b69cd01db |
children | 5418d21d7751 |
comparison
equal
deleted
inserted
replaced
7:0d5b69cd01db | 8:f3f56cc75bfd |
---|---|
61 creole.parse(docs.get(0), this.text); | 61 creole.parse(docs.get(0), this.text); |
62 $("#content").append(docs); | 62 $("#content").append(docs); |
63 var code = $('<div class="code">'); | 63 var code = $('<div class="code">'); |
64 code.text(this.code); | 64 code.text(this.code); |
65 $("#content").append(code); | 65 $("#content").append(code); |
66 | |
67 var docsSurplus = docs.height() - code.height(); | |
68 if (docsSurplus > 0) | |
69 code.css({paddingBottom: docsSurplus + "px"}); | |
70 | |
66 $("#content").append('<div class="divider">'); | 71 $("#content").append('<div class="divider">'); |
67 }); | 72 }); |
68 }; | 73 }; |
69 | 74 |
70 $(window).ready( | 75 $(window).ready( |