Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add styling and fix minor md and coffee syntax errors

  • Loading branch information...
commit 2f3a72a5e218c886d52aee8d139237217ba9e07a 1 parent 9c3d03b
Andy Zhang authored
View
2  app/assets/javascripts/index.coffee
@@ -18,4 +18,4 @@ $ ->
$('.code a').click (event) ->
event.preventDefault()
- $(@).next('codeblock').slideToggle()
+ $(@).next('.codeblock').slideToggle()
View
3  app/assets/stylesheets/index.sass
@@ -2,4 +2,7 @@
display: none
.codeblock
+ background: grey
+ border-radius: 5px
+ -moz-border-radius: 5px
display: none
View
45 app/views/application/_send_comment.haml
@@ -1,28 +1,27 @@
-markdown:
+:markdown
javascript:
- var cmsLocation;
-
- cmsLocation = 'https://young-savannah-2721.herokuapp.com';
- return fyre.conv.load({
+ var cmsLocation = 'https://young-savannah-2721.herokuapp.com';
+ fyre.conv.load({
network: 'thedailybeast.fyre.co'
- }, [
- {
- siteId: '308094',
- articleId: '/content/dailybeast/cheats/2013/03/20/weed-found-on-rihanna-s-tour-bus',
- el: 'livefyre-app'
- }
- ], function(widget) {
- return widget.on("initialRenderComplete", function(widget) {
- return $('.fyre-comment-article').click(function(e) {
- var commentJSON;
+ }, [
+ {
+ siteId: '308094',
+ articleId: '/content/dailybeast/cheats/2013/03/20/weed-found-on-rihanna-s-tour-bus',
+ el: 'livefyre-app'
+ }
+ ], function(widget) {
+ widget.on("initialRenderComplete", function(widget) {
+ $('.fyre-comment-article').click(function(e) {
+ var commentJSON;
- commentJSON = {
- commentId: e.currentTarget.id.split('fyre-message-')[1],
- commentAuthor: $(e.currentTarget).find('.fyre-comment-username')[0].text,
- commentHTML: $(e.currentTarget).find('.fyre-comment')[0].innerHTML
- };
- return window.opener.postMessage(commentJSON, cmsLocation);
+ commentJSON = {
+ commentId: e.currentTarget.id.split('fyre-message-')[1],
+ commentAuthor: $(e.currentTarget).find('.fyre-comment-username')[0].text,
+ commentHTML: $(e.currentTarget).find('.fyre-comment')[0].innerHTML
+ };
+ window.opener.postMessage(commentJSON, cmsLocation);
+ });
});
- });
- });
+ }
+ );
Please sign in to comment.
Something went wrong with that request. Please try again.