Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Pédagogies Multimodales
PhonoDrop
Commits
75d4f0f2
Commit
75d4f0f2
authored
Apr 30, 2020
by
Sylvain Coulange
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ajout bouton nouvelle page, bouton ouvrir dans popup
parent
6f9bd540
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
0 deletions
+15
-0
public/im/new-page.png
public/im/new-page.png
+0
-0
public/index.html
public/index.html
+2
-0
public/scripts/script.js
public/scripts/script.js
+8
-0
public/styles/styles.css
public/styles/styles.css
+5
-0
No files found.
public/im/new-page.png
0 → 100644
View file @
75d4f0f2
14.3 KB
public/index.html
View file @
75d4f0f2
...
...
@@ -23,6 +23,7 @@
<span
onclick=
"save2url()"
class=
"glyphicon glyphicon-floppy-disk"
aria-hidden=
"true"
title=
"Enregistrer cette page"
></span>
</div>
<div
class=
"parametres-right"
>
<a
id=
"hrefNewPage"
href=
""
><img
src=
"im/new-page.png"
title=
"Ouvrir une nouvelle page"
/></a>
<span
onclick=
"eraseAll()"
class=
"glyphicon glyphicon-remove-sign"
aria-hidden=
"true"
title=
"Tout effacer"
></span>
</div>
<div
class=
"parametres-bottom"
>
...
...
@@ -52,6 +53,7 @@
<input
type=
"text"
id=
"pLien"
style=
"width: 300px;"
>
<div
class=
"copyButton"
>
<button
onclick=
"myFunction()"
onmouseout=
"outFunc()"
><span
class=
"copyButtonText"
id=
"myTooltip"
>
Copier
</span>
Copier le lien
</button>
<button
onclick=
"openInNewTab()"
>
Ouvrir
</button>
</div>
</div>
<div
class=
"modal-footer"
>
...
...
public/scripts/script.js
View file @
75d4f0f2
...
...
@@ -456,4 +456,12 @@ function myFunction() {
function
outFunc
()
{
var
tooltip
=
document
.
getElementById
(
"
myTooltip
"
);
tooltip
.
innerHTML
=
"
Copier
"
;
}
// Indiquer le lien de Page Vierge
document
.
getElementById
(
'
hrefNewPage
'
).
href
=
thisURL
.
replace
(
pageId
,
''
);
function
openInNewTab
()
{
var
URL
=
document
.
getElementById
(
"
pLien
"
).
value
;
window
.
open
(
URL
,
'
_blank
'
);
}
\ No newline at end of file
public/styles/styles.css
View file @
75d4f0f2
...
...
@@ -39,6 +39,11 @@ body {
.parametres-right
span
{
cursor
:
pointer
;
}
.parametres-right
img
{
height
:
30px
;
cursor
:
pointer
;
transform
:
translateY
(
-20%
);
}
.parametres-bottom
{
position
:
fixed
;
...
...
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