Jump to content

Ash!

Members
  • Posts

    12
  • Joined

  • Last visited

Posts posted by Ash!

  1. It definitely requires additional CSS for the <ul> you will add for dropdown and also some additional JS to handle it when it is collapsed.

    You need to apply display: block; to the <li>s in the dropdown menu so that they stack up on top of each other. Also, you might need to remove overflow: hidden; from the #nav or the dropdown will always be hidden under it.

  2. Hi,

     

    I'm no expert in JS but I'd like to suggest something. This might not be the best solution but here it goes...

     

    What you want to do is record the currentTime of the media when user closes the window, right? An AJAX request might not work on beforeunload I guess.

     

    What you can try is....save the curerntTime to the localStorage every second using the setInteval method. The currentTime stays in the localStorage when the user closes the window. But when the user comes back to your site, you can retrieve it from localStorage and store in your database using AJAX.

     

    I'm not sure if that would help :Unsure:

  3. Hi harry_ord!

     

    Looks like the MP4 format is not working on Firefox, but the WebM works fine.

    I think swapping the orders of mp4 and webm files, like below, would do the trick.

    <video id="my-video" class="video" muted="" loop="" controls="">
        <source src="videos/Clean_Way.webm" type="video/webm">
        <source src="videos/Clean_Way.mp4" type="video/mp4">
    </video>
  4. Name: AshBirth date(dd/mm/yyyy): 02/07/1989Gender: MaleCountry of residance: IndiaEyes: 2 :facepalm:Hair: Too many (black :Bucktooth: )Smoking/Drinking/Drugs: NopesFavourite Music: Bollywood songsFavourite Movies: Troy, The Karate KidInterest: Web design, music and gaming...

×
×
  • Create New...