diff --git a/src/js/slaveSummaryWidgets.js b/src/js/slaveSummaryWidgets.js index 224bf4cd48e1b2ea9a87dbf3b883659f0711a850..b46061f8b7fe4a194c3670d16922e3e9b2fce3eb 100644 --- a/src/js/slaveSummaryWidgets.js +++ b/src/js/slaveSummaryWidgets.js @@ -380,88 +380,88 @@ window.SlaveSummaryUncached = (function() { * @returns {void} */ function short_rules(slave, c) { - const tagName = "strong"; + const styles = "strong"; switch (slave.livingRules) { case "luxurious": - tag(c, tagName, "LS:Lux"); + makeSpan(c, "LS:Lux", styles); break; case "normal": - tag(c, tagName, "LS:Nor"); + makeSpan(c, "LS:Nor", styles); break; default: - tag(c, tagName, "LS:Spa"); + makeSpan(c, "LS:Spa", styles); break; } if (canTalk(slave)) { switch (slave.speechRules) { case "permissive": - tag(c, tagName, "SpR:P"); + makeSpan(c, "SpR:P", styles); break; case "accent elimination": - tag(c, tagName, "SpR:NoAcc"); + makeSpan(c, "SpR:NoAcc", styles); break; case "language lessons": - tag(c, tagName, "SpR:LL"); + makeSpan(c, "SpR:LL", styles); break; default: - tag(c, tagName, "SpR:R"); + makeSpan(c, "SpR:R", styles); break; } } switch (slave.relationshipRules) { case "permissive": - tag(c, tagName, "ReR:P"); + makeSpan(c, "ReR:P", styles); break; case "just friends": - tag(c, tagName, "ReR:Fr"); + makeSpan(c, "ReR:Fr", styles); break; default: - tag(c, tagName, "ReR:R"); + makeSpan(c, "ReR:R", styles); break; } switch (slave.standardPunishment) { case "confinement": - tag(c, tagName, "Pun:Conf"); + makeSpan(c, "Pun:Conf", styles); break; case "whipping": - tag(c, tagName, "Pun:Whip"); + makeSpan(c, "Pun:Whip", styles); break; case "chastity": - tag(c, tagName, "Pun:Chas"); + makeSpan(c, "Pun:Chas", styles); break; default: - tag(c, tagName, "Pun:Situ"); + makeSpan(c, "Pun:Situ", styles); break; } switch (slave.standardReward) { case "relaxation": - tag(c, tagName, "Rew:Relx"); + makeSpan(c, "Rew:Relx", styles); break; case "drugs": - tag(c, tagName, "Rew:Drug"); + makeSpan(c, "Rew:Drug", styles); break; case "orgasm": - tag(c, tagName, "Rew:Orga"); + makeSpan(c, "Rew:Orga", styles); break; default: - tag(c, tagName, "Rew:Situ"); + makeSpan(c, "Rew:Situ", styles); break; } switch (slave.releaseRules) { case "permissive": - tag(c, tagName, "MaR:P"); + makeSpan(c, "MaR:P", styles); break; case "sapphic": - tag(c, tagName, "MaR:S"); + makeSpan(c, "MaR:S", styles); break; case "masturbation": - tag(c, tagName, "MaR:M"); + makeSpan(c, "MaR:M", styles); break; case "chastity": - tag(c, tagName, "MaR:C"); + makeSpan(c, "MaR:C", styles); break; default: - tag(c, tagName, "MaR:R"); + makeSpan(c, "MaR:R", styles); break; } }