This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
//select all the a tag with name equal to modal | |
$('a[name=modal]').click(function(e) { | |
//Cancel the link behavior | |
e.preventDefault(); | |
//Get the A tag | |
var id = $(this).attr('href'); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (MKOverlayView *)mapView:(MKMapView *)mapView viewForOverlay:(id<MKOverlay>)overlay | |
{ | |
if ([overlay isKindOfClass:[MKPolygon class]]) | |
{ | |
MKPolygonView* aView = [[MKPolygonView alloc]initWithPolygon:(MKPolygon*)overlay]; | |
aView.fillColor = [[UIColor cyanColor] colorWithAlphaComponent:0.2]; | |
aView.strokeColor = [[UIColor blueColor] colorWithAlphaComponent:0.7]; | |
aView.lineWidth = 3; | |
return aView; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CLLocationCoordinate2D location; | |
location.latitude=yourlatitude; | |
location.longitude=yourlongitude; | |
span.latitudeDelta=0.01; //or whatever zoom level | |
span.longitudeDelta=0.01; | |
region.span=span; | |
region.center=location; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function pRecommended() { | |
return '<p class="recommended"><a class="button" href="http://www.wpengine.com">View Pricing for WP Engine →</a>'; | |
} | |
add_shortcode('recommended', 'pRecommended'); | |
?> | |
// [recommended] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This code will add a rotating header image to Thesis | |
function header_rotator() { | |
echo thesis_image_rotator(); | |
} | |
add_action('thesis_hook_feature_box','header_rotator'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="map" style="width: 413px; height: 300px;"></div> | |
<script type="text/javascript"> | |
var mapOptions = { | |
zoom: 16, | |
center: new google.maps.LatLng(54.00, -3.00), | |
mapTypeId: google.maps.MapTypeId.ROADMAP | |
}; | |
var geocoder = new google.maps.Geocoder(); | |
var address = '3410 Taft Blvd Wichita Falls, TX 76308'; | |
geocoder.geocode( { 'address': address}, function(results, status) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://www.gravityhelp.com/forums/topic/simple-calculations | |
// change the 41 here to your form ID | |
add_action('gform_pre_submission_41', 'ch_awesomeness_rating'); | |
function ch_awesomeness_rating($form) { | |
// set up one array for each step of the form | |
// each array contains the input IDs of the fields we want to sum on each page | |
// IDs do not need to be consecutive using this method | |
$step_1_fields = array('input_2', 'input_3', 'input_4', 'input_5', 'input_6', 'input_7', 'input_8', 'input_9', 'input_10', 'input_11'); | |
$step_2_fields = array('input_14', 'input_15', 'input_16', 'input_17', 'input_18', 'input_19', 'input_20', 'input_21', 'input_22', 'input_23'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Hosting Quiz Logic | |
Plugin URI: http://www.artofblog.com | |
Description: Custom logic for Gravity Forms Quiz | |
Version: 1.0 | |
Author: Eric Binnion | |
Author URI: http://ericbinnion.com | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onfocus="if (this.value == 'Enter Your Email') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Enter Your Email';}" |
OlderNewer