From 805cd051668281e327500b62c1bed1598855b1a2 Mon Sep 17 00:00:00 2001 From: Is Isilon Date: Fri, 29 Jan 2016 16:44:58 +0800 Subject: [PATCH 1/6] Moved demo data to seperate file --- public/javascripts/data/demo_data.js | 113 +++++++++++++++++++++++++++ public/javascripts/views/list.js | 8 +- 2 files changed, 117 insertions(+), 4 deletions(-) create mode 100644 public/javascripts/data/demo_data.js diff --git a/public/javascripts/data/demo_data.js b/public/javascripts/data/demo_data.js new file mode 100644 index 0000000..a595406 --- /dev/null +++ b/public/javascripts/data/demo_data.js @@ -0,0 +1,113 @@ +[{ + "id": 80, + "content": "Welcome to HackFlowy!", + "parentId": 0, + "isCompleted": false, + "priority": 0, + "createdAt": "2016-01-29T05:44:30.858Z", + "updatedAt": "2016-01-29T05:44:30.858Z" +}, { + "id": 81, + "content": "An open-source WorkFlowy clone", + "parentId": 0, + "isCompleted": false, + "priority": 0, + "createdAt": "2016-01-29T05:44:30.858Z", + "updatedAt": "2016-01-29T05:44:30.858Z" +}, { + "id": 82, + "content": "Built using Backbone + Socket.IO", + "parentId": 0, + "isCompleted": false, + "priority": 0, + "createdAt": "2016-01-29T05:44:30.858Z", + "updatedAt": "2016-01-29T05:44:30.858Z" +}, { + "id": 83, + "content": "Desyncr pulled this together in a few hours to learn Backbone", + "parentId": 0, + "isCompleted": false, + "priority": 0, + "createdAt": "2016-01-29T05:44:30.858Z", + "updatedAt": "2016-01-29T05:44:30.858Z" +}, { + "id": 84, + "content": "Feel free to try it out and hack on it", + "parentId": 0, + "isCompleted": false, + "priority": 0, + "createdAt": "2016-01-29T05:44:30.858Z", + "updatedAt": "2016-01-29T05:44:30.858Z" +}, { + "id": 85, + "content": "Good Luck!", + "parentId": 0, + "isCompleted": false, + "priority": 0, + "createdAt": "2016-01-29T05:44:30.858Z", + "updatedAt": "2016-01-29T05:44:30.858Z" +}, { + "id": 86, + "content": "P.S", + "parentId": 0, + "isCompleted": false, + "priority": 0, + "createdAt": "2016-01-29T05:44:40.978Z", + "updatedAt": "2016-01-29T05:44:40.978Z" +}, { + "id": 88, + "content": "It makes sense if you don't think about it; I haven't", + "parentId": 0, + "isCompleted": false, + "priority": 0, + "createdAt": "2016-01-29T05:44:58.737Z", + "updatedAt": "2016-01-29T05:45:50.939Z" +}, { + "id": 89, + "content": "Make love not war", + "parentId": 88, + "isCompleted": false, + "priority": 0, + "createdAt": "2016-01-29T05:45:03.048Z", + "updatedAt": "2016-01-29T05:45:57.481Z" +}, { + "id": 91, + "content": "Love can be brought not sold", + "parentId": 88, + "isCompleted": false, + "priority": 0, + "createdAt": "2016-01-29T05:45:32.331Z", + "updatedAt": "2016-01-29T05:46:10.478Z" +}, { + "id": 93, + "content": "How do I love thee? Let me count the ways - Shakespear", + "parentId": 88, + "isCompleted": false, + "priority": 0, + "createdAt": "2016-01-29T05:46:25.119Z", + "updatedAt": "2016-01-29T05:48:00.604Z" +}, { + "id": 95, + "content": "Therefore: love can be listed and lists can be loved", + "parentId": 88, + "isCompleted": false, + "priority": 0, + "createdAt": "2016-01-29T05:46:38.998Z", + "updatedAt": "2016-01-29T05:48:22.937Z" +}, { + "id": 96, + "content": "Conclusion: lists and love should be free", + "parentId": 88, + "isCompleted": false, + "priority": 0, + "createdAt": "2016-01-29T05:47:26.684Z", + "updatedAt": "2016-01-29T05:48:29.796Z" +}, { + "id": 97, + "content": "But how can our lists be real if our love isnt? - Jaden Smith", + "parentId": 88, + "isCompleted": false, + "priority": 0, + "createdAt": "2016-01-29T05:47:46.930Z", + "updatedAt": "2016-01-29T05:47:46.930Z" +}] diff --git a/public/javascripts/views/list.js b/public/javascripts/views/list.js index 03916ae..957ebd7 100644 --- a/public/javascripts/views/list.js +++ b/public/javascripts/views/list.js @@ -1,17 +1,17 @@ -var demoData = [{"id":80,"content":"Welcome to HackFlowy!","parentId":0,"isCompleted":false,"priority":0,"createdAt":"2016-01-29T05:44:30.858Z","updatedAt":"2016-01-29T05:44:30.858Z"},{"id":81,"content":"An open-source WorkFlowy clone","parentId":0,"isCompleted":false,"priority":0,"createdAt":"2016-01-29T05:44:30.858Z","updatedAt":"2016-01-29T05:44:30.858Z"},{"id":82,"content":"Built using Backbone + Socket.IO","parentId":0,"isCompleted":false,"priority":0,"createdAt":"2016-01-29T05:44:30.858Z","updatedAt":"2016-01-29T05:44:30.858Z"},{"id":83,"content":"Desyncr pulled this together in a few hours to learn Backbone","parentId":0,"isCompleted":false,"priority":0,"createdAt":"2016-01-29T05:44:30.858Z","updatedAt":"2016-01-29T05:44:30.858Z"},{"id":84,"content":"Feel free to try it out and hack on it","parentId":0,"isCompleted":false,"priority":0,"createdAt":"2016-01-29T05:44:30.858Z","updatedAt":"2016-01-29T05:44:30.858Z"},{"id":85,"content":"Good Luck!","parentId":0,"isCompleted":false,"priority":0,"createdAt":"2016-01-29T05:44:30.858Z","updatedAt":"2016-01-29T05:44:30.858Z"},{"id":86,"content":"P.S","parentId":0,"isCompleted":false,"priority":0,"createdAt":"2016-01-29T05:44:40.978Z","updatedAt":"2016-01-29T05:44:40.978Z"},{"id":88,"content":"It makes sense if you don't think about it; I haven't","parentId":0,"isCompleted":false,"priority":0,"createdAt":"2016-01-29T05:44:58.737Z","updatedAt":"2016-01-29T05:45:50.939Z"},{"id":89,"content":"Make love not war","parentId":88,"isCompleted":false,"priority":0,"createdAt":"2016-01-29T05:45:03.048Z","updatedAt":"2016-01-29T05:45:57.481Z"},{"id":91,"content":"Love can be brought not sold","parentId":88,"isCompleted":false,"priority":0,"createdAt":"2016-01-29T05:45:32.331Z","updatedAt":"2016-01-29T05:46:10.478Z"},{"id":93,"content":"How do I love thee? Let me count the ways - Shakespear","parentId":88,"isCompleted":false,"priority":0,"createdAt":"2016-01-29T05:46:25.119Z","updatedAt":"2016-01-29T05:48:00.604Z"},{"id":95,"content":"Therefore: love can be listed and lists can be loved","parentId":88,"isCompleted":false,"priority":0,"createdAt":"2016-01-29T05:46:38.998Z","updatedAt":"2016-01-29T05:48:22.937Z"},{"id":96,"content":"Conclusion: lists and love should be free","parentId":88,"isCompleted":false,"priority":0,"createdAt":"2016-01-29T05:47:26.684Z","updatedAt":"2016-01-29T05:48:29.796Z"},{"id":97,"content":"But how can our lists be real if our love isnt? - Jaden Smith","parentId":88,"isCompleted":false,"priority":0,"createdAt":"2016-01-29T05:47:46.930Z","updatedAt":"2016-01-29T05:47:46.930Z"}]; - define( ['jquery', 'backbone', 'collections/list', - 'views/task' + 'views/task', + 'demoData' ], function ( $, Backbone, List, - TaskView + TaskView, + demoData ) { var ListView = Backbone.View.extend({ From 2996b174b80239ee44ec6b18ca9b243f7476f772 Mon Sep 17 00:00:00 2001 From: Is Isilon Date: Fri, 29 Jan 2016 16:53:52 +0800 Subject: [PATCH 2/6] Moved demo data to seperate file --- public/javascripts/app.js | 1 + public/javascripts/data/demo_data.js | 228 ++++++++++++++------------- 2 files changed, 116 insertions(+), 113 deletions(-) diff --git a/public/javascripts/app.js b/public/javascripts/app.js index 388bac3..c85cceb 100644 --- a/public/javascripts/app.js +++ b/public/javascripts/app.js @@ -8,6 +8,7 @@ require.config({ modernizr: "vendor/custom.modernizr", socket: "../bower_components/socket.io-client/socket.io", text: '../bower_components/text/text', + demoData: '../javascripts/data/demo_data', }, map: { "*": { diff --git a/public/javascripts/data/demo_data.js b/public/javascripts/data/demo_data.js index a595406..bb8aac6 100644 --- a/public/javascripts/data/demo_data.js +++ b/public/javascripts/data/demo_data.js @@ -1,113 +1,115 @@ -[{ - "id": 80, - "content": "Welcome to HackFlowy!", - "parentId": 0, - "isCompleted": false, - "priority": 0, - "createdAt": "2016-01-29T05:44:30.858Z", - "updatedAt": "2016-01-29T05:44:30.858Z" -}, { - "id": 81, - "content": "An open-source WorkFlowy clone", - "parentId": 0, - "isCompleted": false, - "priority": 0, - "createdAt": "2016-01-29T05:44:30.858Z", - "updatedAt": "2016-01-29T05:44:30.858Z" -}, { - "id": 82, - "content": "Built using Backbone + Socket.IO", - "parentId": 0, - "isCompleted": false, - "priority": 0, - "createdAt": "2016-01-29T05:44:30.858Z", - "updatedAt": "2016-01-29T05:44:30.858Z" -}, { - "id": 83, - "content": "Desyncr pulled this together in a few hours to learn Backbone", - "parentId": 0, - "isCompleted": false, - "priority": 0, - "createdAt": "2016-01-29T05:44:30.858Z", - "updatedAt": "2016-01-29T05:44:30.858Z" -}, { - "id": 84, - "content": "Feel free to try it out and hack on it", - "parentId": 0, - "isCompleted": false, - "priority": 0, - "createdAt": "2016-01-29T05:44:30.858Z", - "updatedAt": "2016-01-29T05:44:30.858Z" -}, { - "id": 85, - "content": "Good Luck!", - "parentId": 0, - "isCompleted": false, - "priority": 0, - "createdAt": "2016-01-29T05:44:30.858Z", - "updatedAt": "2016-01-29T05:44:30.858Z" -}, { - "id": 86, - "content": "P.S", - "parentId": 0, - "isCompleted": false, - "priority": 0, - "createdAt": "2016-01-29T05:44:40.978Z", - "updatedAt": "2016-01-29T05:44:40.978Z" -}, { - "id": 88, - "content": "It makes sense if you don't think about it; I haven't", - "parentId": 0, - "isCompleted": false, - "priority": 0, - "createdAt": "2016-01-29T05:44:58.737Z", - "updatedAt": "2016-01-29T05:45:50.939Z" -}, { - "id": 89, - "content": "Make love not war", - "parentId": 88, - "isCompleted": false, - "priority": 0, - "createdAt": "2016-01-29T05:45:03.048Z", - "updatedAt": "2016-01-29T05:45:57.481Z" -}, { - "id": 91, - "content": "Love can be brought not sold", - "parentId": 88, - "isCompleted": false, - "priority": 0, - "createdAt": "2016-01-29T05:45:32.331Z", - "updatedAt": "2016-01-29T05:46:10.478Z" -}, { - "id": 93, - "content": "How do I love thee? Let me count the ways - Shakespear", - "parentId": 88, - "isCompleted": false, - "priority": 0, - "createdAt": "2016-01-29T05:46:25.119Z", - "updatedAt": "2016-01-29T05:48:00.604Z" -}, { - "id": 95, - "content": "Therefore: love can be listed and lists can be loved", - "parentId": 88, - "isCompleted": false, - "priority": 0, - "createdAt": "2016-01-29T05:46:38.998Z", - "updatedAt": "2016-01-29T05:48:22.937Z" -}, { - "id": 96, - "content": "Conclusion: lists and love should be free", - "parentId": 88, - "isCompleted": false, - "priority": 0, - "createdAt": "2016-01-29T05:47:26.684Z", - "updatedAt": "2016-01-29T05:48:29.796Z" -}, { - "id": 97, - "content": "But how can our lists be real if our love isnt? - Jaden Smith", - "parentId": 88, - "isCompleted": false, - "priority": 0, - "createdAt": "2016-01-29T05:47:46.930Z", - "updatedAt": "2016-01-29T05:47:46.930Z" -}] + define(function (require) { + return [{ + "id": 80, + "content": "Welcome to HackFlowy!", + "parentId": 0, + "isCompleted": false, + "priority": 0, + "createdAt": "2016-01-29T05:44:30.858Z", + "updatedAt": "2016-01-29T05:44:30.858Z" + }, { + "id": 81, + "content": "An open-source WorkFlowy clone", + "parentId": 0, + "isCompleted": false, + "priority": 0, + "createdAt": "2016-01-29T05:44:30.858Z", + "updatedAt": "2016-01-29T05:44:30.858Z" + }, { + "id": 82, + "content": "Built using Backbone + Socket.IO", + "parentId": 0, + "isCompleted": false, + "priority": 0, + "createdAt": "2016-01-29T05:44:30.858Z", + "updatedAt": "2016-01-29T05:44:30.858Z" + }, { + "id": 83, + "content": "Desyncr pulled this together in a few hours to learn Backbone", + "parentId": 0, + "isCompleted": false, + "priority": 0, + "createdAt": "2016-01-29T05:44:30.858Z", + "updatedAt": "2016-01-29T05:44:30.858Z" + }, { + "id": 84, + "content": "Feel free to try it out and hack on it", + "parentId": 0, + "isCompleted": false, + "priority": 0, + "createdAt": "2016-01-29T05:44:30.858Z", + "updatedAt": "2016-01-29T05:44:30.858Z" + }, { + "id": 85, + "content": "Good Luck!", + "parentId": 0, + "isCompleted": false, + "priority": 0, + "createdAt": "2016-01-29T05:44:30.858Z", + "updatedAt": "2016-01-29T05:44:30.858Z" + }, { + "id": 86, + "content": "P.S", + "parentId": 0, + "isCompleted": false, + "priority": 0, + "createdAt": "2016-01-29T05:44:40.978Z", + "updatedAt": "2016-01-29T05:44:40.978Z" + }, { + "id": 88, + "content": "It makes sense if you don't think about it; I haven't", + "parentId": 0, + "isCompleted": false, + "priority": 0, + "createdAt": "2016-01-29T05:44:58.737Z", + "updatedAt": "2016-01-29T05:45:50.939Z" + }, { + "id": 89, + "content": "Make love not war", + "parentId": 88, + "isCompleted": false, + "priority": 0, + "createdAt": "2016-01-29T05:45:03.048Z", + "updatedAt": "2016-01-29T05:45:57.481Z" + }, { + "id": 91, + "content": "Love can be brought not sold", + "parentId": 88, + "isCompleted": false, + "priority": 0, + "createdAt": "2016-01-29T05:45:32.331Z", + "updatedAt": "2016-01-29T05:46:10.478Z" + }, { + "id": 93, + "content": "How do I love thee? Let me count the ways - Shakespeare", + "parentId": 88, + "isCompleted": false, + "priority": 0, + "createdAt": "2016-01-29T05:46:25.119Z", + "updatedAt": "2016-01-29T05:48:00.604Z" + }, { + "id": 95, + "content": "Therefore: love can be listed and lists can be loved", + "parentId": 88, + "isCompleted": false, + "priority": 0, + "createdAt": "2016-01-29T05:46:38.998Z", + "updatedAt": "2016-01-29T05:48:22.937Z" + }, { + "id": 96, + "content": "Conclusion: lists and love should be free", + "parentId": 88, + "isCompleted": false, + "priority": 0, + "createdAt": "2016-01-29T05:47:26.684Z", + "updatedAt": "2016-01-29T05:48:29.796Z" + }, { + "id": 97, + "content": "But how can our lists be real if our love isnt? - Jaden Smith", + "parentId": 88, + "isCompleted": false, + "priority": 0, + "createdAt": "2016-01-29T05:47:46.930Z", + "updatedAt": "2016-01-29T05:47:46.930Z" + }]; + }); From 14af17e1b4136164512340edfee08a63306c48b6 Mon Sep 17 00:00:00 2001 From: Is Isilon Date: Fri, 29 Jan 2016 19:52:05 +0800 Subject: [PATCH 3/6] Got localstorage working --- bower.json | 5 +- public/javascripts/app.js | 2 +- public/javascripts/collections/list.js | 11 ++- public/javascripts/data/demo_data.js | 115 ------------------------- public/javascripts/views/list.js | 33 ++++--- 5 files changed, 34 insertions(+), 132 deletions(-) delete mode 100644 public/javascripts/data/demo_data.js diff --git a/bower.json b/bower.json index f7a8bff..4857b9e 100644 --- a/bower.json +++ b/bower.json @@ -15,10 +15,13 @@ "text": "requirejs-text#~2.0.14", "jquery": "~2.2.0", "backbone": "~1.2.3", + "backbone.localStorage": "1.1.16", "lodash": "~4.0.1", "requirejs": "~2.1.22", "underscore": "~1.8.3", "modernizr": "~3.3.1", - "zepto": "~1.1.6" + "zepto": "~1.1.6", + "localforage": "~1.3.3", + "localforage-backbone": "~0.6.2" } } diff --git a/public/javascripts/app.js b/public/javascripts/app.js index c85cceb..e03d150 100644 --- a/public/javascripts/app.js +++ b/public/javascripts/app.js @@ -5,10 +5,10 @@ require.config({ jquery: '../bower_components/jquery/dist/jquery', lodash: "../bower_components/lodash/dist/lodash.min", backbone: '../bower_components/backbone/backbone', + localstorage: '../bower_components/backbone.localStorage/backbone.localStorage', modernizr: "vendor/custom.modernizr", socket: "../bower_components/socket.io-client/socket.io", text: '../bower_components/text/text', - demoData: '../javascripts/data/demo_data', }, map: { "*": { diff --git a/public/javascripts/collections/list.js b/public/javascripts/collections/list.js index 8f65eb6..0dde463 100644 --- a/public/javascripts/collections/list.js +++ b/public/javascripts/collections/list.js @@ -1,21 +1,24 @@ define( [ 'backbone', -'models/task' +'models/task', +'localstorage', ], function( Backbone, -Task +Task, +LocalStorage ) { var List = Backbone.Collection.extend({ + localStorage: new Backbone.LocalStorage("tasks"), model: Task, url: '/tasks' - + }); return List; -}); \ No newline at end of file +}); diff --git a/public/javascripts/data/demo_data.js b/public/javascripts/data/demo_data.js deleted file mode 100644 index bb8aac6..0000000 --- a/public/javascripts/data/demo_data.js +++ /dev/null @@ -1,115 +0,0 @@ - define(function (require) { - return [{ - "id": 80, - "content": "Welcome to HackFlowy!", - "parentId": 0, - "isCompleted": false, - "priority": 0, - "createdAt": "2016-01-29T05:44:30.858Z", - "updatedAt": "2016-01-29T05:44:30.858Z" - }, { - "id": 81, - "content": "An open-source WorkFlowy clone", - "parentId": 0, - "isCompleted": false, - "priority": 0, - "createdAt": "2016-01-29T05:44:30.858Z", - "updatedAt": "2016-01-29T05:44:30.858Z" - }, { - "id": 82, - "content": "Built using Backbone + Socket.IO", - "parentId": 0, - "isCompleted": false, - "priority": 0, - "createdAt": "2016-01-29T05:44:30.858Z", - "updatedAt": "2016-01-29T05:44:30.858Z" - }, { - "id": 83, - "content": "Desyncr pulled this together in a few hours to learn Backbone", - "parentId": 0, - "isCompleted": false, - "priority": 0, - "createdAt": "2016-01-29T05:44:30.858Z", - "updatedAt": "2016-01-29T05:44:30.858Z" - }, { - "id": 84, - "content": "Feel free to try it out and hack on it", - "parentId": 0, - "isCompleted": false, - "priority": 0, - "createdAt": "2016-01-29T05:44:30.858Z", - "updatedAt": "2016-01-29T05:44:30.858Z" - }, { - "id": 85, - "content": "Good Luck!", - "parentId": 0, - "isCompleted": false, - "priority": 0, - "createdAt": "2016-01-29T05:44:30.858Z", - "updatedAt": "2016-01-29T05:44:30.858Z" - }, { - "id": 86, - "content": "P.S", - "parentId": 0, - "isCompleted": false, - "priority": 0, - "createdAt": "2016-01-29T05:44:40.978Z", - "updatedAt": "2016-01-29T05:44:40.978Z" - }, { - "id": 88, - "content": "It makes sense if you don't think about it; I haven't", - "parentId": 0, - "isCompleted": false, - "priority": 0, - "createdAt": "2016-01-29T05:44:58.737Z", - "updatedAt": "2016-01-29T05:45:50.939Z" - }, { - "id": 89, - "content": "Make love not war", - "parentId": 88, - "isCompleted": false, - "priority": 0, - "createdAt": "2016-01-29T05:45:03.048Z", - "updatedAt": "2016-01-29T05:45:57.481Z" - }, { - "id": 91, - "content": "Love can be brought not sold", - "parentId": 88, - "isCompleted": false, - "priority": 0, - "createdAt": "2016-01-29T05:45:32.331Z", - "updatedAt": "2016-01-29T05:46:10.478Z" - }, { - "id": 93, - "content": "How do I love thee? Let me count the ways - Shakespeare", - "parentId": 88, - "isCompleted": false, - "priority": 0, - "createdAt": "2016-01-29T05:46:25.119Z", - "updatedAt": "2016-01-29T05:48:00.604Z" - }, { - "id": 95, - "content": "Therefore: love can be listed and lists can be loved", - "parentId": 88, - "isCompleted": false, - "priority": 0, - "createdAt": "2016-01-29T05:46:38.998Z", - "updatedAt": "2016-01-29T05:48:22.937Z" - }, { - "id": 96, - "content": "Conclusion: lists and love should be free", - "parentId": 88, - "isCompleted": false, - "priority": 0, - "createdAt": "2016-01-29T05:47:26.684Z", - "updatedAt": "2016-01-29T05:48:29.796Z" - }, { - "id": 97, - "content": "But how can our lists be real if our love isnt? - Jaden Smith", - "parentId": 88, - "isCompleted": false, - "priority": 0, - "createdAt": "2016-01-29T05:47:46.930Z", - "updatedAt": "2016-01-29T05:47:46.930Z" - }]; - }); diff --git a/public/javascripts/views/list.js b/public/javascripts/views/list.js index 957ebd7..c9de32c 100644 --- a/public/javascripts/views/list.js +++ b/public/javascripts/views/list.js @@ -3,7 +3,7 @@ define( 'backbone', 'collections/list', 'views/task', - 'demoData' + 'data/demo' ], function ( @@ -24,18 +24,29 @@ define( initialize: function () { Tasks = this.collection = new List(); - var fetchPromise = this.collection.fetch(); - - fetchPromise.fail(function (e) { - // if the server isn't running load some demo data and a demo warning - $('#header').append('
Warning: Running in demo mode, all work will be lost
'); - var data = demoData; - for (var i = 0; i < data.length; i++) { - Tasks.add(data[i]); - } - }, this); this.listenTo(this.collection, 'add', this.renderTask); + + this.collection.fetch() + .fail(function (e) { + // if the server isn't running so load some demo data and a demo warning + $('#header').append('
Warning: Running in demo mode, all work will be lost
'); + for (var i = 0; i < demoData.length; i++) { + Tasks.add(demoData[i]); + } + }) + .always(function(data){ + console.log({data:data}); + if (data.length===0){ + // if the server isn't running so load some demo data and a demo warning + $('#header').append('
Warning: Running in demo mode, work will be lost
'); + for (var i = 0; i < demoData.length; i++) { + var task = Tasks.add(demoData[i]); + task.save(); + } + } + }); + }, render: function (data) { From b13a9c34832358656a3ca7995f59c7d7ce2f5400 Mon Sep 17 00:00:00 2001 From: Is Isilon Date: Fri, 29 Jan 2016 20:49:41 +0800 Subject: [PATCH 4/6] More list qoutes, I'm sorry --- public/index.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index 3bd47d7..a880863 100644 --- a/public/index.html +++ b/public/index.html @@ -39,7 +39,17 @@ "There is never a time or place for a true list. It happens accidentally, in a heartbeat, in a single flashing, throbbing moment - Sarah Dessen.", "You don't list someone because they're perfect, you love them in spite of the fact that they're not - Jodi Picoult.", "A List never dies a natural death. It dies because we don't know how to replenish its source. It dies of blindness and errors and betrayals. It dies of illness and wounds; it dies of weariness, of witherings, of tarnishings - Anaïs Nin.", - "The real lover is the man who can thrill you by kissing your forehead or smiling into your eyes or just staring into space - Marilyn Monroe." + "The real lover is the man who can thrill you by kissing your forehead or smiling into your eyes or just staring into space - Marilyn Monroe.", + "I list you and that's the beginning and end of everything - F. Scott Fitzgerald.", + "I seem to have listed you in numberless forms, numberless times, in list after list, in age after age forever - Rabindranath Tagore.", + "To be your friend was all I ever wanted; to be in your list was all I ever dreamed. - Valerie Lombardo.", + "To the list, you may be one item, but to one item you are the list - Bill Wilson.", + "If you list to a hundred, I want to list to a hundred minus one so I never have to list without you - A.A. Milne.", + "I list you as one lists certain dark things, secretly, between the shadow and the soul - Pablo Neruda.", + "Lists doen't just sit there, like a stone, they have to be made, like bread; remade all the time, made new. - Ursula K. Le Guin", + "It was list at first sight, at last sight, at ever and ever sight. - Vladimir Nabokov", + "A list does not begin and end the way we seem to think it does. A list is a battle, a list is a war; a list is a growing up. - James Baldwin", + "When a list is not madness it is not a list. - Pedro Calderón de la Barca." ] var elem = document.getElementById("footer-qoute"); var newQoute = qoutes[Math.floor(Math.random() * qoutes.length)] + ' <3 Open Source.'; From 39d4284de3d61e69fc1cc65c73062a54f1ad9c88 Mon Sep 17 00:00:00 2001 From: Is Isilon Date: Fri, 29 Jan 2016 21:28:38 +0800 Subject: [PATCH 5/6] More list qoutes, I'm sorry --- public/index.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/public/index.html b/public/index.html index a880863..116828e 100644 --- a/public/index.html +++ b/public/index.html @@ -31,15 +31,14 @@