Content deleted Content added
bug fixes |
fixes |
||
Line 10:
*/
$(() => {
/**
* Given a number, add a leading zero if necessary, so that the final number
Line 139 ⟶ 137:
utcValue >= 0 ? `+${utcValue}` : `−${Math.abs(utcValue.toFixed(1))}`;
const
const datePart = `<span class="localcomments-date">${date}</span>`;▼
const utcPart = `<span class="localcomments-utc" ${nowrapStyle}>(UTC${utcOffset})</span>`;▼
const returnDate = this.LocalComments.timeFirst
? `${
: `${
return
}
Line 212 ⟶ 208:
: '';
return `
}
Line 437 ⟶ 433:
const beforeMatch = value.slice(0, position);
const afterMatch = value.slice(position + stringLength);
const
match.toString(),▼
search▼
);▼
//
const $span = $(
`<span class="localcomments" style="font-size: 95%;
);
// Replace the existing text node in the page with our new local
// comments node.
$(node).replaceWith($span);
if (beforeMatch) {
▲
);▼
// Replace the text content that appears after the timestamp.
}
} else {
|