forked from MarseyWorld/MarseyWorld
replace data-bs-original-title with title
parent
53c495d25f
commit
835ee3e577
|
@ -1,8 +1,8 @@
|
||||||
function pinned_timestamp(id) {
|
function pinned_timestamp(id) {
|
||||||
const el = document.getElementById(id)
|
const el = document.getElementById(id)
|
||||||
const time = new Date(parseInt(el.dataset.timestamp)*1000)
|
const time = new Date(parseInt(el.dataset.timestamp)*1000)
|
||||||
const pintooltip = el.getAttribute("data-bs-original-title")
|
const pintooltip = el.getAttribute("title")
|
||||||
if (!pintooltip.includes('until')) el.setAttribute("data-bs-original-title", `${pintooltip} until ${time}`)
|
if (!pintooltip.includes('until')) el.setAttribute("title", `${pintooltip} until ${time}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @type {HTMLImageElement} */
|
/** @type {HTMLImageElement} */
|
||||||
|
|
|
@ -54,7 +54,7 @@ else
|
||||||
|
|
||||||
function badge_timestamp(t) {
|
function badge_timestamp(t) {
|
||||||
const date = new Date(t.dataset.until*1000);
|
const date = new Date(t.dataset.until*1000);
|
||||||
const text = t.getAttribute("data-bs-original-title")
|
const text = t.getAttribute("title")
|
||||||
t.setAttribute("data-bs-original-title", `${text} ${date.toString()}`);
|
t.setAttribute("title", `${text} ${date.toString()}`);
|
||||||
t.removeAttribute("onmouseover")
|
t.removeAttribute("onmouseover")
|
||||||
}
|
}
|
|
@ -109,7 +109,7 @@ Text 2
|
||||||
<tr>
|
<tr>
|
||||||
<td>Pat User</td>
|
<td>Pat User</td>
|
||||||
<td>:@snappypat:</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>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Random Marsey</td>
|
<td>Random Marsey</td>
|
||||||
|
|
|
@ -237,7 +237,7 @@
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div id="mobile-prompt-container" class="fixed-top">
|
<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>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -63,9 +63,8 @@
|
||||||
data-bs-placement="bottom"
|
data-bs-placement="bottom"
|
||||||
height="13"
|
height="13"
|
||||||
src="{{asset_siteimg('coins.webp')}}"
|
src="{{asset_siteimg('coins.webp')}}"
|
||||||
title=""
|
|
||||||
aria-label="coins"
|
aria-label="coins"
|
||||||
data-bs-original-title="coins"
|
title="coins"
|
||||||
style="display: none; position: relative; top: -2px"
|
style="display: none; position: relative; top: -2px"
|
||||||
/>
|
/>
|
||||||
<span id="prize">-</span>
|
<span id="prize">-</span>
|
||||||
|
@ -124,9 +123,8 @@
|
||||||
data-bs-placement="bottom"
|
data-bs-placement="bottom"
|
||||||
height="13"
|
height="13"
|
||||||
src="{{asset_siteimg('coins.webp')}}"
|
src="{{asset_siteimg('coins.webp')}}"
|
||||||
title=""
|
|
||||||
aria-label="coins"
|
aria-label="coins"
|
||||||
data-bs-original-title="coins"
|
title="coins"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<span id="totalCostOfTickets">12</span>
|
<span id="totalCostOfTickets">12</span>
|
||||||
|
|
|
@ -19,14 +19,14 @@ set CACHE_VER = {
|
||||||
'js/award_modal.js': 254,
|
'js/award_modal.js': 254,
|
||||||
'js/bootstrap.js': 278,
|
'js/bootstrap.js': 278,
|
||||||
'js/category_modal.js': 200,
|
'js/category_modal.js': 200,
|
||||||
'js/comments+submission_listing.js': 265,
|
'js/comments+submission_listing.js': 266,
|
||||||
'js/submission_listing.js': 261,
|
'js/submission_listing.js': 261,
|
||||||
'js/emoji_modal.js': 314,
|
'js/emoji_modal.js': 314,
|
||||||
'js/formatting.js': 240,
|
'js/formatting.js': 240,
|
||||||
'js/lottery.js': 256,
|
'js/lottery.js': 256,
|
||||||
'js/marked.js': 283,
|
'js/marked.js': 283,
|
||||||
'js/submit.js': 267,
|
'js/submit.js': 267,
|
||||||
'js/userpage.js': 242,
|
'js/userpage.js': 243,
|
||||||
'js/userpage_v.js': 245,
|
'js/userpage_v.js': 245,
|
||||||
'js/lozad.js': 260,
|
'js/lozad.js': 260,
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue