Snippet Archive

Menghapus Tag HTML Menggunakan Javascript

var StrippedString = OriginalString.replace(/(<([^>]+)>)/ig,""); Source : https://css-tricks.com/snippets/javascript/strip-html-tags-in-javascript/

Media Query Retina Display

@media  only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (   min--moz-device-pixel-ratio: 1.5), only screen and (     -o-min-device-pixel-ratio: 3/2), only screen and (        min-device-pixel-ratio: 1.5), only screen and (min-resolution: 192dpi) { /* Style Rules */ } Source : http://www.hongkiat.com/blog/css-retina-display/