I am using this plugin -  to check whether an element is visible on the viewport (to check if posts has been viewed or not).  But is it possible to have a callback of some sort so that instead of having a setTimeOut and checking the visibility of each and every post every time, fire a callback when the respective element is visible?   Or is there any other library I can use to do this?  I am talking about the visual viewport. (Not css visibility)
23978
Is it possible to toggle the visibility of an element, using the functions .hide(), .show() or .toggle()?  How would you test if an element is visible or hidden?
19563
Can I use JavaScript to check (irrespective of scrollbars) if an HTML element has overflowed its content? For example, a long div with small, fixed size, the overflow property set to visible, and no scrollbars on the element.
113512
Is it legal to have an HTML form with more than one "hidden" control element with the same name? I expect to get the values of all of these elements at the server. If it is legal, do the major browsers implement the behavior correctly?
7265
I am writing a WP plugin. I have created a button for the user to click in thw WP dashboard. I need to run a function when a user clicks the button, shown with a red arrow. The code snippet for the button is:&lt;p&gt;&lt;button class="button button-primary"&gt;Update Media Titles and ALT Text&lt;/button&gt;&lt;/p&gt;. I have already created the function in my class like so:  public function kh_update_media_seo() {      //update media files title and alt tags here }   I can handle the code that goes in the function alone, I only need help making the button in the WP dashboard fire off this specific function when clicked.  Pardon me if this sounds dump or straight forward. It's my first time doing this.  My plugin is a one file plugin if that helps.
95501
I am creating a simple animation with flame. I followed a tutorial and flame appears in viewport but is not present when creating an animation or image. I am using Blender Render (not Cycles and GPU which seems to be a common problem). What seems to be my issue?
106860
I need to update a vector layer's data when the visibility is turned back on.  My update does not occur when the visibility is off.  To what signal do I need to connect to catch the visibility change?
82340
Does anybody know why my Viewport Shading has gone all grey. I must have pressed something because it was all fine a minute ago.. thanks
4765
It's Thanksgiving, so I'm getting my Gaming SE fix through my mobile iPhone browser. I recently received a notable question badge for 'How do I defeat a wispmother in Skyrim?' and wanted to see just how many views it got. I didn't expect to see it initially, but once I sorted by views, I at least expected to see the number of views the question had.  Expected behavior: either views should be populated for questions when sorting by views in the mobile browser or there should be some intuitive way to see views on the mobile browser.
87750
I'm trying to find the best method of showing users on mobile devices that they can scroll in a &lt;div&gt;.   As iPhones/iPads don't have scrollbars, I will need an indicator to show that you can scroll. This should be subtle but present the idea well.
100816
I have a class that extends bpy.types.Panel. When a combination of items are chosen in another panel, I want this panel to appear, but not otherwise. Right now the panel will always show after being registered. I browsed through the documentation and found nothing useful. What function can I call or flag can I set to show and hide a panel, say, on clicking a button?
110754
Just wondering whether this is possible? i.e. once a modal is open, close it by clicking anywhere on the grey backdrop?  I've tried invoking my custom close-modal function via: - Adding onclick to the slds-backdrop div - Adding onblur to the slds-modal__container div - Adding onclick to the slds-modal (just wanted to see whether this would work)  None of these seem to work.
3010
I have created a panel page (i.e using panels). I can add html content to it from the panel itself using add content->New custom content. I can also add css classes (add body css classes).  Now I would like to add a jquery button to that panel page. I could add a javascript to my theme but then it would be called on every page load not only this specific panel-page. So I would like to add my javascript through my module.   But how do I programatically check that the current page beeing viewed is that specific page panel? Is there a hook that lets me check that?  Thanks,  baba
82268
I've found plenty of posts about changing the visibility of a block programatically.  My problem is the opposite. Given a block's ID/delta, how do I find out if it should be displayed at the current path?  I have a field collection that allows you to append a block using the Block Reference module (I preprocess the field collection and use my own template, so the logic has been taken away from the Block Reference module). It works, but I only want it to kick in if the "Show block on specific pages" rule says that block should be displayed.
13623
If so, does it effectively deprecate the visibility property?  (I realize that Internet Explorer does not yet support this CSS2 property.)
41163
I'm wondering what the preferred method is for dealing with AJAX calls. Should one use the same plugin php file to process the POST or a separate one? Which is cleaner or safer?
124177
Yes, I know the topic has been discussed before. I know that Meta already has threads that complain about how flagging doesn't work. I wanted to give a practical example.  Today, a  came in to the  chat and asked the :  Hey guys, as soon as I embed javascript, all my html elements are gone. Even if the script is empty!? ...Can anyone help out? The example is really minimalistic &lt;script type='text/javascript' src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js&quot;/&gt; &lt;script type='text/javascript' src=&quot;script.js&quot;/&gt; These lines make everything vanish. script.js is empty! I use google chrome and the file is on localhost  Some context:  The JS room encourages people to come and ask questions that are too small/badly put for main. The room encourages people to just ask questions rather than ask to ask. In fact we even have a bot that prompts users to just ask if they have a question whenever they join. The above user has a good Q to A ratio having 1K rep in the main site and over 80 answers. The user has no negative context in the chat. No previous offenses or anything like that.  That message got 7 flags  Had a mod (ThiefMaster) not been present and invalidated those flags in time that user would have probably been suspended from the chat. This is bad, it sends the wrong message and it is very rude. Now, some other rooms don't allow people to just come and ask questions right away so maybe users from other rooms validated the flag. Maybe users thought he was being rude? I don't know. I do know that we don't want this sort of negative atmosphere in the JS room (and I'm sure other useful rooms such as PHP don't want it either), we have enough on our hands trying to maintain a community while helping people joining and handing with vamps/trolls. Possible solutions:  Drop spam/offensive flags altogether. Make spam/offensive flags room specific for big enough (tm) rooms. Give room owners just the ability to invalidate spam/offensive flags.
87584
I'm trying to change the Viewport background color. But I can't seem to find the right settings.    Anyone knows where to find it?