+ New: [Cache Listing] Show number of characters in the Personal Cache Note. [2560 / capoaira]
+ The number of characters and words is displayed for the text in the Personal Cache Note.
+
+ New: [Log Form, Log View] Link to Drafts page is missing (after sending a draft related log, automatic view log). [2488 / 2Abendsegler]
+
+ Settings -> Log:
+
+
+
+ New: [Log Edit, Log View] After edit a log, go back to log view. [2490 / 2Abendsegler]
+ Settings -> Log:
+
+ This parameter is not new. If the parameter is enabled, the log will be displayed after editing a cache log, just like after a new log.
";
@@ -16687,9 +16741,7 @@ var mainGC = function() {
html += "
"+prepareHideable.replace("#id#","profile")+"
";
html += "
";
- html += newParameterOn3;
html += checkboxy('settings_public_profile_avatar_show_thumbnail', 'Show bigger avatar image while hovering with the mouse') + show_help("This option requires \"Show thumbnails of images\".") + " ";
- html += newParameterVersionSetzen('0.12') + newParameterOff;
html += newParameterOn1;
html += checkboxy('settings_public_profile_smaller_privacy_btn', 'Show smaller privacy buttons') + show_help("Replace the text and links for privacy with a clickable icon button.") + " ";
html += newParameterVersionSetzen('0.14') + newParameterOff;
@@ -16698,7 +16750,7 @@ var mainGC = function() {
html += "
Trackables
";
html += checkboxy('settings_faster_profile_trackables', 'Load trackables faster without images') + show_help("With this option you can stop the load on the trackable pages after the necessary data are loaded. You disclaim of the lengthy load of the images of the trackables. This procedure is much faster as load all data, because every image is loaded separate and not in a bigger bundle like it is for the non image data.") + " ";
html += "
Gallery
";
- var content_settings_show_thumbnails = checkboxy('settings_show_thumbnails', 'Show thumbnails of images') + show_help("With this option the images are displayed as thumbnails to have a preview. If you hover with your mouse over a thumbnail, you can see the big one.
This works in cache and TB logs, in the cache and TB image galleries and in the public profile image gallery.
And after pressing button \"Show bigger avatars\" in cache listing, it also works for the avatars in the displayed logs in cache listing.
And if you activate \"Show bigger avatar image while hovering with the mouse\", it also works for avatars in public profiles.") + " Max size of big image px ";
+ var content_settings_show_thumbnails = checkboxy('settings_show_thumbnails', 'Show thumbnails of images') + show_help("With this option the images are displayed as thumbnails to have a preview. If you hover with your mouse over a thumbnail, you can see the big one.
This works for images in cache and TB logs, for avatars in cache logs, for images in the cache and TB image galleries and for images in the public profile image gallery.
And after pressing button \"Show bigger avatars\" in cache listing, it also works for the avatars in the displayed logs in cache listing.
And if you activate \"Show bigger avatar image while hovering with the mouse\" in section \"Public Profile\", it also works for the avatar in public profiles.
And if you activate \"Show bigger avatar image while hovering with the mouse\" in section \"Listing - Logs\", it also works for the avatars in cache logs.") + " Max size of big image px ";
html += content_settings_show_thumbnails.replace("show_thumbnails", "show_thumbnailsX1").replace("max_size", "max_sizeX1");
html += " " + checkboxy('settings_imgcaption_on_topX1', 'Show caption on top');
var content_geothumbs = " (Alternative Geothumbs" + show_help("A great alternative to the GC little helper II bigger image functionality with \"Show thumbnails of images\" and \"Show bigger images in gallery\", provides the script Geothumbs (Geocaching Thumbnails).
The script works like GC little helper II with Firefox, Google Chrome and Opera via Tampermonkey script.
If you use Geothumbs, you have to uncheck both GC little helper II bigger image functionality \"Show thumbnails of images\" and \"Show bigger images in gallery\".") + ")" + " ";
@@ -16756,9 +16808,7 @@ var mainGC = function() {
html += " ";
html += checkboxy('settings_show_cache_type_icons_in_dashboard', 'Show cache/TB type in front of log type in Latest Activity list') + " ";
html += checkboxy('settings_show_edit_links_for_logs', 'Show edit links for your own logs') + show_help("With this option direct edit links are shown in your own logs on your dashboard. If you choose such a link, you are immediately in edit mode in your log.") + " ";
- html += newParameterOn3;
html += checkboxy('settings_dashboard_show_logs_in_markdown', 'Show log text in Markdown as it is in cache listing') + " ";
- html += newParameterVersionSetzen('0.12') + newParameterOff;
html += newParameterOn2;
html += checkboxy('settings_dashboard_hide_tb_activity', 'Hide all TB/Coin logs in the Latest Activity') + " ";
html += newParameterVersionSetzen('0.15') + newParameterOff;
@@ -16903,9 +16953,7 @@ var mainGC = function() {
html += checkboxy('settings_show_vip_listX0', 'Process VIPs') + show_help(content_settings_show_vip_list + "
You can adjust details about this feature also in the Dashboard topic.") + " ";
html += " " + checkboxy('settings_show_owner_vip_list', 'Show owner in VIP list') + show_help("If you enable this option, the owner is a VIP for the cache, so you can see, what happened with the cache (disable, maint, enable, ...). Then the owner is shown not only in VIP list but also in VIP logs.")+ " ";
html += " " + checkboxy('settings_show_reviewer_as_vip', 'Show reviewer/publisher in VIP list') + show_help("If you enable this option, the reviewer or publisher of the cache is a VIP for the cache.") + " ";
- html += newParameterOn3;
html += " " + checkboxy('settings_show_lackey_as_vip', 'Show lackey in VIP list') + show_help("If you enable this option, lackeys which logged the cache are VIPs for the cache. Behind the logs of lackeys are primarily employees of Groundspeak who cache. In addition, administrative logs can also be performed by these lackeys. Administrative user of Groundspeak may also be flagged as lackeys. An example of the latter are the logs for archiving older events.") + " ";
- html += newParameterVersionSetzen('0.12') + newParameterOff;
html += " " + checkboxy('settings_show_long_vip', 'Show long VIP list (one row per log)') + show_help("This is another type of displaying the VIP list. If you disable this option you get the short list, one row per VIP and the logs as icons beside the VIP. If you enable this option, there is a row for every log.") + " ";
html += " " + checkboxy('settings_vip_show_nofound', 'Show a list of VIPs who have not found the cache') + " ";
html += " " + checkboxy('settings_make_vip_lists_hideable', 'Make VIP lists in listing hideable') + show_help("With this option you can hide and show the VIP lists \"VIP-List\" and \"VIP-List not found\" in cache listing with one click.") + " ";
@@ -16958,9 +17006,7 @@ var mainGC = function() {
html += checkboxy('settings_add_search_in_logs_func', 'Add "Search in logs" feature') + " ";
html += checkboxy('settings_show_all_logs_but', 'Show button \"Show all logs\" above the logs') + " ";
html += checkboxy('settings_show_compact_logbook_but', 'Show button \"Show compact logs\" above the logs') + " ";
- html += newParameterOn3;
html += checkboxy('settings_show_who_gave_favorite_but', 'Show button \"Show who favorited\" above the logs') + show_help("With this option you can choose to show a button \"Show who favorited\" above the logs. Pressing this button will add a favorite icon to the logs of users who gave a favorite. Additionally, a filter for those logs will be added above the logs.
For performance reasons this functionality must be restricted to caches with 500 favorites or less.") + " ";
- html += newParameterVersionSetzen(0.12) + newParameterOff;
html += checkboxy('settings_show_log_counter_but', 'Show button \"Show log counter\" above the logs') + " ";
html += " " + checkboxy('settings_show_log_counter', 'Show log counter when opening cache listing') + " ";
html += checkboxy('settings_show_bigger_avatars_but', 'Show button \"Show bigger avatars\" above the logs') + " ";
@@ -16984,6 +17030,9 @@ var mainGC = function() {
html += " " + checkboxy('settings_imgcaption_on_topX0', 'Show caption on top');
html += content_geothumbs;
html += " " + "Spoiler filter " + show_help("If one of these words is found in the caption of the image, there will be no real thumbnail. It is to prevent seeing spoilers. Words have to be divided by |. If the field is empty, no checking is done. Default is \"spoiler|hinweis\".") + " ";
+ html += newParameterOn3;
+ html += checkboxy('settings_listing_bigger_avatar_with_mouse', 'Show bigger avatar image while hovering with the mouse') + show_help("With this option you can choose if a bigger avatar image will load and shown while hovering with the mouse over the small avatar image.
This option requires \"Show thumbnails of images\".") + " ";
+ html += newParameterVersionSetzen('0.16') + newParameterOff;
html += content_settings_hide_upvotes.replace("settings_hide_upvotes", "settings_hide_upvotesX0");
html += content_settings_smaller_upvotes_icons.replace("settings_smaller_upvotes_icons", "settings_smaller_upvotes_iconsX0");
html += content_settings_no_wiggle_upvotes_click.replace("settings_no_wiggle_upvotes_click", "settings_no_wiggle_upvotes_clickX0");
@@ -16997,15 +17046,16 @@ var mainGC = function() {
html += " " + checkboxy('settings_drafts_color_visited_link', 'Color a visited link') + " ";
html += " " + checkboxy('settings_drafts_old_log_form', 'Use old-fashioned log form to log a draft') + show_help("If you enable this option, you always get the old log form instead of the new one to log drafts related logs.
Please look also the parameter \"Use old-fashioned log form to log non drafts related logs\" in the \"Log\" area.") + " ";
html += " " + checkboxy('settings_drafts_log_icons', 'Show logtype icon instead of text') + " ";
- var content_settings_after_sending_log = 'After sending a new log using the new log form, the listing will appear. After sending a new log using the old log form, the view log page will appear.
';
- var content_settings_after_sending_draft_related_log1 = checkboxy('settings_drafts_go_automatic_back', 'After sending a draft related log, automatic go back to drafts') + show_help(content_settings_after_sending_log + 'If it was a draft related log, you can enable this option to automatic go back to the drafts page.') + " ";
- var content_settings_after_sending_draft_related_log2 = checkboxy('settings_drafts_after_new_logging_view_log', 'After sending a draft related log, automatic view log') + show_help(content_settings_after_sending_log + 'If it was a draft related log, you can enable this option to automatic go to view log page.') + " ";
+ var content_settings_after_sending_draft_related_log1 = checkboxy('settings_drafts_go_automatic_back', 'After sending a draft related cache log, automatic go back to drafts') + show_help('If it was a draft related cache log, you can enable this option to automatic go back to the drafts page, instead of going to cache listing.') + " ";
+ var content_settings_after_sending_draft_related_log2 = checkboxy('settings_drafts_after_new_logging_view_log', 'After sending a draft related cache log, automatic view log') + show_help('If it was a draft related cache log, you can enable this option to automatic go to view log page, instead of going to cache listing.') + " ";
+ var content_settings_after_sending_draft_related_log2_button = " " + checkboxy('settings_drafts_after_new_logging_view_log_button', 'Show button "Back to Drafts" on view log page') + " ";
html += content_settings_after_sending_draft_related_log1;
- html += newParameterOn3;
html += content_settings_after_sending_draft_related_log2;
+ html += newParameterOn3;
+ html += content_settings_after_sending_draft_related_log2_button;
+ html += newParameterVersionSetzen('0.16') + newParameterOff;
html += checkboxy('settings_drafts_download_show_button', 'Enable draft download feature') + show_help("With this option you can activate the draft download feature. A download button will then appear next to the upload button on the draft page.") + " ";
html += " " + checkboxy('settings_drafts_download_change_logdate', 'Change log dates of the drafts in download file') + show_help("With this option you can choose whether the log dates in the drafts is reduced by one second. This is necessary if you might want to upload the drafts in the download file later, after deleting the drafts on the drafts page, as uploading with the same log date is not possible.") + " ";
- html += newParameterVersionSetzen('0.12') + newParameterOff;
html += "
";
html += "
"+prepareHideable.replace("#id#","logging")+"
";
@@ -17019,10 +17069,11 @@ var mainGC = function() {
html += checkboxy('settings_unsaved_log_message', 'Show message in case of unsaved log') + " ";
html += checkboxy('settings_show_add_cache_info_in_log_page', 'Show additional cache info') + show_help("If you enable this option, additional cache information such as the favorite points or the favorite percent are shown in the log form next to the cache name.
For basic members, no data is displayed for premium member only caches.") + " ";
html += content_settings_after_sending_draft_related_log1.replace("settings_drafts_go_automatic_back", "settings_drafts_go_automatic_backX0");
- html += newParameterOn3;
html += content_settings_after_sending_draft_related_log2.replace("settings_drafts_after_new_logging_view_log", "settings_drafts_after_new_logging_view_logX0");
- html += checkboxy('settings_after_new_logging_view_log', 'After sending a non draft related log, automatic view log') + show_help(content_settings_after_sending_log + 'If it was not a draft related log, you can enable this option to automatic go to view log page.') + " ";
- html += newParameterVersionSetzen('0.12') + newParameterOff;
+ html += newParameterOn3;
+ html += content_settings_after_sending_draft_related_log2_button.replace("settings_drafts_after_new_logging_view_log_button", "settings_drafts_after_new_logging_view_log_buttonX0");
+ html += newParameterVersionSetzen('0.16') + newParameterOff;
+ html += checkboxy('settings_after_new_logging_view_log', 'After sending or edit a non draft related cache log, automatic view log') + show_help('If it was not a draft related cache log or it was an edit of a cache log, you can enable this option to automatic go to view log page, instead of going to cache listing.') + " ";
var placeholderDescription = "Possible placeholders: #Found# : Your founds + 1 (reduce it with a minus followed by a number) #Found_no# : Your founds (reduce it with a minus followed by a number) #Me# : Your username #Owner# : Username of the owner #Date# : Actual date #Time# : Actual time in format hh:mm #DateTime# : Actual date actual time #GCTBName# : GC or TB name #GCTBLink# : GC or TB link #GCTBNameLink# : GC or TB name as a link #LogDate# : Content of field \"Date Logged\" (Upper and lower case is not required in the placeholders name.)";
html += newParameterOn2;
html += checkboxy('settings_hide_locked_tbs_log_form', 'Hide locked trackables from trackable inventory') + show_help("A trackable can be marked as locked in the trackable listing. Locked trackables cannot be logged. With this option you can hide such trackables from trackable inventory.") + " ";
@@ -17095,7 +17146,7 @@ var mainGC = function() {
html += "
"+prepareHideable.replace("#id#","mail")+"
";
html += "
";
- var placeholderDescriptionMail = "Possible placeholders in the mail and message form: #Found# : Your founds + 1 (reduce it with a minus followed by a number) #Found_no# : Your founds (reduce it with a minus followed by a number) #Me# : Your username #Receiver# : Username of the receiver #Date# : Actual date #Time# : Actual time in format hh:mm #DateTime# : Actual date actual time #GCTBName# : GC or TB name #GCTBCode# : GC or TB code in brackets #GCTBLink# : GC or TB link in brackets (Upper and lower case is not required in the placeholders name.)";
+ var placeholderDescriptionMail = "Possible placeholders in the mail and message form: #Found# : Your founds + 1 (reduce it with a minus followed by a number) #Found_no# : Your founds (reduce it with a minus followed by a number) #Me# : Your username #Receiver# : Username of the receiver #Date# : Actual date #Time# : Actual time in format hh:mm #DateTime# : Actual date actual time #GCTBName# : GC or TB name #GCTBCode# : GC or TB code in brackets #GCTBCodeNoBrackets# : GC or TB code not in brackets #GCTBLink# : GC or TB link in brackets (Upper and lower case is not required in the placeholders name.)";
html += " " + "Template" + show_help("The template is automatically added to your mails and messages. You can also use placeholders for variables that will be replaced in the mail and in the message.") + " ( Possible placeholders" + show_help(placeholderDescriptionMail) + ") ";
html += " " + " ";
html += "
";
@@ -17106,7 +17157,7 @@ var mainGC = function() {
html += " " + checkboxy('remove_navi_play', 'Play') + " ";
html += " " + checkboxy('remove_navi_community', 'Community') + " ";
html += " " + checkboxy('remove_navi_shop', 'Shop') + " ";
- html += checkboxy('settings_bookmarks_search', 'Show searchfield. Default value ') + "" + show_help("If you enable this option, there will be a searchfield on the top of all GC pages. In this field you can search for GC Ids, TB Ids, tracking numbers, coordinates, ... . Also you can define a default value if you want (like GC ...).
This option requires \"Show Linklist on top\".") + " ";
+ html += checkboxy('settings_bookmarks_search', 'Show navigation/search field. Default value ') + "" + show_help("If you enable this option, there will be a navigation/search field on the top of all GC pages. In this field you can navigate respectively search to respectively for geocaches (GC), trackables (TB), geotours (GT), bookmark lists (BM), User codes (PR), geocache logs (GL), tracking code of trackables (6 digits), coordinates, ... .
Also you can define a default value like for example \"GC\" if you want.
This option requires \"Show Linklist on top\".") + " ";
html += checkboxy('settings_show_draft_indicator', 'Show draft indicator') + " ";
html += "" + show_help("With this option your Linklist will be shown at the navigation menu as a dropdown list beside the others.") + " ";
@@ -17604,16 +17655,24 @@ var mainGC = function() {
handleRadioTopMenu(true);
$('#settings_load_logs_with_gclh')[0].addEventListener("click", alert_settings_load_logs_with_gclh, false);
$('#settings_drafts_go_automatic_back')[0].addEventListener("click", function() {
- if ($('#settings_drafts_go_automatic_back').prop('checked')) $('#settings_drafts_after_new_logging_view_log, #settings_drafts_after_new_logging_view_logX0').prop('checked', false);
+ if ($('#settings_drafts_go_automatic_back').prop('checked') && $('#settings_drafts_after_new_logging_view_log').prop('checked')) {
+ $('#settings_drafts_after_new_logging_view_log')[0].click();
+ }
}, false);
$('#settings_drafts_go_automatic_backX0')[0].addEventListener("click", function() {
- if ($('#settings_drafts_go_automatic_backX0').prop('checked')) $('#settings_drafts_after_new_logging_view_log, #settings_drafts_after_new_logging_view_logX0').prop('checked', false);
+ if ($('#settings_drafts_go_automatic_backX0').prop('checked') && $('#settings_drafts_after_new_logging_view_logX0').prop('checked')) {
+ $('#settings_drafts_after_new_logging_view_logX0')[0].click();
+ }
}, false);
$('#settings_drafts_after_new_logging_view_log')[0].addEventListener("click", function() {
- if ($('#settings_drafts_after_new_logging_view_log').prop('checked')) $('#settings_drafts_go_automatic_back,#settings_drafts_go_automatic_backX0').prop('checked', false);
+ if ($('#settings_drafts_after_new_logging_view_log').prop('checked') && $('#settings_drafts_go_automatic_back').prop('checked')) {
+ $('#settings_drafts_go_automatic_back')[0].click();
+ }
}, false);
$('#settings_drafts_after_new_logging_view_logX0')[0].addEventListener("click", function() {
- if ($('#settings_drafts_after_new_logging_view_logX0').prop('checked')) $('#settings_drafts_go_automatic_back,#settings_drafts_go_automatic_backX0').prop('checked', false);
+ if ($('#settings_drafts_after_new_logging_view_logX0').prop('checked') && $('#settings_drafts_go_automatic_backX0').prop('checked')) {
+ $('#settings_drafts_go_automatic_backX0')[0].click();
+ }
}, false);
$('#restore_settings_lines_color_zebra')[0].addEventListener("click", restoreField, false);
$('#restore_settings_lines_color_user')[0].addEventListener("click", restoreField, false);
@@ -17669,6 +17728,7 @@ var mainGC = function() {
setEvForDouPara("settings_show_eventday", "click");
setEvForDouPara("settings_drafts_go_automatic_back", "click");
setEvForDouPara("settings_drafts_after_new_logging_view_log", "click");
+ setEvForDouPara("settings_drafts_after_new_logging_view_log_button", "click");
// Events setzen für Parameter, die im GClh Config eine Abhängigkeit derart auslösen, dass andere Parameter aktiviert bzw.
// deaktiviert werden müssen. ZB. können Mail Icons in VIP List (Parameter "settings_show_mail_in_viplist") nur aufgebaut
@@ -17750,14 +17810,17 @@ var mainGC = function() {
setEvForDepPara("settings_show_thumbnails", "settings_imgcaption_on_top");
setEvForDepPara("settings_show_thumbnails", "settings_spoiler_strings");
setEvForDepPara("settings_show_thumbnails", "settings_public_profile_avatar_show_thumbnail");
+ setEvForDepPara("settings_show_thumbnails", "settings_listing_bigger_avatar_with_mouse");
setEvForDepPara("settings_show_thumbnailsX0", "settings_hover_image_max_size");
setEvForDepPara("settings_show_thumbnailsX0", "settings_imgcaption_on_top");
setEvForDepPara("settings_show_thumbnailsX0", "settings_spoiler_strings");
setEvForDepPara("settings_show_thumbnailsX0", "settings_public_profile_avatar_show_thumbnail");
+ setEvForDepPara("settings_show_thumbnailsX0", "settings_listing_bigger_avatar_with_mouse");
setEvForDepPara("settings_show_thumbnailsX1", "settings_hover_image_max_size");
setEvForDepPara("settings_show_thumbnailsX1", "settings_imgcaption_on_top");
setEvForDepPara("settings_show_thumbnailsX1", "settings_spoiler_strings");
setEvForDepPara("settings_show_thumbnailsX1", "settings_public_profile_avatar_show_thumbnail");
+ setEvForDepPara("settings_show_thumbnailsX1", "settings_listing_bigger_avatar_with_mouse");
setEvForDepPara("settings_map_overview_build", "settings_map_overview_zoom");
setEvForDepPara("settings_map_overview_build", "settings_map_overview_layer");
setEvForDepPara("settings_map_overview_build", "settings_map_overview_browse_map_icon");
@@ -17883,6 +17946,10 @@ var mainGC = function() {
setEvForDepPara("settings_drafts_cache_link", "settings_drafts_cache_link_new_tab");
setEvForDepPara("settings_drafts_download_show_button", "settings_drafts_download_change_logdate");
setEvForDepPara("settings_searchmap_improve_add_to_list","settings_searchmap_improve_add_to_list_height");
+ setEvForDepPara("settings_drafts_after_new_logging_view_log", "settings_drafts_after_new_logging_view_log_button");
+ setEvForDepPara("settings_drafts_after_new_logging_view_log", "settings_drafts_after_new_logging_view_log_buttonX0");
+ setEvForDepPara("settings_drafts_after_new_logging_view_logX0", "settings_drafts_after_new_logging_view_log_button");
+ setEvForDepPara("settings_drafts_after_new_logging_view_logX0", "settings_drafts_after_new_logging_view_log_buttonX0");
// Abhängigkeiten der Linklist Parameter.
for (var i = 0; i < 100; i++) {
@@ -18374,6 +18441,7 @@ var mainGC = function() {
'settings_drafts_log_icons',
'settings_drafts_go_automatic_back',
'settings_drafts_after_new_logging_view_log',
+ 'settings_drafts_after_new_logging_view_log_button',
'settings_after_new_logging_view_log',
'settings_listing_hide_external_link_warning',
'settings_listing_links_new_tab',
@@ -18394,6 +18462,7 @@ var mainGC = function() {
'settings_button_sort_tbs_by_name_log_form',
'settings_larger_content_width_log_form',
'settings_less_space_log_lines_log_form',
+ 'settings_listing_bigger_avatar_with_mouse',
);
for (var i = 0; i < checkboxes.length; i++) {
if (document.getElementById(checkboxes[i])) setValue(checkboxes[i], document.getElementById(checkboxes[i]).checked);
@@ -18466,12 +18535,12 @@ var mainGC = function() {
var d = "
";
var s = "";
//--> $$001
- newParameterOn1 = d.replace("#", "06");
- newParameterOn2 = d.replace("#", "10");
- newParameterOn3 = d.replace("#", "03");
- newParameterLL1 = s.replace("#", "06");
- newParameterLL2 = s.replace("#", "10");
- newParameterLL3 = s.replace("#", "03");
+ newParameterOn1 = d.replace("#", "03");
+ newParameterOn2 = d.replace("#", "06");
+ newParameterOn3 = d.replace("#", "10");
+ newParameterLL1 = s.replace("#", "03");
+ newParameterLL2 = s.replace("#", "06");
+ newParameterLL3 = s.replace("#", "10");
//<-- $$001
function newParameterVersionSetzen(version) {
var newParameterVers = "= maxLength)
+ counterelement.innerHTML = `${length}/${maxLength}`;
+ else counterelement.innerHTML = `${length}/${maxLength}`;
+ counterspan.appendChild(counterelement);
+ if (options.anchor) options.anchor.append(counterspan);
+ else textarea.parentNode.append(counterspan);
+ textarea.addEventListener("keyup", function() {
+ limitedField(textarea, $(counterelement).find('span')[0], maxLength, options.showWords);
+ }, false);
+ textarea.addEventListener("change", function() {
+ limitedField(textarea, $(counterelement).find('span')[0], maxLength, options.showWords);
+ }, false);
+ }
+ function limitedField(editor, counterelement, maxLength, showWords) {
changed = true;
- var length = $(editor).val().replace(/\n/g, "\r\n").length;
- if (length >= limitNum) {
- counterelement.innerHTML = '' + length + '/' + limitNum + '';
- } else counterelement.innerHTML = length + '/' + limitNum;
+ var length = $(editor).val().length;
+ if (length >= maxLength)
+ counterelement.innerHTML = `${length}/${maxLength}`;
+ else counterelement.innerHTML = length + '/' + maxLength;
if (showWords) {
var wordsArr = $(editor).val().replace(/\n/g, ' ').split(' ');
var words = 0;
diff --git a/images/0.16/Screen01.jpg b/images/0.16/Screen01.jpg
new file mode 100644
index 00000000..0fe3a73b
Binary files /dev/null and b/images/0.16/Screen01.jpg differ
diff --git a/images/0.16/Screen02.jpg b/images/0.16/Screen02.jpg
new file mode 100644
index 00000000..2fc565d3
Binary files /dev/null and b/images/0.16/Screen02.jpg differ
diff --git a/images/0.16/Screen03.jpg b/images/0.16/Screen03.jpg
new file mode 100644
index 00000000..7d832d9a
Binary files /dev/null and b/images/0.16/Screen03.jpg differ
diff --git a/images/0.16/Screen04.gif b/images/0.16/Screen04.gif
new file mode 100644
index 00000000..7d5029a1
Binary files /dev/null and b/images/0.16/Screen04.gif differ
diff --git a/images/0.16/Screen05.gif b/images/0.16/Screen05.gif
new file mode 100644
index 00000000..052a92e9
Binary files /dev/null and b/images/0.16/Screen05.gif differ
diff --git a/images/0.16/Screen06.jpg b/images/0.16/Screen06.jpg
new file mode 100644
index 00000000..f11ff088
Binary files /dev/null and b/images/0.16/Screen06.jpg differ
diff --git a/images/0.16/Screen07.jpg b/images/0.16/Screen07.jpg
new file mode 100644
index 00000000..9c9a327a
Binary files /dev/null and b/images/0.16/Screen07.jpg differ
diff --git a/last_version.txt b/last_version.txt
index bc300b99..8eac30c3 100644
--- a/last_version.txt
+++ b/last_version.txt
@@ -1 +1 @@
-0.15.9
+0.16