elischutze / grrrrl

grrrrl is a project to compile tech talks by underrepresented communities in the technology industry in a website.
MIT License
2 stars 3 forks source link

Create some sample video data to create site #2

Open elischutze opened 7 years ago

elischutze commented 7 years ago

Create a json file that holds some data about videos (with a link!) so that the page can come together for now.

tas12 commented 7 years ago

I'll give this a go 👍

tas12 commented 7 years ago

Should the data be stored in an object in a .js file for now instead of a .json file? If we use a json object we'd have to set up a server to make xhr requests to (not sure which language this would be in and how comfortable beginners would be with that).

With a js file, the sample data could be accessed in this way:

    <script type="text/javascript" src="./sampleData.js"></script>
    <script type="text/javascript">
      // 'sample' is the object defined in sampleData.js
      sample.data.forEach(video => {
       console.log(video.title)
      })
    </script>
elischutze commented 7 years ago

@tas12 either works for now !