-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #260 from Skill-Forge-Project/development
Skill Forge v1.4.2 patch
- Loading branch information
Showing
6 changed files
with
43 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,9 @@ FROM python:latest | |
|
||
# Image Labels. Update values for each build | ||
LABEL Name="Skill-Forge" | ||
LABEL Version="1.4.1" | ||
LABEL Version="1.4.2" | ||
LABEL Release="public" | ||
LABEL ReleaseDate="05.10.2024" | ||
LABEL ReleaseDate="06.10.2024" | ||
LABEL Description="Skill Forge is a open-source platform for learning and practicing programming languages." | ||
LABEL Maintainer="Aleksandar Karastoyanov <[email protected]>" | ||
LABEL License="GNU GPL v3.0 license" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
function reportReasonHandle() { | ||
const firstReportButton = document.getElementById('reportQuestWithTextarea'); | ||
const secondReportButton = document.getElementById('reportQuest'); | ||
const reportReasonTextarea = document.getElementById('report-reason'); | ||
const reportUrl = document.getElementById('report-url').dataset.url; // Get the base report URL | ||
|
||
firstReportButton.addEventListener('click', function() { | ||
reportReasonTextarea.style.display = 'block'; // Show the textarea | ||
firstReportButton.style.display = 'none'; // Hide the first button | ||
secondReportButton.style.display = 'block'; // Show the submit report button | ||
reportReasonTextarea.focus(); // Focus the textarea | ||
}); | ||
|
||
secondReportButton.addEventListener('click', function() { | ||
const reportReason = reportReasonTextarea.value.trim(); | ||
|
||
// Validate the input | ||
if (reportReason.length < 20) { | ||
alert('Please provide a report reason with at least 20 characters length.'); | ||
} else { | ||
// Redirect with the report reason | ||
location.href = reportUrl + encodeURIComponent(reportReason); | ||
} | ||
}); | ||
} | ||
|
||
// Call the function after the DOM is fully loaded | ||
document.addEventListener('DOMContentLoaded', reportReasonHandle); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[metadata] | ||
name = Skill-Forge | ||
version = 1.4.1 | ||
release_date = 05.10.2024 | ||
version = 1.4.2 | ||
release_date = 06.10.2024 | ||
description = Skill Forge is a open-source platform for learning and practicing programming languages. | ||
author = Aleksandar Karastoyanov | ||
author_email = [email protected] | ||
|