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
$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 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
.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 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
asdfasfd |
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
$('#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 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
/* 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 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
@for $i from 1 through 5 { | |
article:nth-child(2n + $i) { | |
top: $i*20px; | |
opacity: 0.5; | |
} | |
} |
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
# 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> |
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
@mixin skeleton-button( | |
$old-browser-background: #eee, | |
$up-background:linear-gradient(rgba(255,255,255,.2),rgba(0,0,0,.25)), | |
$hover-background:linear-gradient(rgba(255,255,255,.3),rgba(0,0,0,.3)), | |
$active-background:linear-gradient(rgba(0,0,0,.3) 0%,rgba(255,255,255,.3)), | |
$up-color:#444, | |
$hover-color:#222, | |
$text-shadow: rgba(255,255,255,.75) 0 1px, | |
$font-size: 11px, | |
$font-weight: bold, |
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
@mixin button-function(param,param,param) { | |
// does this | |
} | |
.button-default { | |
@include button-function(); | |
} | |
.button-special { | |
@include button-function(param:defined); | |
} |
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
$ rake spec --trace | |
** Invoke spec (first_time) | |
** Invoke db:test:prepare (first_time) | |
** Invoke db:abort_if_pending_migrations (first_time) | |
** Invoke environment (first_time) | |
** Execute environment | |
** Execute db:abort_if_pending_migrations | |
** Execute db:test:prepare | |
** Invoke db:test:load (first_time) | |
** Invoke db:test:purge (first_time) |
OlderNewer