amélioration mineure du papier peint

This commit is contained in:
thaaoblues 2023-05-01 19:01:24 +02:00
父節點 e4df3a7004
當前提交 2c6f5c399e
共有 11 個文件被更改,包括 90275 次插入103019 次删除

查看文件

@ -36,19 +36,22 @@ body {
display: flex;
flex-direction: column;
justify-content: space-between;
min-height: 100vh;
background-attachment: fixed;
background-color: #ffffff;
background-image: url("https://etud.insa-toulouse.fr/~mougnibas/accueil_2023/assets/img/background.svg");
background-attachment: fixed,fixed;
background-color: #499135;
background-repeat: no-repeat, no-repeat;
background-size: auto,cover;
}
/* papier peint pour petits écrans (smartphones) */
@media all and (max-width: 800px) {
body {
background-image: url("https://etud.insa-toulouse.fr/~mougnibas/accueil_2023/assets/img/asterix.svg");
background-repeat: space;
body{
background-position: center center, center center;
background-size: auto,cover;
background-attachment: fixed,fixed;
}
}

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  大小: 276 KiB

After

Width:  |  Height:  |  大小: 309 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  大小: 442 KiB

After

Width:  |  Height:  |  大小: 454 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  大小: 156 KiB

After

Width:  |  Height:  |  大小: 169 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  大小: 1 MiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  大小: 254 KiB

After

Width:  |  Height:  |  大小: 271 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  大小: 155 KiB

After

Width:  |  Height:  |  大小: 162 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  大小: 820 KiB

After

Width:  |  Height:  |  大小: 845 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  大小: 865 KiB

After

Width:  |  Height:  |  大小: 942 KiB

55763
assets/img/village.svg Normal file

文件差異過大導致無法顯示 Load diff

After

Width:  |  Height:  |  大小: 1.5 MiB

查看文件

@ -110,20 +110,24 @@ header("Cache-Control: no-cache, must-revalidate");
<script type="text/javascript">
var mobile_backgrounds = ['assets/img/asterix.svg', 'assets/img/adrenaline.svg', 'assets/img/obelix.svg', 'assets/img/assurancetourix.svg'];
var pc_backgrounds = ['assets/img/pc_background.svg'];
var personnage = "";
var background = "";
// détecte les petits écrans (frigo connectés, 3DS ...)
//
if (window.innerWidth <= 800){
background = mobile_backgrounds[Math.floor(Math.random() * mobile_backgrounds.length)]
personnage = mobile_backgrounds[Math.floor(Math.random() * mobile_backgrounds.length)]
background = "assets/img/hutte_panoramix.svg";
}else{
background = pc_backgrounds[Math.floor(Math.random() * pc_backgrounds.length)]
personnage = pc_backgrounds[Math.floor(Math.random() * pc_backgrounds.length)]
background = "assets/img/village.svg";
}
document.getElementsByTagName('body')[0].style.backgroundImage = 'url(' + background + ')';
document.getElementsByTagName('body')[0].style.backgroundImage = 'url(' + personnage + '),'+ 'url(\"'+background+'\")';
</script>