Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelUd committed Nov 20, 2023
1 parent 76cc8df commit be54581
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,6 @@ <h2 class="success__title">Изображение успешно загруже
<script type="module" src="js/main.js"></script>
<script type="module" src="js/thumbnails.js"></script>
<script type="module" src="js/data.js"></script>
<script type="module" src="js/full-size-images.js"></script>
<script type="module" src="js/fullsize-images-render.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion js/full-size-images.js → js/fullsize-images-render.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const constructBigPicture = (picture, photos) =>{
};


export const showBigPicture = (photos) => {
export const renderBigPicture = (photos) => {
const pictures = document.querySelectorAll('.picture');
for (const picture of pictures){
picture.onclick = () =>{
Expand Down
4 changes: 2 additions & 2 deletions js/main.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {getPhotoDescriptions} from './data.js';
import {thumbnailsRender} from './thumbnails.js';
import {showBigPicture} from './full-size-images.js';
import {renderBigPicture} from './fullsize-images-render.js';

const PHOTOS_COUNT = 25;

const photos = getPhotoDescriptions(PHOTOS_COUNT);
thumbnailsRender(photos);
showBigPicture(photos);
renderBigPicture(photos);

0 comments on commit be54581

Please sign in to comment.