Skip to content

Instantly share code, notes, and snippets.

View alphastory's full-sized avatar

Matthew Wagner alphastory

View GitHub Profile
// Handle Scroll
scrolled( s ){
if( Ember.$( window ).width() > 900 ){
let sharePhone = document.querySelector( '#startSharing .phone' );
sharePhone.style.top = ( -( s * 0.25 ) + 220 ) + 'px';
let savePhone = document.querySelector( '#saveMore .phone' );
savePhone.style.top = ( ( s * 0.25 ) - 220 ) + 'px';
import Ember from 'ember';
export default Ember.Mixin.create({
bindResize( ){
let _this = this;
function onResize(){
let windowWidth = Ember.$( window ).width();
return ( windowWidth <= 1280 ) ? _this.resized( windowWidth ) : false;
}
import DS from 'ember-data';
export default DS.JSONSerializer.extend({
primaryKey: '_id'
});
var user = {
Address: "11663 North East Dr., ",
AssociatedChapter: "7",
City: "Camby",
Country: "United States",
DonorType: "Friend of Kappa Alpha Theta",
Email: "matthew.wagner@hotmail.com",
FirstName: "Matthew",
LastName: "Wagner",
PatriotID: "",
{
"name": "Product",
"description": "Products are the detailed information for previewing your new eCards to the Application.",
"displayField": "title",
"fields": [
{
"name": "Title",
"id": "title",
"type": "Text",
"required": true
<ul>
<li ng-repeat="week in weeks" ng-class="{ true: 'active' }[ week.id <= currentWeek ]" ng-switch on="week.active" data-id="{{ week.id }}">
<a href="#/weeks/{{ week.id }}" ng-switch-when="true"><h1>{{ week.title }}</h1></a>
<h1 ng-switch-default>{{ week.title }}</h1>
</li>
</ul>
<li ng-repeat="week in weeks" ng-class="{ 'active' : week.active }" ng-switch on="week.active">
<a href="#/weeks/{{ week.id }}" ng-switch-when="true"><h1>{{ week.title }}</h1></a>
<h1 ng-switch-default>{{ week.title }}</h1>
</li>
object(WP_Post)[452]
public 'ID' => int 144
public 'post_author' => string '6' (length=1)
public 'post_date' => string '2014-12-11 10:08:21' (length=19)
public 'post_date_gmt' => string '2014-12-11 15:08:21' (length=19)
public 'post_content' => string '' (length=0)
public 'post_title' => string 'Denver, CO' (length=10)
public 'post_excerpt' => string '' (length=0)
public 'post_status' => string 'publish' (length=7)
public 'comment_status' => string 'closed' (length=6)