Add debate toggles

This commit is contained in:
Martín González
2016-12-29 10:45:12 +01:00
parent 5584835314
commit 28b452f994
6 changed files with 55 additions and 3 deletions

View File

@@ -50,6 +50,7 @@
//= require markdown_editor
//= require cocoon
//= require allegations
//= require legislation_debate
//= require legislation_questions
//= require custom
@@ -75,6 +76,7 @@ var initialize_modules = function() {
App.SocialShare.initialize();
App.MarkdownEditor.initialize();
App.Allegations.initialize();
App.LegislationDebate.initialize();
App.LegislationQuestions.initialize();
};

View File

@@ -0,0 +1,6 @@
App.LegislationDebate =
initialize: ->
$('#js-toggle-debate').on
click: ->
$('#debate-info').toggle()

View File

@@ -61,6 +61,10 @@
}
}
#debate-info {
display: none;
}
.half-gradient {
/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#e6e6e6+0,e6e6e6+50,ffffff+50 */
background: #e6e6e6; /* Old browsers */