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 | |
date_default_timezone_set("UTC"); | |
$time_str = ""; | |
//$format = 'h:i a j M'; | |
$format = 'h:i a'; | |
$datetime = new DateTime(date("Y-m-d H:i:s"),new DateTimeZone('UTC')); | |
$locations = array(); | |
array_push($locations, array("name" => "Paris", "timezone" => "Europe/Paris", "emoji" => "🇫🇷")); |
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
/* SITE BY */ | |
Name: AREA 17, http://www.area17.com/ | |
/* A17 TEAM */ | |
Role: Producer | |
Name: Angela Bliumis | |
Site: http://www.area17.com/people/angela-bliumis | |
Role: Designer | |
Name: Martin Rettenbacher |
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
A17.Behaviors.pinboard = function(container){ | |
var colCount = container.getAttribute("data-col-count"); | |
var colWidth = 0; | |
var margin = 0; | |
var windowWidth = 0; | |
var cols; | |
function setupBlocks() { | |
margin = (A17.media_query_in_use === "large") ? 40 : 30; |
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
/* to be included compressed, inline, in the head of the document */ | |
var A17 = window.A17 || {}; | |
A17.svgSupport = document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1"); | |
A17.browserSpec = (typeof document.querySelectorAll && 'addEventListener' in window && A17.svgSupport) ? "html5" : "html4"; | |
A17.touch = (('ontouchstart' in window) || window.documentTouch && document instanceof DocumentTouch) ? true : false; |
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
A17.Helpers.font_observers = function() { | |
/* | |
# A17.Helpers.font_observers | |
* v.1 | |
## description | |
Adds a class to the document when fonts have loaded |
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
.baseline_grid_toggle, | |
.vertical_grid_toggle { | |
position: fixed; | |
z-index: 9999; | |
left: 0; | |
bottom: 0; | |
background: $color__gold; | |
color: $color__white; | |
font-size: 11px; |
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
<!-- 5px baseline grid conditionally added to application layout in development and not production, put at end of of page next to </body> --> | |
<style> | |
.baseline_grid_toggle { | |
position: fixed; | |
left: 0; | |
bottom: 0; | |
background: #600; | |
color: #fff; | |
font-size: 11px; | |
padding: 1px 8px; |
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
/* | |
1: | |
Install node: http://nodejs.org/download/ | |
2: | |
Get an access token from Instagram for the user: https://instagram.com/developer/authentication/ | |
3: | |
Open terminal, cd into the directory where followers.js is. | |
eg: |
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
A17.Helpers.ajax_request = function(settings) { | |
/* | |
# A17.Helpers.ajax_request | |
* v.1 | |
## description | |
Performs ajax requests | |
## requires |
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
charlierose.Helpers.ajax_request = function(options) { | |
/* | |
where options is an object: | |
charlierose.Helpers.ajax_request({ | |
url: '/', | |
type: "POST", | |
data: { param1: "param1value", param2: "param2value" }, | |
requestHeader: { header: "Content-Type", value: "application/x-www-form-urlencoded; charset=UTF-8" }, | |
onSuccess: function(data){ |