Skip to content
Simple Freifunk Node list - based on meshviewer JSON Data and Perl...
Branch: master
Clone or download
Pull request Compare This branch is 51 commits ahead of GregoryVigoTorres:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
generateList.pl
sortableTables.js

README.md

SortableTables.js

A simple Javascript library to make html tables sortable. It uses Array.from, which may not be available in your Javascript version. You can find a polyfill at MDN.

generateList.pl

A simple Perl Script to generate a Freifunk Node List. The Script get his informations from the Meshviewer 1. The Meshviewer has a few JSON Files ² ³ and this script use them. Please have a look at the global variables from the script.

SortableTables

Basic usage for the JavaScript:

The table element must have class sortable. Sort criteria is defined by using a class on the th element for each column.

e.g.

<thead>
    <tr>
    <th class="str-sort">Strings</th>
    </tr>
</thead>

Currently implemented sort criteria are:

  • str-sort (locale aware standard javascript sorting)
  • date-sort (default date format is: dd/mm/yyyy)
  • float-sort (probably works for ints too)

Rows can be skipped using class skip-sort. thead and tfoot elements are always skipped.

#Freifunk Node List The Perl Script generate an index.html and an liste.html. Both Pages display all freifunk nodes from the meshviewer JSON file. The index.html file only contains the most important informations. The list.html has a lot more information. Feel free to fork this github repository for your own freifunk community.

Installation:

This is now the template for our ansible setup

Old infos:

cpan install JSON
cpan install LWP::Simple

License:

sortableTables.js

MIT License - Copyright 2016, Gregory Vigo Torres

generateList.pl

CC-BY-NC - Freifunk Bodensee, L3D.

You can’t perform that action at this time.