Jump to content

Funce

Moderator
  • Posts

    602
  • Joined

  • Last visited

  • Days Won

    19

Everything posted by Funce

  1. Have you seen this How-To? https://www.w3schools.com/howto/howto_js_copy_clipboard.asp And I can't see the content of the link you posted. Could you paste some code?
  2. What specifically is the issue with this try-it?
  3. If you could post some code, that would allow us to troubleshoot with you. The screenshot does show your issue quite well.
  4. Well, I haven't heard about this before. What script are you referring to?
  5. That looks great! You've done a good job on it.
  6. You can find the code for the social media template here. If you want to look at the other templates, they are available here. In terms of a local webserver, I use xampp for any web testing I do.
  7. Well it would help if you posted a section of your code to help us troubleshoot.
  8. Funce

    php code

    Hi Sabrine! When posting code try using the code block feature so we can read it easier. (Try editing your post) Perhaps a more step-by step approach would be in order. Are you in some way confused by any of these sections? Do any of these sections not function as you thought they would?
  9. Sorry, that was my bad. I didn't read the whole thing. That <img/> tag works fine in my test environment. Could you paste in a section of code so that I can see what's up?
  10. Do you want the code or the image, because I can see the image just fine in your screenshot.
  11. So you've got 2 steps here you want to make sure of. Send Data From app using a Form Receive Data on Server and log to console to verify success. Where are you stuck at?
  12. This seems.... specific. Are you looking for a shorthand notation? Or does this relate to another project. Happy to go through any part of how the CSS works in this case. I'm not aware of any alternate forms of styling with attributes/pseudo-selectors.
  13. Hi ShipMate, There isn't very many tools that can tell you what's wrong with an HTML document short of matching beginning and ending tags. Your source tag is self-terminating, you don't need </source> The only thing left to do is make sure there is CharleyFox.jpg inside your /images folder.
  14. You could create a function to check if the number can be converted. function isNumeric(n) { return !isNaN(parseFloat(n)) && isFinite(n); } Then all you need to do is if(isNumeric(someNumber)) { //You have a number } else { //You don't have a number } Implement parseInt as required. Use console.log as specified in your post.
  15. Hi ShipMate, Using the poster attribute does sound like the best fit, as you say. I see where your error is, you've got two video tags in that bit of code. You'll need to combine them. The source tag is also self-closing. <div style="text-align: center;"><br /> <video width="500" controls="" poster="/images/CharleyFox.jpg"> <source src="Rommel-Attack.mp4" type="video/mp4" /> </video> </div> What happens when you try the above code? Also, if you'd like to paste code on the forums, its best if you use the code blocks so that it doesn't get eaten by the formatter.
  16. If you're alright with a little trial and error, you could try adding a timestamp onto the end of the URL, and add a preload attribute. <video width="500" controls="" preload="metadata"> <source src="Charley-Fox-Attack-2.mp4#t=0.1" type="video/mp4"> </video>
  17. If you think you're going to be activating sessions more than once in a page (by method of including code that uses it) you can check this condition <?php if (session_status() === PHP_SESSION_NONE) { session_start(); }
  18. Sorry, I don't have the Safari browser, I wouldn't be able to know exactly what's happening. Perhaps its something similar to Firefox, The uh rotation of inner-card isn't being accurately reflected on flip-card-front and flip-card-back. Maybe if you moved the rotation from inner-card to the front and back, you may have more luck? Can't test it myself, so you might need to do it a bit of experimentation.
  19. I haven't used Frihost before, but it looks like its gone for good. https://www.gigarocket.net/blog/rip-frihost-and-ffs/
  20. Try using a code block, so you can get colours and so your code doesn't get eaten by the formatting machine. So for this, all you would need to do is move that CSS code to an external stylesheet. your_stylesheet.css * { box-sizing: border-box; } .column { float: left; width: 33.33%; padding: 5px; } /* Clearfix (clear floats) */ .row::after { content: ""; clear: both; display: table; } and then link to that stylesheet with the <link> tag. <link rel="stylesheet" type="text/css" href="your_stylesheet.css">
  21. What's the erroneus output? Do you end up needing monaco _ senegal? Triple quotes (""") in python include everything inside them. This includes newline (\n) characters. To ignore the new line character, you need to place a backslash(\) before you go to your new line. Example below countries = """algeria spain armenia barbados chile ecuador ghana jamaica luxemborg kuwait monaco \ senegal turkey""" Also try using the codeblock feature so we can see the code without needing to download it. A lot of the time we notice what's wrong before even needing to run it.
  22. Take a look at this page to see what's required for external stylesheets vs internal stylesheets. https://www.w3schools.com/css/css_howto.asp If it's not working, could you paste some of your CSS here?
  23. I can put that exactly in my browser, and I get an autoplay with sound. Can I see what you're broken video version is?
  24. Just take out &amp;mute=1 from the end of your URL.
×
×
  • Create New...