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
983102a4
Commit
983102a4
authored
Oct 11, 2016
by
c24b
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[WIP] steps
parent
fd31547c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
6 deletions
+18
-6
guided_tour.js
static/lib/gargantext/guided_tour.js
+14
-2
overview.html
templates/pages/projects/overview.html
+4
-4
No files found.
static/lib/gargantext/guided_tour.js
View file @
983102a4
...
...
@@ -6,10 +6,22 @@ function nextStep(num) {
function
previousStep
(
num
)
{
return
p
[(
$
.
inArray
(
num
,
p
)
-
1
)
%
p
.
length
];
}
function
isPopover
(
e
){
if
e
.
hasClass
(
"popover"
){
return
True
}
else
{
return
False
}
}
function
buildTour
(){
$
(
".class"
).
get
().
forEach
(
function
(
entry
,
index
,
array
)
{
steps
=
$
(
".tour"
)
console
.
log
(
steps
.
length
)
$
(
".tour"
).
each
(
function
(
i
,
obj
){
var
me
=
$
(
this
);
console
.
log
(
entry
,
index
,
array
);
//alert($(this));
console
.
log
(
obj
)
console
.
log
(
i
,
me
.
text
());
});
};
...
...
templates/pages/projects/overview.html
View file @
983102a4
...
...
@@ -42,27 +42,27 @@
<div
class=
"jumbotron"
>
<div
class=
"row"
>
<div
class=
"col-md-4"
>
<h1>
<h1
class=
"tour"
title=
""
content=
""
>
<span
class=
"glyphicon glyphicon-home"
aria-hidden=
"true"
></span>
Projects
</h1>
</div>
<div
class=
"col-md-3"
></div>
<div
class=
"col-md-5"
>
<p
id=
"add_help"
title=
"STEP 1: create a New Project"
content=
"<p>Click on the button to create a project</p>"
>
<p
class=
"tour"
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>
Add a new project
</button>
<div
id=
"popover-content"
class=
"hide"
>
<div
id=
"createForm"
class=
"form-group"
>
<div
id=
"createForm"
class=
"form-group
tour
"
>
{% csrf_token %}
<div
id=
"status-form"
class=
"collapse"
>
</div>
<div
class=
"row inline"
>
<label
class=
"col-lg-3"
for=
"inputName"
><span
class=
"pull-right"
>
Name:
</span></label>
<input
class=
"col-lg-8"
type=
"text"
id=
"inputName"
class=
"form-control"
>
<input
class=
"col-lg-8"
type=
"text"
id=
"inputName"
class=
"form-control
tour
"
>
</div>
<div
class=
"row inline"
>
...
...
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