Skip to content

Commit 6670ced

Browse files
committed
formatted
1 parent 8472adb commit 6670ced

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

sample/index.html

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,24 @@
4949
color: white;
5050
}
5151

52+
pre {
53+
display: block;
54+
color: #393318;
55+
margin-bottom: 2px;
56+
padding: 5px;
57+
width: auto;
58+
font-size: 13px;
59+
background-color: #c9dcef;
60+
}
61+
62+
code {
63+
font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, sans-serif;
64+
background-color: #c9dcef;
65+
font-size: 13px;
66+
color: #393318;
67+
line-height: 1.3;
68+
}
69+
5270
.info {
5371
position: absolute;
5472
max-width: 600px;
@@ -299,7 +317,7 @@ <h1>Current Configuration</h1>
299317
}
300318

301319
var temporalData = function () {
302-
Breinify.temporalData({}, null, function(data) {
320+
Breinify.temporalData({}, null, function (data) {
303321

304322
var $template = $('#temporal-data-template');
305323

@@ -312,7 +330,9 @@ <h1>Current Configuration</h1>
312330
.show();
313331

314332
$row.children("td:nth-child(1)").text(property);
315-
$row.children("td:nth-child(2)").text(JSON.stringify(data[property]));
333+
$row.children("td:nth-child(2)").html("<pre><code>" +
334+
JSON.stringify(data[property], null, 2)
335+
+ "</code></pre>");
316336
}
317337
}
318338
});

0 commit comments

Comments
 (0)