Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. P

    Why are these hover transitions not working?

    Thanks Antero. The color hover seems to be working, but my problem is with the time. It seems the 0.3s ease-in-out isn't working. Even if I use !important, it doesn't seem to change.
  2. P

    Why are these hover transitions not working?

    I am trying to get the hover feature to have a slower and smoother transition on the ul.navbar li a and the .button-apt, but for some reason these are not working. I cannot diagnose the problem. * { margin: 0; padding: 0; box-sizing: border-box; } body { font-size: 1.5rem...
  3. P

    Python Django. Filtering room search queries by room_type

    I am trying to make a basic hotel reservation system with Django. I want the users to be able to input dates on an index page and see a list of available room_types for the selected dates. The page should then direct the users to a reservation page for that room type (make_reservation.html...
  4. P

    JavaScript I am trying to make a blackjack game that shows scores responsively, but I can't get it to work factoring in the Ace

    I have made a few blackjack tutorials, and I am now trying to build my own. I want the game to be responsive and show players' scores in real time, but I can't figure out what to do about the Ace. The code that I currently have doesn't reduce the Ace to 1 in the HTML file when the player goes...
  5. P

    Python Flask: How do you loop over items in a database with SQLAlchemy?

    Precisely. This is jinja syntax used with the flask module. The {% for a in b %} is how to loop over python lists in Jinja.
  6. P

    Python Flask: How do you loop over items in a database with SQLAlchemy?

    Ah, so it needs to be book.title rather than books.title. In other words, whatever you refer to the items as in the loop. Perfect. Thank you! I am still having some HTML issues, but I think it's just a matter of playing with the syntax now.
  7. P

    Python Flask: How do you loop over items in a database with SQLAlchemy?

    Hi, I am trying to loop over database entries for books and display them on an e-commerce page. The books are stored in an SQLAlchemy database with information on title, author, and price. I want to loop through the database and display the information for each book object in the database...
  8. P

    JavaScript How do I loop through an array and display each item in the HTML page on a new line?

    Thanks menator. This only puts the most recently added item in the h3textItems field. It does not return all of the items in the list. Is there a way to get all the items in the list to appear?
  9. P

    JavaScript How do I loop through an array and display each item in the HTML page on a new line?

    Thank you for your reply. Sorry, I should have included the rest of the code. I am grabbing the h3textItems element from the HTML already. This is working, but it doesn't remove the previous content in the h3textItems div. It is appearing as: item1 item1 item2 item1 item2 item3 Is there a...
  10. P

    JavaScript How do I loop through an array and display each item in the HTML page on a new line?

    Hi, I am new to JS from Python. I am trying to create a To Do List in JS, and I am trying to loop over an array that contains the added items. I want each item in the array to appear on a new line in the web app. The best I can get is for the items to be displayed like this item1,item2,item3 I...
Back
Top Bottom