Skip to content

Commit 70648b6

Browse files
committed
deploy: cfb47a8
1 parent 288c2ae commit 70648b6

4 files changed

Lines changed: 22 additions & 2 deletions

File tree

css/template.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,3 +273,6 @@
273273
.phpdocumentor-tag-link {
274274
margin-right: var(--spacing-sm);
275275
}
276+
.phpdocumentor-uml-diagram svg {
277+
cursor: zoom-in;
278+
}

guide/dev/unit-test.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ <h1>Pruebas unitarias</h1>
158158

159159
<p>También es posible ejecutar una prueba específica indicando el test. Ejemplo:</p>
160160

161-
<pre><code class="language-shell">./vendor/bin/phpunit --filter test_dte_buscar_documento_emitido</code></pre>
161+
<pre><code class="language-shell">./vendor/bin/phpunit --filter testEmitirDteTemp --no-coverage</code></pre>
162162

163163
</section>
164164

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<title>LibreDTE API Client</title>
66

77
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8-
8+
<base href="./">
99
<link rel="icon" href="images/favicon.ico"/>
1010
<link rel="stylesheet" href="css/normalize.css">
1111
<link rel="stylesheet" href="css/base.css">

js/template.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,20 @@
1515
observer.observe(el);
1616
})
1717
})();
18+
function openSvg(svg) {
19+
// convert to a valid XML source
20+
const as_text = new XMLSerializer().serializeToString(svg);
21+
// store in a Blob
22+
const blob = new Blob([as_text], { type: "image/svg+xml" });
23+
// create an URI pointing to that blob
24+
const url = URL.createObjectURL(blob);
25+
const win = open(url);
26+
// so the Garbage Collector can collect the blob
27+
win.onload = (evt) => URL.revokeObjectURL(url);
28+
};
29+
30+
31+
var svgs = document.querySelectorAll(".phpdocumentor-uml-diagram svg");
32+
for( var i=0,il = svgs.length; i< il; i ++ ) {
33+
svgs[i].onclick = (evt) => openSvg(evt.target);
34+
}

0 commit comments

Comments
 (0)