/
index.html
109 lines (81 loc) · 6.37 KB
/
index.html
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
<!--
Based on Vox Media's Quiz Quartet (https://github.com/voxmedia/quiz-generator)
Copyright (c) 2014 Vox Media Inc., KK Rebecca Lai, Nicole Zhu, Adam Baumgartner
BSD license
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<!-- TODO
CSS personnalisée
Traduction des templates Google spreadsheet
-->
<!doctype html>
<html>
<head>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
<meta charset="utf-8">
<!-- Always force latest IE rendering engine or request Chrome Frame -->
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Use title if it's in the page YAML frontmatter -->
<title>Quiz Generator</title>
<link href="stylesheets/quiz-generator.css" rel="stylesheet" type="text/css" />
</head>
<body id="top" class="index index" style="background-color: #f1f3f2;">
<a href="https://github.com/mvaudano/quiz-generator"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/52760788cde945287fbb584134c4cbc2bc36f904/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f77686974655f6666666666662e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png"></a>
<div class="vox-logo"><a href="http://www.voxmedia.com/"><img src="images/voxlogo.png" style="width:40px;"></a></div>
<div class="quiz-quartet">
<h1><img src="images/qq.png">Quiz Quartet</h1>
</div>
<div class="container">
<h4>Version francophone modifiée</h4>
<h5>Choisissez un type de quiz</h5>
<form>
<label><input type="radio" name="quiz-type" value="quiz">Questionnaire à choix multiples (QCM, 4 réponses possibles)</label><br>
<label><input type="radio" name="quiz-type" value="flowchart">Flowchart (arbre de décision)</label><br>
<label><input type="radio" name="quiz-type" value="binary">Binaire (vrai/faux, noir/blanc, 2 réponses possibles)</label>
</form>
<p>Utilisez <a id="quiz-template" target="_new">ce modèle de Google Spreadsheet</a> pour composer votre quiz.</p>
<p>Une fois que vous l'avez édité, publiez votre spreadsheet sur le web ("Fichier" > "Publier sur le web" > <b>Commencer à publier) et récupérez l'URL du spreadsheet.</p>
<center><p style="font-size:0.8em">Envie de tester ? Essayez ce spreadsheet :<br><textarea style="overflow:auto;" rows="1" id="example-spreadsheet"></textarea></p></center>
<h5> Renseignez votre spreadsheet</h5>
<p>Collez ici l'URL de votre spreadsheet : <input type="text" id="url"></p>
<h5> Selectionnez votre thème</h5>
<form>
<input type="radio" name="pub" value="vox" checked><label>Vox</label>
<input type="radio" name="pub" value="sbnation"><label>SB Nation</label>
<input type="radio" name="pub" value="verge"><label>The Verge</label>
<input type="radio" name="pub" value="polygon"><label>Polygon</label>
<input type="radio" name="pub" value="eater"><label>Eater</label>
<input type="radio" name="pub" value="racked"><label>Racked</label>
</form>
<h5>Options :</h5>
<form>
<label for="cdn">Localisation des ressources : (<small>avec le / final</small>)<input type="text" id="cdn" value="https://mvaudano.github.io/quiz-generator/" onClick="this.setSelectionRange(0, this.value.length)" style="width: 370px;"></label><br />
<label for="cdn">Compte Twitter (pour le partage) : <input type="text" id="twitter" value="@" onClick="this.setSelectionRange(0, this.value.length)" style="width: 370px;"></label>
</form>
<div class="embed" style="margin-top: 30px; margin-bottom: 60px;">
<h5>Générez et intégrez le quiz</h5>
<center><p><button id="build">Générez</button><p>
<p>Solution #1 (plus facile) : copier-coller le code embed</p>
<h6>A coller directement dans le back-office de votre site (ne marchera sûrement pas avec les back-offices limités comme Wordpress) ou dans un fichier HTML en ligne.</h6>
<p><textarea type="text" name="embedcode" id="embedcode" style="height: 150px; overflow:auto;"></textarea></p>
<p>Solution #2 (recommandée) : Télécharger les fichiers</p>
<h6 style="width: 70%; margin: 0% auto;">En cliquant sur le bouton ci-dessous, vous téléchargez l'ensemble des fichiers nécessaires et ne reposez plus sur un serveur distant pour l'hébergement des ressources. Il vous faudra décompresser le .zip et mettre tous les fichiers sur un serveur.</h6>
<button id="downloadhtml" disabled="disabled">Télécharger le zip</a></p></center>
</div>
<h4>Prévisualisation</h4>
</div>
<div class="quiz-preview">
<div class="quiz-container"></div>
</div>
<script src="javascripts/jquery.min.js"></script>
<script src="javascripts/tabletop.js"></script>
<script src="javascripts/getdata.js"></script>
<script src="javascripts/jszip.min.js"></script>
<script src="javascripts/FileSaver.min.js"></script>
</body>
</html>