-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
223 lines (205 loc) · 6.93 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<meta name="keywords" content="html5, library, framework, javascript" />
<title>freedom.js: the P2P Web Framework</title>
<link href="https://fonts.googleapis.com/css?family=Chivo:900" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="css/stylesheet.css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/pygment_trac.css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/print.css" media="print" />
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div id="container">
<div class="inner">
<!-- logo -->
<header>
<h1 id="logo">freedom.js<h1>
<h4>freeing your DOM since 2012</h5>
</header>
<!-- navbar -->
<section>
<nav class="navbar center">
<ul>
<li><a href="dist/freedom/latest/demo/" id="demo" class="button">
<span class='triangle'>▶</span><span>Examples</span>
</a></li>
<li><a href="https://github.com/freedomjs/freedom/wiki"
id="download-freedom"
class="button">
<span>Documentation</span>
</a></li>
<li><a href="https://github.com/freedomjs/freedom"
id="view-on-github"
class="button">
<span>Source</span>
</a></li>
</ul>
</nav>
</section>
<!-- jumbotron! -->
<!-- freedom v0.5 syntax
<script type="text/javascript"
src="dist/freedom/v0.5/freedom.js"
data-manifest="dist/freedom/v0.5/demo/connections/manifest.json">
{
"stayLocal": true,
"debug": true
}
</script>
<script type="text/javascript">
freedom.on("height", function(h) {
document.getElementById("connections").style.height = h + 'px';
});
</script>
-->
<script type="text/javascript" src="dist/freedom/latest/freedom.js"></script>
<script type="text/javascript">
freedom('dist/freedom/latest/demo/connections/connections.json', { debug: 'debug' }).then(function (instance) {
instance().on("height", function(h) {
document.getElementById("connections").style.height = h + 'px';
});
});
</script>
<section id="connections" class="lastChild">
<span>freedom.js is loading</span>
</section>
<!-- overview -->
<div>
<p><em>freedom.js</em> is a framework for building peer-to-peer (P2P) web apps.
Easily create social applications that work in modern web browsers, Chrome packaged apps, Firefox
extensions, node.js, and native mobile apps.
freedom.js apps are just JavaScript, so they can be distributed as
packages on an app store or hosted on static web servers.
We're bringing peer-to-peer back, baby.
</p>
</div>
<!-- featurettes -->
<!-- featurette-row -->
<div>
<div><img src="img/p2p.png" alt="P2P"></div>
<div>
<h1>P2P is reborn in the Web</h1>
<p>Build powerful P2P apps using only JavaScript and HTML in a single-page
application. Write applications in terms of users, not IP addresses.
Our API lets you store data where your users want it, navigate the social graph
by piggy-backing on existing networks, and set up direct
connections between users for data transfer.
</p>
<a href="https://github.com/freedomjs/freedom/wiki">
Start developing
</a>
</div>
</div>
<!-- featurette-row -->
<div>
<div><img src="img/noserver.png" alt="No Server!"></div>
<div><h1>No server-side code needed!</h1></div>
<div>
<p>Ship your web app using static web servers and CDNs,
(like GitHub Pages).
Package your code in a node.js package or browser extension.
Build application logic common to desktop and mobile.
And you can still make the rich social applications
your users expect.
</p>
<a href="dist/freedom/latest/demo">
Try our demos
</a>
</div>
</div>
<!-- featurette-row -->
<div>
<div class="platforms">
<a href="http://www.google.com/chrome">
<img src="img/chrome.png" title="Google Chrome" alt="Chrome">
</a>
<a href="https://www.mozilla.org/en-US/firefox/new/">
<img src="img/firefox.png" title="Firefox" alt="Firefox">
</a>
<a href="http://nodejs.org/">
<img src="img/nodejs.png" title="node.js" alt="node.js">
</a>
<a href="https://cordova.apache.org/">
<img src="img/cordova.png" title="Apache Cordova" alt="Apache Cordova">
</a>
</div>
<div><h1>Serious about cross-platform</h1></div>
<div>
<p>When you wrap your app with freedom.js, it will work without
modification in modern browsers, Chrome extensions, Firefox extensions,
native mobile apps, and node.js.</p>
<a href="https://github.com/freedomjs/freedom/wiki/Applications">
freedom.js applications
</a>
</div>
</div>
<!-- featurette-row -->
<div>
<!--
<div><img src="" alt="Plug-n-play"></div>
-->
<div><h1>Plug-n-play networks</h1></div>
<div>
<p>
Want to use a different social network? No problem!
Our plug-and-play API providers let you swap
out the implementations behind the freedom.js interface
without changing your application code. Users can contribute
providers for the social networks they care about. You
get the power of the Facebook graph, Twitter, XMPP, and
many more without doing anything!
</p>
<a href="https://github.com/freedomjs/freedom/wiki/Tutorial:-Getting-Started">
Start with our tutorials
</a>
</div>
</div>
<!-- featurette-row -->
<div>
<div><img src="img/manifest.png" alt="Example Manifest"><div>
<div><h1>Safely link code</h1></div>
<div>
<p>When you host your freedom.js modules on the Web, any developer can
link their app to your code,
forming dynamic dependencies that are strongly isolated at runtime.</p>
<a href="https://github.com/freedomjs/freedom/wiki/Overview">
Read more on architecture
</a>
</div>
</div>
<!-- Fork me on GitHub tab -->
<a href="https://github.com/freedomjs/freedom">
<img style="position:fixed;top:0;right:0;border:0;"
width="149" height="149"
src="img/forkme.png" alt="Fork me on GitHub">
</a>
<footer>
<p>
© 2014 -
freedom.js is released under
<a href="http://opensource.org/licenses/Apache-2.0">
Apache License, Version 2.0
</a>
</p>
</footer>
</div> <!-- div.inner -->
</div> <!-- div#container -->
</body>
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i["GoogleAnalyticsObject"]=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,"script","//www.google-analytics.com/analytics.js","ga");
ga("create", "UA-44818243-1", "freedomjs.org");
ga("send", "pageview");
</script>
</html>