Jump to content

Ingolme

Moderator
  • Content Count

    14,508
  • Joined

  • Last visited

  • Days Won

    112

Ingolme last won the day on May 13

Ingolme had the most liked content!

Community Reputation

1,039 Excellent

7 Followers

About Ingolme

  • Rank
    Coding Fox

Previous Fields

  • Languages
    Java, PHP, MySQL, Javascript, CSS, HTML

Contact Methods

  • Website URL
    http://www.thecodingfox.com/
  • ICQ
    0

Profile Information

  • Interests
    Web development, drawing, videogames, foxes.

Recent Profile Visitors

190,950 profile views
  1. Yes, it will prevent anybody from seeing the blocked paths, whether they're search engines or people.
  2. You can add a <meta> robots tag to the page telling search engines not to index the page. <meta name="robots" content="noindex nofollow">
  3. It is called as soon as that line of code is executed, which is whenever the file is included and as many times as the file has been included. It is not different than any other function call.
  4. As shown in this post, there isn't a good reason to use HTML attributes for events and they severely hinder code maintainability. In this scenario though, the global event variable wouldn't be needed since addEventListener passes it into the callback. I'd rewrite it like this: cTabButtons.forEach(tabButton => tabButton.addEventListener("click", function(e) { openCity(e, this.textContent); }));
  5. Your Javascript won't work because you're calling openCity() and assigning the return value of the function as the event handler, it seems you have little experience with using event listeners outside of HTML. Aside from that, using properties such as "onclick" for events is also a bad practice since it will overwrite any existing event listener on the element and can be overridden by other code written in the same way. This is why addEventListener() should be used to attach events. If you're going to use HTML attributes for event listeners, the only way to access information about the ev
  6. You should check the browser's Javascript console for errors. Most browsers let you see the console by pressing F12 on your keyboard. This will help you fix problems in the future. Right now, the error console would tell you that getElementsByID does not exist. The name of the method is getElementById. The "d" is lowercase and "Element" is not plural.
  7. If "event" actually is deprecated then by what means can you get information about the event inside the attribute? Personally, I think the bigger problem is using HTML attributes to attach Javascript events in the first place.
  8. Without the CSS, I can't reproduce the issue. There's no Javascript in the attached file either. You have some mistakes on this line of HTML which may cause some other, unrelated problems: <input type="radio" name="occupanc" value-"Part-time">Part-time<br>
  9. Since the major email clients do not support video, I imagine MailChimp is removing the code for it. I'm pretty sure audio will not work either. Mail clients are extremely primitive, they support text and images and little else. Even layout and styling options are limited.
  10. If you assign a jQuery result to a variable, you do not need the $() function to use it. This should work, though I haven't tested it so there might be a mistake somewhere. ( function( $ ) { var modal = $('#myModal'); var img = $('.myImg'); var modalImg = $('#img01'); var captionText = $("#caption"); img.click(function(){ modal.show(); modalImg.attr("src", $(this).attr("src")); captionText.html($(this).attr("alt")); }); var span = $(".close").first(); span.click(function(){ modal.hide(); }); } ( jQuery ) ); I do not see a
  11. The second condition only gets tested if the first one was false. Since 5 is actually greater than 2, it does not need to go on and test the second condition. If you want both conditions to be tested, you do not need the elif() statement. A second if() will do the job.
  12. A body selector should work fine. Something like this: body { border-top: 4px solid #3c4043; }
  13. Looking at the picture, my guess is that you should actually set it to "span 6" if you want each box to be half the width of the grid. If you are already using an ID selector in CSS on these elements, you will not be able to override it with a general selector like "body footer". ID selectors cannot be overridden except by other, more specific ID selectors.
  14. It's hard to guess what the problem could be without knowing that the HTML structure is. Do you have three footer elements or three elements wrapped by a footer?
  15. Preview images and text should only appear if the website has OpenGraph tags defined in the HTML
×
×
  • Create New...