Testing fab
parent
065a755072
commit
4204fbbc1a
|
@ -1,4 +1,8 @@
|
|||
import os
|
||||
|
||||
from fabric.api import local
|
||||
|
||||
def deploy():
|
||||
print 'hi'
|
||||
BASE_PATH = os.path.dirname(__file__)
|
||||
local('lessc %s/media/css/style.less %s/media/css/style.css' % (BASE_PATH, BASE_PATH))
|
||||
local('coffee -c %s/media/js/script.coffee' % (BASE_PATH))
|
||||
|
|
|
@ -433,3 +433,6 @@ article.snipt footer ul.attrs li.comments {
|
|||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
body {
|
||||
background: blue;
|
||||
}
|
||||
|
|
|
@ -515,3 +515,7 @@ article.snipt {
|
|||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
body {
|
||||
background: blue;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
(function() {
|
||||
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
|
||||
$(__bind(function() {
|
||||
$(document).bind('keyup', '/', function() {
|
||||
return $('input#search-query').focus();
|
||||
});
|
||||
$('div.infield label').inFieldLabels();
|
||||
$('section.code a.expand').click(function() {
|
||||
var el;
|
||||
el = $(this).parent();
|
||||
el.toggleClass('expanded');
|
||||
if (el.hasClass('expanded')) {
|
||||
el.css('height', 'auto');
|
||||
$(this).text('Collapse');
|
||||
} else {
|
||||
el.css('height', '200px');
|
||||
$(this).text('Expand');
|
||||
}
|
||||
return false;
|
||||
});
|
||||
return false;
|
||||
}, this));
|
||||
}).call(this);
|
Loading…
Reference in New Issue