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
d0e9477d
Commit
d0e9477d
authored
Oct 10, 2016
by
c24b
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Popover test for tour guided
parent
4aeeffd5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
40 deletions
+32
-40
menu.html
templates/pages/menu.html
+31
-39
overview.html
templates/pages/projects/overview.html
+1
-1
No files found.
templates/pages/menu.html
View file @
d0e9477d
...
...
@@ -5,7 +5,7 @@
<script
type=
"text/javascript"
src=
"{% static "
lib
/
jquery
/
1
.
11
.
1
/
jquery
.
min
.
js
"
%}"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static "
lib
/
bootstrap
/
3
.
0
.
2
/
bootstrap
.
css
"
%}"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static "
lib
/
gargantext
/
menu
.
css
"%}"
/>
<script
type=
"text/javascript"
src=
"{% static "
lib
/
gargantext
/
guided_tour
.
js
"
%}"
></script>
{% block css %}
{% endblock %}
...
...
@@ -70,7 +70,7 @@
</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>
"
>
<a
id=
"guided_tour"
role=
"button"
title=
"Guided Tour"
content=
"Activate the discovery mode
"
>
<i
class=
"glyphicon glyphicon-question-sign"
aria-hidden=
"true"
></i>
Guided Tour
</a>
...
...
@@ -341,43 +341,35 @@
<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 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');
// });
$
(
function
()
{
$
(
"[data-toggle='popover']"
).
popover
({
html
:
true
,
title
:
function
()
{
return
$
(
"#popover-head"
).
html
();
},
content
:
function
()
{
return
$
(
"#popover-content"
).
html
();
}
});});
$
(
document
).
on
(
"click"
,
"a#guided_tour"
,
function
(
e
){
//make tab active
$
(
this
).
parent
().
addClass
(
"active"
);
popOverFactory
(
$
(
this
),
"bottom"
,
true
);
$
(
this
).
popover
(
"show"
);
});
$
(
document
).
on
(
"click"
,
"button#close"
,
function
(
e
){
$
(
this
).
popover
(
"hide"
);
});
$
(
document
).
on
(
"click"
,
"button#ok"
,
function
(
e
){
popOverFactory
(
$
(
"p#add_help"
),
"left"
,
false
);
$
(
"p#add_help"
).
popover
(
"show"
);
//$("button#add").popover("show");
$
(
this
).
parent
().
parent
().
parent
().
remove
();
});
</script>
...
...
templates/pages/projects/overview.html
View file @
d0e9477d
...
...
@@ -49,7 +49,7 @@
</div>
<div
class=
"col-md-3"
></div>
<div
class=
"col-md-5"
>
<p>
<p
id=
"add_help"
title=
"STEP 1: create a New Project"
content=
"<p>Click on the button to create a project</p>"
>
<br>
<button
id=
"add"
type=
"button"
class=
"btn btn-primary btn-lg"
data-container=
"body"
data-toggle=
"popover"
data-placement=
"bottom"
>
<span
class=
"glyphicon glyphicon-plus"
aria-hidden=
"true"
></span>
...
...
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