├── worknotes.md ├── styles.css ├── code.js ├── README.md ├── index.html ├── source.opml └── LICENSE /worknotes.md: -------------------------------------------------------------------------------- 1 | #### 11/26/23; 5:15:48 PM by DW 2 | 3 | The minimum you need to be able to include a timeline from FeedLand in a browser-based app. 4 | 5 | -------------------------------------------------------------------------------- /styles.css: -------------------------------------------------------------------------------- 1 | body { 2 | background-color: whitesmoke; 3 | } 4 | .divConfigDisplay { 5 | width: 600px; 6 | margin-left: auto; 7 | margin-right: auto; 8 | margin-top: 50px; 9 | border: 1px solid silver; 10 | padding-top: 5px; 11 | padding-left: 5px; 12 | padding-right: 5px; 13 | } 14 | .divRiverContainer { 15 | margin-top: 50px; 16 | } 17 | -------------------------------------------------------------------------------- /code.js: -------------------------------------------------------------------------------- 1 | const appConsts = { 2 | urlFeedlandServer: "https://feedland.com/" 3 | } 4 | 5 | const riverSpec = { 6 | screenname: "davewiner", 7 | catname: "All" 8 | }; 9 | 10 | function startup () { 11 | console.log ("startup"); 12 | $("#idServerUrl").text ("Server URL: " + appConsts.urlFeedlandServer); 13 | $("#idRiverSpec").text ("River spec: " + jsonStringify (riverSpec)); 14 | displayTraditionalRiver (riverSpec, $(".divRiverContainer")); 15 | } 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # feedlandRiverInclude 2 | 3 | The minimum you need to be able to include a timeline from FeedLand in a browser-based app. 4 | 5 | ### What is this? 6 | 7 | We wanted to try displaying FeedLand timelines in WordPress. 8 | 9 | The idea is that people, organizations, news outlets, might want to include new items from other people who cover areas of interest. 10 | 11 | And many of them have WordPress sites. So we wanted to see if we could get this to happen. 12 | 13 | ### Maximal factoring 14 | 15 | The first step was to factor the code repeatedly until it was simple enough to be turned into a WordPress plugin. 16 | 17 | Now I'm going to ask people I work with to take a look, and see if this can be included in a plugin, and if not, what needs to change? 18 | 19 | ### What to look at? 20 | 21 | First try running the app, here. 22 | 23 | Look at code.js and see how it works. Not much there! 24 | 25 | Then look at the head section of index.html. There are quite a few script and css files included. 26 | 27 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |A demo app that shows how to include a FeedLand timeline, in a minimal way, in another app.
36 | 37 | 38 |