-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathUserManual.html
More file actions
109 lines (107 loc) · 4 KB
/
UserManual.html
File metadata and controls
109 lines (107 loc) · 4 KB
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
<!DOCTYPE html>
<html>
<head>
<!--
Copyright 2017
Code by Michael Leimstädtner
-->
<meta charset="utf-8"/>
<title>User Manual</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta Name="description" content=""/>
<meta name="keywords" content="" />
<link rel="stylesheet" href="Application/Views/bootstrap/css/bootstrap.min.css"></link>
<style type="text/css">
/* Inlining is bad.. bad this is a single file without folder structure */
#main, img{
max-width: 100%;
}
#main{
margin-bottom: 50px;
}
#header{
background: #F7F7F7;
border-bottom: 1px dashed black;
}
footer{
padding: 25px 0;
border-top: 1px dashed black;
margin-top: 25px;
background: #F6F6F6;
}
</style>
</head>
<body>
<div id="page">
<div id="header">
<div class="container">
<h1>User Manual
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{selectedFile}} <span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li v-for="f in fileList" v-on:click="changeFile(f)"><a href="#">{{f}}</a></li>
</ul>
</div>
</h1>
Use this page to introduce yourself to the GitHub classification tool. Documentation files can be visualised by changing the selected dropdown element.
<br><br>
</div>
</div>
<div class="container">
<div class="row" id="main">
<div v-show='(markdown == "")'>
<p class="lead">In case this page does not load properly, please use version 50 of <a href="https://www.mozilla.org/de/firefox/new/">Firefox</a>.</p>
</div>
<div v-html="markdown"></div>
</div>
</div>
<footer>
<div class="container">
<div class="row">
<div class="col-xs-4"><h4>Submission for the <a href="http://informaticup.gi.de/" target="_blank">InformatiCup 2017</a></h4></div>
<div class="col-xs-2">
<h4>Team Augsburg</h4>
</div>
<div class="col-xs-6">
<div class="col-xs-6 member">Andreas Grafberger</div>
<div class="col-xs-6 member">Martin Keßler</div>
<div class="col-xs-6 member">Michael Leimstädtner</div>
<div class="col-xs-6 member">Stefan Grafberger</div>
</div>
</div>
</div>
</footer>
</div>
<script type="text/javascript" src="Application/Views/scripts/vue.min.js"></script>
<script src="Application/Views/scripts/jquery-3.1.1.min.js"></script>
<script src="Application/Views/bootstrap/js/bootstrap.min.js"></script>
<script src="Application/Views/scripts/showdown.min.js"></script>
<script type="text/javascript">
/* Inlining is bad.. bad this is a single file without folder structure */
let data = {
markdown: "",
selectedFile: "README.md",
fileList: ["README.md", "Documentation/Installation Manual.md", "Documentation/Frontend Manual.md","Documentation/Documentation.md", "Documentation/API.md"
]
};
let View = new Vue({
el: "#page",
data: data,
methods: {
changeFile: function(fileName){
Vue.set(data, "selectedFile", fileName);
$.get(fileName, function(md){
let converter = new showdown.Converter();
// Format tables and adjust image paths
Vue.set(data, "markdown", converter.makeHtml(md).replace(/<table>/g, "<table class='table table-bordered table-striped'>").replace(/\/Documentation\//g, "Documentation/"));
}, "text");
}
}
});
View.changeFile(data.selectedFile);
</script>
</body>
</html>