javascript Select JSON object with a colon in the key — November 14, 2017

javascript Select JSON object with a colon in the key

lets say u have object like this

"DROPOFFOFFICE": {
     "a:Name": "London - Airport - Gatwick"
}

we can select it like this

DROPOFFOFFICE['a:Name']

for better explanation check this link.

Advertisements
jQuery check and make sure that function exists — November 13, 2017
Css align text Vertically Center — October 31, 2017

Css align text Vertically Center

To align text vertically centered we need to add some table properties to div. First we need a outer div which must have a fixed height. Then a middle div and in that middle div we can add any text. We just need these properties.

.outer { display: table;position: static;height: 222px; }
.middle {display: table-cell;vertical-align: middle;width: 100%;position: static;}

For better explanation please follow this link. There is one more example with css FLEX property.

convert ColdFusion variables into JavaScript variables — October 30, 2017
Javascript decode string which has special Chars or Html entities — October 26, 2017
Ubuntu move content to parent directory — October 3, 2017
CSS add overlay with content and spinner — September 29, 2017

CSS add overlay with content and spinner

.overlay{
            background-color: rgba(255, 255, 255, 0.8);
            position: fixed;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            background-position: center center;
            background-repeat: no-repeat;
            top: 0px;
            left: 0px;
            width: 100%;
            height: 100%;
            background-size: 91px;
        }

Just add anything in div with class ‘overlay’, like text , image and it will appear in center of page.