Project-GC Userscript/Development/Last Log was a DNF: Difference between revisions
Jump to navigation
Jump to search
m Fix links |
m added category |
||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{PGC-back-link | {{PGC-back-link | ||
|content=Last Log was a DNF Feature | |content=Regarding the "Last Log was a DNF" Feature. | ||
|link= | |link={{PGC-US-Name}}/Development | ||
}} | }} | ||
= Description = | = Description = | ||
'''Last Log was a DNF''' is a feature that displays blue text | '''Last Log was a DNF''' is a feature that displays blue text below the difficulty/terrain section on a geocache page. It will display the following blue colored text: "Cache Issues: The latest log for this cache is a DNF, please read the log before before beginning your search."<br/> | ||
[[File:latest_log_dnf.png|500px]] | [[File:latest_log_dnf.png|500px]] | ||
= Change Log = | = Change Log = | ||
== 2022-08-23; Issue #111. | == 2022-08-23; Issue #111. Fixed in v2.3.15 == | ||
Updated the code to account for the changes in the HTML. | Updated the code to account for the changes in the HTML. In particular, an HTML <span> was added. Around Line 855, changed from:<br> | ||
<pre> | <pre> | ||
// If the first log is a DNF, display a blue warning on top of the page | // If the first log is a DNF, display a blue warning on top of the page | ||
| Line 17: | Line 17: | ||
if($('#cache_logs_table span.h4 img').attr('src') === '/images/logtypes/3.png') { | if($('#cache_logs_table span.h4 img').attr('src') === '/images/logtypes/3.png') { | ||
</pre> | </pre> | ||
[[Category: Project-GC Userscript]] | |||
Latest revision as of 17:23, 7 August 2023
| Regarding the "Last Log was a DNF" Feature. | [[Project-GC Userscript
|
Description
Last Log was a DNF is a feature that displays blue text below the difficulty/terrain section on a geocache page. It will display the following blue colored text: "Cache Issues: The latest log for this cache is a DNF, please read the log before before beginning your search."
Change Log
2022-08-23; Issue #111. Fixed in v2.3.15
Updated the code to account for the changes in the HTML. In particular, an HTML <span> was added. Around Line 855, changed from:
// If the first log is a DNF, display a blue warning on top of the page
if($('#cache_logs_table tr:first td div.LogDisplayRight strong img').attr('src') === '/images/logtypes/3.png') {--> to:
// If the first log is a DNF, display a blue warning on top of the page
if($('#cache_logs_table span.h4 img').attr('src') === '/images/logtypes/3.png') {