Giter Site home page Giter Site logo

frontendvoordesigners's Introduction

frontendvoordesigners's People

Contributors

jack792 avatar koopreynders avatar

frontendvoordesigners's Issues

JSON file

request.open('GET', 'http://dennistel.nl/movies', true);

Jouw website doet het niet online. Dat komt omdat de json nu niet op https staat en wordt geblokkeerd:
XMLHttpRequest cannot load http://dennistel.nl/movies. Not allowed to request resource

Om ervoor te zorgen dat je website het zometeen wel doet, moet je het json file downloaden en bij je project in een map opslaan. Als je dat file gebruikt voor je website doet hij het wel online.

More info / less info

button.textContent = 'LESS INFO';

Hier kun je een if-else gebruiken.
if(button.textContent == 'LESS INFO'){
button.textContent = 'MORE INFO';
}else{
button.textContent = 'LESS INFO'
}

Wat veiliger is, is om te kijken welke class actief is. Zodat de button de goede tekst toont.
bv
if(p.classList.contains('down')){
button.textContent = 'LESS INFO';
}

Kijk hier wat voor methodes je hebt voor de classList
https://developer.mozilla.org/en-US/docs/Web/API/Element/classList

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.