Skip to content

Instantly share code, notes, and snippets.

View bijancamp's full-sized avatar
💫
Refactoring cognition

Bijan "Biji" Camp bijancamp

💫
Refactoring cognition
View GitHub Profile
@bijancamp
bijancamp / labFocusing.js
Last active February 24, 2024 16:18
Improved full screen experience in Microsoft Applied Skills assessments
// Hide all elements except the VM and the right-hand instruction pane (use the
// "Split Windows" option in the hamburger menu of the pane to pop it out). Pass
// `true` to also "hide" the bottom section containing the "Cancel Assessment"
// and "Submit Assessment" buttons (it can still be accessed by scrolling down
// on the page).
function focusLab(hideBottomAssessmentSection) {
elementIds = [
"ms--primary-nav",
"ms--secondary-nav",
"article-header",