Compare commits

...

3 commits

Author SHA1 Message Date
Kazhnuz
cb638b5823 feat: favicon 2023-05-03 13:25:49 +02:00
Kazhnuz
8d1cb11b08 fix: remove jquery 2023-05-03 13:18:11 +02:00
Kazhnuz
2d0c1fda68 feat: remove use of google fonts 2023-05-03 12:55:43 +02:00
8 changed files with 35 additions and 27 deletions

File diff suppressed because one or more lines are too long

View file

@ -12,19 +12,13 @@
<?php wp_head(); ?>
<?php include(TEMPLATEPATH . '/components/opengraph.php'); ?>
<link rel="shortcut icon" href="img/favicon.png">
<!-- Polices d'écriture -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,400i,600,800&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Amatic+SC&display=swap" rel="stylesheet">
<link rel="shortcut icon" href="<?php echo get_template_directory_uri();?>/img/favicon.png">
<!-- framework utilisés -->
<link href="<?php echo get_template_directory_uri() . "/dep/fork-awesome/css/fork-awesome.min.css"; ?>" rel="stylesheet"/>
<!-- CSS -->
<link href="<?php bloginfo('stylesheet_url'); ?>" rel="stylesheet"/>
<script src="<?php echo get_template_directory_uri();?>/dep/jquery/jquery.js"></script>
</head>
<!-- Début du vrai HTML -->

Binary file not shown.

Before

Width:  |  Height:  |  Size: 251 B

BIN
img/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

View file

@ -1,8 +1,6 @@
var length = 35;
$(function(){
$(".pretty-link").each(function(i){
var str = $(this).text().replace("https://", "");
$(this).text(str);
});
});
document.querySelectorAll('.pretty-link').forEach(function (i) {
var str = i.textContent.replace('https://', '');
i.textContent = str;
});

View file

@ -1,11 +1,18 @@
var length = 35;
const LENGHT = 35;
$(function(){
$(".trim-that a, .limit").each(function(i){
len=$(this).text().length;
if(len>length)
{
$(this).text($(this).text().substr(0,(length-3))+'...');
}
});
function limitString(str) {
len = str.length;
if (len > LENGHT) {
return str.substr(0, (LENGHT - 3)) + '...';
} else {
return str;
}
}
document.querySelectorAll('.trim-that a').forEach(function (i) {
i.textContent = limitString(i.textContent);
});
document.querySelectorAll('.limit').forEach(function (i) {
i.textContent = limitString(i.textContent);
});

View file

@ -11,8 +11,8 @@
</div>
</article>
<div class="card head-primary">
<h2 class="card-header">Liste de mes réseaux sociaux</h2>
<div class="card head-secondary" id="social-network-card">
<h2 class="card-header"><i class="fa fa-comments" aria-hidden="true"></i> Me retrouver</h2>
<table>
<thead>
<tr>

View file

@ -8,7 +8,18 @@ $fontweight_base: 400;
$fontweight_bold: 600;
$fontweight_hyper: 800;
$basefont: Open Sans, sans-serif;
$basefont: Inter,
-apple-system,
BlinkMacSystemFont,
'Segoe UI',
Cantarell,
Roboto,
Oxygen,
Ubuntu,
'Fira Sans',
'Droid Sans',
'Helvetica Neue',
sans-serif;
$titlefont: Teko, sans-serif;
@font-face {