Changeset 18646 for trunk/MobileIndico/README.md
- Timestamp:
- 09/25/16 21:30:01 (8 years ago)
- 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 =========================== 1 Quick access guide 2 ================== 9 3 10 4 If you are happy with the existuing layout, you can access an event … … 12 6 https://indico.scc.kit.edu/indico/) as a mobile version directly by 13 7 14 https://www.fact-project.org/svn/trunk/MobileIndico/indico.html?url=https://indico.scc.kit.edu/indico/&id=2548 > https://www.fact-project.org/svn/trunk/MobileIndico/indico.html?url=https://indico.scc.kit.edu/indico/&id=254 15 9 16 10 If you find that too long, you can use http://tinyurl.com to shorten … … 19 13 A short version of the core url is available as 20 14 21 http://tinyurl.com/MyIndico?url=https://indico.scc.kit.edu/indico/&id=25415 > http://tinyurl.com/MyIndico?url=https://indico.scc.kit.edu/indico/&id=254 22 16 23 17 … … 37 31 38 32 The 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 script33 function) and insert a `<script>` tag into the webpage. Thus the script 40 34 containing the data is loaded and the data can be processed. 41 35 … … 49 43 First download all files from 50 44 51 https://trac.fact-project.org/browser/trunk/MobileIndico45 > https://trac.fact-project.org/browser/trunk/MobileIndico 52 46 53 47 and copy them to a webserver. 54 48 55 49 The current version is bound to a single indico server which is 56 specified in indico.js in the first line , as well as the number50 specified in indico.js in the first lines, as well as the number 57 51 of the default event if no event is specified: 58 52 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 ``` 61 57 62 58 Adapt that according to your needs. … … 68 64 The default timetable is then accessed through 69 65 70 http://you.web-server.com/your-path/indico.html66 > http://you.web-server.com/your-path/indico.html 71 67 72 68 and another event (e.g. 215) through 73 69 74 http://you.web-server.com/your-path/indico.html?id=21570 > http://you.web-server.com/your-path/indico.html?id=215 75 71 76 72 A debug mode in which the received JSON object is displayed is 77 73 available as well 78 74 79 http://you.web-server.com/your-path/indico.html?id=215&debug75 > http://you.web-server.com/your-path/indico.html?id=215&debug 80 76 81 77 It is also possible to overwrite the default indico url, for exmaple 82 78 83 http://you.web-server.com/your-path/indico.html?url=https://indico.scc.kit.edu/indico/&id=21579 > http://you.web-server.com/your-path/indico.html?url=https://indico.scc.kit.edu/indico/&id=215 84 80 85 81 … … 87 83 ===== 88 84 89 indico.css: A simple style sheet to format the output90 indico.svg: The indico logo at the header line91 rwth.avg: The rwth logo at the footer92 indico.js: The javascript retrieving the data and formatting the html93 indico.html: The main html page for user access85 - *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 94 90 95 91 … … 99 95 For formatting purpose, the data is wrapped in classes like this: 100 96 97 ``` 101 98 <indico> 102 99 Date … … 162 159 ... 163 160 </indico> 161 ```
Note:
See TracChangeset
for help on using the changeset viewer.