remove T and Z from date
3 posters
Page 1 of 1
remove T and Z from date
need remove this letters from date
- Code:
<div style="background-color:#afc6bc;" class="rssfeed box-content">
</div><script type="text/javascript">
$.get('/feed/?type=atom').done(function(data) {
var a = $(data);
var b = a.find('entry:lt(3)').length;
for (var z = 0; z < b; z++) {
var e = a.find('entry:eq(' + z + ') title').text();
var f = a.find('entry:eq(' + z + ') id').text();
var g = a.find('entry:eq(' + z + ') name').text();
var t = a.find('entry:eq(' + z + ') updated').text();
var textt = a.find('entry:eq(' + z + ') content').text();
$('.rssfeed').append('<div class="last-feed"><br><a href="' + f + '" class="title-post">' + e + '</a><div class="text-feed" style="line-height: 200%; font-size: 22px; ">' + textt + ' </div><a href="' + f + '?view=newest" ><font size="6" color="#9b3600">>>> читать посл. сообщение >>></font></a><br /><br /><div class="time-user"> ' + t + ' <a href="/profile.forum?mode=viewprofile&u=' + g + '">' + g + '</a></div><br></div>');
}
$('.text-feed').text(function() {
return $(this).text().length > 270 ? $(this).text().substr(0, 270) + '...' : $(this).text();
})
});
</script>
widget is visible only to users but I can open it. widget shows the first post of the last active topic
the widget is located at the bottom left
help please
regards
Re: remove T and Z from date
hi @poesia-verses
Enable Javascript code management : Yes
Title : as you like
Placement : In all the pages
Enable Javascript code management : Yes
Title : as you like
Placement : In all the pages
- Code:
$(document).ready(function() {
var $timeUser = $('.time-user');
var text = $timeUser.text();
// Remove the letters T and Z from the text
var updatedText = text.replace('T', ' ').replace('Z', '');
$timeUser.text(updatedText);
});
poesia-verses likes this post
poesia-verses likes this post
Re: remove T and Z from date
Problem solved & topic archived.
|
Similar topics
» Remove The Date on Chatbox
» Remove Post Subject Description while retaining the time and date.
» Report generation with "Join date" and "Last visit" date
» Time & Date & URL
» Date problem
» Remove Post Subject Description while retaining the time and date.
» Report generation with "Join date" and "Last visit" date
» Time & Date & URL
» Date problem
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum