Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
2
20230403
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Patryk Czarnik
20230403
Commits
328bfa5a
Commit
328bfa5a
authored
Apr 24, 2023
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
styl i spis treści
parent
f7140e4d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
9 deletions
+65
-9
styl.css
PC26-Spring/src/main/resources/static/styl.css
+36
-0
index.html
PC26-Spring/src/main/resources/templates/index.html
+29
-9
No files found.
PC26-Spring/src/main/resources/static/styl.css
0 → 100644
View file @
328bfa5a
body
{
background-color
:
#FFFFCC
;
font-family
:
'Arial'
,
sans-serif
;
}
h1
{
color
:
green
;
text-align
:
center
;
}
form
{
margin
:
30px
auto
;
padding
:
20px
;
width
:
800px
;
border
:
4px
solid
blue
;
background-color
:
#AAEEFF
;
}
.wynik
{
background-color
:
#FFFFFF
;
border
:
3px
solid
green
;
margin
:
20px
auto
;
width
:
800px
;
padding
:
10px
;
color
:
green
;
}
.error
{
background-color
:
#FFFFFF
;
border
:
6px
double
red
;
margin
:
20px
auto
;
padding
:
10px
;
width
:
800px
;
color
:
red
;
font-weight
:
bold
;
}
PC26-Spring/src/main/resources/templates/index.html
View file @
328bfa5a
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html
xmlns:th=
"http://www.thymeleaf.org"
>
<head>
<head>
<meta
charset=
"UTF-8"
>
<meta
charset=
"UTF-8"
>
<title>
Spis treści
</title>
<title>
Spis treści
</title>
<link
rel=
"stylesheet"
type=
"text/css"
th:href=
"@{/styl.css}"
>
</head>
</head>
<body>
<body>
<h1>
Spis treści
</h1>
<h1>
Spis treści
</h1>
<h2>
Przykłady pisane bezpośrednio w Controllerze
</h2>
<h2>
Przykłady pisane bezpośrednio w Controllerze
</h2>
<ul>
<ul>
<li><a
href=
"/hello"
>
Hello
</a></li>
<li><a
th:href=
"@{/hello}"
>
Hello
</a></li>
<li><a
th:href=
"@{/ping}"
>
Ping
</a></li>
<li><a
href=
"/time1
"
>
Czas obiektowo
</a>
(json)
</li>
<li><a
th:href=
"@{/time1}
"
>
Czas obiektowo
</a>
(json)
</li>
<li><a
href=
"/time2
"
>
Czas tekstowo
</a></li>
<li><a
th:href=
"@{/time2}
"
>
Czas tekstowo
</a></li>
<li><a
href=
"/time3
"
>
Czas tekstowo
</a>
(text/plain)
</li>
<li><a
th:href=
"@{/time3}
"
>
Czas tekstowo
</a>
(text/plain)
</li>
<li><a
href=
"/time4
"
>
Czas HTML w Javie
</a></li>
<li><a
th:href=
"@{/time4}
"
>
Czas HTML w Javie
</a></li>
</ul>
</ul>
<h2>
Przykłady z szablonami
</h2>
<h2>
Przykłady z szablonami
</h2>
<ul>
<ul>
<li><a
href=
"/time5"
>
Czas szablon prosty
</a></li>
<li><a
th:href=
"@{/time5}"
>
Czas szablon prosty
</a></li>
<li><a
href=
"/time6"
>
Czas szablon rozbudowany
</a></li>
<li><a
th:href=
"@{/time6}"
>
Czas szablon rozbudowany
</a></li>
</ul>
<h2>
Przykład Parametry
</h2>
<ul>
<li><a
th:href=
"@{/parametry/witaj}"
>
witaj
</a></li>
<li><a
th:href=
"@{/parametry/witaj(imie='Ala')}"
>
witaj?imie=Ala
</a></li>
<li><a
th:href=
"@{/parametry/powtorz}"
>
powtorz
</a></li>
<li><a
th:href=
"@{/parametry/powtorz(tekst='Ola ma psa')}"
>
powtorz
</a>
n = 1
</li>
<li><a
th:href=
"@{/parametry/powtorz(tekst='Ala ma kota',n=10)}"
>
powtorz
</a>
n = 10
</li>
</ul>
</ul>
<h2>
Przykłady formularzy
</h2>
<ul>
<li><a
th:href=
"@{/kalkulator}"
>
Kalkulator
</a>
(formlularz)
</li>
<li><a
th:href=
"@{/kalkulator/historia}"
>
Historia Kalkulatora HTML
</a></li>
<li><a
th:href=
"@{/historia.json}"
>
Historia Kalkulatora JSON
</a></li>
<li><a
th:href=
"@{/historia.txt}"
>
Historia tekstowo
</a></li>
<li><a
th:href=
"@{liczenie(liczba1=211,liczba2=303,operacja='*')}"
>
Liczenie bezpośrednie
</a>
w parametrami URL
</li>
</ul>
</body>
</body>
</html>
</html>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment