Jump to content

Ingolme

Moderator
  • Content Count

    14,366
  • Joined

  • Last visited

  • Days Won

    94

Everything posted by Ingolme

  1. Ingolme

    Why use em?

    Source: https://webdesign.tutsplus.com/tutorials/comprehensive-guide-when-to-use-em-vs-rem--cms-23984
  2. Xpath can't read Java variables. You have to put the variable outside of the string. "//*[contains(text(),'" + x + "')]"
  3. What errors were being shown?
  4. Is this for homework? It's pretty obvious to me, but I wouldn't like to help you cheat at your homework, you wouldn't learn anything. A logical error is when the program compiles and runs just fine, but does not do what you want it to. To identify the logical error in your code, look at what the program is actually doing and compare it to what you want the program to do.
  5. The vh unit is a proportion of the available space in the window. 100vh should fill the window exactly with no scrollbars. If you are getting any scrollbars with 100vh, it's because you have padding, margins or other elements outside of the current one.
  6. Ingolme

    John

    Assuming that all of the table have the same DateTime values and the same number of rows, the query is not too difficult. If the different tables have different date times it becomes more complicated. The simple query would be like this: INSERT INTO `NewTable` (`DateTime`, `Object1Value`, `Object2Value`, `Object3Value`) SELECT t1.`DateTime`, t1.`Object1Value`, t2.`Object2Value`, t3.`Object3Value` FROM `Table1` AS t1 JOIN `Table2` AS t2 ON t2.`DateTime` = t1.`DateTime` JOIN `Table3` AS t3 ON t3.`DateTime` = t1.`DateTime` This may be very slow depending on how many rows there are to copy from the tables.
  7. If you have multiple elements, you have to call the function multiple times. It could be done in a loop. var elements = document.getElementsByClassName("myClass"); for(var i = 0; i < elements.length; i++) { w3CodeColor(elements[i]); }
  8. Ingolme

    Error in Lesson

    The code from the TryIt example is actually running live in the browser, it is real output. 1, 3, 5 and 7 are correct. Every second node is whitespace.
  9. You'll have to learn to use the Canvas API. The simplest way to make a drawing application using canvas is to draw circles on each mousemove event while the mouse button is down, or on phones, using the touchstart, touchmove and touchend events. Once you managed to make a simple drawing application, then comes the difficult part: writing software to recognize shapes. There is an entire field of science dedicated to solving this one problem, it is not an easy task. It seems neural networks are the most common approach to solving it.
  10. This would take me hours. You have to replace all "\x##" in the strings the the ASCII character of that value. Then put line breaks on opening braces, closing braces and semi-colons. Then you have to indent all the code. Perhaps there are some automatic code deobfuscators out there but I've never looked for one. Why do you need to decode this? I'd sooner write new software from scratch then spend the time on this.
  11. If you read the thread instead of just the title, the question was regarding running Javascript from a local file.
  12. The file:/// protocol would be used for this, but browsers don't allow websites to load Javascript files from your filesystem for security reasons.
  13. Please do not reply to old topics.
  14. Wikipedia and other sources use images to represent mathematical expressions on a page. HTML is not well equipped to represent them. There is an XML-based language called MathML, but it is not well supported by browsers.
  15. You have a semi-colon ; in the middle of the statement which is causing the problem. data[i].eosTxPort; + "<br>"
  16. If instead of bootstrap you use CSS, you can use the flexbox: https://www.w3schools.com/css/css3_flexbox.asp With the align-items CSS property, you can make all of the items in the flexbox have the same height. To display a different amount of items per row, you can enable flex-wrap and give each box a percentage width using media queries.
  17. There is already a topic for this question here:
  18. It is valid HTML, but it would be better for search engines if the content between the <header> tags was also wrapped in <h2> tags. The tags in the article block would then be <h3>.
  19. It looks like you have two different variables, $oldnode and $oldNode.
  20. I'd suggest using an iframe instead.
  21. CSS preprocessors cannot do anything more than native CSS does, because they compile to native CSS. Only Javascript can do this.
  22. Create email accounts? That is pretty complicated, I'm afraid I wouldn't know where to begin with that.
  23. HTML cannot send emails, but a server-side programming language can. PHP is one of the easiest to learn. You can learn how to send mail from PHP here: https://www.w3schools.com/php/func_mail_mail.asp You can learn how to gather form data from an HTML page here: https://www.w3schools.com/php/php_forms.asp
  24. What is the path to your video file and what does your HTML look like?
  25. It's a mistake. Javascript does not require a semi-colon at the end of a line, but it is preferable to put one because you never know when your script might have it line breaks removed.
×
×
  • Create New...