Debian Codegraph @

tests/output/app/simple.html

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta charset="utf-8" />
5 <title>simple.md - Grip</title>
6 <link rel="icon" href="/__/grip/static/favicon.ico" />
7 <link rel="stylesheet" href="/__/grip/static/octicons/octicons.css" />
8 <style>
9 /* Page tweaks */
10 .preview-page {
11 margin-top: 64px;
12 margin-bottom: 21px;
13 }
14 /* User-content tweaks */
15 .timeline-comment-wrapper > .timeline-comment:after,
16 .timeline-comment-wrapper > .timeline-comment:before {
17 content: none;
18 }
19 /* User-content overrides */
20 .discussion-timeline.wide {
21 width: 920px;
22 }
23 </style>
24 </head>
25 <body>
26 <div class="page">
27 <div id="preview-page" class="preview-page" data-autorefresh-url="/__/grip/refresh/">
28 <main id="js-repo-pjax-container">
29 <div class="clearfix new-discussion-timeline container-xl px-3 px-md-4 px-lg-5">
30 <div class="repository-content">
31 <div class="clearfix">
32 <div class="Layout Layout--flowRow-until-md Layout--sidebarPosition-end Layout--sidebarPosition-flowRow-end">
33 <div class="Layout-main">
34
35
36
37 <div id="readme" class="Box md Box--responsive">
38
39 <div class="Box-header d-flex border-bottom-0 flex-items-center flex-justify-between color-bg-default rounded-top-2">
40 <div class="d-flex flex-items-center">
41 <h2 class="Box-title">
42 simple.md
43 </h2>
44 </div>
45 </div>
46
47 <div class="Box-body px-5 pb-5">
48 <article id="grip-content" class="markdown-body entry-content container-lg">
49 <h1>
50 <a id="user-content-simple-test-" class="anchor" href="#simple-test-" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Simple Test ✓</h1>
51 <p>This is just a simple Unicode Markdown test.</p>
52
53 </article>
54 </div>
55 </div>
56
57
58
59 </div>
60 </div>
61 </div>
62 </div>
63 </div>
64 </main>
65 </div>
66 </div><script>
67 function showCanonicalImages() {
68 var images = document.getElementsByTagName('img');
69 if (!images) {
70 return;
71 }
72 for (var index = 0; index < images.length; index++) {
73 var image = images[index];
74 if (image.getAttribute('data-canonical-src') && image.src !== image.getAttribute('data-canonical-src')) {
75 image.src = image.getAttribute('data-canonical-src');
76 }
77 }
78 }
79
80 function scrollToHash() {
81 if (location.hash && !document.querySelector(':target')) {
82 var element = document.getElementById('user-content-' + location.hash.slice(1));
83 if (element) {
84 element.scrollIntoView();
85 }
86 }
87 }
88
89 function autorefreshContent(eventSourceUrl) {
90 var initialTitle = document.title;
91 var contentElement = document.getElementById('grip-content');
92 var source = new EventSource(eventSourceUrl);
93 var isRendering = false;
94
95 source.onmessage = function(ev) {
96 var msg = JSON.parse(ev.data);
97 if (msg.updating) {
98 isRendering = true;
99 document.title = '(Rendering) ' + document.title;
100 } else {
101 isRendering = false;
102 document.title = initialTitle;
103 contentElement.innerHTML = msg.content;
104 showCanonicalImages();
105 }
106 }
107
108 source.onerror = function(e) {
109 if (e.readyState === EventSource.CLOSED && isRendering) {
110 isRendering = false;
111 document.title = initialTitle;
112 }
113 }
114 }
115
116 window.onhashchange = function() {
117 scrollToHash();
118 }
119
120 window.onload = function() {
121 scrollToHash();
122 }
123
124 showCanonicalImages();
125
126 var autorefreshUrl = document.getElementById('preview-page').getAttribute('data-autorefresh-url');
127 if (autorefreshUrl) {
128 autorefreshContent(autorefreshUrl);
129 }
130 </script>
131 </body>
132 </html>