Skip to content

Commit

Permalink
test diff viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
hubnern committed Jun 10, 2024
1 parent 57ce599 commit 93432f5
Show file tree
Hide file tree
Showing 32 changed files with 219,644 additions and 0 deletions.
65 changes: 65 additions & 0 deletions static/output/diff/viewer0.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<html>

<head>
<title>Diff 0</title>
<style>
#diffs {
display: flex;
height: 100%;
}

#diffs div {
margin: 0 0.5em;
height: 100%;
width: 50%
}

iframe {
height: calc(100% - 4em);
width: 100%;
}

body {
margin: 0;
height: 100%;
}

p {
text-align: center;
font-family: sans-serif;
}
</style>
</head>

<body>
<div id="diffs">
<div>
<p id="p1"></p>
<iframe id="diff1"></iframe>
</div>
<div>
<p id="p2"></p>
<iframe id="diff2"></iframe>
</div>
</div>
</body>
<script>
function rnd() {
return Math.random() < 0.5
}
let alpha = "../seed/diff0.html"
let beta = "../lcs/diff0.html"
if (rnd()) {
document.getElementById("diff1").src = alpha
document.getElementById("p1").innerText = "alpha"
document.getElementById("diff2").src = beta
document.getElementById("p2").innerText = "beta"
} else {
document.getElementById("diff1").src = beta
document.getElementById("p1").innerText = "beta"
document.getElementById("diff2").src = alpha
document.getElementById("p2").innerText = "alpha"
}
</script>

</html>
65 changes: 65 additions & 0 deletions static/output/diff/viewer1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<html>

<head>
<title>Diff 1</title>
<style>
#diffs {
display: flex;
height: 100%;
}

#diffs div {
margin: 0 0.5em;
height: 100%;
width: 50%
}

iframe {
height: calc(100% - 4em);
width: 100%;
}

body {
margin: 0;
height: 100%;
}

p {
text-align: center;
font-family: sans-serif;
}
</style>
</head>

<body>
<div id="diffs">
<div>
<p id="p1"></p>
<iframe id="diff1"></iframe>
</div>
<div>
<p id="p2"></p>
<iframe id="diff2"></iframe>
</div>
</div>
</body>
<script>
function rnd() {
return Math.random() < 0.5
}
let alpha = "../seed/diff1.html"
let beta = "../lcs/diff1.html"
if (rnd()) {
document.getElementById("diff1").src = alpha
document.getElementById("p1").innerText = "alpha"
document.getElementById("diff2").src = beta
document.getElementById("p2").innerText = "beta"
} else {
document.getElementById("diff1").src = beta
document.getElementById("p1").innerText = "beta"
document.getElementById("diff2").src = alpha
document.getElementById("p2").innerText = "alpha"
}
</script>

</html>
65 changes: 65 additions & 0 deletions static/output/diff/viewer2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<html>

<head>
<title>Diff 2</title>
<style>
#diffs {
display: flex;
height: 100%;
}

#diffs div {
margin: 0 0.5em;
height: 100%;
width: 50%
}

iframe {
height: calc(100% - 4em);
width: 100%;
}

body {
margin: 0;
height: 100%;
}

p {
text-align: center;
font-family: sans-serif;
}
</style>
</head>

<body>
<div id="diffs">
<div>
<p id="p1"></p>
<iframe id="diff1"></iframe>
</div>
<div>
<p id="p2"></p>
<iframe id="diff2"></iframe>
</div>
</div>
</body>
<script>
function rnd() {
return Math.random() < 0.5
}
let alpha = "../seed/diff2.html"
let beta = "../lcs/diff2.html"
if (rnd()) {
document.getElementById("diff1").src = alpha
document.getElementById("p1").innerText = "alpha"
document.getElementById("diff2").src = beta
document.getElementById("p2").innerText = "beta"
} else {
document.getElementById("diff1").src = beta
document.getElementById("p1").innerText = "beta"
document.getElementById("diff2").src = alpha
document.getElementById("p2").innerText = "alpha"
}
</script>

</html>
65 changes: 65 additions & 0 deletions static/output/diff/viewer3.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<html>

<head>
<title>Diff 3</title>
<style>
#diffs {
display: flex;
height: 100%;
}

#diffs div {
margin: 0 0.5em;
height: 100%;
width: 50%
}

iframe {
height: calc(100% - 4em);
width: 100%;
}

body {
margin: 0;
height: 100%;
}

p {
text-align: center;
font-family: sans-serif;
}
</style>
</head>

<body>
<div id="diffs">
<div>
<p id="p1"></p>
<iframe id="diff1"></iframe>
</div>
<div>
<p id="p2"></p>
<iframe id="diff2"></iframe>
</div>
</div>
</body>
<script>
function rnd() {
return Math.random() < 0.5
}
let alpha = "../seed/diff3.html"
let beta = "../lcs/diff3.html"
if (rnd()) {
document.getElementById("diff1").src = alpha
document.getElementById("p1").innerText = "alpha"
document.getElementById("diff2").src = beta
document.getElementById("p2").innerText = "beta"
} else {
document.getElementById("diff1").src = beta
document.getElementById("p1").innerText = "beta"
document.getElementById("diff2").src = alpha
document.getElementById("p2").innerText = "alpha"
}
</script>

</html>
65 changes: 65 additions & 0 deletions static/output/diff/viewer4.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<html>

<head>
<title>Diff 4</title>
<style>
#diffs {
display: flex;
height: 100%;
}

#diffs div {
margin: 0 0.5em;
height: 100%;
width: 50%
}

iframe {
height: calc(100% - 4em);
width: 100%;
}

body {
margin: 0;
height: 100%;
}

p {
text-align: center;
font-family: sans-serif;
}
</style>
</head>

<body>
<div id="diffs">
<div>
<p id="p1"></p>
<iframe id="diff1"></iframe>
</div>
<div>
<p id="p2"></p>
<iframe id="diff2"></iframe>
</div>
</div>
</body>
<script>
function rnd() {
return Math.random() < 0.5
}
let alpha = "../seed/diff4.html"
let beta = "../lcs/diff4.html"
if (rnd()) {
document.getElementById("diff1").src = alpha
document.getElementById("p1").innerText = "alpha"
document.getElementById("diff2").src = beta
document.getElementById("p2").innerText = "beta"
} else {
document.getElementById("diff1").src = beta
document.getElementById("p1").innerText = "beta"
document.getElementById("diff2").src = alpha
document.getElementById("p2").innerText = "alpha"
}
</script>

</html>
65 changes: 65 additions & 0 deletions static/output/diff/viewer5.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<html>

<head>
<title>Diff 5</title>
<style>
#diffs {
display: flex;
height: 100%;
}

#diffs div {
margin: 0 0.5em;
height: 100%;
width: 50%
}

iframe {
height: calc(100% - 4em);
width: 100%;
}

body {
margin: 0;
height: 100%;
}

p {
text-align: center;
font-family: sans-serif;
}
</style>
</head>

<body>
<div id="diffs">
<div>
<p id="p1"></p>
<iframe id="diff1"></iframe>
</div>
<div>
<p id="p2"></p>
<iframe id="diff2"></iframe>
</div>
</div>
</body>
<script>
function rnd() {
return Math.random() < 0.5
}
let alpha = "../seed/diff5.html"
let beta = "../lcs/diff5.html"
if (rnd()) {
document.getElementById("diff1").src = alpha
document.getElementById("p1").innerText = "alpha"
document.getElementById("diff2").src = beta
document.getElementById("p2").innerText = "beta"
} else {
document.getElementById("diff1").src = beta
document.getElementById("p1").innerText = "beta"
document.getElementById("diff2").src = alpha
document.getElementById("p2").innerText = "alpha"
}
</script>

</html>
Loading

0 comments on commit 93432f5

Please sign in to comment.