From 40d5a9b2b852a99ee0534c9b787ce1f918eb2860 Mon Sep 17 00:00:00 2001 From: Al-Faris Mujahid AlZakwani <107947850+faris-zak@users.noreply.github.com> Date: Wed, 8 May 2024 06:47:57 +0400 Subject: [PATCH] Add files via upload --- JustPapers/behaviour.js | 91 +++++++++++-------- JustPapers/index.html | 114 ++++++++++++++++++++++-- JustPapers/style.css | 190 ++++++++++++++++++++++++++++++++++++---- aboStyle.css | 2 +- 4 files changed, 335 insertions(+), 62 deletions(-) diff --git a/JustPapers/behaviour.js b/JustPapers/behaviour.js index 2c1a08b..95230b7 100644 --- a/JustPapers/behaviour.js +++ b/JustPapers/behaviour.js @@ -1,43 +1,60 @@ function search_section(){ - let input = document.getElementById('searchbar').value - input = input.toLowerCase(); - let x = document.getElementsByClassName('sections'); - - for (i = 0; i < x.length; i++){ - if (!x[i].innerHTML.toLowerCase().includes(input)){ - x[i].style.display = "none"; - } - else{ - x[i].style.display = "list-item"; - } - }}; + let input = document.getElementById('searchbar').value + input = input.toLowerCase(); + let x = document.getElementsByClassName('sections'); - - function clearField(){ - document.getElementById('searchbar').value = ""; - } - - - const searchbar = document.getElementById('searchbar'); - const clearButton = document.getElementById('clearButton'); - - function updateButtonVisibility() { - if (searchbar.value === ""){ - clearButton.style.opacity = 0; - clearButton.style.marginBottom = "0px"; - searchbar.style.marginBottom = "0px"; + for (i = 0; i < x.length; i++){ + if (!x[i].innerHTML.toLowerCase().includes(input)){ + x[i].style.display = "none"; } else{ - clearButton.style.opacity = 1; - clearButton.style.marginBottom = "50px"; - searchbar.style.marginBottom = "10px"; + x[i].style.display = "list-item"; } +}}; + + +function clearField(){ + document.getElementById('searchbar').value = ""; +} + + +const searchbar = document.getElementById('searchbar'); +const clearButton = document.getElementById('clearButton'); + +function updateButtonVisibility() { + if (searchbar.value === ""){ + clearButton.style.opacity = 0; + clearButton.style.marginBottom = "0px"; + searchbar.style.marginBottom = "0px"; } - - updateButtonVisibility(); - - searchbar.addEventListener('input', updateButtonVisibility); - - clearButton.addEventListener('click', function(){ - location.reload(); - }); \ No newline at end of file + else{ + clearButton.style.opacity = 1; + clearButton.style.marginBottom = "50px"; + searchbar.style.marginBottom = "10px"; + } +} + +updateButtonVisibility(); + +searchbar.addEventListener('input', updateButtonVisibility); + + +const firstChapterButton = document.getElementById('firstChapterButton'); +const secondChapterButton = document.getElementById('secondChapterButton'); +const firstChapter = document.getElementById('firstChapterSection'); +const secondChapter = document.getElementById('secondChapterSection'); + + +function showFirstChapter(){ + firstChapter.style.display="block"; + secondChapter.style.display="none"; +} + +function showSecondChapter(){ + firstChapter.style.display="block"; + secondChapter.style.display="none"; +} + +firstChapterButton.addEventListener('click', showFirstChapter); +secondChapterButton.addEventListener('click', showSecondChapter); + diff --git a/JustPapers/index.html b/JustPapers/index.html index 95511ca..81cebe9 100644 --- a/JustPapers/index.html +++ b/JustPapers/index.html @@ -12,7 +12,7 @@ --> - JustPapers + JustPapers - مجرد ورق @@ -30,20 +30,124 @@

مجرد ورق - JustPapers


-

+

مرحبًا بكم في مشروع مجرد ورق! يهدف المشروع إلى توفير مصدر شامل للطلاب يساعدهم على تحسين مهاراتهم وتعزيز معرفتهم في مختلف المواد الدراسية.

-
+
+
+ + +
+
+ +
-

ملفات الصف الحادي عشر - الفصل الأول

+

الحادي عشر - الفصل الأول

يمكنك الحصول على كتب وأدلة معلم وملخصات هامة وبعض الإختبارات الخاصة بمنهج وزارة التربية والتعليم.

-
+ + + + + +
  • diff --git a/JustPapers/style.css b/JustPapers/style.css index 2f0609b..2fb1ef7 100644 --- a/JustPapers/style.css +++ b/JustPapers/style.css @@ -82,6 +82,31 @@ section div.aboutSection div.aboutSectionDetails p.aboutSectionBody{ margin-bottom: 0px; } +section div.chaptersSection div.chaptersSectionDetails button{ + cursor: pointer; + font-size: 18px; + color: #153448; + font-weight: 600; + text-decoration: none; + padding: 6px 12px; + border-radius: 5px; + margin-bottom: 15px; + border: 3px solid #153448; +} + +section div.chaptersSection div.chaptersSectionDetails button:hover{ + color: #948979; + background-color: #153448; + border: none; +} + +section div.chaptersSection div.chaptersSectionDetails button:active{ + color: #DFD0B8; + background-color: #3C5B6F; + border: none; +} + + section div.accessMethodSection{ width: 100%; height: auto; @@ -104,14 +129,14 @@ section div.accessMethodSection div.accessMethodSectionDetails p.accessMethodSec font-weight: 500; } -section div.sectionContainer{ +section div.searchBar{ display: flex; flex-direction: column; align-items: center; margin: 0px; } - -section div.sectionContainer input#searchbar{ + +section div.searchBar input#searchbar{ padding: 8px; border-radius: 5px; width: 50%; @@ -121,14 +146,14 @@ section div.sectionContainer input#searchbar{ background-color: #f5f5f5; } -section div.sectionContainer input#searchbar:focus{ +section div.searchBar input#searchbar:focus{ border: 3px solid #948979; background-color: white; padding: 8px; font-size: 16px; } -section div.sectionContainer button.clearButton{ +section div.searchBar button.clearButton{ font-size: 16px; cursor: pointer; color: #153448; @@ -139,40 +164,167 @@ section div.sectionContainer button.clearButton{ margin-bottom: 50px; } -section div.sectionContainer button.clearButton:hover{ +section div.searchBar button.clearButton:hover{ padding: 6px 12px; border: 2px solid #153448; - } -section div.sectionContainer button.clearButton:active{ +section div.searchBar button.clearButton:active{ color: #DFD0B8; background-color: #153448; border: none; } -section div.sectionContainer button.clearButton i{ +section div.searchBar button.clearButton i{ padding-bottom: 0px; } + +/* firstChapterSection */ +section div.firstChapterSection{ + display: flex; + flex-direction: column; + align-items: center; + margin: 0px; +} -section div.sectionContainer ul#list{ +section div.firstChapterSection ul#list{ list-style: none; padding: 0; margin: 0; } -section div.sectionContainer ul#list li.sections{ +section div.firstChapterSection ul#list li.sections{ font-size: 1.2em; padding: 0px; animation: fadeIn 0.5s ease-in-out; } -section div.sectionContainer ul#list li.sections:last-child{ +section div.firstChapterSection ul#list li.sections:last-child{ border-bottom: none; } +section div.firstChapterSection ul#list +li.sections div.mathSection, +li.sections div.sciencesSection, +li.sections div.languageSection, +li.sections div.islamicSection, +li.sections div.hisAndGeoSection, +li.sections div.individualSkillsSection, +li.sections div.otherAccessoriesSection{ + width: 100%; + height: auto; + margin-bottom: 50px; + background-color: #3C5B6F; + position: relative; +} + +section div.firstChapterSection ul#list +li.sections div.mathSection div.mathSectionDetails, +li.sections div.sciencesSection div.sciencesSectionDetails, +li.sections div.languageSection div.languageSectionDetails, +li.sections div.islamicSection div.islamicSectionDetails, +li.sections div.hisAndGeoSection div.hisAndGeoSectionDetails, +li.sections div.individualSkillsSection div.individualSkillsSectionDetails, +li.sections div.otherAccessoriesSection div.otherAccessoriesSectionDetails{ + padding: 20px; + +} + +section div.firstChapterSection ul#list +li.sections div.mathSection div.mathSectionDetails p.mathSectionTitle, +li.sections div.sciencesSection div.sciencesSectionDetails p.sciencesSectionTitle, +li.sections div.languageSection div.languageSectionDetails p.languageSectionTitle, +li.sections div.islamicSection div.islamicSectionDetails p.islamicSectionTitle, +li.sections div.hisAndGeoSection div.hisAndGeoSectionDetails p.hisAndGeoSectionTitle, +li.sections div.individualSkillsSection div.individualSkillsSectionDetails p.individualSkillsSectionTitle, +li.sections div.otherAccessoriesSection div.otherAccessoriesSectionDetails p.otherAccessoriesSectionTitle{ + font-size: 26px; + color: black; + font-weight: 600; + margin-top: 0px; + margin-bottom: 20px; + direction: rtl; +} + +section div.firstChapterSection ul#list +li.sections div.mathSection div.mathSectionDetails ul.mathSectionList, +li.sections div.sciencesSection div.sciencesSectionDetails ul.sciencesSectionList, +li.sections div.languageSection div.languageSectionDetails ul.languageSectionList, +li.sections div.islamicSection div.islamicSectionDetails ul.islamicSectionList, +li.sections div.hisAndGeoSection div.hisAndGeoSectionDetails ul.hisAndGeoSectionList, +li.sections div.individualSkillsSection div.individualSkillsSectionDetails ul.individualSkillsSectionList, +li.sections div.otherAccessoriesSection div.otherAccessoriesSectionDetails ul.otherAccessoriesSectionList{ + list-style: none; + padding: 0px; + direction: rtl; + + li{ + margin-left: .75em; + margin-right: .75em; + margin-bottom: 15px; + font-size: 18px; + } + + &:hover{ + a{ + color: #153448; + &:hover{ + color: #DFD0B8; + font-size: 19px; + box-shadow: 0 2px 0 0 currentcolor; + } + } + } +} + +section div.firstChapterSection ul#list +li.sections div.mathSection div.mathSectionDetails ul.mathSectionList li a, +li.sections div.sciencesSection div.sciencesSectionDetails ul.sciencesSectionList li a, +li.sections div.languageSection div.languageSectionDetails ul.languageSectionList li a, +li.sections div.islamicSection div.islamicSectionDetails ul.islamicSectionList li a, +li.sections div.hisAndGeoSection div.hisAndGeoSectionDetails ul.hisAndGeoSectionList li a, +li.sections div.individualSkillsSection div.individualSkillsSectionDetails ul.individualSkillsSectionList li a, +li.sections div.otherAccessoriesSection div.otherAccessoriesSectionDetails ul.otherAccessoriesSectionList li a{ + color: #948979; +} + +section div.firstChapterSection ul#list +li.sections div.mathSection div.mathSectionDetails ul.mathSectionList i, +li.sections div.sciencesSection div.sciencesSectionDetails ul.sciencesSectionList i, +li.sections div.languageSection div.languageSectionDetails ul.languageSectionList i, +li.sections div.islamicSection div.islamicSectionDetails ul.islamicSectionList i, +li.sections div.hisAndGeoSection div.hisAndGeoSectionDetails ul.hisAndGeoSectionList i, +li.sections div.individualSkillsSection div.individualSkillsSectionDetails ul.individualSkillsSectionList i, +li.sections div.otherAccessoriesSection div.otherAccessoriesSectionDetails ul.otherAccessoriesSectionList i{ + color: #DFD0B8; + cursor: default; +} + +/* secondChapterSection */ +section div.secondChapterSection{ + display: flex; + flex-direction: column; + align-items: center; + margin: 0px; +} + +section div.secondChapterSection ul#list{ + list-style: none; + padding: 0; + margin: 0; +} + +section div.secondChapterSection ul#list li.sections{ + font-size: 1.2em; + padding: 0px; + animation: fadeIn 0.5s ease-in-out; +} + +section div.secondChapterSection ul#list li.sections:last-child{ + border-bottom: none; +} -section div.sectionContainer ul#list +section div.secondChapterSection ul#list li.sections div.mathSection, li.sections div.sciencesSection, li.sections div.languageSection, @@ -187,7 +339,7 @@ li.sections div.otherAccessoriesSection{ position: relative; } -section div.sectionContainer ul#list +section div.secondChapterSection ul#list li.sections div.mathSection div.mathSectionDetails, li.sections div.sciencesSection div.sciencesSectionDetails, li.sections div.languageSection div.languageSectionDetails, @@ -199,7 +351,7 @@ li.sections div.otherAccessoriesSection div.otherAccessoriesSectionDetails{ } -section div.sectionContainer ul#list +section div.secondChapterSection ul#list li.sections div.mathSection div.mathSectionDetails p.mathSectionTitle, li.sections div.sciencesSection div.sciencesSectionDetails p.sciencesSectionTitle, li.sections div.languageSection div.languageSectionDetails p.languageSectionTitle, @@ -215,7 +367,7 @@ li.sections div.otherAccessoriesSection div.otherAccessoriesSectionDetails p.oth direction: rtl; } -section div.sectionContainer ul#list +section div.secondChapterSection ul#list li.sections div.mathSection div.mathSectionDetails ul.mathSectionList, li.sections div.sciencesSection div.sciencesSectionDetails ul.sciencesSectionList, li.sections div.languageSection div.languageSectionDetails ul.languageSectionList, @@ -246,7 +398,7 @@ li.sections div.otherAccessoriesSection div.otherAccessoriesSectionDetails ul.ot } } -section div.sectionContainer ul#list +section div.secondChapterSection ul#list li.sections div.mathSection div.mathSectionDetails ul.mathSectionList li a, li.sections div.sciencesSection div.sciencesSectionDetails ul.sciencesSectionList li a, li.sections div.languageSection div.languageSectionDetails ul.languageSectionList li a, @@ -257,7 +409,7 @@ li.sections div.otherAccessoriesSection div.otherAccessoriesSectionDetails ul.ot color: #948979; } -section div.sectionContainer ul#list +section div.secondChapterSection ul#list li.sections div.mathSection div.mathSectionDetails ul.mathSectionList i, li.sections div.sciencesSection div.sciencesSectionDetails ul.sciencesSectionList i, li.sections div.languageSection div.languageSectionDetails ul.languageSectionList i, @@ -392,7 +544,7 @@ footer div.supporting a div.mindSyncContainer img:hover{ width: 250px; } - section div.sectionContainer input#searchbar{ + section div.searchBar input#searchbar{ width: 80%; } diff --git a/aboStyle.css b/aboStyle.css index f1df3c1..6cc4da3 100644 --- a/aboStyle.css +++ b/aboStyle.css @@ -239,7 +239,7 @@ section div.founderSection div.founderSectionDetails{ } section div.founderSection div.founderSectionDetails p.founderSectionBody{ - font-size: 22px; + font-size: 20px; color: #14213D; font-weight: 500; }