Jump to content

sidebar just click and the text always hides when it should


Recommended Posts

let dc = document.querySelector("#btcr");

 let gen=document.querySelector("#ul");

 let sp= document.querySelectorAll(".sp");

işlev dd() {

if (gen.style.width === "150px") {

    gen.style.width = "60 piksel";

  } Başka {

    gen.style.width = "150px";





fonksiyon aa(){


  if( gen.style.width ==="60 piksel"){


    sp.style.csstext="görünürlük: gizli;görüntü: yok;";






dc.addEventListener("tıklayın", dd);

Edited by egemen
Link to comment
Share on other sites

Do not translate things like keywords

} Başka { // else
fonksiyon aa(){ // function aa

or CSS

60 piksel /* 60px */
görünürlük: gizli;görüntü: yok; /* visibility: hidden; image: none; */

or events

dc.addEventListener("tıklayın", dd); // click

You can write in Turkish names when you are the one creating them - names like for variables or functions.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.