#199 improving couplet numbers UI
This commit is contained in:
parent
fec8a1d099
commit
d274382ed1
@ -33,6 +33,14 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Model.IsPoemPage)
|
||||
{
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
btshmr();
|
||||
});
|
||||
</script>
|
||||
}
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
@Html.Raw(@ViewData["BrearCrumpList"])
|
||||
|
||||
@ -8,8 +8,8 @@
|
||||
},
|
||||
"AllowedHosts": "*",
|
||||
"GoogleAnalyticsCode": "",
|
||||
"APIRoot": "http://localhost:3439",
|
||||
"GlobalAPIRoot": "http://localhost:3439",
|
||||
"APIRoot": "https://ganjgah.ir",
|
||||
"GlobalAPIRoot": "https://ganjgah.ir",
|
||||
"SiteUrl": "http://localhost:33081",
|
||||
"ReadOnlyMode": "False"
|
||||
}
|
||||
|
||||
@ -642,7 +642,7 @@ margin: 1px;
|
||||
font-size: 1.4em;
|
||||
}
|
||||
|
||||
.bnum {
|
||||
.bnum, .n .bnum, .l .bnum {
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
|
||||
@ -1,4 +1,8 @@
|
||||
function coupletNumImage(bnum, color) {
|
||||
function btshmr() {
|
||||
setTimeout(function () { btshmr_internal(); }, 1);
|
||||
}
|
||||
|
||||
function coupletNumImage(bnum, color) {
|
||||
let canvas = document.createElement('canvas');
|
||||
canvas.width = 50;
|
||||
canvas.height = 28;
|
||||
@ -12,8 +16,7 @@
|
||||
return canvas.toDataURL();
|
||||
}
|
||||
|
||||
function btshmr() {
|
||||
$("body").css("cursor", "progress");
|
||||
function btshmr_internal() {
|
||||
var bnum = getElements("bnum");
|
||||
if (bnum.length != 0) {
|
||||
for (var i = 0; i < bnum.length; ++i) {
|
||||
@ -22,7 +25,6 @@ function btshmr() {
|
||||
else
|
||||
bnum[i].style.visibility = 'hidden';
|
||||
}
|
||||
$("body").css("cursor", "default");
|
||||
return true;
|
||||
}
|
||||
var msr1s = getElements("m1", "b2", "n", "l");
|
||||
@ -48,7 +50,6 @@ function btshmr() {
|
||||
j = 0;
|
||||
}
|
||||
}
|
||||
$("body").css("cursor", "default");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user