Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
654 changes: 326 additions & 328 deletions package-lock.json

Large diffs are not rendered by default.

17 changes: 6 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
{
"source": "src/index.html",
"browserslist": "> 5%",
"targets": {
"default": {
"publicUrl": "/Proiect-JS"
}
},
"scripts": {
"start": "parcel",
"build": "parcel build",
"push-gh-pages": "push-dir --dir=dist --branch=gh-pages --cleanup --verbose"
"start": "parcel src/index.html",
"build": "parcel build"
},
"devDependencies": {
"@parcel/transformer-sass": "^2.7.0",
"parcel": "^2.7.0",
"push-dir": "^0.4.1"
"parcel": "^2.7.0"
},
"dependencies": {
"bootstrap": "^5.2.0"
"@popperjs/core": "^2.11.6",
"bootstrap": "^5.2.1",
"bootstrap-icons": "^1.9.1"
}
}
Binary file added src/4v4tours.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/bearwatching.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/biketour.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/cheilebicazuluibycar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/forest.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/forest22.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/forest2copy.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/harghita.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/harghitamadaras.jfif
Binary file not shown.
Binary file added src/harghitamadaras.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/hasmasumare.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/hikingredlake.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/horseride.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
436 changes: 413 additions & 23 deletions src/index.html

Large diffs are not rendered by default.

Empty file removed src/index.js
Empty file.
3 changes: 0 additions & 3 deletions src/index.scss

This file was deleted.

Binary file added src/lac.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/mission.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/piatrasinguratica.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/salt.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
102 changes: 102 additions & 0 deletions src/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@

import 'bootstrap';
const hamburger = document.querySelector(".hamburger");
const navMenu = document.querySelector(".nav-menu");

hamburger.addEventListener("click", () => {
hamburger.classList.toggle("active");
navMenu.classList.toggle("active");
})

document.querySelectorAll(".nav-link").forEach(n => n.
addEventListener("click", () => {
hamburger.classList.remove("active");
navMenu.classList.remove("active");
}))


// scroll arrow up
const toTop = document.querySelector(".to-top");

window.addEventListener("scroll", () => {
if (window.scrollY > 500) {
toTop.classList.add("active");
}
else {
toTop.classList.remove("active");
}
})


//FORm submit

const formElem = document.querySelector('form');

formElem.addEventListener('submit', (e) => {
// on form submission, prevent default
e.preventDefault();

const formData = new FormData(formElem);

console.log(formData.get('name'));
console.log(formData.get('email'));
console.log(formData.get('gender'));
console.log(formData.get('comments'));

var markedCheckbox = document.querySelectorAll('input[type="checkbox"]:checked');
for (var checkbox of markedCheckbox) {
console.log(checkbox.value);
}
})

function logSubmit(event) {
log.textContent = `Form Submitted!`;
event.preventDefault();
}

const form = document.getElementById('form');
const log = document.getElementById('log');
form.addEventListener('submit', logSubmit);

//


// PHOTO GALLERY
// const lightbox = document.createElement('div')
// lightbox.id = 'lightbox'
// document.body.appendChild(lightbox)

// const images = document.querySelectorAll('img')
// images.forEach(image => {
// image.addEventListener('click', e => {
// lightbox.classList.add('active')
// const img = document.createElement('img')
// img.src = image.src
// while (lightbox.firstChild) {
// lightbox.removeChild(lightbox.firstChild)
// }
// lightbox.appendChild(img)
// })
// })

// lightbox.addEventListener('click', e => {
// if (e.target !== e.currentTarget) return
// lightbox.classList.remove('active')
// })


//intersectobserver
// Create the observer
// document.querySelector('aboutUs').scroll(function () {
// document.querySelector('us').each(function () {
// var imagePos = document.querySelector(this).offset().top;
// var imageHeight = document.querySelector(this).height();
// var topOfWindow = document.querySelector(window).scrollTop;

// if (imagePos < topOfWindow + imageHeight && imagePos + imageHeight > topOfWindow) {
// document.querySelector(this).classList.add("square");
// } else {
// document.querySelector(this).classList.remove("square");
// }
// });
// });
Binary file added src/sfana.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/smallcohard.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/standard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading