Category: JavaScript

  • How to Install PhantomJS in cPanel / WHM Server

    Here is what i did to install PhantomJS in cPanel / WHM 🙂
    (more…)

  • 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.

    
    
  • jQuery Not Class Selector to Exclude

    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? 😀