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 lang="en"> | |
<head> | |
<!-- *********************************** | |
* Method: | |
* Purpose: called from article7.pbo, displays google map via saxo geodata fields, | |
* this map is opened via saxo template (?template=geo) | |
* | |
* 20110510 NB | |
* 20110627 NB - Updated to allow for multiple markers |
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($) { | |
'use strict'; | |
$.fn.PlusEmbed = function(stg) { | |
var $this = this, | |
cfg = { | |
count: 10 | |
}; | |
if (stg) { | |
$.extend(cfg, stg); |
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
var stagify = function () { | |
if (window.location.search.search('staging=true') !== -1) { | |
$('html') | |
.addClass('staging') | |
.find('a').each(function () { | |
var h = $(this).attr('href'), | |
q = !!h && h.search(/\?/) !== -1 ? '&': '?'; | |
if (!!h && h.search('#') === -1) { | |
$(this).attr('href', h + q + 'staging=true'); | |
} |
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 lang="en"> | |
<head> | |
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"> | |
<head> | |
<title>Backbone</title> | |
</head> | |
<body> | |
<header></header> |
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 lang="en" ng-app="app"> | |
<head> | |
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"> | |
<head> | |
<title>Angular</title> | |
</head> | |
<body> | |
<a href="#!/">Home</a> | <a href="#!/test">Test</a> | |
<div ng-view></div> |
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>Calendar Puzzle</title> | |
<style> | |
.mark {border-top:1px solid red;width:400px;height:30px;} | |
.time {float:left} | |
.event {left:100px;position:absolute;opacity:.4;color:#fff} | |
.event {background:red;width:302px;} | |
/*.event + .event {background:green;width:150px;left:252px;}*/ |
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 () { | |
var img = document.createElement('img'); | |
path = encodeURIComponent('https://s3.amazonaws.com/llama0/burningfiremonkey.gif'), | |
width = 600, | |
refresh = 2592000; | |
img.src = 'https://images1-focus-opensocial.googleusercontent.com/gadgets/proxy?url=' + path + '&resize_w=' + width + '&container=focus&refresh=' + refresh; | |
document.body.appendChild(img); | |
}()); |
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 RgbToHsv(r, g, b) { | |
var min = Math.min(r, g, b), | |
max = Math.max(r, g, b), | |
delta = max - min, | |
h, s, v = max; | |
v = Math.floor(max / 255 * 100); | |
if (max == 0) return {h: 0, s: 0, v: 0}; | |
s = Math.floor(delta / max * 100); | |
var deltadiv = delta == 0 ? 1 : delta; |
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 lang="en"> | |
<head> | |
<title>Template Example</title> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<section id="placeholder0"></section> | |
<section id="placeholder1"></section> |
OlderNewer