發表文章

目前顯示的是 2月 22, 2019的文章

Heel (professional wrestling)

圖片
For other meanings, see Heel (disambiguation). In professional wrestling, a heel (also known as a rudo in lucha libre ) is a wrestler who portrays a villain or a "bad guy" and acts as an antagonist [1] [2] [3] to the faces, who are the heroic protagonist or "good guy" characters. To gain heat (with boos and jeers from the audience), heels are often portrayed as behaving in an immoral manner by breaking rules or otherwise taking advantage of their opponents outside the bounds of the standards of the match. Others do not (or rarely) break rules, but instead exhibit unlikeable, appalling and deliberately offensive and demoralizing personality traits such as arrogance, cowardice or contempt for the audience. Many heels do both, cheating as well as behaving nastily. No matter the type of heel, the most important job is that of the antagonist role, as heels exist to provide a foil to the face wrestlers. If a given heel is cheered over the face, a promoter may opt to tu

Attach event handler to all elements except one and its descendants

圖片
-1 Seemingly simple problem: I'm working on a Chrome extension that has a help "window" – actually a div – that is shown upon a menu action. Now I want that div to be hidden again when the user clicks outside of the div . Thus any click on the div or its descendant elements should be ignored and all others should trigger hiding of the div . This is the only solution I have found that works, but it is ever so inelegant and circumstantial ( later edit : this code prevents clicking on other elements from having effect, so it is also dysfunctional in addition to being clumsy). <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script> $(document).ready(function() var flag = 0;//controls whether hiding is allowed $("#div1").click(function()//clicks on div1 should be ignored flag = 1;//prevent hiding by third function ); $("#div1").find("