chore: archive A-WP-Notes v3.0.2 — minimalist parallel fork
Imports the v3.0.2 line of A-WP-Notes as it existed on M5 at: Local Sites/wordpress/public/wp-content/plugins/a-wp-notes/ This is a deliberately minimal parallel fork of the plugin, distinct from the v1.2.0 line in ranger/a-wp-notes. It carries only the core note-taking functionality: wp-notes.php — plugin bootstrap + admin UI inc/wp-notes-display.php — note rendering inc/wp-notes-about.php — About page inc/wp-notes-feedback.php — feedback module inc/wp-notes-styles.php — style enqueues inc/wp-notes-updater.php — self-hosted updater stub inc/admin-bar.php — admin bar integration js/wp-notes-feedback.js — feedback front-end js/Chart.js — charting (bundled) assets/wp-notes-banner.jpg — plugin banner The AI ecosystem (chat, personalities, MCP), speed-test system, OS info pages, and the bulk of the v1.2.0 / v2.0.x feature surface are intentionally absent — this fork was created by copying the plugin to a second WP install and trimming back to a lighter baseline. Archived for comparison and parallel-line testing. No further development is planned on this line; the active line continues at v1.2.0 in ranger/a-wp-notes.
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
// wp-notes-feedback.js
|
||||
jQuery(document).ready(function($) {
|
||||
console.log('wp-notes-feedback.js loaded');
|
||||
|
||||
// Handle feedback form submission
|
||||
$('#wp-notes-feedback-form').on('submit', function(e) {
|
||||
e.preventDefault();
|
||||
var formData = $(this).serialize();
|
||||
|
||||
$.ajax({
|
||||
url: wp_notes_feedback_vars.ajax_url,
|
||||
type: 'POST',
|
||||
data: formData + '&action=wp_notes_submit_feedback&nonce=' + wp_notes_feedback_vars.nonce,
|
||||
success: function(response) {
|
||||
if (response.success) {
|
||||
alert(response.data);
|
||||
$('#wp-notes-feedback-form')[0].reset();
|
||||
$('#feedback-form-improve').hide();
|
||||
} else {
|
||||
alert('Error: ' + (response.data || 'Unknown error occurred'));
|
||||
}
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
alert('Server error: ' + error);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Handle help form submission
|
||||
$('#wp-notes-help-form').on('submit', function(e) {
|
||||
e.preventDefault();
|
||||
var formData = $(this).serialize();
|
||||
|
||||
$.ajax({
|
||||
url: wp_notes_feedback_vars.ajax_url,
|
||||
type: 'POST',
|
||||
data: formData + '&action=wp_notes_submit_help&nonce=' + wp_notes_feedback_vars.nonce,
|
||||
success: function(response) {
|
||||
if (response.success) {
|
||||
alert(response.data);
|
||||
$('#wp-notes-help-form')[0].reset();
|
||||
$('#feedback-form-help').hide();
|
||||
} else {
|
||||
alert('Error: ' + (response.data || 'Unknown error occurred'));
|
||||
}
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
alert('Server error: ' + error);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Function to toggle the display of a section
|
||||
function toggleSection(sectionId) {
|
||||
var section = document.getElementById(sectionId);
|
||||
if (section) {
|
||||
if (section.style.display === "none") {
|
||||
section.style.display = "block";
|
||||
} else {
|
||||
section.style.display = "none";
|
||||
}
|
||||
} else {
|
||||
console.error("Element with ID " + sectionId + " not found.");
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user