replace data-bs-original-title with title

master
Aevann1 2022-08-13 09:20:41 +02:00
parent 53c495d25f
commit 835ee3e577
6 changed files with 10 additions and 12 deletions

View File

@ -1,8 +1,8 @@
function pinned_timestamp(id) {
const el = document.getElementById(id)
const time = new Date(parseInt(el.dataset.timestamp)*1000)
const pintooltip = el.getAttribute("data-bs-original-title")
if (!pintooltip.includes('until')) el.setAttribute("data-bs-original-title", `${pintooltip} until ${time}`)
const pintooltip = el.getAttribute("title")
if (!pintooltip.includes('until')) el.setAttribute("title", `${pintooltip} until ${time}`)
}
/** @type {HTMLImageElement} */

View File

@ -54,7 +54,7 @@ else
function badge_timestamp(t) {
const date = new Date(t.dataset.until*1000);
const text = t.getAttribute("data-bs-original-title")
t.setAttribute("data-bs-original-title", `${text} ${date.toString()}`);
const text = t.getAttribute("title")
t.setAttribute("title", `${text} ${date.toString()}`);
t.removeAttribute("onmouseover")
}

View File

@ -109,7 +109,7 @@ Text 2
<tr>
<td>Pat User</td>
<td>:@snappypat:</td>
<td><span alt=":@snappypat:" data-bs-toggle="tooltip" title="" data-bs-original-title=":@snappypat:" aria-label=":@snappypat:"><img src="/i/hand.webp"><img alt=":@snappypat:" b="" loading="lazy" pat="" src="/pp/3"></span></td>
<td><span alt=":@snappypat:" data-bs-toggle="tooltip" title=":@snappypat:" aria-label=":@snappypat:"><img src="/i/hand.webp"><img alt=":@snappypat:" b="" loading="lazy" pat="" src="/pp/3"></span></td>
</tr>
<tr>
<td>Random Marsey</td>

View File

@ -237,7 +237,7 @@
</style>
<div id="mobile-prompt-container" class="fixed-top">
<div id="mobile-prompt" href="javascript:void(0)" data-bs-toggle="tooltip" data-bs-container="#mobile-prompt-container" data-bs-placement="top" data-bs-trigger="click" data-bs-html="true" data-bs-original-title="<i class='beg-icon fas fa-x'></i>Install the {{SITE_NAME}} webapp by saving this page to your home screen!"></div>
<div id="mobile-prompt" href="javascript:void(0)" data-bs-toggle="tooltip" data-bs-container="#mobile-prompt-container" data-bs-placement="top" data-bs-trigger="click" data-bs-html="true" title="<i class='beg-icon fas fa-x'></i>Install the {{SITE_NAME}} webapp by saving this page to your home screen!"></div>
</div>
<script>

View File

@ -63,9 +63,8 @@
data-bs-placement="bottom"
height="13"
src="{{asset_siteimg('coins.webp')}}"
title=""
aria-label="coins"
data-bs-original-title="coins"
title="coins"
style="display: none; position: relative; top: -2px"
/>
<span id="prize">-</span>
@ -124,9 +123,8 @@
data-bs-placement="bottom"
height="13"
src="{{asset_siteimg('coins.webp')}}"
title=""
aria-label="coins"
data-bs-original-title="coins"
title="coins"
/>
<span id="totalCostOfTickets">12</span>

View File

@ -19,14 +19,14 @@ set CACHE_VER = {
'js/award_modal.js': 254,
'js/bootstrap.js': 278,
'js/category_modal.js': 200,
'js/comments+submission_listing.js': 265,
'js/comments+submission_listing.js': 266,
'js/submission_listing.js': 261,
'js/emoji_modal.js': 314,
'js/formatting.js': 240,
'js/lottery.js': 256,
'js/marked.js': 283,
'js/submit.js': 267,
'js/userpage.js': 242,
'js/userpage.js': 243,
'js/userpage_v.js': 245,
'js/lozad.js': 260,