Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MACAO Hugo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Beniamine
MACAO Hugo
Commits
fbb7a629
Commit
fbb7a629
authored
5 months ago
by
Anthony
Browse files
Options
Downloads
Patches
Plain Diff
Reuse bootstrap popover
parent
7d4612bc
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
macao/assets/_custom.scss
+0
-9
0 additions, 9 deletions
macao/assets/_custom.scss
macao/assets/custom.js
+18
-5
18 additions, 5 deletions
macao/assets/custom.js
with
18 additions
and
14 deletions
macao/assets/_custom.scss
+
0
−
9
View file @
fbb7a629
...
@@ -126,15 +126,6 @@ a.active {
...
@@ -126,15 +126,6 @@ a.active {
text-decoration
:
underline
;
text-decoration
:
underline
;
}
}
.commentaireInfo
{
padding
:
10px
;
border-radius
:
10px
;
background-color
:
var
(
--
secondary-background-color
);
border
:
1px
solid
var
(
--
macao-primary-color
);
color
:
black
;
max-width
:
500px
;
}
em
:not
(
:has
(
strong
))
{
em
:not
(
:has
(
strong
))
{
background-color
:
lightgray
;
background-color
:
lightgray
;
...
...
This diff is collapsed.
Click to expand it.
macao/assets/custom.js
+
18
−
5
View file @
fbb7a629
...
@@ -8,13 +8,26 @@ $(document).ready(function() {
...
@@ -8,13 +8,26 @@ $(document).ready(function() {
$
(
'
.book-header
'
).
show
();
$
(
'
.book-header
'
).
show
();
$
(
'
.commentaireInfo
'
).
hide
();
$
(
'
.commentaireInfo
'
).
hide
();
$
(
'
.commentaireInfo
'
).
prop
(
'
popover
'
,
'
auto
'
);
//
$('.commentaireInfo').prop('popover', 'auto');
$
(
'
.commentaireInfoGroup
'
).
prop
(
"
hidden
"
,
false
);
$
(
'
.commentaireInfoGroup
'
).
show
(
);
// Comment popover
// Comment popover
$
(
'
[spanid]
'
).
addClass
(
'
comment-trigger
'
).
on
(
'
click
'
,
function
()
{
$
(
'
[spanid]
'
).
addClass
(
'
comment-trigger
'
).
each
(
function
(){
let
spanid
=
$
(
this
).
attr
(
'
spanid
'
);
const
spanid
=
$
(
this
).
attr
(
'
spanid
'
);
$
(
"
[commentaireid=
"
+
spanid
+
"
]
"
).
toggle
();
if
(
$
(
"
[commentaireid=
"
+
spanid
+
"
]
"
).
length
!==
0
)
{
$
(
this
).
popover
({
trigger
:
'
click
'
,
html
:
true
,
placement
:
'
auto
'
,
content
:
$
(
"
[commentaireid=
"
+
spanid
+
"
]
"
)
});
$
(
"
[commentaireid=
"
+
spanid
+
"
]
"
).
toggle
()
}
});
$
(
document
).
on
(
'
click
'
,
function
()
{
$
(
'
[spanid]
'
).
popover
(
'
hide
'
);
});
});
// Simplify th in td
// Simplify th in td
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment