53ce7d2759
allows us to use scripts/ts-run and ts-watch to test the page in Chrome by surfing to http://127.0.0.1:40000/_anki/pages/card-info.html#testXXX
23 lines
776 B
HTML
23 lines
776 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" id="viewport" content="width=device-width" />
|
|
<link href="card-info-base.css" rel="stylesheet" />
|
|
<link href="card-info.css" rel="stylesheet" />
|
|
<script src="../js/vendor/bootstrap.bundle.min.js"></script>
|
|
<script src="card-info.js"></script>
|
|
</head>
|
|
<body>
|
|
<div id="main"></div>
|
|
|
|
<script>
|
|
// use #testXXXX where XXXX is card ID to test
|
|
if (window.location.hash.startsWith("#test")) {
|
|
const cid = parseInt(window.location.hash.substr("#test".length), 10);
|
|
anki.cardInfo(document.getElementById("main"), cid, true);
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|