Skip to content

Commit

Permalink
Load Spritz text from Library
Browse files Browse the repository at this point in the history
  • Loading branch information
Tr4pSt3R committed Jun 19, 2014
1 parent 476de35 commit 2dadf11
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion app/assets/javascripts/blitz.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ $(document).ready(function(){
e.preventDefault();

content = $(this).data("library-content")
blitz(content);
$("#spritz_me").text( content );
// blitz(content);
});
});

Expand Down
2 changes: 2 additions & 0 deletions app/assets/stylesheets/bootstrap_overrider.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ body{
display: none;
}

.library-list{ max-height: 20px; }

/*#main {
visibility: none;
}*/
Expand Down
12 changes: 5 additions & 7 deletions app/views/libraries/index.html.haml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#main.row
.col-md-5.col-lg-5
.col-md-7.col-lg-7
= render :template => "libraries/new"

.col-md-5.col-lg-5
.library-list.col-md-5.col-lg-5
- if @libraries.empty?
.notice
Your Reading List is Empty
Expand All @@ -13,9 +13,8 @@
%th Title
%th Content
%th Source

%tbody
- @libraries.first do |library|
- @libraries.each do |library|
%tr
%td{ :class => "readingList",
:data => { :library_content => "#{library.content}" } }
Expand All @@ -26,13 +25,12 @@
= link_to "Edit", edit_library_path(library)
%td
= link_to "Destroy", library, method: :delete, confirm: "Are you sure you?"

.row
%button{ class: "button", role: "button" }
%a{ href: "javascript:(function(){ cb = function(){ create_spritz(); }; var script=document.createElement('SCRIPT');script.src='https://miserlou.github.io/OpenSpritz/spritz.js?callback=cb'; script.onload=cb; document.body.appendChild(script);})();" } Spritz Text!
#spritz_me
Our ebooks are free in the United States because their copyright has expired. They may not be free of copyright in other countries. Readers outside of the United States must check the copyright laws of their countries before downloading or redistributing our ebooks. We also have a number of copyrighted titles, for which the copyright holder has given permission for unlimited non-commercial worldwide use.
.row
#readthis.col-lg-10
We want to look this morning at the ingredients of glorifying God. Paul is praying in verses 3-11 of Philippians 1. Verses 3-8 are a prayer of thanksgiving. Paul is thanking the Lord for the Philippians and the joy that they have brought him. Now, in verses 9-11, we have a prayer of petition. Paul is praying for the continual spiritual progress of the Philippians. In verse 6, Paul expressed his confidence in their continued discipleship or fruitfulness and now he prays for that continuance.
We want to look this morning at the ingredients of glorifying God. Paul is praying in verses 3-11 of Philippians 1. Verses 3-8 are a prayer of thanksgiving. Paul is thanking the Lord for the Philippians and the joy that they have brought him. Now, in verses 9-11, we have a prayer of petition. Paul is praying for the continual spiritual progress of the Philippians. In verse 6, Paul expressed his confidence in their continued discipleship or fruitfulness and now he prays for that continuance.

0 comments on commit 2dadf11

Please sign in to comment.