Skip to content

Commit

Permalink
prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
AlinaMoon123 committed Nov 19, 2024
1 parent a8966b1 commit 52bdac1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 7 additions & 1 deletion lake-catalog/pom.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.3.5</version>
<relativePath/>
</parent>

<groupId>com.example</groupId>
<artifactId>lake-catalog</artifactId>
<version>0.0.1-SNAPSHOT</version>
Expand Down Expand Up @@ -72,4 +77,5 @@
</plugin>
</plugins>
</build>
</project>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ const submitButton = document.getElementById('submit-review-btn');
const reviewInput = document.getElementById('review-input');
const starRating = document.getElementById('star-rating');
const pathParts = window.location.pathname.split('/');
const lakeId = pathParts[pathParts.length - 1]; // Последняя часть URL (например, "123")
const lakeId = pathParts[pathParts.length - 1];

// Это глобальная переменная для хранения выбранного значения звезд
let selectedValue = 0;

document.addEventListener('DOMContentLoaded', () => {
Expand Down Expand Up @@ -141,7 +140,7 @@ submitButton.addEventListener('click', () => {
})
.then(review => {
console.log(review);
// После успешного добавления отзыва, отобразим его

const reviewElement = document.createElement('div');
reviewElement.classList.add('review');
reviewElement.innerHTML = `
Expand Down

0 comments on commit 52bdac1

Please sign in to comment.