Jump to content

Ingolme

Moderator
  • Content Count

    14,116
  • Joined

  • Last visited

  • Days Won

    75

Everything posted by Ingolme

  1. Ingolme

    Node Naming

    What are you using to parse this XML file?
  2. Just put the code for one of the cards inside one of the <div class="column"> elements.
  3. Ingolme

    Columns positioning

    Yes, you're right, I missed that. In that case, the only change necessary is to set align-items to flex-start.
  4. I see. You will need some special logic to run between Thursday and Saturday. It will use 60 hours but only after 12pm on Thursday. var THURSDAY = 4; var minDate = new Date(); var offset = 36; if(minDate.getDay() > THURSDAY || minDate.getDay() == THURSDAY && minDate.getHours() >= 12) { // Add 60 hours instead of 36 after noon on Thursday offset = 60; } minDate.setHours(minDate.getHours() + offset);
  5. Please do not reply to old topics.
  6. I thought you did not want Saturday to be available after noon on Thursday. That would mean you have to extend the minimum permitted date to 60 hours from the current time.
  7. Ingolme

    Columns positioning

    Instead of grid, you could use flex box and set align-items to stretch. .wrapper { display: flex; align-items: stretch; } .sidebar { background-color: green; width: 10%; flex: 1 1 auto; } .archive-loop { background-color: red; width: 70%; flex: 1 1 auto; }
  8. Please keep your question to one topic. You can continue discussion in the following topic:
  9. It seems like Date.parse() returns the timestamp in GMT and so does the Date() constructor, which results in it selecting the previous day. Specifying hours seems to solve the issue. You can omit Date.parse() and just use the date objects themselves for comparison. var chosenDate = new Date(this.val() + " 00:00:00"); var minDate = new Date(); minDate.setHours(minDate.getHours()+36); if(chosenDate < minDate) {
  10. Yes, you can open an HTML file from the command line, but you cannot run commands from an HTML file.
  11. You forgot a closing </div> tag for the <div class="w3-top"> element, so the entire site is inside the nav bar which is attached to the top of the window and does not scroll.
  12. You cannot run commands from an HTML file.
  13. The <img> tag is self-closing, so it does not need a closing tag. Ending the tag with " />" is only necessary in XML, not in HTML.
  14. jQuery is being replaced by native Javascript features. It's probably for the best not to encourage its use. See section "JS vs jQuery" section of the W3Schools Javascript tutorial: https://www.w3schools.com/js/js_jquery_selectors.asp
  15. Please do not reply to old topics.
  16. Ingolme

    $xml->xpath

    Where was $xml initialized? I can't say where the error is if I don't know what library you're using to read the XML.
  17. I would recommend getting very familiar with Javascript syntax and data structures before moving on to Node.js, but that's just my recommended approach. Some other people might recommend learning Javascript while using Node.js as a platform to learn it and I wouldn't say it's an invalid approach.
  18. Ingolme

    Help with Tab

    It has to be in a <script> tag below the HTML that contains the active button, just as in the W3Schools example.
  19. Float does not work with absolute positioning, you should use the top, right, bottom and left rules to move an element with absolute position. Instead of left:16px, you would use right:16px to move it 16px from the right of the container.
  20. Ingolme

    Help with Tab

    The code works OK for me, but you have to put the "defaultOpen" line of Javascript further down in your code than the element you are trying open. It can't be in the external Javascript file if that file is being loaded in the head of the document.
  21. The link you're looking for is actually a small unremarkable one labeled "MySQL Community (GPL) downloads." They just try to make it difficult to find to encourage people to buy the enterprise version.
  22. Please do not reply to old topics.
  23. Browsers transform colors from the style attribute. I think Firefox tends to represent them in rgb() format. You also will have to use backgroundColor instead of just background because that's the property being used by the element. For the purpose of debugging, try printing out the value to see what it has: alert(tbl.rows[1].cells[1].style.backgroundColor);
  24. On which page is the example? If there is a mistake on the site, click on the "REPORT ERROR" link at the bottom of the page that has the mistake so that the W3Schools staff will see it.
  25. Ingolme

    form in html

    This is not HTML. You will have to find the documentation for whichever template language this belongs to.
×
×
  • Create New...