Models | Examples |
---|---|
Display ads | Yahoo! |
Search ads |
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
copy($(".checklist-item:not(.checklist-item-checked)").map(function() { | |
var e = $(this), | |
item = e.find(".checklist-item-details-text").text() | |
if (e.hasClass("checklist-item-state-complete")) { | |
item = item + " (DONE)" | |
} | |
return item | |
}).get().join("\n")) |
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 add_intercom() { | |
if ( is_user_logged_in() ) { | |
global $current_user; | |
get_currentuserinfo(); | |
?> | |
<script id="IntercomSettingsScriptTag"> | |
window.intercomSettings = { |
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
<style type="text/css"> | |
.items {display:table;list-style:none;margin:0;padding:0;border-spacing:5px;} | |
.items li {display:table-row;border-radius:10px;border:1px solid #ccc;padding:5px;margin:0 0 10px 0;} | |
.items li img {display:table-cell;vertical-align:top;} | |
.items li span.meta {display:table-cell;vertical-align:top;margin:0;padding:0 0 0 5px;} | |
.items li {margin:0 0 5px 0;} | |
</style> |
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
function hideAddressBar() | |
{ | |
if(!window.location.hash) | |
{ | |
if(document.height < window.outerHeight) | |
{ | |
document.body.style.height = (window.outerHeight + 50) + 'px'; | |
} | |
setTimeout( function(){ window.scrollTo(0, 1); }, 50 ); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Directions Example</title> | |
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/modernizr/2.0.6/modernizr.min.js"></script> | |
<script type="text/javascript"> | |
//Ask for HTML5 geolocation, use Modernizr to detect if we can even do it. If allow, go to show_map, if deny go to handle_error. Please note the High Accuracy flag, which may cause the location fix to take longer, but it gives a more precise reading | |
function get_location() { | |
if (Modernizr.geolocation) { | |
navigator.geolocation.getCurrentPosition(show_map, handle_error, {maximumAge: 75000, enableHighAccuracy: true}); |