mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Add library version to demo page header.
This commit is contained in:
parent
32db81b740
commit
47d82d6fd4
2 changed files with 5 additions and 1 deletions
|
|
@ -11,7 +11,7 @@
|
||||||
<body>
|
<body>
|
||||||
<div class="flex-rows">
|
<div class="flex-rows">
|
||||||
<div class="flex-columns inset">
|
<div class="flex-columns inset">
|
||||||
<header>markdownlint demo</header>
|
<header>markdownlint demo <span id="version" class="detail"></span></header>
|
||||||
<div class="flex-fill"></div>
|
<div class="flex-fill"></div>
|
||||||
<form>
|
<form>
|
||||||
<input id="openFile" type="file"/>
|
<input id="openFile" type="file"/>
|
||||||
|
|
|
||||||
|
|
@ -164,6 +164,10 @@
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Show library version
|
||||||
|
document.getElementById("version").textContent =
|
||||||
|
"(v" + markdownlint.getVersion() + ")";
|
||||||
|
|
||||||
// Add event listeners
|
// Add event listeners
|
||||||
document.body.addEventListener("dragover", onDragOver);
|
document.body.addEventListener("dragover", onDragOver);
|
||||||
document.body.addEventListener("drop", onDrop);
|
document.body.addEventListener("drop", onDrop);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue