Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anybody got a working code for jko in 2023? #80

Open
NanikaWEEB opened this issue Oct 22, 2023 · 3 comments
Open

Anybody got a working code for jko in 2023? #80

NanikaWEEB opened this issue Oct 22, 2023 · 3 comments

Comments

@NanikaWEEB
Copy link

No description provided.

@bjgonzal
Copy link

bjgonzal commented Nov 7, 2023

Try this one been working on it for a while let me know if if works: // Safely attempt to set the completion status.
if (typeof API_1484_11 !== 'undefined' && typeof API_1484_11.SetValue === 'function') {
API_1484_11.SetValue('cmi.completion_status', 'completed');
}

// Cache the potentially repeated DOM lookups.
var courseHeaders = document.getElementsByName("courseheader");
if (courseHeaders.length > 0) {
var contentDocument = courseHeaders[0].contentDocument || courseHeaders[0].contentWindow.document;
var elementC = contentDocument.getElementById("c");

// Check if element exists and has a submit function before calling it.
if (elementC && typeof elementC.submit === 'function') {
    elementC.submit();
}

}

@tylerdotrar
Copy link

Regarding @bjgonzal's post, this code didn't manage to give me the certificate but it would at least auto-complete the video/learning sections.

As always, just start the section, hit F12, and paste into the developer console:

// Safely attempt to set the completion status.
if (typeof API_1484_11 !== 'undefined' && typeof API_1484_11.SetValue === 'function') {
API_1484_11.SetValue('cmi.completion_status', 'completed');
}
// Cache the potentially repeated DOM lookups.
var courseHeaders = document.getElementsByName("courseheader");
if (courseHeaders.length > 0) {
var contentDocument = courseHeaders[0].contentDocument || courseHeaders[0].contentWindow.document;
var elementC = contentDocument.getElementById("c");
// Check if element exists and has a submit function before calling it.
if (elementC && typeof elementC.submit === 'function') {
    elementC.submit();
}
}

@BryPR
Copy link

BryPR commented Mar 13, 2024

I deleted the comment. I don't know how to delete your name tho.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants