HTML, CSS & JavaScript - How to Create a Cookie Consent Message

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 พ.ย. 2024

ความคิดเห็น • 35

  • @nigelhammond99
    @nigelhammond99 ปีที่แล้ว +2

    Great video! I have been looking for a good cookie banner for some time. Well explained, well coded, simple to follow. Thank you! One more subscriber here!

  • @joebalingit
    @joebalingit 2 ปีที่แล้ว +3

    You've got a subscriber. Thank you so much for this helpful video. Keep 'em coming...

  • @EinDummie
    @EinDummie 7 หลายเดือนก่อน +1

    Hey Sir, your Tutorial helped me alot, thank you and keep it up.

  • @mihaelabalaceanu7905
    @mihaelabalaceanu7905 2 ปีที่แล้ว +3

    Very well explained! Thx so much, it was so helpful!

  • @agritech802
    @agritech802 10 หลายเดือนก่อน

    Great video, what editor are you using?

    • @andrej1814
      @andrej1814 5 หลายเดือนก่อน +1

      vs code

  • @kageyoshi3656
    @kageyoshi3656 7 หลายเดือนก่อน

    Easy to follow, gets the job done, works flawlessly -> Subscribed! + Liked! + Shared!

  • @CandianAvgeek
    @CandianAvgeek หลายเดือนก่อน +1

    It doesn’t work

  • @colafnthew
    @colafnthew หลายเดือนก่อน

    Subbed and liked

  • @yoskokleng3658
    @yoskokleng3658 7 หลายเดือนก่อน

    why we need it (click to store cookie)? i saw many website have done this. please make a video of benefit of it?

  • @chupacabrapr
    @chupacabrapr ปีที่แล้ว

    Thanks for the video very helpful. Im having an issue, i set the expiration date and create the cookie. The exp date shows fine, but when I refresh my browser the exp date changes to “session”. Any idea why? Thanks

  • @HookedGoneSunk
    @HookedGoneSunk หลายเดือนก่อน

    can you create a cookie for a premium account bypass?

  • @jfpicard1
    @jfpicard1 ปีที่แล้ว

    Question here ... To be 100% compliant .. should this "consent" be stored somewhere?

  • @jad3nk674
    @jad3nk674 8 หลายเดือนก่อน

    i have a question i never saw in my cookie menu with the inspect mode one that says cookie true so now i cant see the cookie and i have to show it to my teacher

  • @durangodave
    @durangodave 11 หลายเดือนก่อน

    dont we need to secure the cooke?

  • @xchen6190
    @xchen6190 ปีที่แล้ว

    Thanks! how to give the user option to reject the cookie?

    • @agritech802
      @agritech802 10 หลายเดือนก่อน

      Create a button called reject and store them value reject in the cookie

  • @rjapade3062
    @rjapade3062 ปีที่แล้ว

    Can u please help me , uncaught references error: data is not defined at setCookie ??

  • @loonatik_official
    @loonatik_official ปีที่แล้ว

    thank you!

  • @66ogg
    @66ogg ปีที่แล้ว

    Nice bro❤

  • @bilalbehar8533
    @bilalbehar8533 2 ปีที่แล้ว +1

    can you please help me, i followed every step , but the paragraphe inside the cookies container is empty

    • @codefoxx
      @codefoxx  2 ปีที่แล้ว +1

      Please recheck the code you must be missing something

    • @bilalbehar8533
      @bilalbehar8533 2 ปีที่แล้ว

      @@codefoxx i tried to follow many other videos . But still have the same problem
      Thank you anyways

    • @aruzhannurmanova3696
      @aruzhannurmanova3696 2 ปีที่แล้ว +1

      @@codefoxx Hi! I have the same issue. maybe there are some missing parts in the code on this video? 'cause I rechecked each part and I am sure that I wrote it correctly.

    • @codefoxx
      @codefoxx  2 ปีที่แล้ว

      @@aruzhannurmanova3696 can you share your code with me? Maybe you can share the Github repository

    • @bilalbehar8533
      @bilalbehar8533 2 ปีที่แล้ว

      @@codefoxx its working thanks

  • @MillerHighLifez420
    @MillerHighLifez420 2 ปีที่แล้ว

    Thanks!

  • @alexandermarcondesjunior1608
    @alexandermarcondesjunior1608 2 ปีที่แล้ว +2

    i getting this error :
    default.js:34 Uncaught TypeError: Cannot set properties of undefined (setting 'display')
    at cookieMessage
    someone can help me?

    • @codefoxx
      @codefoxx  2 ปีที่แล้ว +1

      It cannot find the element you are trying to add the "display" property to. Perhaps you forgot to create it, mispelled it, did not add the appropriate id, etc. Basically you are missing something. Please rewatch the tutorial

  • @AashutoshBansal
    @AashutoshBansal 2 ปีที่แล้ว +2

    Bro can u remake video of grocery-list with localStorage, As I'm not able to do so. Please Please Please Please

    • @codefoxx
      @codefoxx  2 ปีที่แล้ว +3

      I can do that but I actually don't recommend beginners using local storage beyond 1 or 2 basic projects because that's not how data is stored in a real application. What you wanna learn is how to store it in a database like mySQL or MongoDB, which requires knowledge of Node.js or a framework like Django or Spring Boot.

    • @AashutoshBansal
      @AashutoshBansal 2 ปีที่แล้ว +1

      @@codefoxx ok 👍

  • @bilalbehar8533
    @bilalbehar8533 2 ปีที่แล้ว +4

    can someone pls paste the css file here

    • @adarshc7737
      @adarshc7737 ปีที่แล้ว

      *{
      padding: 0;
      margin: 0;
      }
      body{
      font-size: 1rem;
      }
      .container{
      width:1600px;
      margin: auto;
      }
      .subcontainer{
      width: 85%;
      margin: auto;
      }
      #cookies{
      width: 100%;
      position: fixed;
      bottom: 0;
      color: aliceblue;
      background-color: rgba(0, 0, 0, 0.311);
      z-index: 1;
      display: none;
      }
      .cookies{
      min-height: 70px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
      }
      .cookies .a{
      color: yellow;
      text-decoration: none;
      font-weight: 500;
      }
      #cookies-btn{
      border-radius: 5px;
      padding: 6px 8px 6px 8px;
      font-size: 1rem;
      font-family: inherit;
      cursor: pointer;
      border: 1px solid white;
      background-color: black;
      color: white;
      }
      @media(max-width:1600px){
      .container{
      width: 100%;
      }
      }
      @media(max-width:1024px){
      .cookies{
      padding: 10px 0;
      }
      }

  • @FourthWayRanch
    @FourthWayRanch 2 หลายเดือนก่อน

    Why why why, so sick of cookie notice, ready to give up on using the internet because of it, yet another example of lawyers ruining things