Project-GC Userscript/Development/Latest Logs: Difference between revisions

From Project-GC
Jump to navigation Jump to search
Colored Box Template
 
m added category
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
<div class="mw-tpl-colorbox {{{class|}}}" style="{{#if:{{{background-content-color|}}}| background-color: {{{background-content-color|#fff}}}; }} {{{style|}}}"><templatestyles src="Colored box/style.css"/><!--
{{PGC-back-link
--><div class="mw-tpl-colorbox-title" style="{{#if:{{{background-title-color|}}}|background-color:{{{background-title-color|#eaecf0}}};}}">{{#if:{{{icon|}}}|[[File:{{{icon}}}|20px|class=colorbox-title-icon|link=|alt=]]&#32;}}<strong style="{{#if:{{{title-color|}}}| color: {{{title-color|#000000}}}; }}">{{{title}}}</strong><!--
|content=Latest Logs Feature
-->{{#if:{{{link|}}}|<div class="mw-tpl-colorbox-title-corner">[[{{{link}}}|<span style="{{#if:{{{link-color|{{{title-color|}}}}}}| color: {{{link-color|{{{title-color|}}}}}}; }}">{{{view-text|view}}}</span>]]</div>}}
|link={{PGC-US-Name}}/Development
</div><!--
}}
--><div class="mw-tpl-colorbox-content">
= Description =
{{{content}}}
'''Latest Logs''' is a feature that displays the a graphical summary of the 5 most recent logs of a geocache.  It will display the icons that represent the kinds of logs at the top of the page under the section for the size of the Geocache (see below).
</div>
[[File:latest_logs.png|500px]]
</div><noinclude>
 
{{documentation}}
= Change Log =
</noinclude>
== 2022-08-23; Issue #109.  Fixed in v2.3.15 ==
Updated the code to account for the changes in the HTML. A span was added. Around Line 1082, changed from:<br>
<pre>
if (latestLogs.length < 5) {
    var node = $(jNode).find('div.HalfLeft.LogType h4 img[src]'),
        logType = {};</pre>--> to:
<pre>
if (latestLogs.length < 5) {
    var node = $(jNode).find('span.h4 img[src]'),
        logType = {};</pre>
 
[[Category: Project-GC Userscript]]

Latest revision as of 17:23, 7 August 2023

Latest Logs Feature [[Project-GC Userscript


/Development|Project-GC Userscript


/Development]]



Description

Latest Logs is a feature that displays the a graphical summary of the 5 most recent logs of a geocache. It will display the icons that represent the kinds of logs at the top of the page under the section for the size of the Geocache (see below).

Change Log

2022-08-23; Issue #109. Fixed in v2.3.15

Updated the code to account for the changes in the HTML. A span was added. Around Line 1082, changed from:

if (latestLogs.length < 5) {
    var node = $(jNode).find('div.HalfLeft.LogType h4 img[src]'),
        logType = {};

--> to:

if (latestLogs.length < 5) {
    var node = $(jNode).find('span.h4 img[src]'),
        logType = {};