Here is what i did to install PhantomJS in cPanel / WHM 🙂
Tag: JavaScript
Categories
Javascript Get Content Stretch Size
I had a situation like this :
I have a content. The size (width and height) has been known.
Now i want to stretch the content to the screen with some fill rate (for example max 90% of screen size).
I made a javascript code below.
For example we want to hide all hyperlinks that do not have “banana” class. How to do that with jQuery?
You can use the javascript code below.
$('a').not('.banana').hide();
Easy right? 😀