Blog Spot!


Usefull CSS loaders

Added on 17.Apr.2018
Tags: css load loader partials

How To Create An Animated Scroll To Top Button With jQuery

article

The HTML

<a href="#" class="scrollToTop">Scroll To Top</a>

The CSS

.scrollToTop{
    width:100px; 
    height:130px;
    padding:10px; 
    text-align:center; 
    background: whiteSmoke;
    font-weight: bold;
    color: #444;
    text-decoration: none;
    position:fixed;
    top:75px;
    right:40px;
    display:none;
    background: url('arrow_up.png') no-repeat 0px 20px;
}
.scrollToTop:hover{
    text-decoration:none;
}

And of course finally the Javascript/jQuery

$(document).ready(function(){

    //Check to see if the window is top if not then display button
    $(window).scroll(function(){
        if ($(this).scrollTop() > 100) {
            $('.scrollToTop').fadeIn();
        } else {
            $('.scrollToTop').fadeOut();
        }
    });

    //Click event to scroll to top
    $('.scrollToTop').click(function(){
        $('html, body').animate({scrollTop : 0},800);
        return false;
    });

});

Added on 13.Apr.2018
Tags: to top js jquery scroll top

Speed Distance Time Calculators

Speed = Distance ÷ Time

Time = Distance ÷ Speed

Distance = Speed × Time

web-calc

Added on 02.Apr.2018
Tags: speed distance time calculation math

Set server to universal time - UTC

sudo timedatectl set-timezone Etc/UTC

Added on 22.Mar.2018
Tags: timezone server utc tz linux

Good promises article

"Many of us are using promises without really understanding them."

Article: we-have-a-problem-with-promises

Added on 19.Mar.2018
Tags: promises js callback async node javascript

Search


PHP Libraries


Carbon lib / docs
Idiorm lib / docs
Image Workshop lib / docs
lorenzos/Minixed lib / docs
Parsedown lib / docs
PHP Paginator lib / docs
PHP Redis lib / docs
QrCode lib / docs
Requests lib / docs
Slim lib / docs
Spyc lib / docs
TWIG lib / docs
Upload lib / docs
Validation lib / docs
Zebra Image lib / docs

JS Libraries


AJV lib / docs
BackboneJS lib / docs
Bootstrap Notify lib / docs
C3.js lib / docs
ChartJS lib / docs
FastMD5 lib / docs
HighlightJS lib / docs
jQuery-Storage lib / docs
JS-Cookie lib / docs
Leaflet JS lib / docs
LowDB lib / docs
Marked lib / docs
NeedlyJS lib / docs
ParcelJS lib / docs
RequireJS lib / docs
Swig lib / docs
Toastr lib / docs
Underscore lib / docs
ValidateJS lib / docs
top