scripts/leetcode.js
/* start upload will inject a spinner on left side to the "Run Code" button */
start upload will inject a spinner on left side to the "Run Code" button
start upload will inject a spinner on left side to the " Run Code " button
function startUpload() {
  try {
    elem = document.getElementById('leethub_progress_anchor_element')
    if (!elem) {
      elem = document.createElement('span')
      elem.id = "leethub_progress_anchor_element"
      elem.style = "margin-right: 20px;padding-top: 2px;"
    }
    elem.innerHTML = `<div id="leethub_progress_elem" class="leethub_progress"></div>`
    target = insertToAnchorElement(elem)
    startUploadCountDown();
  } catch (error) {
    console.log(error);
  }
}
function startUpload ( ) { try { elem = document . getElementById ( 'leethub_progress_anchor_element' ) if ( ! elem ) { elem = document . createElement ( 'span' ) elem . id = "leethub_progress_anchor_element" elem . style = "margin-right: 20px;padding-top: 2px;" } elem . innerHTML = ` ` target = insertToAnchorElement ( elem ) startUploadCountDown ( ) ; } catch ( error ) { console . log ( error ) ; } }
start upload will inject a spinner on left side to the "Run Code" button
start upload will inject a spinner on left side to the " Run Code " button
// start the countdown // generic exception handler for time being so that existing feature doesnt break but // error gets logged