Skip to content

Instantly share code, notes, and snippets.

/* This is a linear gradient that will go from:
very light grey (#EEE) at the top,
to medium grey (#BBB) at the bottom
*/
.grey_gradient {
/* Graceful fallback for unsupported browsers */
background: #ccc;
/* Firefox 3.6+ */
background-image: -moz-linear-gradient(top, #eee, #bbb);
/* Webkit (Safari 4+, Chrome) */
opacity: 0.7;
filter: alpha(opacity=70);
-moz-opacity: 0.7;
-khtml-opacity: 0.7;
/* Cross browser transparency */
.transparent_class {
filter:alpha(opacity=50);
-moz-opacity:0.5;
-khtml-opacity: 0.5;
opacity: 0.5;
}
@Dexterstat
Dexterstat / Google Maps api GeoXML.js
Created January 13, 2014 14:22
Google Maps api GeoXML use
geoXml = new geoXML3.parser({
map: theMap,
processStyles: false,
suppressInfoWindows: true,
singleInfoWindow: true,
afterParse: useTheData
});
geoXml.parse('[kmlfile]');
function useTheData(doc) {
@Dexterstat
Dexterstat / kmllayer.js
Created January 13, 2014 14:19
Google Maps new KML layer
var kmlUrl = '[url]';
var kmlOptions = {
suppressInfoWindows: true,
preserveViewport: false,
map: theMap
};
var kmlLayer = new google.maps.KmlLayer(kmlUrl, kmlOptions);
kmlLayer.setMap(theMap); // the name of thye map
@Dexterstat
Dexterstat / radius.css
Created January 13, 2014 13:41
CSS border radius Cross Browser
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
-ms-border-radius: 2px;
-o-border-radius: 2px;
border-radius: 2px;
background-clip: padding-box
@Dexterstat
Dexterstat / New custom post type wordpres.php
Created June 12, 2014 09:01
New custom post type wordpres
$labels = array (
'name' => _x ( 'Orase', 'Post Type General Name', 'text_domain' ),
'singular_name' => _x ( 'Oras', 'Post Type Singular Name', 'text_domain' ),
'menu_name' => __ ( 'Orase', 'text_domain' ),
'parent_item_colon' => __ ( 'Oras parinte:', 'text_domain' ),
'all_items' => __ ( 'Toate orasele', 'text_domain' ),
'view_item' => __ ( 'Vezi orase', 'text_domain' ),
'add_new_item' => __ ( 'Adauga oras', 'text_domain' ),
'add_new' => __ ( 'Oras nou', 'text_domain' ),
'edit_item' => __ ( 'Editeaza oras', 'text_domain' ),
@Dexterstat
Dexterstat / new taxonomy wordpress.php
Created June 12, 2014 08:59
new taxonomy wordpresss
$labels = array (
'name' => _x ( 'Orase', 'taxonomy general name' ),
'singular_name' => _x ( 'Oras', 'taxonomy singular name' ),
'search_items' => __ ( 'Cauta orase' ),
'all_items' => __ ( 'Toate orasele' ),
'parent_item' => __ ( 'Oras parinte' ),
'parent_item_colon' => __ ( 'Oras parinte:' ),
'edit_item' => __ ( 'Editeaza oras' ),
'update_item' => __ ( 'Actualizeaza oras' ),
'add_new_item' => __ ( 'Adauna oras' ),
@Dexterstat
Dexterstat / placeholder.css
Created April 21, 2014 10:11
placeholder select
{selctor}::-webkit-input-placeholder { /* WebKit browsers */
color:#ddd !important;
}
{selctor}:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
color:#ddd !important;
}
{selctor}::-moz-placeholder { /* Mozilla Firefox 19+ */
color:#ddd !important;
}
{selctor}:-ms-input-placeholder { /* Internet Explorer 10+ */
@Dexterstat
Dexterstat / new_gist_file.js
Created April 17, 2014 09:26
reached button jquery javascript
$(document).ready(function() {
$(window).scroll(function() {
if ($('body').height() <= ($(window).height() + $(window).scrollTop())) {
alert('Bottom reached!');
}
});
});