Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyX071 authored Oct 6, 2024
1 parent 11c52bd commit e9d1f02
Show file tree
Hide file tree
Showing 74 changed files with 7,685 additions and 0 deletions.
3,623 changes: 3,623 additions & 0 deletions assets/css/animate.css

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions assets/css/bootstrap.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/css/bootstrap.min.css.map

Large diffs are not rendered by default.

1,360 changes: 1,360 additions & 0 deletions assets/css/style.css

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions assets/css/style.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added assets/fonts/PT_Sans-Web-Bold.ttf
Binary file not shown.
Binary file added assets/fonts/PT_Sans-Web-Regular.ttf
Binary file not shown.
Binary file added assets/images/about.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 assets/images/blog/post_1.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 assets/images/blog/post_2.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 assets/images/blog/post_3.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 assets/images/blog/post_4.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 assets/images/blog/post_5.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 assets/images/blog/post_6.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 assets/images/books/book1.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 assets/images/books/book2.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 assets/images/books/book3.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 assets/images/books/book4.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 assets/images/doctt.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 assets/images/fav.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 assets/images/gallery/gallery_01.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 assets/images/gallery/gallery_02.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 assets/images/gallery/gallery_03.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 assets/images/gallery/gallery_04.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 assets/images/gallery/gallery_05.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 assets/images/gallery/gallery_06.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 assets/images/gallery/gallery_08.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 assets/images/gallery/gallery_09.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 assets/images/gallery/gallery_10.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 assets/images/gallery/gallery_11.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 assets/images/gallery/gallery_12.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 assets/images/logo.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 assets/images/positions/cdda.png
Binary file added assets/images/positions/ivazo.png
Binary file added assets/images/positions/qolab.png
Binary file added assets/images/publications/health.jpg
Binary file added assets/images/publications/miscellaneous.jpg
Binary file added assets/images/publications/old.jpg
Binary file added assets/images/publications/relationships.jpg
Binary file added assets/images/publications/stress.jpg
Binary file added assets/images/questionnaires/q1.jpg
Binary file added assets/images/questionnaires/q2.jpg
Binary file added assets/images/questionnaires/service-1.jpg
Binary file added assets/images/questionnaires/service-2.jpg
Binary file added assets/images/questionnaires/service-3.jpg
Binary file added assets/images/session/therapy-1.jpg
Binary file added assets/images/session/therapy-2.jpg
Binary file added assets/images/session/therapy-3.jpg
Binary file added assets/images/session/therapy-4.jpg
Binary file added assets/images/session/therapy-5.jpg
Binary file added assets/images/shapes.png
Binary file added assets/images/slider/slider-1.jpg
Binary file added assets/images/slider/slider-2.jpg
Binary file added assets/images/slider/slider-3.jpg
Binary file added assets/images/theory/book1.png
Binary file added assets/images/theory/book2.png
Binary file added assets/images/theory/book3.png
Binary file added assets/images/theory/book4.png
Binary file added assets/images/theory/cartoon.png
Binary file added assets/images/theory/octagon.png
Binary file added assets/images/theory/octagon_eg1.png
Binary file added assets/images/theory/octagon_eg2.png
Binary file added assets/images/theory/octagon_eg3.png
Binary file added assets/images/theory/octagon_eg4.png
7 changes: 7 additions & 0 deletions assets/js/bootstrap.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/js/bootstrap.min.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions assets/js/jquery-3.2.1.min.js

Large diffs are not rendered by default.

99 changes: 99 additions & 0 deletions assets/js/language-toggle.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
document.addEventListener('DOMContentLoaded', function() {
// Function to toggle language and store preference
function toggleLanguage() {
var btn = document.getElementById('language-btn');
var isEnglish = btn.classList.contains('active');

// Determine the current language and switch accordingly
if (isEnglish) {
// Temporarily disable switching to Greek
// Switch to Greek
//localStorage.setItem('language', 'GR');
//switchLanguageToGreek();
alert('Greek coming soon!');
} else {
// Switch to English
localStorage.setItem('language', 'EN');
switchLanguageToEnglish();
}
}

// Function to switch language to English
function switchLanguageToEnglish() {
var currentPath = window.location.pathname;
var newPath;
if (currentPath.endsWith('/') || currentPath.endsWith('/index_gr.html')) {
newPath = currentPath.replace('/index_gr.html', '/index.html');
if (newPath.endsWith('/')) {
newPath += 'index.html';
}
} else if (currentPath.includes('_gr.html')) {
newPath = currentPath.replace('_gr.html', '.html');
} else {
newPath = currentPath;
}
window.location.href = newPath;
}

// Function to switch language to Greek
//var currentPath = window.location.pathname;
//var newPath;

//if (currentPath.endsWith('/') || currentPath.endsWith('/index.html')) {
// newPath = currentPath.replace('/index.html', '/index_gr.html');
// if (newPath.endsWith('/')) {
// newPath += 'index_gr.html';
// }
//} else if (currentPath.includes('.html') && !currentPath.includes('_gr.html')) {
// newPath = currentPath.replace('.html', '_gr.html');
//} else {
// newPath = currentPath + '_gr.html';
//}

//window.location.href = newPath;

function switchLanguageToGreek() {
alert('Greek coming soon!');
}

// Function to initialize language toggle based on saved preference
function initializeLanguageToggle() {
var savedLanguage = localStorage.getItem('language');
var btn = document.getElementById('language-btn');
var langEn = document.getElementById('lang-en');
var langGr = document.getElementById('lang-gr');

// Set initial language based on saved preference or default to English
var isEnglish = savedLanguage === 'EN' || !savedLanguage; // Default to English if no preference is saved

// Update UI based on initial language
btn.classList.toggle('active', isEnglish);
langEn.classList.toggle('active-lang', isEnglish);
langGr.classList.toggle('active-lang', !isEnglish);

// Update content of text elements based on the saved language
var elements = document.querySelectorAll('[data-gr]');
elements.forEach(function(el) {
var enText = el.getAttribute('data-en') || el.textContent.trim();
var grText = el.getAttribute('data-gr').trim();
el.textContent = isEnglish ? enText : grText; // Update text content based on the saved language
});

// Check if the current path matches the saved language
var currentPath = window.location.pathname;
if (isEnglish && (currentPath.endsWith('/index_gr.html') || currentPath.includes('_gr.html'))) {
switchLanguageToEnglish();
} else if (!isEnglish && (currentPath.endsWith('/index.html') || currentPath.includes('.html') && !currentPath.includes('_gr.html'))) {
switchLanguageToGreek();
}
}

// Event listener for the language toggle button
var languageBtn = document.getElementById('language-btn');
if (languageBtn) {
languageBtn.addEventListener('click', toggleLanguage);
}

// Initialize language toggle on page load
initializeLanguageToggle();
});
Loading

0 comments on commit e9d1f02

Please sign in to comment.