forked from occupynet/Occupy.net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
811 lines (717 loc) · 31.9 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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>The Occupy Network</title>
<!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<link rel="stylesheet" href="css/style.css" />
<meta property="og:title" content="The Occupy Network"/>
<meta property="og:site_name" content="Occupy.net"/>
<meta property="og:description" content="Occupy.net provides people with software tools that align with the values of the #occupy movement. All of the tools offered here are free/libre/open source: part of the global information commons, maintained by communities, not corporations."/>
<meta property="og:image" content="http://occupy.net/img/occupy-network.png"/>
<meta property="og:url" content="http://occupy.net"/>
<meta property="og:type" content="website"/>
<!-- scripts at bottom of page -->
</head>
<body class="homepage">
<!--
<div id="loader">
<img src="img/ajax-loader.gif">
<div class="option-logo">
<h1>the <span class="occupy">occupy</span> network</h1>
</div>
<hr class="clear">
Loading...
</div>
-->
<script type="text/javascript" src="http://nav.occupy.net/occupynet_nav.js"></script>
<section id="content">
<section id="options" class="clearfix">
<div class="option-logo">
<h1>the <span class="occupy">occupy.net</span>work</h1>
</div>
<div class="option-combo">
<h3>Sort by:</h3>
<ul id="sort" class="option-set clearfix" data-option-key="sortBy">
<li><a href="#date" data-option-value="date" class="selected">date</a></li>
<li><a href="#alphabetical" data-option-value="alphabetical">name</a></li>
<li><a href="#mixed" data-option-value="random">mixed</a></li>
</ul>
</div>
<div class="option-combo">
<h3>Show:</h3>
<ul id="filter" class="option-set clearfix" data-option-key="filter">
<li><a href="#show-all" data-option-value="*" class="selected">all</a></li>
<li><a href="#news" data-option-value=".wiki, .info, .news, .photo, .thumbnail, .directory, .map, .success">info</a></li>
<li><a href="#opportunities" data-option-value=".welcome, .events, .campaigns, .classifieds">opportunities</a></li>
<li><a href="#tools" data-option-value=".project">tools</a></li>
</ul>
</div>
</section>
<div id="container" class="clearfix">
<div class="welcome" data-number="1">
<div class="specs">
<p class="title sb-hide">Welcome!</p>
<p class="text sb-hide">Occupy.net provides people with software tools that align with the values of the #occupy movement. All of the tools offered here are free/libre/open source: part of the global information commons, maintained by communities, not corporations.</p>
<p class="text">Would you like to help?</p>
</div>
<div class="details">
<!-- START OF CIVI VOLUNTEER FORM -->
<form action="http://crm.occupy.net/civicrm/profile/create?gid=23&reset=1" method="post" name="Edit" id="Edit" >
<div>
<input name="postURL" type="hidden" value="" />
<input name="cancelURL" type="hidden" value="http://crm.occupy.net/civicrm/profile?reset=1&gid=23" />
<input name="add_to_group" type="hidden" value="19" />
<input name="_qf_default" type="hidden" value="Edit:cancel" />
</div>
<script type="text/javascript" src="http://occupy.li/sites/all/modules/civicrm/js/Common.js"></script>
<div id="crm-container" lang="en" xml:lang="en">
<div class="messages help"><p>Fill out this form to receive email updates from #Occupy and learn how you can be part of the Global Commons.</p></div>
<div class="form-layout-compressed">
<div id="editrow-first_name" class="crm-section editrow_first_name-section form-item">
<div class="label">
<label for="first_name"> First Name<span class="crm-marker" title="This field is required.">*</span></label>
</div>
<div class="edit-value content">
<input maxlength="64" size="30" name="first_name" type="text" id="first_name" class="form-text big required" />
</div>
<div class="clear"></div>
</div>
<div id="editrow-last_name" class="crm-section editrow_last_name-section form-item">
<div class="label">
<label for="last_name">Last Name</label>
</div>
<div class="edit-value content">
<input maxlength="64" size="30" name="last_name" type="text" id="last_name" class="form-text big" />
</div>
<div class="clear"></div>
</div>
<div id="editrow-email-3" class="crm-section editrow_email-3-section form-item">
<div class="label">
<label for="email-3"> Email<span class="crm-marker" title="This field is required.">*</span></label>
</div>
<div class="edit-value content">
<input maxlength="64" size="30" name="email-3" type="text" id="email-3" class="form-text big required" />
</div>
<div class="clear"></div>
</div>
<div id="editrow-custom_76" class="crm-section editrow_custom_76-section form-item">
<div class="label">
<label for="custom_76">Please briefly describe why and how you would like to get involved in the Occupy movement</label>
</div>
<div class="edit-value content">
<textarea rows="4" cols="60" name="custom_76" id="custom_76" class="form-textarea"></textarea>
</div>
<div class="clear"></div>
</div>
</div><!-- end form-layout-compressed for last profile -->
<div class="crm-submit-buttons">
<span class="crm-button crm-button-type-next crm-button_qf_Edit_next"><input class="form-submit default" accesskey="S" name="_qf_Edit_next" value="Submit" type="submit" id="_qf_Edit_next" /></span>
</div>
</div>
</form>
<script type="text/javascript" >
cj( function( ) {
cj("#Edit").validate({ 'errorClass': 'crm-error'});
});
</script><script type="text/javascript">jQuery.noConflict(true);</script>
<!-- END OF CIVI VOLUNTEER FORM -->
</div>
</div>
<div class="welcome" data-number="2">
<div class="specs">
<p class="title sb-hide">What is Occupy?</p>
<p class="text sb-hide">It's more than just peaceful assemblies. When we occupy a space, or a topic, we spotlight it. We encourage people to investigate, understand, act, and change something.</p>
<p class="text">What do you want to occupy?</p>
</div>
<div class="details">
<!-- START OF CIVI VOLUNTEER FORM -->
<form action="http://crm.occupy.net/civicrm/profile/create?gid=23&reset=1" method="post" name="Edit" id="Edit" >
<div>
<input name="postURL" type="hidden" value="" />
<input name="cancelURL" type="hidden" value="http://crm.occupy.net/civicrm/profile?reset=1&gid=23" />
<input name="add_to_group" type="hidden" value="19" />
<input name="_qf_default" type="hidden" value="Edit:cancel" />
</div>
<script type="text/javascript" src="http://occupy.li/sites/all/modules/civicrm/js/Common.js"></script>
<div id="crm-container" lang="en" xml:lang="en">
<div class="messages help"><p>Fill out this form to receive email updates from #Occupy and learn how you can be part of the Global Commons.</p></div>
<div class="form-layout-compressed">
<div id="editrow-first_name" class="crm-section editrow_first_name-section form-item">
<div class="label">
<label for="first_name"> First Name<span class="crm-marker" title="This field is required.">*</span></label>
</div>
<div class="edit-value content">
<input maxlength="64" size="30" name="first_name" type="text" id="first_name" class="form-text big required" />
</div>
<div class="clear"></div>
</div>
<div id="editrow-last_name" class="crm-section editrow_last_name-section form-item">
<div class="label">
<label for="last_name">Last Name</label>
</div>
<div class="edit-value content">
<input maxlength="64" size="30" name="last_name" type="text" id="last_name" class="form-text big" />
</div>
<div class="clear"></div>
</div>
<div id="editrow-email-3" class="crm-section editrow_email-3-section form-item">
<div class="label">
<label for="email-3"> Email<span class="crm-marker" title="This field is required.">*</span></label>
</div>
<div class="edit-value content">
<input maxlength="64" size="30" name="email-3" type="text" id="email-3" class="form-text big required" />
</div>
<div class="clear"></div>
</div>
<div id="editrow-custom_76" class="crm-section editrow_custom_76-section form-item">
<div class="label">
<label for="custom_76">Please briefly describe why and how you would like to get involved in the Occupy movement</label>
</div>
<div class="edit-value content">
<textarea rows="4" cols="60" name="custom_76" id="custom_76" class="form-textarea"></textarea>
</div>
<div class="clear"></div>
</div>
</div><!-- end form-layout-compressed for last profile -->
<div class="crm-submit-buttons">
<span class="crm-button crm-button-type-next crm-button_qf_Edit_next"><input class="form-submit default" accesskey="S" name="_qf_Edit_next" value="Submit" type="submit" id="_qf_Edit_next" /></span>
</div>
</div>
</form>
<script type="text/javascript" >
cj( function( ) {
cj("#Edit").validate({ 'errorClass': 'crm-error'});
});
</script>
<script type="text/javascript">jQuery.noConflict(true);</script>
<!-- END OF CIVI VOLUNTEER FORM -->
</div>
</div>
<div class="project" data-number="3">
<div class="specs">
<img class="icon" src="img/icons/wiki.png">
<h3 class="title">Wiki</h3>
<h5 class="status">alpha</h5>
<ul class="buttonList">
<li><a class="url" href="https://wiki.occupy.net" target="_blank">Launch site</a></li>
<li><a class="docs" href="http://wiki.occupy.net/wiki/Occupy.net_Wiki" target="_blank">Get details</a></li>
<li><a class="tasks" href="http://collaborate.occupy.net/projects/9" target="_blank">Help out</a></li>
</ul>
</div>
<div class="details">
<p>A collaboratively authored knowledge resource you can easily edit. Use it to collect resources for your community and document best practices. Powered by <a href="http://www.mediawiki.org/wiki/MediaWiki" target="_blank">MediaWiki.</a></p>
<a class="url" href="http://wiki.occupy.net" target="_blank"><img src="img/screenshots/wiki.jpg" class="screenshot" height="304" width="500" alt="Occupy Wiki"></a>
</div>
</div>
<div class="project" data-number="3">
<div class="specs">
<img class="icon" src="img/icons/map.png">
<h3 class="title">Map</h3>
<h5 class="status">beta</h5>
<ul class="buttonList">
<li><a class="url" href="http://map.occupy.net" target="_blank">Launch site</a></li>
<li><a class="docs" href="http://wiki.occupy.net/wiki/Occupy.net_Maps" target="_blank">Get details</a></li>
<li><a class="tasks" href="https://www.pivotaltracker.com/projects/417395" target="_blank">Help out</a></li>
<li><a class="code" href="https://github.com/occupynet/OccupyMap" target="_blank">Fork the code</a></li>
</ul>
</div>
<div class="details">
<p>A crowdsourced history of the movement news that exists in both time and space. Use it with your phone or computer to post reports, photos and videos by adding #occupymap. Powered by <a href="http://ushahidi.com/" target="_blank">Ushahidi.</a></p>
<iframe width="500" height="339" src="http://www.youtube.com/embed/_nVcJyvXrfA?rel=0" frameborder="0" allowfullscreen></iframe>
</div>
</div>
<div class="project" data-number="3">
<div class="specs">
<img class="icon" src="img/icons/notes.png">
<h3 class="title">Notes</h3>
<h5 class="status">beta</h5>
<ul class="buttonList">
<li><a class="url" href="https://notes.occupy.net" target="_blank">Launch site</a></li>
<li><a class="docs" href="http://wiki.occupy.net/wiki/Occupy.net_Notes" target="_blank">Get details</a></li>
<li><a class="code" href="https://github.com/occupynet/etherpad-lite" target="_blank">Fork the code</a></li>
</ul>
</div>
<div class="details">
<p>A super light weight group document editing tool. Use it to take minutes, write notes, author documents, etc. Powered by <a target="_blank" href="http://etherpad.org/">Etherpad.</a></p>
<iframe width="500" height="339" src="http://www.youtube.com/embed/B69sx77dXIg?rel=0" frameborder="0" allowfullscreen></iframe>
</div>
</div>
<!-- not ready for launch
<div class="project" data-number="3">
<div class="specs">
<img class="icon" src="img/icons/events.png">
<h3 class="title">Events</h3>
<h5 class="status">alpha</h5>
<ul class="buttonList">
<li><a class="url" href="http://events.occupy.net" target="_blank">Launch site</a></li>
<li><a class="docs" href="http://wiki.occupy.net/wiki/Occupy.net_Events" target="_blank">Get details</a></li>
</ul>
</div>
<div class="details">
<p>A calendar and directory of events pertaining to Occupy. Have your event posted to the calendar, and raise awareness for your events.</p>
</div>
</div>
-->
<div class="project" data-number="3">
<div class="specs">
<img class="icon" src="img/icons/campaigns.png">
<h3 class="title">Campaigns</h3>
<h5 class="status">beta</h5>
<ul class="buttonList">
<li><a class="url" href="http://campaigns.occupy.net" target="_blank">Launch site</a></li>
<li><a class="docs" href="http://wiki.occupy.net/wiki/Occupy.net_Campaigns" target="_blank">Get details</a></li>
</ul>
</div>
<div class="details">
<p>An easy to use website builder with templates specifically designed for actions and campaigns. Use a campaign site for to spread a message, collect emails and promote events. Powered by <a href="http://wordpress.org">Wordpress.</a></p>
<iframe width="500" height="281" src="http://www.youtube.com/embed/lcwQAthgNNQ?rel=0" frameborder="0" allowfullscreen></iframe>
</div>
</div>
<div class="project" data-number="3">
<div class="specs">
<img class="icon" src="img/icons/forum.png">
<h3 class="title">Forum</h3>
<h5 class="status">alpha</h5>
<ul class="buttonList">
<li><a class="url" href="http://forum.occupy.net" target="_blank">Launch site</a></li>
<li><a class="docs" href="http://wiki.occupy.net/wiki/Occupy.net_Forums" target="_blank">Get details</a></li>
<li><a class="tasks" href="http://collaborate.occupy.net/projects/12" target="_blank">Help out</a></li>
<li><a class="code" href="https://github.com/occupynet/vanilla2" target="_blank">Fork the code</a></li>
</ul>
</div>
<div class="details">
<p>An easy to use forum that you can embed on your own website. Use it to discuss various issues, coordinate your projects and dialog with other occupiers. Powered by <a target="_blank" href="http://www.vanillaforums.org/">Vanilla Forums.</a></p>
<iframe src="http://player.vimeo.com/video/31502992" width="500" height="269" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
</div>
</div>
<div class="project" data-number="3">
<div class="specs">
<img class="icon" src="img/icons/classifieds.png">
<h3 class="title">Classifieds</h3>
<h5 class="status">beta</h5>
<ul class="buttonList">
<li><a class="url" href="http://classifieds.occupy.net" target="_blank">Launch site</a></li>
<li><a class="docs" href="http://wiki.occupy.net/wiki/Occupy.net_Classifieds" target="_blank">Get details</a></li>
<li><a class="code" href="https://github.com/occupynet/jobberbase" target="_blank">Fork the code</a></li>
</ul>
</div>
<div class="details">
<p>A classifieds system with email notification and a variety of occupy specific categories. Use it to post offers and wants, recruit volunteers, and share opportunities. Powered by <a href="http://osclass.org">OSClass.</a></p>
<a class="url" href="http://classifieds.occupy.net" target="_blank"><img src="img/screenshots/classifieds.jpg" class="screenshot" height="304" width="500" alt="Occupy Classifieds"></a>
</div>
</div>
<div class="project" data-number="3">
<div class="specs">
<img class="icon" src="img/icons/directory.png">
<h3 class="title">Directory</h3>
<h5 class="status">beta</h5>
<ul class="buttonList">
<li><a class="url" href="http://directory.occupy.net" target="_blank">Launch site</a></li>
<li><a class="docs" href="http://wiki.occupy.net/wiki/Occupy.net_Directory" target="_blank">Get details</a></li>
<li><a class="tasks" href="http://projects.occupy.net/projects/fga-projectsite" target="_blank">Help out</a></li>
<li><a class="code" href="https://github.com/fga/fga-directory" target="_blank">Fork the code</a></li>
</ul>
</div>
<div class="details">
<p>A public listing of all known occupation sites, built as a semantic service layer for web developers. Use it to find locations, websites and profiles of occupations around the world. Powered by <a href="http://drupal.org">Drupal.</a></p>
<a class="url" href="http://directory.occupy.net" target="_blank"><img src="img/screenshots/directory.jpg" class="screenshot" height="304" width="500" alt="Occupy Directory"></a>
</div>
</div>
<!-- not ready for launch
<div class="project" data-number="3">
<div class="specs">
<img class="icon" src="img/icons/ideas.png">
<h3 class="title">Ideas</h3>
<h5 class="status">alpha</h5>
<ul class="buttonList">
<li><a class="url" href="http://ideas.occupy.net" target="_blank">Launch site</a></li>
<li><a class="docs" href="http://wiki.occupy.net/wiki/Occupy.net_Ideas" target="_blank">Get details</a></li>
<li><a class="tasks" href="https://collaborate.occupy.net/projects/11/dashboard" target="_blank">Help out</a></li>
<li><a class="code" href="https://github.com/occupynet/IdeasOccupyNet" target="_blank">Fork the code</a></li>
</ul>
</div>
<div class="details">
<p>A question and answer platform with a simple voting tool. Use it to to get and give answers, vote on the best exchanges and building consensus around an idea. Powered by <a target="_blank" href="http://www.question2answer.org/">Question2Answer.</a></p>
<a class="url" href="http://ideas.occupy.net" target="_blank"><img src="img/screenshots/ideas.jpg" class="screenshot" height="304" width="500" alt="Occupy Ideas"></a>
</div>
</div>
-->
<!-- pay per list; omit for now
<div class="project" data-number="3">
<div class="specs">
<img class="icon" src="img/icons/lists.png">
<h3 class="title">Lists</h3>
<h5 class="status">beta</h5>
<ul class="buttonList">
<li><a class="url" href="http://lists.occupy.net" target="_blank">Launch site</a></li>
<li><a class="docs" href="http://wiki.occupy.net/wiki/Occupy.net_Lists" target="_blank">Get details</a></li>
<li><a class="tasks" href="http://collaborate.occupy.net/projects/100/dashboard" target="_blank">Help out</a></li>
<li><a class="code" href="https://github.com/occupynet/Lists" target="_blank">Fork the code</a></li>
</ul>
</div>
<div class="details">
<p>A highly configurable announcement and listserve management tool. Use it instead of proprietary "groups" systems to create newsletters, communicate with a team and discuss issues. Powered by <a href="http://sympa.org">Sympa.</a></p>
<a class="url" href="http://lists.occupy.net" target="_blank"><img src="img/screenshots/lists.jpg" class="screenshot" height="304" width="500" alt="Occupy Lists"></a>
</div>
</div>
-->
<!-- not ready for launch
<div class="project" data-number="3">
<div class="specs">
<img class="icon" src="img/icons/news.png">
<h3 class="title">News</h3>
<h5 class="status">alpha</h5>
<ul class="buttonList">
<li><a class="url" href="http://news.occupy.net" target="_blank">Launch site</a></li>
<li><a class="docs" href="http://wiki.occupy.net/wiki/Occupy.net_News" target="_blank">Get details</a></li>
<li><a class="tasks" href="http://projects.occupy.net/projects/newswire" target="_blank">Help out</a></li>
<li><a class="code" href="https://github.com/occupynet/news" target="_blank">Fork the code</a></li>
</ul>
</div>
<div class="details">
<p>A news aggregation and curation tool. Get more attention for your project. Create a channel that is curated by your team and resourced by other people who will post the content around the internet. Powered by <a target="_blank" href="http://managingnews.com/">Managing News.</a></p>
</div>
</div>
-->
<!-- not ready for launch
<div class="project" data-number="3" data-full="inline1">
<div class="specs">
<img class="icon" src="img/icons/search.png">
<h3 class="title">Search</h3>
<h5 class="status">alpha</h5>
</div>
<div class="details">
<p>Search the internet privately (and even securely), powered by <a target="_blank" href="http://duckduckgo.com/">DuckDuckGo.</a></p>
<form action="https://duckduckgo.com/" method="get" target="_blank" enctype="multipart/form-data" id="searchBox">
<input type="text" name="q" placeholder="Search" id="searchInput"><input type="submit" value="" id="searchButton">
</form>
</div>
</div>
-->
<div class="loader" data-number="3">
<img src="img/ajax-loader.gif" alt="ajax-loader" width="16" height="16" /> Loading...
</div>
</div> <!-- end #container -->
<div id="feeds" style="display:none">
<!--use semantic markup to define your feeds as data
jquery $("#feeds").find(".feed") turns this html into
var feeds = [{
'url': 'http://feeds....',
'type': 'news',
},
{
'url': 'http://map.occupy.net',
'type': 'map',
}
]
and so on - an array of objects with "url" and "type" attributes
-->
<div class="feed">
<div class="url">http://classifieds.occupy.net/index.php?page=search&sFeed</div>
<div class="type">classifieds</div>
<div class="num">10</div>
<div class="days">300</div>
</div>
<div class="feed">
<div class="url">http://campaigns.occupy.net/feed/</div>
<div class="type">campaigns</div>
<div class="num">5</div>
<div class="days">300</div>
</div>
<div class="feed">
<div class="url">http://wiki.occupy.net/wiki/Special:NewsFeed?feed=rss&categories=Featured</div>
<div class="type">wiki</div>
<div class="num">1</div>
<div class="days">300</div>
</div>
<div class="feed">
<!-- national gathering feed -->
<div class="url">http://owscurators.floing.org/?feed=rss2&cat=22</div>
<div class="type">news</div>
<div class="num">10</div>
<div class="days">90</div>
</div>
<div class="feed">
<div class="url">http://occupiedmedia.us/category/analysis/feed/</div>
<div class="type">news</div>
<div class="num">10</div>
<div class="days">90</div>
</div>
<div class="feed">
<div class="url">http://occupiedmedia.us/category/features/feed/</div>
<div class="type">news</div>
<div class="num">10</div>
<div class="days">90</div>
</div>
<div class="feed">
<div class="url">http://newswire.occupy.net/channel/368/rss.xml</div>
<div class="type">news</div>
<div class="num">5</div>
<div class="days">30</div>
</div>
<div class="feed">
<div class="url">http://occupydidwhat.tumblr.com/rss</div>
<div class="type">success</div>
<div class="num">10</div>
<div class="days">90</div>
</div>
<div class="feed">
<div class="url">https://tech.occupy.net/feed/</div>
<div class="type">info</div>
<div class="num">10</div>
<div class="days">90</div>
</div>
<div class="feed">
<div class="url">http://interoccupy.net/blog/category/movement-wide/feed/</div>
<div class="type">info</div>
<div class="num">10</div>
<div class="days">90</div>
</div>
<div class="feed">
<div class="url">http://wearethe99percent.tumblr.com/rss</div>
<div class="type">photo</div>
<div class="num">15</div>
<div class="days">60</div>
</div>
<div class="feed">
<div class="url">http://occupybigpicture.tumblr.com/rss</div>
<div class="type">photo</div>
<div class="num">15</div>
<div class="days">300</div>
</div>
<div class="feed">
<div class="url">http://occupydetails.tumblr.com/rss</div>
<div class="type">thumbnail</div>
<div class="num">15</div>
<div class="days">300</div>
</div>
<!-- photos linking incorrectly
<div class="feed">
<div class="url">http://occupydesign.org/gallery/feed</div>
<div class="type">photo</div>
<div class="num">5</div>
<div class="days">300</div>
</div>
-->
<!-- error in feed
<div class="feed">
<div class="url">http://occuprint.org/feed</div>
<div class="type">thumbnail</div>
<div class="num">5</div>
<div class="days">7</div>
</div>
-->
<div class="feed">
<div class="url">http://howtocamp.takethesquare.net/feed/</div>
<div class="type">info</div>
<div class="num">5</div>
<div class="days">3000</div>
</div>
<div class="feed">
<div class="url">http://www.occupytheory.org/feed/rss.html</div>
<div class="type">news</div>
<div class="num">5</div>
<div class="days">30</div>
</div>
<div class="feed">
<div class="url">http://directory.occupy.net/occupations/added.rss</div>
<div class="type">directory</div>
<div class="num">5</div>
<div class="days">60</div>
</div>
<div class="feed">
<div class="url">http://map.occupy.net/feed/</div>
<div class="type">map</div>
<div class="num">30</div>
<div class="days">30</div>
</div>
</div>
<!-- jquery -->
<script src="js/jquery-1.7.1.min.js"></script>
<script src="https://www.google.com/jsapi"></script>
<script src="js/jquery.isotope.min.js"></script>
<!-- feed reader -->
<script type="text/javascript">
var $container = $('#container');
var feeds = google.load("feeds", "1");
google.setOnLoadCallback(function() {
// First, set up click on tile => Shadowbox for pre-existing static tiles
$('.isotope-item').click( activateTile );
$(function() {
//grab your data from the html (semantic markup)
$("#feeds").find(".feed").each(function(j,e){
//extract url from html
var url = $(e).find(".url").html();
//fix double encoding bug by reverting one ampersand
url = url.replace("&","&");
var feed = new google.feeds.Feed(url);
//extract number of posts, days to show from html
var num = $(e).find(".num").html();
var days = $(e).find(".days").html();
var nDays = parseInt(days);
//extract type from html
var type = $(e).find(".type").html();
feed.setNumEntries(num);
feed.load(function(result) {
if (!result.error) {
var container = document.getElementById("container");
for (var i = 0; i < result.feed.entries.length; i++) {
var entry = result.feed.entries[i];
var entryDate = new Date(entry.publishedDate);
// Check to see if feed item is outside of date range.
if (typeof(days) != 'null' && nDays > 0) {
var now = new Date;
var tsDelta = now - entryDate;
var daysAgo = Math.floor(tsDelta / (1000*60*60*24));
if (daysAgo > nDays) {
break;
} /* end if */
} /* end if */
// Construct new <div> element for this item.
var div = document.createElement("div");
$(div).addClass(type);
$(div).addClass("feed-item");
// Insert <div class="specs"></div>
var specs = div.appendChild(document.createElement("div"));
specs.className = "specs";
// Insert <h3 class="title">...</h3> into .specs
var title = specs.appendChild(document.createElement("h3"));
title.className = "title";
title.appendChild(document.createTextNode(entry.title));
// Insert <p class="date">...</p> into .specs
var date = specs.appendChild(document.createElement("p"));
$(date).addClass("date");
// Clean up date format
var pubDate = entryDate.toLocaleDateString();
date.appendChild(document.createTextNode(pubDate));
// Insert <a class="source">…</a> into .specs
var source = specs.appendChild(document.createElement("a"));
$(source).addClass("source");
$(source).attr("href", entry.link);
$(source).attr("target", "_blank");
source.appendChild(document.createTextNode("View post"));
// Insert <div class="details">...</div> into parent div
// This needs to be a <div> because the item content may include
// block-level HTML tags, and hence cannot fit inside a <p>
var details = div.appendChild(document.createElement("div"));
details.className = "";
details.className = "details details_" + type;
details.innerHTML = entry.content;
// Insert the whole thing into the container
var divInDOM = container.appendChild(div);
// Clicking this sends the tile to the Shadowbox
$(divInDOM).click( activateTile );
};
};
$container.isotope('insert',$(".feed-item"))
});
})
//endfor
});
});
//ISOTOPE
$(document).ready(function(){
$container.isotope({
masonry: {
columnWidth: 120
},
getSortData: {
date: function( $elem ) {
if ($elem.find('.date').length != 0) {
return -1*Date.parse($elem.find('.date').text());
} else {
return Number.NEGATIVE_INFINITY;
}
},
alphabetical: function( $elem ) {
var name = $elem.find('.title'),
itemText = name.length ? name : $elem;
return itemText.text();
}
},
sortBy: 'date'
});
var $optionSets = $('#options .option-set'),
$optionLinks = $optionSets.find('a');
$optionLinks.click(function(){
var $this = $(this);
// don't proceed if already selected
if ( $this.hasClass('selected') ) {
return false;
}
//toggle "selected classes"
var $optionSet = $this.parents('.option-set');
$optionSet.find('.selected').removeClass('selected');
$this.addClass('selected');
// make option object dynamically, i.e. { filter: '.my-filter-class' }
var options = {},
key = $optionSet.attr('data-option-key'),
value = $this.attr('data-option-value');
// parse 'false' as false boolean
value = value === 'false' ? false : value;
options[ key ] = value;
if ( key === 'layoutMode' && typeof changeLayoutMode === 'function' ) {
// changes in layout modes need extra logic
changeLayoutMode( $this, options )
} else {
// otherwise, apply new options
$container.isotope( options );
}
return false;
});
$('.loader').addClass('hidden');
// disable direct links on images in photo squares
$('.details_photo a').click(function(){ return false; });
})
</script>
<!-- shadowbox -->
<script src="shadowbox-3.0.3/shadowbox.js"></script>
<script>
Shadowbox.init({
skipSetup: true
});
function activateTile () {
var tile = $(this);
// By default, we will display the contents of this <div> in the
// lightbox.
var player = 'html'; // Default
var content = '<div id="layer">' + tile.html() + '</div>'; // Default
// We can use HTML classes to determine what exactly we should be
// feeding to Shadowbox.
// if (tile.is('.photo')) {
// content = ...
// player = ...
// } else if (tile.is('.info')) {
// ...
// } else if (tile.is('.project')) {
// ...
// } /* if */
Shadowbox.open({
content: content,
player: player,
height: 500,
width: 700
});
}
</script>
<footer>
<span>Brought to you by <a href="http://tech.occupy.net" target="_blank">Occupy Tech</a></span>
<a href="https://github.com/occupynet/Occupy.net" target="_blank">Code</a>
<a href="http://forum.occupy.net" target="_blank">Help</a>
</footer>
</section> <!-- #content -->
<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://analytics.occupy.net/" : "http://analytics.occupy.net/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://analytics.occupy.net/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tracking Code -->
</body>
</html>