Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
4aeeffd5
Commit
4aeeffd5
authored
Oct 07, 2016
by
c24b
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proposition pour guided tour
parent
f21b65cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
12 deletions
+46
-12
menu.css
static/lib/gargantext/menu.css
+0
-1
menu.html
templates/pages/menu.html
+46
-11
No files found.
static/lib/gargantext/menu.css
View file @
4aeeffd5
...
...
@@ -30,7 +30,6 @@
vertical-align
:
middle
}
/* graph name => editable input => submitName() => minimsg */
.editable
{
color
:
grey
;
...
...
templates/pages/menu.html
View file @
4aeeffd5
...
...
@@ -26,8 +26,9 @@
About
</a>
</li>
{% if user.is_authenticated %}
<li><a
href=
"/projects/"
title=
"All your projects are here."
>
<li><a
href=
"/projects/"
class=
"help"
title=
"All your projects are here."
>
<span
class=
"glyphicon glyphicon-home"
aria-hidden=
"true"
></span>
Projects
</a>
...
...
@@ -67,7 +68,13 @@
</li>
{% endif %}
</ul>
<ul
class=
"nav navbar-nav pull-right"
>
<li>
<a
id=
"guided_tour"
role=
"button"
content=
"<p>Activate contextual help and discover how Gargantext works step by step</p>"
>
<i
class=
"glyphicon glyphicon-question-sign"
aria-hidden=
"true"
></i>
Guided Tour
</a>
</li>
<ul
class=
"nav navbar-nav pull-right"
>
<li
class=
"dropdown"
>
<a
href=
"#"
role=
"button"
class=
"dropdown-toggle navbar-text"
data-toggle=
"dropdown"
title=
"That is your username"
>
...
...
@@ -334,15 +341,43 @@
<script
type=
"text/javascript"
>
// initializes the popover elements with jquery
$
(
function
()
{
$
(
"[data-toggle='popover']"
).
popover
({
html
:
true
,
title
:
function
()
{
return
$
(
"#popover-head"
).
html
();
},
content
:
function
()
{
return
$
(
"#popover-content"
).
html
();
}
});});
// $(function () { $("[data-toggle='popover']").popover({
// html: true,
// title: function() {
// return $("#popover-head").html();
// },
// content: function() {
// return $("#popover-content").html();
// }
// });});
// function popOverFactory(selector, pos){
// $(selector).attr({ "type": "button",
// "data-toggle": "popover",
// "data-placement": pos,
// "data-trigger": "focus",
// });
//
// $(selector).popover({
// html:true,
// trigger:'toogle',
// title: selector.attr("title"),
// content: selector.attr("content"),
// });
// };
//
// $(document).on("click", "a#guided_tour", function(e){
// //make tab active
// $(this).parent().addClass("active");
// popOverFactory($(this), "bottom");
// $(this).popover("show");
//
//
// //$('[data-toggle="popover"]').popover()
// });
// $(document).on("hover", ".help", function(e){
// popOverFactory($(this), "top");
// $(this).popover('show');
// });
</script>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment