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-content">
|
||||
<h2 class="quote">“{{quoteContent}}”</h2>
|
||||
<ul class="infoQuote">
|
||||
<li>- {{sourceName}}</li>
|
||||
<li>- {{nameCarac}}</li>
|
||||
<li>- {{dateSortie}}</li>
|
||||
</ul>
|
||||
|
||||
<div class="card">
|
||||
<img class="card-image" src="{{ srcImg }}" >
|
||||
|
||||
<div class="card-content">
|
||||
<h2 class="quote">“{{quoteContent}}”</h2>
|
||||
<ul class="infoQuote">
|
||||
<li>- {{sourceName}}</li>
|
||||
<li>- {{nameCarac}}</li>
|
||||
<li>- {{dateSortie}}</li>
|
||||
</ul>
|
||||
<div class="likes">
|
||||
<p>{{nbLike}} ❤️</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="likes">
|
||||
<p>{{nbLike}} ❤️</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="like-icon">❤️</div>
|
||||
<div class="share-icon" onclick="copyCurrentUrl()">🔗</div>
|
||||
</div>
|
||||
|
||||
<div class="like-icon">❤️</div>
|
||||
<div class="share-icon">🔗</div>
|
||||
</div>
|
||||
<div class="commentaire">
|
||||
<div>
|
||||
<form action="{{racine}}/addComment" method="post">
|
||||
<input type="text" class="comAdd" id="content" name="content" required>
|
||||
<input type="hidden" class="hide" id="idQuote" name="idQuote" value="{{idQuote}}">
|
||||
<input type="submit" class="btn" value=">" />
|
||||
</form>
|
||||
</div>
|
||||
{% if com|length > 0 %} <ul>
|
||||
{% for c in com %}
|
||||
<li>{{c.comment}} - {{ c.date }}</li>
|
||||
{% endfor %} </ul>
|
||||
{% endif %}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<div class="commentaire">
|
||||
<div>
|
||||
<form action="{{racine}}/addComment" method="post">
|
||||
<input type="text" class="comAdd" id="content" name="content" required>
|
||||
<input type="hidden" class="hide" id="idQuote" name="idQuote" value="{{idQuote}}">
|
||||
<input type="submit" class="btn" value=">" />
|
||||
</form>
|
||||
</div>
|
||||
{% if com|length > 0 %}
|
||||
<ul>
|
||||
{% for c in com %}
|
||||
<li>{{c.comment}} - {{ c.date }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in new issue