Jump to content

Ingolme

Moderator
  • Posts

    14,894
  • Joined

  • Last visited

  • Days Won

    176

Everything posted by Ingolme

  1. The invalid column name might be because of the quotation marks. Try wrapping UserID in backticks `UserID`
  2. CSS can do it, it's pretty simple. You can read about the CSS position:sticky; in this tutorial page: https://www.w3schools.com/css/css_positioning.asp
  3. The forums have always been community driven. Answers are provided by other forum members. In recent years the forums have become much less active so there are fewer people available to answer questions.
  4. Here are some tweaks I made to the CSS to get it to align to the right. You just need to replace the existing .topnav, .topnav a and .dropdown rules with these ones: .topnav { text-align: right; overflow: hidden; background-color: #333; } .topnav a { display: inline-block; vertical-align: middle; color: #f2f2f2; text-align: center; padding: 14px 16px; text-decoration: none; font-size: 17px; } .dropdown { display: inline-block; vertical-align: middle; overflow: hidden; }
  5. If they're greyscale, all the images will have the same value for the red, green and blue channels. CSS doesn't let you tint the background images. If the source images are already visibly red, or cyan, it should work as it is. You can use <canvas> with Javascript to composite the images, but it's not exactly simple. You need to learn how to program on the canvas, then you can grab pixel data from each of the images and composite them manually.
  6. The image file needs to have been square to begin with.
  7. I'd say there's not much left in it. The Discord channel is where everyone went.
  8. Ingolme

    Schema - Help

    I cannot allow you to post links to your website. For adding schema, look online for documentation about your CMS, which is probably Wordpress. Here's a schema plug-in for Wordpress: https://wordpress.org/plugins/schema/
  9. A simple solution would be to allow horizontal scrolling on the container and then make the image size larger on small screens. For this to work, each comic panel needs be within a third of the width of the image. Different spacing between the panels might cause them to not line up perfectly. HTML: <div class="strip"> <img src="comic-strip.png" alt="Comic strip"> </div> CSS: .strip { overflow: auto; } .strip img { display: block; width: 100%; } @media screen and (max-width:768px) { .strip-img { width: 300%; } }
  10. On Windows, most browsers use the F12 key to open the element inspector. You can also find it by right-clicking anywhere on a page and selecting "Inspect" from the context menu.
  11. It doesn't take space when the display is "none", you should use the element inspector to see which element is actually taking up the space.
  12. There must be other code with higher precedence putting a border on the image, or the border is on a parent element of the image, or the border is actually part of the image file. Without seeing the rest of the code there's no way to know.
  13. None of that HTML does anything on its own. We would need to see what the Javascript code looks like.
  14. This is one way to do it. if(location.search) { location.href = location.pathname; } It causes a page reload, though. The history API lets you change the URL without reloading, but I've seen it misused a lot, causing websites to not function as expected. https://developer.mozilla.org/en-US/docs/Web/API/History/pushState
  15. Just check the tutorial page again: https://www.w3schools.com/js/js_loop_for.asp This code is trying to access HTML elements. You must make sure that this code doesn't run until after those elements have been loaded, otherwise it won't find them.
  16. You need to call setLogger() logger.log(LogStatus.INFO, "create account test8"); DataDriven dataDriven = new DataDriven(); dataDriven.setLogger(logger); dataDriven.launchExcelFile("TestData.xls", "profiles");
  17. You can't. They are completely different objects with no connection to each other. If you put the string "Mike" into object A and then ask object B for the string you won't find it there. When you write setName("Mike") it's a shorthand for calling this.setName("Mike") and this is an object. Then you have a completely different object called getData. You haven't written getData.setName("Mike") so it won't give you anything. For your test to make sense you need to write this code: public class CreateAccount { @Test public void test1() { GetData getData = new GetData(); getData.setName("Mike"); String name = getData.GetMyData(); System.out.println("get name: " + name); } } Why exactly do you want two different objects to point to the same data?
  18. You created a new GetData instance on this line: GetData getData = new GetData(); It currently has nothing in it because you only just created it. You need to call setName() to give it a value before you can read it.
  19. You need a loop. You can use indexOf() and go changing the initial offset until you've found all the matches. When it returns -1 there are no more matches. String words = "I go to summer school. I also go to winter school"; int counter = 0; int start = words.indexOf("e"); while(start > -1) { counter++; start = words.indexOf("e", start + 1); } System.out.println("counter " + counter);
  20. You typed the class attribute incorrectly. You have <h1 class="message-texst"> but the code is looking for querySelector(".message-text")
  21. You have to delimit the table name with `backticks` instead of 'quotation marks'
  22. Most likely your code is running before the page has finished loading which means the element hasn't been created yet. You have to wait until the document has finished loading, which can be done with the DOMContentLoaded event. window.addEventListener("DOMContentLoaded", () => { var pane = document.getElementsByClassName("timeformat")[0]; alert (pane); });
  23. I'm not subscribed to the New York Times, so I can't see the articles. You can start by testing different libraries to see which ones are best suited for your project. Most likely none of them will be perfect but they should be a good starting point. After you have a library you will most likely need to write some additional code yourself or hire someone to do it. There's a tradeoff between ease-of-use and specialization. If you're satisfied with how a library works out of the box you can just use it as it is. If you want code specialized for your exact use case then you'll need somebody with a minimum level of programming skills. New York Times is a very large company, I would imagine that they've paid developers to code things exactly to their specifications.
  24. <form> is very well supported on all browsers. I'm not sure who maintains caniuse.com. I prefer to check MDN for compatibility: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#browser_compatibility
×
×
  • Create New...