Suppose you have River4 running, generating a few River.js files, and you want to include one in your news site or blog. That's why I put this simple example page together, to provide source code you can crib to do the job.
The code on the Hello River page is yours to do with as you please. But the files it includes are copyrighted and not at this time available under an open source license.
Include river.js and river.css in your page. It automatically includes the files it needs.
The other files we include, the Lora font, menus.css, are just to make the sample app look good. They aren't required for your pages.
To load a river, call httpGetRiver with the url of the River.js file as its only parameter.
The commands in the Rivers menu loads a few of the rivers that my server maintains.
I needed to remove the inclusion of jQuery and Bootstrap from river.js, so the river code could be included in Fargo's rendered pages. This means the Hello World app changed, and your code will have to change as well.
Just add the three lines in the <head> section of your page as the example does.
<link href="http://fargo.io/code/bootstrap.css" rel="stylesheet">
I removed the top and bottom margin from .divRiverContainer. It really should be up to the application that includes the river to determine what space is left above and below the river.