123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515 |
- <!DOCTYPE HTML>
- <html>
- <head>
- <title>
- Diff
- </title>
- <style>
- #left {
- overflow: auto;
- left: 0;
- width: 50%;
- position: absolute;
- height: 100%;
- }
- #right {
- overflow: auto;
- border-left: 1px solid #000;
- width: 50%;
- position: absolute;
- right: 0;
- height: 100%;
- }
- html {
- height: 100%;
- }
- body {
- padding: 0;
- margin: 0;
- min-height: 100%;
- }
- .stringContainer {
- overflow: hidden;
- width: fit-content;
- border-bottom: 1px solid #bbb;
- min-width: 100%;
- }
- .stringNumber {
- background-color: #eee;
- border-right: 1px solid #bbb;
- width: 35px;
- float: left;
- height: 20px;
- padding-right: 5px;
- text-align: right;
- }
- .stringContent {
- overflow: hidden;
- white-space: nowrap;
- height: 20px;
- }
- .stringNumber.added {
- background-color: #76e876;
- }
- .stringNumber.changed {
- background-color: #76a0e8;
- }
- .stringNumber.deleted {
- background-color: #808080;
- }
- .stringContent.added {
- background-color: #b5ffb6;
- }
- .stringContent.changed {
- background-color: #b5d0ff;
- }
- .stringContent.deleted {
- background-color: #b1b1b1;
- }
- #header {
- overflow: hidden;
- white-space: nowrap;
- background: linear-gradient(0deg, #ccc, #eee, #ccc);
- font-size: 22px;
- border-bottom: 1px solid #000;
- height: 25px;
- }
- #header_left {
- left: 0;
- width: 50%;
- position: absolute;
- text-align: center;
- }
- #header_right {
- border-left: 1px solid #000;
- width: 50%;
- position: absolute;
- right: 0;
- text-align: center;
- }
- </style>
- </head>
- <body>
- <div id="header">
- <div id="header_left">
- a.txt
- </div>
- <div id="header_right">
- b.txt
- </div>
- </div>
- <div id="left">
- <div class="stringContainer">
- <div class="stringNumber">
- 1
- </div>
- <div class="stringContent">
- This part of the
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber">
- 2
- </div>
- <div class="stringContent">
- document has stayed the
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber">
- 3
- </div>
- <div class="stringContent">
- same from version to
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber">
- 4
- </div>
- <div class="stringContent">
- version. It shouldn't
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber">
- 5
- </div>
- <div class="stringContent">
- be shown if it doesn't
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber">
- 6
- </div>
- <div class="stringContent">
- change. Otherwise, that
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber">
- 7
- </div>
- <div class="stringContent">
- would not be helping to
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber changed">
- 8
- </div>
- <div class="stringContent changed">
- compress the size of the
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber changed">
- 9
- </div>
- <div class="stringContent changed">
- changes.
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber changed">
- 10
- </div>
- <div class="stringContent changed">
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber changed">
- 11
- </div>
- <div class="stringContent changed">
- This paragraph contains
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber changed">
- 12
- </div>
- <div class="stringContent changed">
- text that is outdated.
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber changed">
- 13
- </div>
- <div class="stringContent changed">
- It will be deleted in the
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber changed">
- 14
- </div>
- <div class="stringContent changed">
- near future.
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber">
- 15
- </div>
- <div class="stringContent">
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber">
- 16
- </div>
- <div class="stringContent">
- It is important to spell
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber changed">
- 17
- </div>
- <div class="stringContent changed">
- check this dokument.
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber">
- 18
- </div>
- <div class="stringContent">
- On the other hand, a
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber deleted">
- 19
- </div>
- <div class="stringContent deleted">
- misspelled word isn't
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber deleted">
- 20
- </div>
- <div class="stringContent deleted">
- the end of the world.
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber">
- 21
- </div>
- <div class="stringContent">
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber">
- 22
- </div>
- <div class="stringContent">
- Nothing in the rest of
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber">
- 23
- </div>
- <div class="stringContent">
- this paragraph needs to
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber">
- 24
- </div>
- <div class="stringContent">
- be changed. Things can
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber">
- 25
- </div>
- <div class="stringContent">
- be added after it.
- </div>
- </div>
- </div>
- <div id="right">
- <div class="stringContainer">
- <div class="stringNumber added">
- 1
- </div>
- <div class="stringContent added">
- This is an important
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber added">
- 2
- </div>
- <div class="stringContent added">
- notice! It should
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber added">
- 3
- </div>
- <div class="stringContent added">
- therefore be located at
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber added">
- 4
- </div>
- <div class="stringContent added">
- the beginning of this
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber added">
- 5
- </div>
- <div class="stringContent added">
- document!
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber added">
- 6
- </div>
- <div class="stringContent added">
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber">
- 7
- </div>
- <div class="stringContent">
- This part of the
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber">
- 8
- </div>
- <div class="stringContent">
- document has stayed the
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber">
- 9
- </div>
- <div class="stringContent">
- same from version to
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber">
- 10
- </div>
- <div class="stringContent">
- version. It shouldn't
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber">
- 11
- </div>
- <div class="stringContent">
- be shown if it doesn't
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber">
- 12
- </div>
- <div class="stringContent">
- change. Otherwise, that
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber">
- 13
- </div>
- <div class="stringContent">
- would not be helping to
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber changed">
- 14
- </div>
- <div class="stringContent changed">
- compress anything.
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber">
- 15
- </div>
- <div class="stringContent">
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber">
- 16
- </div>
- <div class="stringContent">
- It is important to spell
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber changed">
- 17
- </div>
- <div class="stringContent changed">
- check this document.
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber">
- 18
- </div>
- <div class="stringContent">
- On the other hand, a
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber">
- 19
- </div>
- <div class="stringContent">
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber">
- 20
- </div>
- <div class="stringContent">
- Nothing in the rest of
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber">
- 21
- </div>
- <div class="stringContent">
- this paragraph needs to
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber">
- 22
- </div>
- <div class="stringContent">
- be changed. Things can
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber">
- 23
- </div>
- <div class="stringContent">
- be added after it.
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber added">
- 24
- </div>
- <div class="stringContent added">
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber added">
- 25
- </div>
- <div class="stringContent added">
- This paragraph contains
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber added">
- 26
- </div>
- <div class="stringContent added">
- important new additions
- </div>
- </div>
- <div class="stringContainer">
- <div class="stringNumber added">
- 27
- </div>
- <div class="stringContent added">
- to this document.
- </div>
- </div>
- </div>
- </body>
- </html>
|