function load() {
  parseCookie();

  document.getElementById("sort-dir").value = sortDir;
  document.getElementById("sort-by").value = sortBy;
  document.getElementById("limit").value = totalElems;
  document.getElementById("pg-limit").value = numElemsPerPage;
  document.getElementById("find-author").value = showingAuthor;

  const aboutLang = document.getElementById("about-language");
  languageDropdown(aboutLang);
  aboutLang.onchange = function() {
    var icon = document.getElementsByClassName("plus")[0];
    var text = document.getElementsByClassName("dropdown-text")[0];
    var textContent = document.getElementsByClassName("dropdown-text-content")[0];

    translateDropdown('about-1', 'about-1', 'about-language', 'about-curr-lang', 0); 
    if(icon.classList.contains("clicked")) {
        text.style.height = (textContent.clientHeight + 60) + "px";
    } 
    translateDropdown('about-2', 'about-2', 'about-language', 'about-curr-lang', 0);
    if(icon.classList.contains("clicked")) {
        text.style.height = (textContent.clientHeight + 60) + "px";
    } 
  }
  login();
}
/* Loads page based on comment settings from cookies, loads comments, and populates language dropdowns. */
Loads page based on comment settings from cookies, loads comments, and populates language dropdowns.
Loads page based on comment settings from cookies loads comments and populates language dropdowns .
function load() {
  parseCookie();
  document.getElementById("sort-dir").value = sortDir;
  document.getElementById("sort-by").value = sortBy;
  document.getElementById("limit").value = totalElems;
  document.getElementById("pg-limit").value = numElemsPerPage;
  document.getElementById("find-author").value = showingAuthor;
  const aboutLang = document.getElementById("about-language");
  languageDropdown(aboutLang);
  aboutLang.onchange = function() {
    var icon = document.getElementsByClassName("plus")[0];
    var text = document.getElementsByClassName("dropdown-text")[0];
    var textContent = document.getElementsByClassName("dropdown-text-content")[0];
    translateDropdown('about-1', 'about-1', 'about-language', 'about-curr-lang', 0); 
    if(icon.classList.contains("clicked")) {
        text.style.height = (textContent.clientHeight + 60) + "px";
    } 
    translateDropdown('about-2', 'about-2', 'about-language', 'about-curr-lang', 0);
    if(icon.classList.contains("clicked")) {
        text.style.height = (textContent.clientHeight + 60) + "px";
    } 
  }
  login();
}
function load ( ) { parseCookie ( ) ; document . getElementById ( "sort-dir" ) . value = sortDir ; document . getElementById ( "sort-by" ) . value = sortBy ; document . getElementById ( "limit" ) . value = totalElems ; document . getElementById ( "pg-limit" ) . value = numElemsPerPage ; document . getElementById ( "find-author" ) . value = showingAuthor ; const aboutLang = document . getElementById ( "about-language" ) ; languageDropdown ( aboutLang ) ; aboutLang . onchange = function ( ) { var icon = document . getElementsByClassName ( "plus" ) [ 0 ] ; var text = document . getElementsByClassName ( "dropdown-text" ) [ 0 ] ; var textContent = document . getElementsByClassName ( "dropdown-text-content" ) [ 0 ] ; translateDropdown ( 'about-1' , 'about-1' , 'about-language' , 'about-curr-lang' , 0 ) ; if ( icon . classList . contains ( "clicked" ) ) { text . style . height = ( textContent . clientHeight + 60 ) + "px" ; } translateDropdown ( 'about-2' , 'about-2' , 'about-language' , 'about-curr-lang' , 0 ) ; if ( icon . classList . contains ( "clicked" ) ) { text . style . height = ( textContent . clientHeight + 60 ) + "px" ; } } login ( ) ; }
Loads page based on comment settings from cookies, loads comments, and populates language dropdowns.
Loads page based on comment settings from cookies loads comments and populates language dropdowns .