Skip to content
Snippets Groups Projects
Commit 936d589d authored by DESKTOP-GQAQBS4\Admin's avatar DESKTOP-GQAQBS4\Admin
Browse files

Views

parent ba57802f
No related branches found
No related tags found
No related merge requests found
<!DOCTYPE html>
<html>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<head>
<title>View survey results of other people in read-only/display mode, jQuery Survey Library Example</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://unpkg.com/jquery"></script>
<script src="https://surveyjs.azureedge.net/1.0.29/survey.jquery.js"></script>
<link href="https://surveyjs.azureedge.net/1.0.29/survey.css" type="text/css" rel="stylesheet"/>
<link rel="stylesheet" href="./index.css">
</head>
<br>
<h2>Auswahl der Kriterien für Studenten</h2>
<div id="surveyElement"></div>
<div id="surveyResult"></div>
<script type="text/javascript" >
Survey
.StylesManager
.applyTheme("default");
var json = {
pages: [
{
questions: [
{
type: "matrix",
name: "Quality",
title: "Bitte markiere wie stark die einzelnen Punkte auf Dich zutreffen",
columns: [
{
value: 1,
text: 1
}, {
value: 2,
text: 2
}, {
value: 3,
text: 3
}, {
value: 4,
text: 4
}, {
value: 5,
text: 5
},
],
rows: [
{
value: "affordable",
text: "Ich kann mich selbst so organisieren, dass ich alle Deadlines einhalten kann"
}, {
value: "does what it claims",
text: "Kurz nach der Vorlesung kann ich mich an den Kernstoff erinnern"
}, {
value: "better then others",
text: "Ich kann die meisten Schlüsselkompetenzen verstehen die meinen Kurs betreffen"
}, {
value: "easy to use",
text: "Ich kann mich gut selbst organisieren"
}
]
}, {
type: "rating",
name: "satisfaction",
title: "Wie zufrieden sind Sie mit Ihrer eigenen Arbeit",
mininumRateDescription: "Nicht zufrieden",
maximumRateDescription: "Komplett zufrieden"
},
]
},
]
};
window.survey = new Survey.Model(json);
survey
.onComplete
.add(function (result) {
document
.querySelector('#surveyResult')
//.innerHTML = "result: " + JSON.stringify(result.data);
});
$("#surveyElement").Survey({model: survey});
</script>
</body>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment