This file contains hidden or 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
import Ember from 'ember'; | |
const { Controller, inject } = Ember; | |
export default Controller.extend({ | |
display: inject.service(), | |
actions: { | |
toggle() { | |
this.get('display').toggleVisibility(); | |
} |
This file contains hidden or 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
import Ember from 'ember'; | |
const { Controller, inject } = Ember; | |
export default Controller.extend({ | |
display: inject.service(), | |
actions: { | |
toggle() { | |
this.get('display').toggleVisibility(); | |
} |
This file contains hidden or 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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
value: JSON.stringify({ | |
"title": "Person", | |
"type": "object", | |
"properties": { | |
"firstName": { | |
"type": "string" |
This file contains hidden or 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
import Ember from 'ember'; | |
const { Controller, inject } = Ember; | |
export default Controller.extend({ | |
display: inject.service(), | |
actions: { | |
toggle() { | |
this.get('display').toggleVisibility(); | |
} |
This file contains hidden or 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
import Ember from 'ember'; | |
const { computed, Controller } = Ember; | |
export default Controller.extend({ | |
showLastSuccessful: true, | |
actions: { | |
resetShowLastSuccessful() { | |
this.set('showLastSuccessful', true); |
This file contains hidden or 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
$('.search-box').each(function(){ | |
if(!Modernizr.input.placeholder){ | |
var $el = $(this), | |
placeholderText = $el.attr('placeholder'); | |
if( placeholderText ){ | |
$el.addClass('placeholder-text').val(placeholderText) | |
.bind('focus', function() { | |
if( $el.val() === placeholderText ) { | |
$el.val('').removeClass('placeholder-text'); |
This file contains hidden or 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 http-equiv="Content-Type" content="text/html;charset=utf-8" /> | |
<title>Down For Maintenance</title> | |
<style> | |
body { background: #fff; font-family: Helvetica,Arial,sans-serif; margin: 0; padding: 0; } | |
img { border: 0; } | |
.wrapper { width: 500px; margin: 0 auto; } |
This file contains hidden or 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
.icon:before { | |
font-family: icons; | |
margin-right: 5px; | |
} | |
.icon-replace { | |
text-indent: -9999px; | |
overflow: hidden; | |
display: inline-block; | |
position: relative; | |
min-width: 1em; |
This file contains hidden or 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
// Ghost Text | |
$(".populate input").each(function() { | |
if ($(this).val() == "") { | |
$(this).val($(this).attr("title")); | |
} | |
}); | |
$(".populate input").focus(function() { | |
if ($(this).val() == $(this).attr("title")) { | |
$(this).val(""); | |
} |
This file contains hidden or 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://microformats.org/code/hcalendar/creator --> | |
<div id="hcalendar-event" class="vevent"> | |
<a href="http://www.baltimore.com" class="url"> | |
<abbr title="2011-02-14T10:30-05:0000" class="dtstart">February 14th 10:30am</abbr>- | |
<abbr title="2011-02-15T11:15-05:00" class="dtend"> 11:15am 2011</abbr> : | |
<span class="summary">event</span> at | |
<span class="location">baltimore</span> | |
</a> | |
<div class="description">This is a super cool event in Baltimore.</div> | |
<div class="tags"> |
NewerOlder