Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

split lines: also for endl char

  • Loading branch information...
commit 66cf88273a83a54f3e194378452f7832afcb05b7 1 parent cdf5c3a
@brownman authored
View
13 README.rdoc
@@ -3,10 +3,23 @@ book-splitter for smartphones
todo:
+- text to ascii - dealing with endl - on song-texts
+- db - add element to story: right-to-left:boolean, title:string
+- using db - to store array structure
+- making js interaction more fast - dont save each edit on column
+- resize font with touch events (or else)
+- preformance: don't pull collection as default
+
+
- explenation page : implement a nav bar
- font size - resize screen with touch events
- individual db - user authenticate
- switch for: right to left paragraph
+- be able to add cards - quizes
+- using git more smartly
+- accomplish d' exam
+
+
==based on: Sample Backbone App using Backbone-relational
View
15 README.rdoc~
@@ -3,10 +3,23 @@ book-splitter for smartphones
todo:
-- explenation page : nav bar
+- text to ascii - dealing with endl - on song-texts
+- db - add element to story: right-to-left:boolean, title:string
+- using db - to store array structure
+- making js interaction more fast - dont save each edit on column
+- resize font with touch events (or else)
+- don't pull collection as default
+
+
+- explenation page : implement a nav bar
- font size - resize screen with touch events
- individual db - user authenticate
- switch for: right to left paragraph
+- be able to add cards - quizes
+- using git more smartly
+- accomplish d' exam
+
+
==based on: Sample Backbone App using Backbone-relational
View
13 app/assets/javascripts/backbone/models/comment.js.coffee
@@ -27,16 +27,19 @@ class RailsBackboneRelational.Models.Comment extends Backbone.RelationalModel
split : () ->
str = @get('content')
story_enc = str
- story_enc = story_enc.replace(/\n/g, " ")
- arr_symbols = [',', '!', '.', "?", ":", ";", "=" ]
+ # story_enc = story_enc.replace(/\n/g, "^")
+ arr_symbols = [',', '!', '.', "?", ":", ";", "=", "\n" ]
story_enc = @replace(story_enc, arr_symbols)
story_arr = story_enc.split('$')
story_arr
- #toJSON : () ->
- #json = _.clone(this.attributes);
- #json
+ toJSON1 : () ->
+ json = _.clone(this.attributes);
+ console.log(json)
+ json
+ #validate: () ->
+
class RailsBackboneRelational.Collections.CommentsCollection extends Backbone.Collection
model: RailsBackboneRelational.Models.Comment
url: '/comments'
View
14 app/assets/javascripts/backbone/models/comment.js.coffee~
@@ -3,7 +3,6 @@ class RailsBackboneRelational.Models.Comment extends Backbone.RelationalModel
defaults:
content: null
- done: false
#initialize: () ->
#console.log(this)
@@ -28,16 +27,19 @@ class RailsBackboneRelational.Models.Comment extends Backbone.RelationalModel
split : () ->
str = @get('content')
story_enc = str
- story_enc = story_enc.replace(/\n/g, " ")
- arr_symbols = [',', '!', '.', "?", ":", ";", "=" ]
+ # story_enc = story_enc.replace(/\n/g, "^")
+ arr_symbols = [',', '!', '.', "?", ":", ";", "=", "\n" ]
story_enc = @replace(story_enc, arr_symbols)
story_arr = story_enc.split('$')
story_arr
- #toJSON : () ->
- #json = _.clone(this.attributes);
- #json
+ toJSON1 : () ->
+ json = _.clone(this.attributes);
+ console.log(json)
+ json
+ #validate: () ->
+
class RailsBackboneRelational.Collections.CommentsCollection extends Backbone.Collection
model: RailsBackboneRelational.Models.Comment
url: '/comments'
View
2  app/assets/javascripts/backbone/templates/comments/comment.jst.ejs
@@ -1,7 +1,7 @@
<div >
-<input class='span12' type='text' value='<%= comment.content %>'></input>
+<input height='1em' class='span12' type='text' value='<%= comment.content %>'></input>
View
2  app/assets/javascripts/backbone/templates/comments/comment.jst.ejs~
@@ -1,7 +1,7 @@
<div >
-<input class='span12' type='text' value='<%= comment.content %>'></input>
+<input class='span12' type='text' value='<%= comment.content %>'></input>
View
6 app/assets/javascripts/backbone/templates/comments/new.jst.ejs
@@ -1,4 +1,4 @@
-<div class="field">
+<div class="field1 span3" height='1em' >
<label for="content"> Add Draft:</label>
- <input type="text" name="content" class="content" value="<%= content %>" >
-</div>
+ <textarea rows="1" wrap="hard" type="text" name="content" class="content" value="<%= content %>" />
+</div>
View
8 app/assets/javascripts/backbone/templates/comments/new.jst.ejs~
@@ -1,4 +1,4 @@
-<div class="field">
- <label for="content"> Add Story:</label>
- <input type="text" name="content" class="content" value="<%= content %>" >
-</div>
+<div class="field1 span12" height='1em' >
+ <label for="content"> Add Draft:</label>
+ <textarea rows="1" wrap="hard" type="text" name="content" class="content" value="<%= content %>" />
+</div>
View
14 app/assets/javascripts/backbone/templates/posts/index.jst.ejs~
@@ -3,5 +3,17 @@
<div id="posts-list" class="accordion" >
</div>
-<br/>
+
+
+
+
+
+<div id="google_translate_element"></div><script>
+function googleTranslateElementInit() {
+new google.translate.TranslateElement({
+pageLanguage: 'bg'
+}, 'google_translate_element');
+}
+</script><script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
+<iframe src="http://www.kid.ru/pesenki/1.php3" width="200" height="200"></iframe>
Please sign in to comment.
Something went wrong with that request. Please try again.