Skip to content

Commit 4ba4b95

Browse files
authored
Peti commit
1 parent 86ea297 commit 4ba4b95

File tree

7 files changed

+21
-12
lines changed

7 files changed

+21
-12
lines changed

fonti/roboto-bold-webfont.woff2

11.8 KB
Binary file not shown.

fonti/roboto-regular-webfont.woff2

11.8 KB
Binary file not shown.

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta charset="UTF-8">
77
<meta id="viewport" content="width=device-width, initial-scale=1.0">
88
<link rel="stylesheet" href="style.css">
9-
<link rel="icon" type="image/x-icon" href="slike/ikona.ico">
9+
<link rel="icon" type="image/x-icon" href="slike/ikona.png">
1010
</head>
1111

1212
<body>

skripta.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ kzV1 = nk1
2828
kzV2 = nk2
2929
kzV3 = nk3
3030
*/
31-
31+
import Swal from 'sweet/dist/sweetalert2.all.js'
3232
//osnovno
3333
const ime = document.getElementById("ime");
3434
const priimek = document.getElementById("priimek");
@@ -184,7 +184,12 @@ function preveriVnose(elementi, event) {
184184
for (let i = 0; i < elementi.length; i++) {
185185
if (!elementi[i].value.trim()) {
186186
event.preventDefault();
187-
alert('Vse oznacena polja so obvezna!');
187+
Swal.fire({
188+
title: 'Napaka!',
189+
text: 'Vsa označena polja so obvezna!',
190+
icon: 'error',
191+
confirmButtonText: 'Nadaljuj'
192+
})
188193
return;
189194
}
190195

slike/akos_logo_sl.svg

Lines changed: 1 addition & 0 deletions
Loading

slike/ikona.png

5.42 KB
Loading

style.css

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55

66
@font-face {
77
font-family: font_obic;
8-
src: url(fonti/MPLUSCodeLatin.ttf);
8+
src: url(fonti/roboto-regular-webfont.woff2);
9+
}
10+
@font-face {
11+
font-family: font_fat;
12+
src: url(fonti/roboto-bold-webfont.woff2);
913
}
1014

1115
html,
@@ -51,10 +55,10 @@ input[type=text],input[type=email],input[type=date],textarea {
5155
#slika {
5256
width: 20%;
5357
height: 10%;
54-
background-image: url("slike/akos_logo.jpg");
58+
background-image: url("slike/akos_logo_sl.svg");
5559
background-size: contain;
5660
background-repeat: no-repeat;
57-
background-position: center;
61+
background-position: center;
5862
margin: 1% auto;
5963
}
6064

@@ -93,12 +97,12 @@ input[type=text],input[type=email],input[type=date],textarea {
9397
padding-bottom: 5%;
9498
text-align: center;
9599
color: white;
96-
font-family: system-ui;
100+
font-family: font_fat;
97101
}
98102

99103
#gnaslov>h1 {
100104
font-size: 20px;
101-
font-weight: bold;
105+
font-family: font_fat;
102106
}
103107

104108
#ime_priimek > div, #davcna, #tel_mail > div, #naslov, #mestoSt > div {
@@ -118,12 +122,12 @@ input[type=text],input[type=email],input[type=date],textarea {
118122
padding-bottom: 5%;
119123
text-align: center;
120124
color: white;
121-
font-family: system-ui;
125+
font-family: font_fat;
122126
}
123127

124128
#prosnja>h1 {
125129
font-size: 20px;
126-
font-weight: bold;
130+
font-family: font_fat;
127131
}
128132

129133
#izdaja {
@@ -229,8 +233,7 @@ input[type=text],input[type=email],input[type=date],textarea {
229233
border: 5px solid #71a1fa;
230234
border-radius: 10px;
231235
background-color: white;
232-
font-weight: bold;
233-
font-family: system-ui;
236+
font-family: font_fat;
234237
transition: 0.2s;
235238
}
236239

0 commit comments

Comments
 (0)