ז – כפתור ויסות לתרמוסטט

ז,א – אסור להקדים פעולה על ידי שינוי תרמוסטט

כתבתי שלא לשנות את הכפתור באופן שיפסיק את המצב הנוכחי, ואף שהקלנו בזה בשעת הדחק בשעון שבת, כאן יש חשש שסיבוב הכפתור יפעיל מיד את הרדיאטור או יכבה אותו. ואז כבר אין מדובר ב'גרמא' אלא בהדלקה או כיבוי ממש. ואין לומר שזה דבר שאינו מתכוון, כי הוא מתכוון להפעיל או להפסיק את ההפעלה, וגם יש סבירות גבוהה שכך יקרה. אמנם מי שמכיר את התרמוסטט שם, ויודע שהשינוי שהוא עושה לא יגרום להפעלה מיידית אלא רק לאחר זמן רב, יוכל להקל. ועיין באנציקלופדיה תלמודית כרך יח, בנספח לערך 'חשמל' פרק ב' אודות תרמוסטט.

var div = document.getElementsByTagName("hr")[0].nextElementSibling; var divN = div.parentElement; divN.id = "naama"; div.id = "notes"; //var div = document.getElementById("notes"); div.style.display = "none"; var button = document.createElement("button"); button.textContent = 'הצגת הערות'; button.setAttribute("onclick","myFunction2()"); divN.insertBefore(button, div); //divN.appendChild(button); // var links = document.getElementsByClassName("aup1"); var links = document.getElementsByTagName("sup"); var i; for (i = 0; i < links.length; i++) { var x = links[i].firstChild.getAttribute("href"); x = x.substr(1,x.length); links[i].firstChild.removeAttribute("href"); links[i].firstChild.setAttribute("href", "#"); links[i].firstChild.setAttribute("class", "aup1 " + x); links[i].firstChild.addEventListener("click", myFunction); //var id2 = document.getElementById(x); //id2.parentElement.style.display = "none"; } function myFunction() { var cl = this.getAttribute("class"); var str = cl.substr(5,cl.length); //var id = document.getElementById(str); this.setAttribute("href", "#" + str); if(div.style.display == "none"){ div.style.display = "block"; button.textContent = 'הסתרת הערות'; //return true; } else{ div.style.display = "none"; button.textContent = 'הצגת הערות'; } //return true; } function myFunction2() { if(div.style.display == "none"){ div.style.display = "block"; button.textContent = 'הסתרת הערות'; } else{ div.style.display = "none"; button.textContent = 'הצגת הערות'; } }
תפריט

תוכן עניינים