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
cleanUpNotifications: function() { | |
var now = Date.now() | |
var _this = this; | |
this.state.notifications.map(function(notification,i) { | |
if (now - notification.added > _this.props.cleanUpInterval) { | |
_this.handleRemove(i) | |
} | |
}) | |
}, |
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
import Flux from 'path/to/flux.js' | |
window.MyApp.flux = new Flux() |
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
$controls.find('a').each(function(index){ | |
var $this = $(this) | |
$this.data('active',false) | |
$this.bind('click',function(e){ | |
e.preventDefault() | |
if (!$this.data('active')) { | |
$this.data('active',true) | |
switch (index) { | |
case 0: | |
// up |
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
.new-deals-indicator { | |
-webkit-animation-name: gentleBounce; | |
-webkit-animation-duration: 3s; | |
-webkit-animation-timing-function: ease-in-out; | |
-webkit-animation-iteration-count: infinite; | |
} | |
@-webkit-keyframes gentleBounce { | |
0% { | |
@include translateY(0) | |
} |
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
asdfasfd |
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
$('#client_catalog-category-view').live('pagecreate',function(event){ | |
// alert('This page was just enhanced by jQuery Mobile!'); | |
viewToggles.init() | |
loadMore.init() | |
}); | |
// Product Array - View as Toggles | |
var viewToggles = { | |
init: function() { | |
$('#filters_view-as').find('a').bind('click',function(e){ |
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
/* Prevents flash of unstyled content as jqm loads */ | |
body { | |
background: black; | |
[data-role="page"] { | |
visibility: hidden; | |
} | |
} | |
.ui-mobile-viewport { | |
[data-role="page"] { | |
visibility: visible; |
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
@for $i from 1 through 5 { | |
article:nth-child(2n + $i) { | |
top: $i*20px; | |
opacity: 0.5; | |
} | |
} |
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
# my helper | |
def logged_in() | |
"\#{request.boolean_param(logged_in)}" | |
end | |
# my template code | |
<% if !logged_in %> | |
<script type="text/javascript" charset="utf-8"> | |
alert('done') | |
</script> |
OlderNewer