Skip to content
View tupacan's full-sized avatar
🌱
Growing every day
🌱
Growing every day

Block or report tupacan

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. scrollbar-width.js scrollbar-width.js
    1
    // Get the browser scrollbar width.
    2
    
                  
    3
    function getScrollBarWidth() {
    4
        var $outer = $('<div>').css({ visibility: 'hidden', width: 100, overflow: 'scroll' }).appendTo('body'),
    5
            widthWithScroll = $('<div>').css({ width: '100%' }).appendTo($outer).outerWidth();
  2. jQuery Text Toggle jQuery Text Toggle
    1
    // Simple function for text toggling in jQuery
    2
    $.fn.extend({
    3
        toggleText: function (a, b) {
    4
            return this.text(this.text() == b ? a : b);
    5
        }