mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02: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>
|
||||
<div class="flex-rows">
|
||||
<div class="flex-columns inset">
|
||||
<header>markdownlint demo</header>
|
||||
<header>markdownlint demo <span id="version" class="detail"></span></header>
|
||||
<div class="flex-fill"></div>
|
||||
<form>
|
||||
<input id="openFile" type="file"/>
|
||||
|
|
|
@ -164,6 +164,10 @@
|
|||
e.preventDefault();
|
||||
}
|
||||
|
||||
// Show library version
|
||||
document.getElementById("version").textContent =
|
||||
"(v" + markdownlint.getVersion() + ")";
|
||||
|
||||
// Add event listeners
|
||||
document.body.addEventListener("dragover", onDragOver);
|
||||
document.body.addEventListener("drop", onDrop);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue