Changeset 18646


Ignore:
Timestamp:
09/25/16 21:30:01 (8 years ago)
Author:
tbretz
Message:
Adapted to fit a nice markdown page
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MobileIndico/README.md

    r18642 r18646  
    1 Mobile Indico
    2 =============
    3 
    4 Mobile Indico aims to display an indico event in a mobile friendly way.
    5 
    6 
    7 Quick guide - direct access
    8 ===========================
     1Quick access guide
     2==================
    93
    104If you are happy with the existuing layout, you can access an event
     
    126https://indico.scc.kit.edu/indico/) as a mobile version directly by
    137
    14 https://www.fact-project.org/svn/trunk/MobileIndico/indico.html?url=https://indico.scc.kit.edu/indico/&id=254
     8> https://www.fact-project.org/svn/trunk/MobileIndico/indico.html?url=https://indico.scc.kit.edu/indico/&id=254
    159
    1610If you find that too long, you can use http://tinyurl.com to shorten
     
    1913A short version of the core url is available as
    2014
    21 http://tinyurl.com/MyIndico?url=https://indico.scc.kit.edu/indico/&id=254
     15> http://tinyurl.com/MyIndico?url=https://indico.scc.kit.edu/indico/&id=254
    2216
    2317
     
    3731
    3832The trick of JSONP is to wrap the JSON opject into a script (Javascript
    39 function) and insert a <script> tag into the webpage. Thus the script
     33function) and insert a `<script>` tag into the webpage. Thus the script
    4034containing the data is loaded and the data can be processed.
    4135
     
    4943First download all files from
    5044
    51 https://trac.fact-project.org/browser/trunk/MobileIndico
     45> https://trac.fact-project.org/browser/trunk/MobileIndico
    5246
    5347and copy them to a webserver.
    5448
    5549The current version is bound to a single indico server which is
    56 specified in indico.js in the first line, as well as the number
     50specified in indico.js in the first lines, as well as the number
    5751of the default event if no event is specified:
    5852
    59 var indico_url = "https://indico.scc.kit.edu/indico/";
    60 var default_event = 215;
     53```
     54  var indico_url = "https://indico.scc.kit.edu/indico/";
     55  var default_event = 215;
     56```
    6157
    6258Adapt that according to your needs.
     
    6864The default timetable is then accessed through
    6965
    70 http://you.web-server.com/your-path/indico.html
     66> http://you.web-server.com/your-path/indico.html
    7167
    7268and another event (e.g. 215) through
    7369
    74 http://you.web-server.com/your-path/indico.html?id=215
     70> http://you.web-server.com/your-path/indico.html?id=215
    7571
    7672A debug mode in which the received JSON object is displayed is
    7773available as well
    7874
    79 http://you.web-server.com/your-path/indico.html?id=215&debug
     75> http://you.web-server.com/your-path/indico.html?id=215&debug
    8076
    8177It is also possible to overwrite the default indico url, for exmaple
    8278
    83 http://you.web-server.com/your-path/indico.html?url=https://indico.scc.kit.edu/indico/&id=215
     79> http://you.web-server.com/your-path/indico.html?url=https://indico.scc.kit.edu/indico/&id=215
    8480
    8581
     
    8783=====
    8884
    89 indico.css:  A simple style sheet to format the output
    90 indico.svg:  The indico logo at the header line
    91 rwth.avg:    The rwth logo at the footer
    92 indico.js:   The javascript retrieving the data and formatting the html
    93 indico.html: The main html page for user access
     85- *indico.css*:  A simple style sheet to format the output
     86- *indico.svg*:  The indico logo at the header line
     87- *rwth.avg*:    The rwth logo at the footer
     88- *indico.js*:   The javascript retrieving the data and formatting the html
     89- *indico.html*: The main html page for user access
    9490
    9591
     
    9995For formatting purpose, the data is wrapped in classes like this:
    10096
     97```
    10198<indico>
    10299   Date
     
    162159    ...
    163160</indico>
     161```
Note: See TracChangeset for help on using the changeset viewer.