\n"
@@ -37,7 +37,7 @@
msgid "all"
msgstr "tous"
-#: .\ldt_utils\forms.py:33 .\ldt_utils\models.py:58
+#: .\ldt_utils\forms.py:33 .\ldt_utils\models.py:55
#: .\ldt_utils\templates\ldt\ldt_utils\content_list.html.py:69
msgid "title"
msgstr "titre"
@@ -62,7 +62,7 @@
msgid "Content Tag"
msgstr "Catégorie de contenu"
-#: .\ldt_utils\forms.py:52 .\ldt_utils\models.py:160
+#: .\ldt_utils\forms.py:52 .\ldt_utils\models.py:157
msgid "content.content_creation_date"
msgstr "Date de création du contenu"
@@ -94,119 +94,119 @@
msgid "content.front_project"
msgstr "Choisir le front project"
-#: .\ldt_utils\forms.py:57 .\ldt_utils\models.py:159
+#: .\ldt_utils\forms.py:57 .\ldt_utils\models.py:156
msgid "content.duration"
msgstr "Durée"
-#: .\ldt_utils\models.py:47
+#: .\ldt_utils\models.py:44
msgid "media.external_id"
msgstr "id externe"
-#: .\ldt_utils\models.py:48
+#: .\ldt_utils\models.py:45
msgid "media.external_permalink"
msgstr "permalien externe"
-#: .\ldt_utils\models.py:49
+#: .\ldt_utils\models.py:46
msgid "media.external_publication_url"
msgstr "url de publication externe"
-#: .\ldt_utils\models.py:50
+#: .\ldt_utils\models.py:47
msgid "media.external_src_url"
msgstr "url source"
-#: .\ldt_utils\models.py:51
+#: .\ldt_utils\models.py:48
msgid "media.creation_date"
msgstr "Date de création"
-#: .\ldt_utils\models.py:52
+#: .\ldt_utils\models.py:49
msgid "media.media_creation_date"
msgstr "Date de création du média"
-#: .\ldt_utils\models.py:53
+#: .\ldt_utils\models.py:50
msgid "media.update_date"
msgstr "Date de maj"
-#: .\ldt_utils\models.py:54
+#: .\ldt_utils\models.py:51
msgid "media.videopath"
msgstr "videopath"
-#: .\ldt_utils\models.py:55
+#: .\ldt_utils\models.py:52
msgid "media.duration"
msgstr "Durée du contenu (ms)"
-#: .\ldt_utils\models.py:56
+#: .\ldt_utils\models.py:53
msgid "media.creator"
msgstr "Créateur"
-#: .\ldt_utils\models.py:57
+#: .\ldt_utils\models.py:54
msgid "description"
msgstr "description"
-#: .\ldt_utils\models.py:59
+#: .\ldt_utils\models.py:56
msgid "media.src"
msgstr "Sources"
-#: .\ldt_utils\models.py:61
+#: .\ldt_utils\models.py:58
msgid "media.src_hash"
msgstr "Hash de la source"
-#: .\ldt_utils\models.py:62
+#: .\ldt_utils\models.py:59
msgid "media.mimetype"
msgstr "mimetype"
-#: .\ldt_utils\models.py:152
+#: .\ldt_utils\models.py:149
msgid "content.iri_id"
msgstr "iri id"
-#: .\ldt_utils\models.py:153
+#: .\ldt_utils\models.py:150
msgid "content.iriurl"
msgstr "iri url"
-#: .\ldt_utils\models.py:154
+#: .\ldt_utils\models.py:151
msgid "content.creation_date"
msgstr "date de création"
-#: .\ldt_utils\models.py:155
+#: .\ldt_utils\models.py:152
msgid "content.update_date"
msgstr "Date de maj"
-#: .\ldt_utils\models.py:156
+#: .\ldt_utils\models.py:153
msgid "content.title"
msgstr "titre"
-#: .\ldt_utils\models.py:157
+#: .\ldt_utils\models.py:154
msgid "content.description"
msgstr "Description"
-#: .\ldt_utils\models.py:158
+#: .\ldt_utils\models.py:155
msgid "content.authors"
msgstr "Auteurs"
-#: .\ldt_utils\models.py:526
+#: .\ldt_utils\models.py:523
msgid "content_stat.content"
msgstr "statistiques d'annotation"
-#: .\ldt_utils\models.py:527
+#: .\ldt_utils\models.py:524
msgid "content_stat.annotations_volume"
msgstr "Volume d'annotations"
-#: .\ldt_utils\models.py:528
+#: .\ldt_utils\models.py:525
msgid "content_stat.polemics_volume"
msgstr "Volume d'annotations"
-#: .\ldt_utils\models.py:529
+#: .\ldt_utils\models.py:526
msgid "content.nb_annotation"
msgstr "nombre d'annotations"
-#: .\ldt_utils\models.py:530
+#: .\ldt_utils\models.py:527
msgid "content.last_annotated"
msgstr "annoté pour la dernière foiss"
-#: .\ldt_utils\models.py:585
+#: .\ldt_utils\models.py:582
msgid "created by"
msgstr "créé par"
-#: .\ldt_utils\models.py:586
+#: .\ldt_utils\models.py:583
msgid "changed by"
msgstr "modifié par"
@@ -471,14 +471,6 @@
msgid "duration"
msgstr "durée"
-#: .\ldt_utils\templates\ldt\ldt_utils\500.html.py:6
-msgid "Error 500"
-msgstr "Erreur 500"
-
-#: .\ldt_utils\templates\ldt\ldt_utils\500.html.py:10
-msgid "Internal server error"
-msgstr "Erreur interne du serveur"
-
#: .\ldt_utils\templates\ldt\ldt_utils\content_list.html.py:55
#: .\templates\admin\page_base.html.py:19
#: .\user\templates\ldt\user\login_form.html.py:33
@@ -663,7 +655,7 @@
msgstr "Créer un nouveau projet Ligne de Temps"
#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:23
-#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:46
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:54
msgid "Show Player"
msgstr "Afficher le Lecteur métadata"
@@ -671,42 +663,135 @@
msgid "Hide Player"
msgstr "Masquer le Lecteur métadata "
-#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:43
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:52
msgid "project id"
msgstr "Identifiant du projet "
-#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:43
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:52
msgid "Select"
msgstr "Sélectionner"
-#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:51
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:64
msgid "popup_player"
msgstr "Code Lecteur métadata"
-#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:51
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:65
msgid "popup_seo_body"
msgstr "Code SEO"
-#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:51
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:66
msgid "popup_seo_meta"
msgstr "Code balise meta en-tête"
-#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:51
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:67
msgid "popup_links"
msgstr "Liste de liens"
-#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:59
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:84
msgid "Integration mode"
msgstr "Utiliser le mode d'intégration "
-#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:60
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:85
msgid "div"
msgstr "div"
-#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:61
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:86
msgid "iframe"
msgstr "iframe"
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:91
+msgid "Preset Modes"
+msgstr "Modes prédéfinis"
+
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:94
+msgid "basic configuration"
+msgstr "Confirmation de base"
+
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:95
+msgid "polemic configuration"
+msgstr "Configuration avec widget polemic"
+
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:96
+msgid "polemic configuration with slideshare and tagcloud"
+msgstr "Configuration avec widget polemic, slideshare et tagcloud"
+
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:103
+msgid "Create your own configuration"
+msgstr "Personnaliser votre configuration"
+
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:108
+msgid "Displays a form to create a new annotation"
+msgstr "Permet de créer une annotation en affichant un formulaire"
+
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:112
+msgid "allows the user to record an annotation"
+msgstr "Permet à l'utilisateur d'enregistrer une annotation à l'aide d'un micro"
+
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:117
+msgid "Displays segments of a media as rectangles on an horizontal line"
+msgstr "Affiche le chapitrage du média, en horizontal"
+
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:120
+msgid "Show a list of annotations"
+msgstr "Affiche une liste d’annotations "
+
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:124
+msgid ""
+"Shows the polemical timeline, i.e. tweets colored according to the polemical syntax"
+msgstr "Affiche la timeline polémique, c’est à dire les tweets colorés en fonction de la syntaxe polémique "
+
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:127
+msgid "personalize tweet's color"
+msgstr "Personnaliser les couleurs des tweets"
+
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:131
+msgid "default color"
+msgstr "Couleur des tweets sans annotation polémique : "
+
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:140
+msgid "found color"
+msgstr "Couleur d'affichage des tweets lors d'une recherche : "
+
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:153
+msgid "Displays a curve showing the volume of tweets across time"
+msgstr "Affiche une courbe indiquant l’évolution du volume d’annotations au cours du temps"
+
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:156
+msgid "personalize sparkline's color"
+msgstr "Personnaliser les couleurs de la courbe"
+
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:160
+msgid "line color"
+msgstr "Couleur de la courbe : "
+
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:170
+msgid "fill color"
+msgstr "Couleur sous la courbe : "
+
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:181
+msgid "Displays a div in order to watch the slides displayed in the media"
+msgstr "Permet d'afficher les slides d'un média"
+
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:185
+msgid " Adds buttons to share an URL on social networks"
+msgstr "Affiche des boutons pour partager une URL sur les réseaux sociaux"
+
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:192
+msgid "share with email"
+msgstr "Partager par email"
+
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:196
+msgid "Displays information relative to a single segment/annotation while it is being played"
+msgstr "Affiche les informations relatives à une annotation au moment où celle-ci est jouée"
+
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:199
+msgid "Show the contents on a tweet when clicked (in Polemic Widget)"
+msgstr "Affiche furtivement le contenu d’un tweet "
+
+#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:202
+msgid "Shows a tag cloud"
+msgstr "Affiche un nuage de mots-clés "
+
#: .\ldt_utils\templates\ldt\ldt_utils\error_confirm.html.py:21
#: .\ldt_utils\templates\ldt\ldt_utils\error_confirm_popup.html.py:34
#: .\ldt_utils\templates\ldt\ldt_utils\reset_confirm.html.py:22
@@ -912,22 +997,22 @@
msgid "copy project"
msgstr "Copier votre projet"
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\projectslist.html.py:41
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\projectslist.html.py:43
#: .\ldt_utils\templates\ldt\ldt_utils\partial\publishedprojectslist.html.py:26
msgid "link json by id"
msgstr "Ouvrir le lecteur de métadata"
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\projectslist.html.py:44
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\projectslist.html.py:48
msgid "Project published, click to unpublish"
msgstr "Projet publié, cliquer pour de-publier"
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\projectslist.html.py:44
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\projectslist.html.py:46
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\projectslist.html.py:57
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\projectslist.html.py:48
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\projectslist.html.py:50
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\projectslist.html.py:61
msgid "You are not allowed to change this project"
msgstr "vous n'avez pas l'autorisation de modifier ce projet"
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\projectslist.html.py:46
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\projectslist.html.py:50
msgid "Project not published, click to publish"
msgstr "Projet non publié, cliquer pour publier"
@@ -939,71 +1024,71 @@
msgid "Project published"
msgstr "Projet publié"
-#: .\ldt_utils\views\content.py:189
+#: .\ldt_utils\views\content.py:187
msgid "Problem when downloading file from url : "
msgstr "Problème lors du téléchargement du fichier : "
-#: .\ldt_utils\views\content.py:192
+#: .\ldt_utils\views\content.py:190
msgid "Problem when uploading file : "
msgstr "Problème lors de l'upload du fichier : "
-#: .\ldt_utils\views\content.py:297
+#: .\ldt_utils\views\content.py:295
msgid "Content creation failure"
msgstr "Echec lors de la creation du contenu"
-#: .\ldt_utils\views\content.py:305
+#: .\ldt_utils\views\content.py:303
msgid "Commit of the content creation failed"
msgstr "Echec lors du commit de la creation du contenu"
-#: .\ldt_utils\views\content.py:319
+#: .\ldt_utils\views\content.py:317
#, python-format
msgid "There is %(count)d error when deleting content"
msgid_plural "There are %(count)d errors when deleting content"
msgstr[0] "Il y a %(count)d erreur lors de l'effacement du contenu"
msgstr[1] "Il y a %(count)d erreurs lors de l'effacement du contenu"
-#: .\ldt_utils\views\content.py:320
+#: .\ldt_utils\views\content.py:318
msgid "title error deleting content"
msgstr "Erreur lors de l'effacement du contenu"
-#: .\ldt_utils\views\content.py:325
+#: .\ldt_utils\views\content.py:323
#, python-format
msgid "Confirm delete content %(titles)s"
msgstr "Veuillez confirmer l'effacement du contenu %(titles)s"
-#: .\ldt_utils\views\content.py:326
+#: .\ldt_utils\views\content.py:324
msgid "confirm delete content"
msgstr "Confirmation effacement contenu"
-#: .\ldt_utils\views\content.py:337
+#: .\ldt_utils\views\content.py:335
#, python-format
msgid "Please unpublish the front project %(title)s"
msgstr "Veuillez dépublier le projet : %(title)s"
-#: .\ldt_utils\views\content.py:338
+#: .\ldt_utils\views\content.py:336
msgid "The front project is published"
msgstr "Projet publié"
-#: .\ldt_utils\views\content.py:339 .\ldt_utils\views\content.py:342
+#: .\ldt_utils\views\content.py:337 .\ldt_utils\views\content.py:340
#: .\ldt_utils\views\project.py:137
msgid "confirm reset"
msgstr "Confirmer la réinitialisation"
-#: .\ldt_utils\views\content.py:341 .\ldt_utils\views\project.py:136
+#: .\ldt_utils\views\content.py:339 .\ldt_utils\views\project.py:136
#, python-format
msgid "please confirm reseting project %(title)s"
msgstr "Veuillez confirmer la réinitialisation du projet %(title)s"
-#: .\ldt_utils\views\content.py:369
+#: .\ldt_utils\views\content.py:367
msgid "An error occurred - Please try again or contact webmaster"
msgstr ""
"Une erreur est apparue - Merci de réessayer ou de contacter le webmaster"
-#: .\ldt_utils\views\content.py:370
+#: .\ldt_utils\views\content.py:368
msgid "Error"
msgstr "Erreur"
-#: .\ldt_utils\views\content.py:413
+#: .\ldt_utils\views\content.py:411
#, python-format
msgid ""
"Content '%(title)s' is referenced by this project : %(project_titles)s. "
@@ -1018,7 +1103,7 @@
"Le contenu '%(title)s' est référencé par les projets suivants : '%"
"(project_titles)s'.Veuillez les effacer préalablement."
-#: .\ldt_utils\views\content.py:416
+#: .\ldt_utils\views\content.py:414
#, python-format
msgid ""
"The project '%(project_title)s' pointing on the content '%(title)s' has "
@@ -1028,16 +1113,16 @@
"Le projet '%(project_title)s' référençant le contenu '%(title)s' comporte "
"plusieurs annotations. Voulez vous quand même supprimer le contenu ?"
-#: .\ldt_utils\views\content.py:442
+#: .\ldt_utils\views\content.py:440
msgid "Content deletion failure"
msgstr "Echec lors de la suppression du contenu"
-#: .\ldt_utils\views\content.py:452
+#: .\ldt_utils\views\content.py:450
msgid "Commit of the content deletion failed"
msgstr "Echec lors du commit de la suppression du contenu"
#: .\ldt_utils\views\json.py:40 .\ldt_utils\views\rdf.py:15
-#: .\ldt_utils\views\workspace.py:178
+#: .\ldt_utils\views\workspace.py:200
msgid "You can not access this project"
msgstr "vous n'avez pas l'autorisation d'accéder à ce projet"
@@ -1073,12 +1158,12 @@
msgid "confirm deletion"
msgstr "Confirmation d'effacement"
-#: .\ldt_utils\views\workspace.py:128
+#: .\ldt_utils\views\workspace.py:123
msgid ""
"The content does not exists or you are not allowed to access this content"
msgstr "Ce contenu n'existe pas, ou vous n'êtes pas autorisé a y acceder"
-#: .\ldt_utils\views\workspace.py:132
+#: .\ldt_utils\views\workspace.py:127
msgid "Parameters project_id or content_id must be given in the url"
msgstr "Les paramètres project_id et content_id doivent être passés dans l'URL"
@@ -1730,5 +1815,11 @@
"Nous vous avons envoyé par courriel les instructions pour activer le compte "
"à l'adresse que vous avez indiquée. Vous devriez le recevoir rapidement."
+#~ msgid "Error 500"
+#~ msgstr "Erreur 500"
+
+#~ msgid "Internal server error"
+#~ msgstr "Erreur interne du serveur"
+
#~ msgid "clik here to see the project content"
#~ msgstr "cliquer ici pour voir le contenu du projet"
diff -r f5fe14b94ef5 -r a374c1724314 src/ldt/ldt/static/ldt/css/embed_popup.css
--- a/src/ldt/ldt/static/ldt/css/embed_popup.css Tue Nov 06 10:52:51 2012 +0100
+++ b/src/ldt/ldt/static/ldt/css/embed_popup.css Thu Nov 08 17:59:14 2012 +0100
@@ -24,7 +24,7 @@
padding: 5px 10px;
}
-.color_text{
+.codeColor_text{
width: 46px;
text-align: center;
color: #949494;
@@ -32,7 +32,7 @@
padding: 3px;
}
-.color_block {
+.blockCo {
border: 1px solid;
display: inline-block;
height: 13px;
@@ -42,71 +42,71 @@
margin-right: 7px;
}
-.color_block.grey{
+.blockCo.grey{
background-color: #585858;
border-color: #323232;
}
-.color_block.purple {
+.blockCo.purple {
background-color: #fc00ff;
border-color: #97009a;
}
-.color_block.orange {
+.blockCo.orange {
background-color: #FF9933;
border-color: #CC6600;
}
-.color_block.lime {
+.blockCo.lime {
background-color: #C9FF23;
border-color: #8EBC00;
}
-.color_block.fuschia {
+.blockCo.fuschia {
background-color: #FF0179;
border-color: #9A0049;
}
-.color_block.white {
+.blockCo.white {
background-color: #FFFFFF;
border-color: #CCCCCC;
}
-.color_block.blue_grey{
+.blockCo.blue_grey{
background-color: #7492b4;
border-color: #4d6c8f;
}
-.color_block.black{
+.blockCo.black{
background-color: #050505;
border-color: #515151;
}
-.color_block.light_grey{
+.blockCo.light_grey{
background-color: #aeaeb8;
border-color: #858594;
}
-.color_block.brown_orange{
+.blockCo.brown_orange{
background-color: #ebc8a3;
border-color: #FF9933;
}
-.color_block.pastel_green{
+.blockCo.pastel_green{
background-color: #daf4af;
border-color: #a1d600;
}
-.color_block.pastel_fushia{
+.blockCo.pastel_fushia{
background-color: #da7ba7;
border-color: #a72f66;
}
-.color_block.dark_lime{
+.blockCo.dark_lime{
background-color: #a1d600;
border-color: #678a00;
}
diff -r f5fe14b94ef5 -r a374c1724314 src/ldt/ldt/static/ldt/img/refresh_button.jpg
Binary file src/ldt/ldt/static/ldt/img/refresh_button.jpg has changed
diff -r f5fe14b94ef5 -r a374c1724314 src/ldt/ldt/static/ldt/js/embed_popup.js
--- a/src/ldt/ldt/static/ldt/js/embed_popup.js Tue Nov 06 10:52:51 2012 +0100
+++ b/src/ldt/ldt/static/ldt/js/embed_popup.js Thu Nov 08 17:59:14 2012 +0100
@@ -4,7 +4,7 @@
$j.each(["player","seo_body","seo_meta","links"], function(i,display_str) {
var div_selector = "#"+display_str+"_code";
- if(display_str == display_state) {
+ if(display_str === display_state) {
$j(div_selector).show();
}
else {
@@ -16,8 +16,7 @@
function init_events(){
toggle_display();
mode1();
- $j("#iframe_premode").toggle(false);
- $j("#div_premode").toggle(false);
+ $j("#iframe_div_premode").toggle(false);
$j("#embed_personnalisation").toggle(false);
$j("#optionsExpArrow").toggle(true);
$j("#optionsCollArrow").toggle(false);
@@ -35,7 +34,7 @@
$j("#polemic_found_color").val("#fc00ff");
$j("#sparkline_line_color").val("#7492b4");
$j("#sparkline_fill_color").val("#aeaeb8");
-
+ $j("#createannotation_options").toggle(false);
$j("#project_id_select").click(function(){
$j("#project_id_input").focus();
$j("#project_id_input").select();
@@ -70,14 +69,25 @@
alert($j("#"+display_state+"_code").html());
});
+ $j("#refresh_player_button").click(function(e){
+ refresh_player();
+ });
+
+ $j("#refresh_player_button").click(function(){
+ $j("#player_id_code").focus();
+ $j("#player_id_code").select();
+ });
+
$j("#player_button").click(function(){
$j("#player_id_code").focus();
$j("#player_id_code").select();
});
$j("#seo_body_button").click(function(){
+ display_state = "seo_body";
+ toggle_display();
$j("#seo_body_id_code").focus();
- $j("#seo_body_id_code").select();
+ $j("#seo_body_id_code").select();
});
@@ -93,17 +103,9 @@
});
$j('#displayPreMode').click(function(){
- var type_embed=document.getElementById("type_embed_div");
- if(type_embed.checked){
- $j("#div_premode").slideToggle("fast");
-
- }
- else{
- $j("#iframe_premode").slideToggle("fast");
- }
- $j("#preModeExpArrow").toggle();
- $j("#preModeCollArrow").toggle();
-
+ $j("#iframe_div_premode").slideToggle("fast");
+ $j("#preModeExpArrow").toggle();
+ $j("#preModeCollArrow").toggle();
});
$j("#displayEmbedOptions").click(function(){
@@ -118,10 +120,38 @@
});
$j("#displaySparklineOptions").click(function(){
- $j("#sparkline_options").slideToggle("fast");
+ $j("#sparkline_options").slideToggle("fast");
});
+
+ $('.infostooltip').each( function () {
+ var desc = $(this).attr('data-desc');
+ if (desc == 'None') {
+ desc = '';
+ }
+ $(this).qtip({
+ content : {
+ text: '' + $(this).attr('data-title') + '
' + desc
+ },
+ style: {
+ classes: 'ui-tooltip-dark ui-tooltip-rounded qtipldt'
+ },
+ border: {
+ 'width': 0,
+ 'color': '#505050'
+ },
+ position: {
+ my: 'top left',
+ at: 'bottom left'
+ }
+ });
+ });
+
}
+function select_code(){
+ $j("#player_id_code").focus();
+ $j("#player_id_code").select();
+}
function generate_base_embed_code(){
base='\
\n \
@@ -147,7 +177,7 @@
format: "ldt"\n\
};\n\
var _config = {\n\
- width: "'+player_width+'",\n\
+ width: "550",\n\
container: "'+player_id+'_embed",\n\
css: "'+WEB_URL+LDT_MEDIA_PREFIX+'metadataplayer/LdtPlayer-core.css",\n\
default_options: {\n\
@@ -378,16 +408,9 @@
var code_embed=document.getElementById("player_id_code");
if(type_embed.checked){
var new_code=generate_div_code();
- if(element.style.display=="block"){
- $j(wrapper_id).html(new_code);
- }
-
}
else{
var new_code=generate_iframe_code();
- if(element.style.display=="block"){
- display_iframe_player();
- }
}
code_embed.value= new_code;
$j("#player_id_code").focus();
@@ -395,8 +418,7 @@
}
function div_event(){
- $j("#iframe_premode").toggle(false);
- $j("#div_premode").toggle(false);
+ $j("#iframe_div_premode").toggle(false);
$j("#preModeExpArrow").toggle(true);
$j("#preModeCollArrow").toggle(false);
$j("#createannotation_block").toggle(false);
@@ -406,10 +428,11 @@
function toggle() {
wrapper="wrapper_"+player_id;
wrapper_id="#"+wrapper;
+ var player_div = document.getElementById("player_div");
var element = document.getElementById(wrapper);
var text = document.getElementById("displayPlayer");
var type_embed=document.getElementById("type_embed_div");
- if(element.style.display==="none") {
+ if(player_div.style.display==="none") {
if (type_embed.checked){
var new_code=generate_div_code();
$j(wrapper_id).html(new_code);
@@ -417,12 +440,12 @@
else{
display_iframe_player();
}
- element.style.display="block";
+ player_div.style.display="block";
text.innerHTML = translate_hide;
}
else {
$j(wrapper_id).html('');
- element.style.display="none";
+ player_div.style.display="none";
text.innerHTML = translate_show;
}
}
@@ -440,6 +463,11 @@
function display_social(){
$j("#social_options").slideToggle("fast");
}
+
+function display_createannotation(){
+ $j("#createannotation_options").slideToggle("fast");
+}
+
function mode1(){
var annotationslist_val=document.getElementById('annotations_list_checkbox');
var slideshare_val=document.getElementById('slideshare_checkbox');
@@ -458,7 +486,10 @@
createannotation_val.checked=false;
}
else{
+ $j("#createannotation_options").toggle(true);
createannotation_val.checked=true;
+ var show_mic_record_val = document.getElementById('show_mic_record_checkbox');
+ show_mic_record_val.checked=false;
}
$j("#displayPolemicOptions").toggle(false);
$j("#displaySparklineOptions").toggle(false);
@@ -494,11 +525,16 @@
$j("#sparkline_options").toggle(false);
display_polemic();
display_sparkline();
+
if(type_embed.checked){
createannotation_val.checked=false;
}
else{
+ $j("#createannotation_options").toggle(true);
createannotation_val.checked=true;
+ var show_mic_record_val = document.getElementById('show_mic_record_checkbox');
+ show_mic_record_val.checked=false;
+
}
polemic_val.checked=true;
segments_val.checked=true;
@@ -536,7 +572,10 @@
createannotation_val.checked=false;
}
else{
+ $j("#createannotation_options").toggle(true);
createannotation_val.checked=true;
+ var show_mic_record_val = document.getElementById('show_mic_record_checkbox');
+ show_mic_record_val.checked=false;
}
polemic_val.checked=true;
segments_val.checked=true;
@@ -552,6 +591,7 @@
}
function iframe_event(){
$j("#createannotation_block").toggle(true);
+ $j("#createannotation_options").toggle(true);
var element = document.getElementById(wrapper);
var createannotation_val=document.getElementById('createannotation_checkbox');
createannotation_val.checked=true;
@@ -579,9 +619,21 @@
iframeUrl= iframe_url;
if(createannotation_val.checked){
iframeUrl+="&createannotation=True";
+ var show_mic_record_val = document.getElementById('show_mic_record_checkbox');
+ if(show_mic_record_val.checked){
+ iframeUrl+="&show_mic_record=True";
+ }
}
if (polemic_val.checked){
iframeUrl+="&polemic=all";
+ polemic_defaultColor=$j("#polemic_default_color").val();
+ defaultColor_code_array= polemic_defaultColor.split("#");
+ defaultColor_code=defaultColor_code_array[1];
+ polemic_foundColor=$j("#polemic_found_color").val();
+ foundColor_code_array = polemic_foundColor.split("#");
+ foundColor_code=foundColor_code_array[1];
+ iframeUrl+="&polemic_defaultColor="+defaultColor_code;
+ iframeUrl+="&polemic_foundColor="+foundColor_code;
}
else{
iframeUrl+="&polemic=False";
@@ -593,7 +645,27 @@
iframeUrl+="&slideshare=True";
}
if(social_val.checked){
+ show_url=document.getElementById("show_url_checkbox");
+ show_twitter=document.getElementById("show_twitter_checkbox");
+ show_fb=document.getElementById("show_fb_checkbox");
+ show_gplus=document.getElementById("show_gplus_checkbox");
+ show_mail=document.getElementById("show_mail_checkbox");
iframeUrl+="&social=True";
+ if(show_url.checked){
+ iframeUrl+="&show_url=True";
+ }
+ if(show_twitter.checked){
+ iframeUrl+="&show_twitter=True";
+ }
+ if(show_fb.checked){
+ iframeUrl+="&show_fb=True";
+ }
+ if(show_gplus.checked){
+ iframeUrl+="&show_gplus=True";
+ }
+ if(show_mail.checked){
+ iframeUrl+="&show_mail=True";
+ }
}
if(tweet_val.checked){
iframeUrl+="&tweet=True";
@@ -603,11 +675,18 @@
}
if(sparkline_val.checked){
iframeUrl+="&sparkline=True";
+ sparkline_lineColor=$j("#sparkline_line_color").val();
+ lineColor_code_array= sparkline_lineColor.split("#");
+ lineColor_code=lineColor_code_array[1];
+ sparkline_fillColor=$j("#sparkline_fill_color").val();
+ fillColor_code_array = sparkline_fillColor.split("#");
+ fillColor_code=fillColor_code_array[1];
+ iframeUrl+="&sparkline_lineColor="+lineColor_code;
+ iframeUrl+="&sparkline_fillColor="+fillColor_code;
}
if(tagcloud_val.checked){
iframeUrl+="&tagcloud=True";
}
- iframeUrl+= "&show_mic_record="+show_mic_record+"";
return iframeUrl;
}
@@ -616,20 +695,22 @@
var createannotation_val=document.getElementById('createannotation_checkbox');
var annotationslist_val=document.getElementById('annotations_list_checkbox');
var polemic_val=document.getElementById('polemic_checkbox');
+ var slideshare_val=document.getElementById('slideshare_checkbox');
+ var show_mic_record_val = document.getElementById('show_mic_record_checkbox');
iframeUrl=generate_iframeUrl();
player_width=570;
player_height=430;
if (createannotation_val.checked){
player_height+=281;
}
- if(annotationslist_val.checked){
+ if(annotationslist_val.checked || slideshare_val.checked){
player_width+=430;
}
if(polemic_val.checked){
player_height+=100;
}
- if(show_mic_record!='False'){
+ if(show_mic_record_val.checked){
player_height+=55;
}
@@ -642,27 +723,26 @@
var createannotation_val=document.getElementById('createannotation_checkbox');
var annotationslist_val=document.getElementById('annotations_list_checkbox');
var polemic_val=document.getElementById('polemic_checkbox');
+ var slideshare_val=document.getElementById('slideshare_checkbox');
+ var show_mic_record_val = document.getElementById('show_mic_record_checkbox');
var code_embed=document.getElementById("player_id_code");
- $j("#iframe_premode").toggle(false);
- $j("#div_premode").toggle(false);
- $j("#preModeExpArrow").toggle(true);
- $j("#preModeCollArrow").toggle(false);
wrapper = "wrapper_"+player_id;
wrapper_id = "#"+wrapper;
iframeUrl= generate_iframeUrl();
player_width=570;
player_height=430;
if (createannotation_val.checked){
- player_height+=281;
+ player_height+=300;
+ player_width+=50;
}
- if(annotationslist_val.checked){
+ if(annotationslist_val.checked || slideshare_val.checked){
player_width+=430;
}
if(polemic_val.checked){
player_height+=100;
}
- if(show_mic_record!='False'){
+ if(show_mic_record_val.checked){
player_height+=55;
}
@@ -695,3 +775,13 @@
put_new_code();
}
+function refresh_player(){
+ var type_embed=document.getElementById("type_embed_div");
+ if (type_embed.checked){
+ var new_code=generate_div_code();
+ $j(wrapper_id).html(new_code);
+ }
+ else{
+ display_iframe_player();
+ }
+}
diff -r f5fe14b94ef5 -r a374c1724314 src/ldt/ldt/static/ldt/js/jscolor/arrow.gif
Binary file src/ldt/ldt/static/ldt/js/jscolor/arrow.gif has changed
diff -r f5fe14b94ef5 -r a374c1724314 src/ldt/ldt/static/ldt/js/jscolor/cross.gif
Binary file src/ldt/ldt/static/ldt/js/jscolor/cross.gif has changed
diff -r f5fe14b94ef5 -r a374c1724314 src/ldt/ldt/static/ldt/js/jscolor/hs.png
Binary file src/ldt/ldt/static/ldt/js/jscolor/hs.png has changed
diff -r f5fe14b94ef5 -r a374c1724314 src/ldt/ldt/static/ldt/js/jscolor/hv.png
Binary file src/ldt/ldt/static/ldt/js/jscolor/hv.png has changed
diff -r f5fe14b94ef5 -r a374c1724314 src/ldt/ldt/static/ldt/js/jscolor/jscolor.js
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ldt/ldt/static/ldt/js/jscolor/jscolor.js Thu Nov 08 17:59:14 2012 +0100
@@ -0,0 +1,953 @@
+/**
+ * jscolor, JavaScript Color Picker
+ *
+ * @version 1.4.0
+ * @license GNU Lesser General Public License, http://www.gnu.org/copyleft/lesser.html
+ * @author Jan Odvarko, http://odvarko.cz
+ * @created 2008-06-15
+ * @updated 2012-07-06
+ * @link http://jscolor.com
+ */
+
+
+var jscolor = {
+
+
+ dir : '', // location of jscolor directory (leave empty to autodetect)
+ bindClass : 'color', // class name
+ binding : true, // automatic binding via
+ preloading : true, // use image preloading?
+
+
+ install : function() {
+ jscolor.addEvent(window, 'load', jscolor.init);
+ },
+
+
+ init : function() {
+ if(jscolor.binding) {
+ jscolor.bind();
+ }
+ if(jscolor.preloading) {
+ jscolor.preload();
+ }
+ },
+
+
+ getDir : function() {
+ if(!jscolor.dir) {
+ var detected = jscolor.detectDir();
+ jscolor.dir = detected!==false ? detected : 'jscolor/';
+ }
+ return jscolor.dir;
+ },
+
+
+ detectDir : function() {
+ var base = location.href;
+
+ var e = document.getElementsByTagName('base');
+ for(var i=0; i vs[a] ?
+ (-vp[a]+tp[a]+ts[a]/2 > vs[a]/2 && tp[a]+ts[a]-ps[a] >= 0 ? tp[a]+ts[a]-ps[a] : tp[a]) :
+ tp[a],
+ -vp[b]+tp[b]+ts[b]+ps[b]-l+l*c > vs[b] ?
+ (-vp[b]+tp[b]+ts[b]/2 > vs[b]/2 && tp[b]+ts[b]-l-l*c >= 0 ? tp[b]+ts[b]-l-l*c : tp[b]+ts[b]-l+l*c) :
+ (tp[b]+ts[b]-l+l*c >= 0 ? tp[b]+ts[b]-l+l*c : tp[b]+ts[b]-l-l*c)
+ ];
+ }
+ drawPicker(pp[a], pp[b]);
+ }
+ };
+
+
+ this.importColor = function() {
+ if(!valueElement) {
+ this.exportColor();
+ } else {
+ if(!this.adjust) {
+ if(!this.fromString(valueElement.value, leaveValue)) {
+ styleElement.style.backgroundImage = styleElement.jscStyle.backgroundImage;
+ styleElement.style.backgroundColor = styleElement.jscStyle.backgroundColor;
+ styleElement.style.color = styleElement.jscStyle.color;
+ this.exportColor(leaveValue | leaveStyle);
+ }
+ } else if(!this.required && /^\s*$/.test(valueElement.value)) {
+ valueElement.value = '';
+ styleElement.style.backgroundImage = styleElement.jscStyle.backgroundImage;
+ styleElement.style.backgroundColor = styleElement.jscStyle.backgroundColor;
+ styleElement.style.color = styleElement.jscStyle.color;
+ this.exportColor(leaveValue | leaveStyle);
+
+ } else if(this.fromString(valueElement.value)) {
+ // OK
+ } else {
+ this.exportColor();
+ }
+ }
+ };
+
+
+ this.exportColor = function(flags) {
+ if(!(flags & leaveValue) && valueElement) {
+ var value = this.toString();
+ if(this.caps) { value = value.toUpperCase(); }
+ if(this.hash) { value = '#'+value; }
+ valueElement.value = value;
+ }
+ if(!(flags & leaveStyle) && styleElement) {
+ styleElement.style.backgroundImage = "none";
+ styleElement.style.backgroundColor =
+ '#'+this.toString();
+ styleElement.style.color =
+ 0.213 * this.rgb[0] +
+ 0.715 * this.rgb[1] +
+ 0.072 * this.rgb[2]
+ < 0.5 ? '#FFF' : '#000';
+ }
+ if(!(flags & leavePad) && isPickerOwner()) {
+ redrawPad();
+ }
+ if(!(flags & leaveSld) && isPickerOwner()) {
+ redrawSld();
+ }
+ };
+
+
+ this.fromHSV = function(h, s, v, flags) { // null = don't change
+ if(h !== null) { h = Math.max(0.0, this.minH, Math.min(6.0, this.maxH, h)); }
+ if(s !== null) { s = Math.max(0.0, this.minS, Math.min(1.0, this.maxS, s)); }
+ if(v !== null) { v = Math.max(0.0, this.minV, Math.min(1.0, this.maxV, v)); }
+
+ this.rgb = HSV_RGB(
+ h===null ? this.hsv[0] : (this.hsv[0]=h),
+ s===null ? this.hsv[1] : (this.hsv[1]=s),
+ v===null ? this.hsv[2] : (this.hsv[2]=v)
+ );
+
+ this.exportColor(flags);
+ };
+
+
+ this.fromRGB = function(r, g, b, flags) { // null = don't change
+ if(r !== null) { r = Math.max(0.0, Math.min(1.0, r)); }
+ if(g !== null) { g = Math.max(0.0, Math.min(1.0, g)); }
+ if(b !== null) { b = Math.max(0.0, Math.min(1.0, b)); }
+
+ var hsv = RGB_HSV(
+ r===null ? this.rgb[0] : r,
+ g===null ? this.rgb[1] : g,
+ b===null ? this.rgb[2] : b
+ );
+ if(hsv[0] !== null) {
+ this.hsv[0] = Math.max(0.0, this.minH, Math.min(6.0, this.maxH, hsv[0]));
+ }
+ if(hsv[2] !== 0) {
+ this.hsv[1] = hsv[1]===null ? null : Math.max(0.0, this.minS, Math.min(1.0, this.maxS, hsv[1]));
+ }
+ this.hsv[2] = hsv[2]===null ? null : Math.max(0.0, this.minV, Math.min(1.0, this.maxV, hsv[2]));
+
+ // update RGB according to final HSV, as some values might be trimmed
+ var rgb = HSV_RGB(this.hsv[0], this.hsv[1], this.hsv[2]);
+ this.rgb[0] = rgb[0];
+ this.rgb[1] = rgb[1];
+ this.rgb[2] = rgb[2];
+
+ this.exportColor(flags);
+ };
+
+
+ this.fromString = function(hex, flags) {
+ var m = hex.match(/^\W*([0-9A-F]{3}([0-9A-F]{3})?)\W*$/i);
+ if(!m) {
+ return false;
+ } else {
+ if(m[1].length === 6) { // 6-char notation
+ this.fromRGB(
+ parseInt(m[1].substr(0,2),16) / 255,
+ parseInt(m[1].substr(2,2),16) / 255,
+ parseInt(m[1].substr(4,2),16) / 255,
+ flags
+ );
+ } else { // 3-char notation
+ this.fromRGB(
+ parseInt(m[1].charAt(0)+m[1].charAt(0),16) / 255,
+ parseInt(m[1].charAt(1)+m[1].charAt(1),16) / 255,
+ parseInt(m[1].charAt(2)+m[1].charAt(2),16) / 255,
+ flags
+ );
+ }
+ return true;
+ }
+ };
+
+
+ this.toString = function() {
+ return (
+ (0x100 | Math.round(255*this.rgb[0])).toString(16).substr(1) +
+ (0x100 | Math.round(255*this.rgb[1])).toString(16).substr(1) +
+ (0x100 | Math.round(255*this.rgb[2])).toString(16).substr(1)
+ );
+ };
+
+
+ function RGB_HSV(r, g, b) {
+ var n = Math.min(Math.min(r,g),b);
+ var v = Math.max(Math.max(r,g),b);
+ var m = v - n;
+ if(m === 0) { return [ null, 0, v ]; }
+ var h = r===n ? 3+(b-g)/m : (g===n ? 5+(r-b)/m : 1+(g-r)/m);
+ return [ h===6?0:h, m/v, v ];
+ }
+
+
+ function HSV_RGB(h, s, v) {
+ if(h === null) { return [ v, v, v ]; }
+ var i = Math.floor(h);
+ var f = i%2 ? h-i : 1-(h-i);
+ var m = v * (1 - s);
+ var n = v * (1 - s*f);
+ switch(i) {
+ case 6:
+ case 0: return [v,n,m];
+ case 1: return [n,v,m];
+ case 2: return [m,v,n];
+ case 3: return [m,n,v];
+ case 4: return [n,m,v];
+ case 5: return [v,m,n];
+ }
+ }
+
+
+ function removePicker() {
+ delete jscolor.picker.owner;
+ document.getElementsByTagName('body')[0].removeChild(jscolor.picker.boxB);
+ }
+
+
+ function drawPicker(x, y) {
+ if(!jscolor.picker) {
+ jscolor.picker = {
+ box : document.createElement('div'),
+ boxB : document.createElement('div'),
+ pad : document.createElement('div'),
+ padB : document.createElement('div'),
+ padM : document.createElement('div'),
+ sld : document.createElement('div'),
+ sldB : document.createElement('div'),
+ sldM : document.createElement('div'),
+ btn : document.createElement('div'),
+ btnS : document.createElement('span'),
+ btnT : document.createTextNode(THIS.pickerCloseText)
+ };
+ for(var i=0,segSize=4; i
+ {% trans 'share with email' %}