Skip to content

Instantly share code, notes, and snippets.

View Audiovoyeur's full-sized avatar

AudioVoyeur Audiovoyeur

View GitHub Profile
@yratof
yratof / map.php
Created January 18, 2016 14:26
ACF Google map with styles
<?php $location = get_field('location'); if( !empty($location) ): ?>
<div class="acf-map" style="width: 100%; height: 100%; position: absolute; left: 0; top: 0;">
<div class="marker" data-lat="<?php echo $location['lat']; ?>" data-lng="<?php echo $location['lng']; ?>"></div>
</div>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
<script type="text/javascript">
(function(e){function t(t){
var i=t.find(".marker");
@jsoverson
jsoverson / device.css
Created February 15, 2013 20:06
Quick css hacks to target android/ios
.visible-android {
display:none;
}
.visible-ios {
display:none;
}
.on-device .visible-android, .on-device .visible-android {
display:inherit;
}
.device-ios .visible-android {