PageSourceSearch

https://bigbrain.vercel.app/assets/scripts/learn/learn.js

js bigbrain.vercel.app collected 2026-10-03 06:16:26 UTC 2,571 bytes, 1 lines download raw bytes

1console.log("Looking under the hood? Reach us on discord to help!");var getCourseID=null,finishLesson=null,finishedLessonsLocal=[];!function(){const e=firebase.firestore();function n(e){return e.children("summary").text()+getCourseID()}function o(){let e=[];$(".sidebar-nav").find("details").filter("[open]").each((function(o){e[o]=n($(this))})),window.localStorage.setItem("toggledOnSaved",e)}function t(e){return $(`a[href='${"#"+e}'`).first()}function s(n){const o=function(){const e=window.location.href,n=e.indexOf("#"),o=e.indexOf("?");return-1!=o?e.substring(n+1,o):e.substring(n+1)}(),s=auth.currentUser,i=e.collection("users").doc(s.uid).collection("courseData").doc(getCourseID());n?finishedLessonsLocal.includes(o)||(finishedLessonsLocal.push(o),finishedLessonsLocal.forEach(finishLesson)):(finishedLessonsLocal=finishedLessonsLocal.filter(e=>e!=o),function(e){const n=t(e).text();t(e).text(n.replace("✅ ",""))}(o)),i.update({finishedLessons:finishedLessonsLocal}).catch((function(e){alert(e)}))}null==window.localStorage.getItem("toggledOnSaved")&&(console.log("Creating local save: toggled."),window.localStorage.setItem("toggledOnSaved",[])),getCourseID=function(){const e=window.location.href,n=e.indexOf("/learn/")+7,o=e.indexOf("/#/"),t=e.indexOf("#/");return-1!=o?e.substring(n,o):e.substring(n,t)},finishLesson=function(e){const n=t(e).text();n.includes("✅")||t(e).text("✅ "+n)},window.$docsify={name:'<a id="navbar-title" href="/me">Me</a>',homepage:"home.md",loadSidebar:!0,subMaxLevel:2,auto2top:!0,alias:{".*/_sidebar.md":"/_sidebar.md"},tabs:{persist:!0,sync:!1},pagination:{previousText:"Previous Lesson",nextText:"Next Lesson",crossChapter:!0,crossChapterText:!0}},window.$docsify=window.$docsify||{},window.$docsify.plugins=[function(e){e.afterEach((function(e,n){
1n(e+'\n        <button id="fin">Mark As Finished</button>\n        <button id="unfin" class="gray">Mark As Unfinished</button>\n        ')})),e.doneEach((function(){finishedLessonsLocal.forEach(finishLesson),function(){let e=window.localStorage.getItem("toggledOnSaved");$(".sidebar-nav").find("details").each((function(){e.includes(n($(this)))&&$(this).attr("open","")})),$(".sidebar-nav .active").parents().eq(1).attr("open","")}();const e=document.querySelector("#fin"),t=document.querySelector("#unfin");e.addEventListener("click",()=>{s(!0)}),t.addEventListener("click",()=>{s(!1)}),$(".sidebar-nav").find("details").click((function(){setTimeout(o)}))})),e.mounted((function(){auth.currentUser&&renderLearn(auth.currentUser)}))}].concat(window.$docsify.plugins||[])}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.