1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 16:33:03 +03:00

Remove the before/after elements.

This commit is contained in:
Rob Rix 2015-10-21 15:54:46 -04:00
parent 2232be5e9f
commit d373c6829c

View File

@ -7,18 +7,6 @@
margin: 0;
padding: 0;
}
#before {
width: 50%;
background: #ffecec;
float: left;
white-space: pre-wrap;
}
#after {
width: 50%;
background: #eaffea;
float: right;
white-space: pre-wrap;
}
.insert {
background-color: #eaffea;
outline: 1px solid #c1e9c1;
@ -114,14 +102,9 @@
</script>
</head>
<body>
<div id="before"></div>
<div id="after"></div>
<div id="diff"></div>
<script type="text/javascript">
loadJSON('diff.json', function (json) {
document.getElementById("before").textContent = json.a;
document.getElementById("after").textContent = json.b;
console.log(json.diff);
diff(json.diff, json.a, json.b);
});