Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

100
Views
how do I create a Modal CSS that will work with this JS code

Not sure how to create model for this codes of java script. need to display a list with saved names and then be able to select favorute

function showFavorites() {
    favoritesList = JSON.parse(localStorage.getItem("saveData"));
    fetch(favoritesList[0].url)
      .then(response => response.json())
      .then(data => {
        console.log(data);
      });
  }

        
  function saveFavorites(item) {
    var flag = false;
    for (let i = 0; i < savedLaunches.length; i++) {
      if (savedLaunches[i].url == item.url) {
        flag = true;
      }
    }
    if (flag) {
      return;
    }
    savedLaunches.push(item);
    localStorage.setItem("saveData",JSON.stringify(savedLaunches));
  }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!