Commit 75d4f0f2 authored by Sylvain Coulange's avatar Sylvain Coulange

ajout bouton nouvelle page, bouton ouvrir dans popup

parent 6f9bd540
......@@ -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">
......
......@@ -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
......@@ -39,6 +39,11 @@ body {
.parametres-right span {
cursor: pointer;
}
.parametres-right img {
height: 30px;
cursor: pointer;
transform: translateY(-20%);
}
.parametres-bottom {
position: fixed;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment