Implementacja skryptu do obsługi REST API - update

This commit is contained in:
Damian Michalski 2020-01-18 23:51:48 +01:00
parent 3bb1412966
commit 33f95c77bb
4 changed files with 9 additions and 18717 deletions

View File

@ -63,7 +63,7 @@
<p class="pt-10 pb-10 text-white"> <p class="pt-10 pb-10 text-white">
W naszej wyszukiwarce go znajdziesz! W naszej wyszukiwarce go znajdziesz!
</p> </p>
<a href="ankieta.html" class="primary-btn">Rozpocznij</a> <a href="search.html" class="primary-btn">Rozpocznij</a>
</div> </div>
</div> </div>
</div> </div>

View File

@ -70,8 +70,7 @@
if (req.readyState === 4 && req.status === 200) { if (req.readyState === 4 && req.status === 200) {
// Print received data from server // Print received data from server
// result.innerHTML = this.responseText; result.innerHTML = this.responseText;
// result.innerHTML = fuel_type.options[0].text;
} }
}; };

File diff suppressed because it is too large Load Diff

View File

@ -31,15 +31,14 @@
</head> </head>
<body> <body>
<header id="header"> <header id="header">
<div class="container main-menu"> <div class="main-menu">
<div class="row align-items-center justify-content-between d-flex "> <div class="row align-items-center d-flex">
<a href="index.html"><img src="img/car4you.png" alt="" title="" width="100px" /></a> <a href="index.html"><img src="img/car4you.png" alt="" title="" width="100px" /></a>
<nav id="nav-menu-container"> <nav id="nav-menu-container">
<ul class="nav-menu"> <ul class="nav-menu">
<li class="menu-active"><a href="index.html">Strona główna</a></li> <li class="menu-active"><a href="index.html">Strona główna</a></li>
<li><a href="opis.html">O nas</a></li> <li><a href="opis.html">O nas</a></li>
<li><a href="ankieta.html">Rekomendacja</a></li> <li><a href="ankieta.html">Rekomendacja</a></li>
<li><a href="lista.html">Galeria</a></li>
</ul> </ul>
</nav><!-- #nav-menu-container --> </nav><!-- #nav-menu-container -->
</div> </div>
@ -50,8 +49,7 @@
<section class="banner-area relative" id="home"> <section class="banner-area relative" id="home">
<div class="text-center"> <div class="text-center">
<div class="overlay overlay-bg"></div> <div class="overlay overlay-bg"></div>
<div class="container"></div> <div class="row fullscreen d-flex justify-content-between">
<div class="row fullscreen d-flex align-items-center justify-content-between">
<div class="banner-content col-lg-12 col-md-12"> <div class="banner-content col-lg-12 col-md-12">
<div class="col-lg-10 col-md-10 header-right "> <div class="col-lg-10 col-md-10 header-right ">
<h4 class="pb-10">Uzupełnij pola</h4> <h4 class="pb-10">Uzupełnij pola</h4>
@ -76,8 +74,8 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="default-select"> <div class="default-select">
<select id="doors">
Liczba drzwi: Liczba drzwi:
<select id="doors">
<option value="-1">Dowolna</option> <option value="-1">Dowolna</option>
<option value="1">3</option> <option value="1">3</option>
<option value="2">5</option> <option value="2">5</option>
@ -154,7 +152,9 @@
<div class="form-group"> <div class="form-group">
<input value="Szukaj" class="primary-btn" onclick="sendJSON()" /> <input value="Szukaj" class="primary-btn" onclick="sendJSON()" />
<div class="result">Test</div> <div class="result">
<!-- result list-->
</div>
</div> </div>
<div id="wypisywanie"></div> <div id="wypisywanie"></div>
</form> </form>