Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic fixes #1

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vs/
7 changes: 0 additions & 7 deletions .vs/VSWorkspaceState.json

This file was deleted.

Binary file removed .vs/remondikohvik.github.io/v17/.wsuo
Binary file not shown.
23 changes: 0 additions & 23 deletions .vs/remondikohvik.github.io/v17/DocumentLayout.json

This file was deleted.

Binary file removed .vs/slnx.sqlite
Binary file not shown.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# remondikohvik.github.io

slaidide �leminek t��tab. Lisada v�rvide �leminekut scrollimisel. vajutamise v�rvid muutuvad.
slaidide üleminek töötab. Lisada värvide üleminekut scrollimisel. vajutamise värvid muutuvad.

K�ik slaidid on lisatud.
Kõik slaidid on lisatud.

leht 0 on valmis.

Expand Down
72 changes: 72 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<!DOCTYPE html>
<html lang="et">
<head>
<title>Remondikohvik</title>
<link rel="stylesheet" type="text/css" href="style/style.css">
</head>
<body>
<div id="carousel">
<div class="bullets">
<a class="bullet" href="#section0"></a>
<a class="bullet" href="#section1"></a>
<a class="bullet" href="#section2"></a>
<a class="bullet" href="#section3"></a>
<a class="bullet" href="#section4"></a>
</div>

<!--BG-->
<div>
<img src="img/bg/leht.png" class="pages" alt="">
<img src="img/bg/R_Leht.png" id="r01" class="pages" alt="">
</div>

<!--LEHT 0-->
<div class="page_0">
<!--LOGO + INFO-->
<div id="section0" class="section">
<div id="info">
<div>
<img id="rk_logo" src="img/logo/logo.png" alt="">
</div>
<div><h1 id="rk_txt">REMONDIKOHVIK</h1></div>
<div id="cal_maps" style="width: 120vh; position: relative; height: 35vh; justify-content: space-evenly;">
<a href="https://css-tricks.com/?s=" style="text-decoration: none;" target="_blank">
<div class="cmInfo" style="z-index: 999;">
<img class="cal_maps_icons" src="img/icons/calender.png" alt=""/>
<h2>26.OKTOOBER 2024</h2>
</div>
</a>

<div class="cmInfo">
<img class="cal_maps_icons" src="img/icons/asukoht.png" alt=""/>
<h2>TALTECH CAFFEINE</h2>
</div>
</div>
</div>
</div>
</div>

<!--LEHT 1, MIS ON RK-->
<div class="page_0">
<div id="section1" class="section"></div>
</div>

<!--LEHT 2, UUDISED-->
<div class="page_0">
<div id="section2" class="section"></div>
</div>

<!--LEHT 3, MIDA SAAB PARANDADA-->
<div class="page_0">
<div id="section3" class="section"></div>
</div>

<!--LEHT 4, KORRALDAJAD JA PARTNERID-->
<div class="page_0">
<div id="section4" class="section"></div>
</div>
</div>

<script src="js/script.js"></script>
</body>
</html>
63 changes: 31 additions & 32 deletions js/script.js
Original file line number Diff line number Diff line change
@@ -1,32 +1,31 @@
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();

// Remove the class from all anchors
document.querySelectorAll('a[href^="#"]').forEach(a => a.classList.remove('highlight'));

// Add the class to the clicked anchor
this.classList.add('highlight');

document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});


//new size new div under 600 px for calender and maps

window.addEventListener('resize', function () {
if (window.innerWidth <= 600) {
const originalDiv = document.getElementsByClassName('cal_maps');
const newDiv = document.getElementById('newDiv_calender_maps');
if (originalDiv && newDiv) {
newDiv.innerHTML = originalDiv.innerHTML;
originalDiv.innerHTML = '';
}
}
});

// Trigger the resize event on page load
window.dispatchEvent(new Event('resize'));
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();

// Remove the class from all anchors
document.querySelectorAll('a[href^="#"]').forEach(a => a.classList.remove('highlight'));

// Add the class to the clicked anchor
this.classList.add('highlight');

document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});

// New size new div under 600 px for calendar and maps

window.addEventListener('resize', function () {
if (window.innerWidth <= 600) {
const originalDiv = document.getElementsByClassName('cal_maps');
const newDiv = document.getElementById('newDiv_calender_maps');
if (originalDiv && newDiv) {
newDiv.innerHTML = originalDiv.innerHTML;
originalDiv.innerHTML = '';
}
}
});

// Trigger the resize event on page load
window.dispatchEvent(new Event('resize'));
83 changes: 0 additions & 83 deletions main.html

This file was deleted.

Loading