parent
1abc84ee3e
commit
a07204d8cd
File diff suppressed because it is too large
Load Diff
@ -1,2 +0,0 @@
|
|||||||
#n:public
|
|
||||||
!<md> [676280, 0, null, null, -2147483648, -2147483648]
|
|
@ -1,31 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="MessDetectorOptionsConfiguration">
|
|
||||||
<option name="transferred" value="true" />
|
|
||||||
</component>
|
|
||||||
<component name="PHPCSFixerOptionsConfiguration">
|
|
||||||
<option name="transferred" value="true" />
|
|
||||||
</component>
|
|
||||||
<component name="PHPCodeSnifferOptionsConfiguration">
|
|
||||||
<option name="highlightLevel" value="WARNING" />
|
|
||||||
<option name="transferred" value="true" />
|
|
||||||
</component>
|
|
||||||
<component name="PhpIncludePathManager">
|
|
||||||
<include_path>
|
|
||||||
<path value="$PROJECT_DIR$/vendor/composer" />
|
|
||||||
<path value="$PROJECT_DIR$/vendor/altorouter/altorouter" />
|
|
||||||
<path value="$PROJECT_DIR$/vendor/twig/twig" />
|
|
||||||
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-ctype" />
|
|
||||||
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-php81" />
|
|
||||||
<path value="$PROJECT_DIR$/vendor/symfony/deprecation-contracts" />
|
|
||||||
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-mbstring" />
|
|
||||||
</include_path>
|
|
||||||
</component>
|
|
||||||
<component name="PhpProjectSharedConfiguration" php_language_level="8.3" />
|
|
||||||
<component name="PhpStanOptionsConfiguration">
|
|
||||||
<option name="transferred" value="true" />
|
|
||||||
</component>
|
|
||||||
<component name="PsalmOptionsConfiguration">
|
|
||||||
<option name="transferred" value="true" />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="VcsDirectoryMappings">
|
|
||||||
<mapping directory="" vcs="Git" />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
@ -0,0 +1,23 @@
|
|||||||
|
function copyCurrentUrl() {
|
||||||
|
const currentUrl = window.location.href;
|
||||||
|
|
||||||
|
if (navigator.clipboard) {
|
||||||
|
navigator.clipboard.writeText(currentUrl).then(() => {
|
||||||
|
alert('Lien copié dans le presse-papiers : ' + currentUrl);
|
||||||
|
}).catch(err => {
|
||||||
|
console.error('Échec lors de la copie : ', err);
|
||||||
|
alert('Impossible de copier le lien.');
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
// Méthode de secours pour copier l'URL
|
||||||
|
const tempInput = document.createElement('input');
|
||||||
|
document.body.appendChild(tempInput);
|
||||||
|
tempInput.value = currentUrl;
|
||||||
|
tempInput.select();
|
||||||
|
document.execCommand('copy');
|
||||||
|
document.body.removeChild(tempInput);
|
||||||
|
//mettre une ref a la place
|
||||||
|
alert('🧙♂️ \"Un lien pour les gouverner tous, un lien pour les trouver, un lien pour les amener tous, et dans les ténèbres les lier...\" \n\n -\t(presque) Gandalf');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
œ
|
@ -1,36 +1,38 @@
|
|||||||
|
<div class="card">
|
||||||
|
<img class="card-image" src="{{ srcImg }}" >
|
||||||
|
|
||||||
<div class="card">
|
<div class="card-content">
|
||||||
<img class="card-image" src="{{ srcImg }}" >
|
<h2 class="quote">“{{quoteContent}}”</h2>
|
||||||
|
<ul class="infoQuote">
|
||||||
|
<li>- {{sourceName}}</li>
|
||||||
|
<li>- {{nameCarac}}</li>
|
||||||
|
<li>- {{dateSortie}}</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
<div class="card-content">
|
<div class="likes">
|
||||||
<h2 class="quote">“{{quoteContent}}”</h2>
|
<p>{{nbLike}} ❤️</p>
|
||||||
<ul class="infoQuote">
|
</div>
|
||||||
<li>- {{sourceName}}</li>
|
</div>
|
||||||
<li>- {{nameCarac}}</li>
|
|
||||||
<li>- {{dateSortie}}</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<div class="likes">
|
<div class="like-icon">❤️</div>
|
||||||
<p>{{nbLike}} ❤️</p>
|
<div class="share-icon" onclick="copyCurrentUrl()">🔗</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="like-icon">❤️</div>
|
<div class="commentaire">
|
||||||
<div class="share-icon">🔗</div>
|
<div>
|
||||||
</div>
|
<form action="{{racine}}/addComment" method="post">
|
||||||
<div class="commentaire">
|
<input type="text" class="comAdd" id="content" name="content" required>
|
||||||
<div>
|
<input type="hidden" class="hide" id="idQuote" name="idQuote" value="{{idQuote}}">
|
||||||
<form action="{{racine}}/addComment" method="post">
|
<input type="submit" class="btn" value=">" />
|
||||||
<input type="text" class="comAdd" id="content" name="content" required>
|
</form>
|
||||||
<input type="hidden" class="hide" id="idQuote" name="idQuote" value="{{idQuote}}">
|
</div>
|
||||||
<input type="submit" class="btn" value=">" />
|
{% if com|length > 0 %}
|
||||||
</form>
|
<ul>
|
||||||
</div>
|
{% for c in com %}
|
||||||
{% if com|length > 0 %} <ul>
|
<li>{{c.comment}} - {{ c.date }}</li>
|
||||||
{% for c in com %}
|
{% endfor %}
|
||||||
<li>{{c.comment}} - {{ c.date }}</li>
|
</ul>
|
||||||
{% endfor %} </ul>
|
{% endif %}
|
||||||
{% endif %}
|
</div>
|
||||||
</div>
|
</body>
|
||||||
</body>
|
|
||||||
</html>
|
</html>
|
Loading…
Reference in new issue