Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
faris-zak committed May 8, 2024
1 parent 34d7a93 commit 40d5a9b
Show file tree
Hide file tree
Showing 4 changed files with 335 additions and 62 deletions.
91 changes: 54 additions & 37 deletions JustPapers/behaviour.js
Original file line number Diff line number Diff line change
@@ -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();
});
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);

114 changes: 109 additions & 5 deletions JustPapers/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</script> -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JustPapers</title>
<title>JustPapers - مجرد ورق</title>
<link rel="icon" href="Attachments/JustPapers - webicon - transparent.png">
<link rel="stylesheet" href="style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
Expand All @@ -30,20 +30,124 @@
<div class="aboutSection" id="aboutSection">
<div class="aboutSectionDetails">
<p class="aboutSectionTitle" title="JustPapers - مجرد ورق"><strong style="color: #948979; direction: rtl;">مجرد ورق</strong> - <strong style="color: #948979; direction: ltr;">JustPapers</strong></p><hr>
<p class="aboutSectionBody"></p>
<p class="aboutSectionBody">مرحبًا بكم في مشروع مجرد ورق! يهدف المشروع إلى توفير مصدر شامل للطلاب يساعدهم على تحسين مهاراتهم وتعزيز معرفتهم في مختلف المواد الدراسية.</p>
</div>
</div>

<div class="accessMethodSection">
<div class="chaptersSection" id="chaptersSection">
<div class="chaptersSectionDetails">
<button class="firstChapterButton" id="showFirstChapterEleventhGradeButton">الفصل الأول - الحادي عشر</button>
<button class="secondChapterButton" id="showSecondChapterEleventhGradeButton">الفصل الثاني - الحادي عشر</button>
</div>
</div>

<div class="accessMethodSection" id="accessMethodSection">
<div class="accessMethodSectionDetails">
<p class="accessMethodSectionTitle">ملفات الصف الحادي عشر - الفصل الأول</p>
<p class="accessMethodSectionTitle">الحادي عشر - الفصل الأول</p>
<p class="accessMethodSectionBody">يمكنك الحصول على كتب وأدلة معلم وملخصات هامة وبعض الإختبارات الخاصة بمنهج <strong><a href="https://home.moe.gov.om/" title="https://home.moe.gov.om/">وزارة التربية والتعليم</a></strong>.</p>
</div>
</div>

<div class="sectionContainer">
<div class="searchBar">
<input id="searchbar" onkeyup="search_section();" type="text" name="search" placeholder="إبحث - مثال: فيزياء...">
<button class="clearButton" id="clearButton" type="button" onclick="clearField();" title="Search Again">إبحث مره أخرى <i class="fi fi-rr-rotate-right"></i></button>
</div>

<div class="firstChapterSection" id="firstChapterSection">
<ul id='list'>
<li class="sections">
<div class="mathSection" id="math">
<div class="mathSectionDetails">
<p class="mathSectionTitle" title="Math">الرياضيات</p>
<ul class="mathSectionList">
<li><a href="https://drive.google.com/drive/folders/19w6jDW25vXae3hTHA61rAMTzPsxSp7sn?usp=sharing" title="Math Advanced - الرياضيات المتقدمة"><i class="fi fi-rr-calculator-simple"></i> - الرياضيات المتقدمة</a></li>
<li><a href="https://drive.google.com/drive/folders/1kY5pjTI0UcaGmpxfrOB8IzJKof51qNdk?usp=sharing" title="Math Basic - الرياضيات الأساسية"><i class="fi fi-rr-calculator-simple"></i> - الرياضيات الأساسية</a></li>
</ul>
</div>
</div>
</li>

<li class="sections">
<div class="sciencesSection" id="sciences">
<div class="sciencesSectionDetails">
<p class="sciencesSectionTitle" title="Sciences">العلوم</p>
<ul class="sciencesSectionList">
<li><a href="https://drive.google.com/drive/folders/1Fm4HxCfaChVfMkae6f3ryVcg_zdNLtwK?usp=sharing" title="Physics - الفيزياء"><i class="fi fi-rr-physics"></i> - الفيزياء</a></li>
<li><a href="https://drive.google.com/drive/folders/1l3JjnO8M8AHcqa6Q3K-uhBHc1Si5xaU7?usp=sharing" title="Chemistry - الكيمياء"><i class="fi fi-rr-flask"></i> - الكيمياء</a></li>
<li><a href="https://drive.google.com/drive/folders/1gN_9Nwn7TVvhrqF7qdSZEYyRjddTOJPJ?usp=sharing" title="Biology - الأحياء"><i class="fi fi-rr-dna"></i> - الأحياء</a></li>
</ul>
</div>
</div>
</li>

<li class="sections">
<div class="languageSection" id="language">
<div class="languageSectionDetails">
<p class="languageSectionTitle" title="Language">اللغات</p>
<ul class="languageSectionList">
<li><a href="https://drive.google.com/drive/folders/1L5CRnfZyRvMpX-bQiU8Pgp9kq9tb_4Pn?usp=sharing" title="Arabic Language - اللغة العربية"><i class="fi fi-rr-language"></i> - اللغة العربية</a></li>
<li><a href="https://drive.google.com/drive/folders/1csDZh43N0TsTpm-aLSHvO-FnmXujfSUi?usp=sharing" title="English Language - اللغة الإنجليزية"><i class="fi fi-rr-language"></i> - اللغة الإنجليزية</a></li>
<li><a href="https://drive.google.com/drive/folders/1xrwXXtMw39k_jB_ADUpwHSSQgFdbDQlx?usp=sharing" title="German Language - اللغة الألمانية"><i class="fi fi-rr-language"></i> - اللغة الألمانية</a></li>
<li><a href="https://drive.google.com/drive/folders/1hGMHqYWpJZItkYzetUCrEsYfMtT1VnxR?usp=sharing" title="French Language - اللغة الفرنسية"><i class="fi fi-rr-language"></i> - اللغة الفرنسية</a></li>
</ul>
</div>
</div>
</li>

<li class="sections">
<div class="islamicSection" id="islamic">
<div class="islamicSectionDetails">
<p class="islamicSectionTitle" title="Islamic">الدين الإسلامي</p>
<ul class="islamicSectionList">
<li><a href="https://drive.google.com/drive/folders/1NuMJmv91UtugXbWBwjT2bReM4mHIctW8?usp=sharing" title="Islamic - التربية الإسلامية"><i class="fi fi-rr-kaaba"></i> - التربية الإسلامية</a></li>
<li><a href="https://drive.google.com/drive/folders/1EpRvua5A88Gfdw9t1j_CJvKPcMihKCS9?usp=sharing" title="Islamic Civilization - الحضارة الإسلامية"><i class="fi fi-rr-mosque"></i> - الحضارة الإسلامية</a></li>
</ul>
</div>
</div>
</li>

<li class="sections">
<div class="hisAndGeoSection" id="hisAndGeo">
<div class="hisAndGeoSectionDetails">
<p class="hisAndGeoSectionTitle" title="History and Geography">التاريخ والجغرافيا</p>
<ul class="hisAndGeoSectionList">
<li><a href="https://drive.google.com/drive/folders/1S7ciZrI89Sv2r00-B8hRV0t1DHDWuBGs?usp=sharing" title="Hada Watani - هذا وطني"><i class="fi fi-rr-world"></i> - هذا وطني</a></li>
<li><a href="https://drive.google.com/drive/folders/1_1tS7Vpi7JePdy5ibt3QIML3GRF_6HwE?usp=sharing" title="Economic Geography - الجغرافيا الإقتصادية"><i class="fi fi-rr-cheap-dollar"></i> - الجغرافيا الإقتصادية</a></li>
</ul>
</div>
</div>
</li>

<li class="sections">
<div class="individualSkillsSection" id="individualSkills">
<div class="individualSkillsSectionDetails">
<p class="individualSkillsSectionTitle" title="Individual Skills">المهارات الفردية</p>
<ul class="individualSkillsSectionList">
<li><a href="https://drive.google.com/drive/folders/1Vg3VMDYxQu3S1TCVpNKnV41I25QxB9wE?usp=sharing" title="School Sport - الرياضة المدرسية"><i class="fi fi-rr-running"></i> - الرياضة المدرسية</a></li>
<li><a href="https://drive.google.com/drive/folders/167BxcLFfd1MM0rpqYqstEtyJXvP3djWk?usp=sharing" title="Musical Skills - المهارات الموسيقية"><i class="fi fi-rr-music-alt"></i> - المهارات الموسيقية</a></li>
<li><a href="https://drive.google.com/drive/folders/1A1vlPINOtSxvw2T5KNX9nlA_NncfqeB6?usp=sharing" title="Fine Arts - الفنون التشكيلية"><i class="fi fi-rr-paintbrush-pencil"></i> - الفنون التشكيلية</a></li>
<li><a href="https://drive.google.com/drive/folders/1wpIcgJbBOz3Fxj18gI6PbGafTvIsdhim?usp=sharing" title="Computers in Communications and Business - الحاسوب في الإتصالات والأعمال التجارية"><i class="fi fi-rr-computer"></i> - الحاسوب في الإتصالات والأعمال التجارية</a></li>
</ul>
</div>
</div>
</li>

<li class="sections">
<div class="otherAccessoriesSection" id="otherAccessories">
<div class="otherAccessoriesSectionDetails">
<p class="otherAccessoriesSectionTitle" title="Other Accessories">ملحقات أخرى</p>
<ul class="otherAccessoriesSectionList">
<li><a href="https://drive.google.com/drive/folders/1f06siPvULr-ou3bTeYkSLew9u7R28Fyb?usp=sharing" title="Career Path - مسارك المهني"><i class="fi fi-rr-briefcase-arrow-right"></i> - مسارك المهني</a></li>
<li><a href="https://drive.google.com/drive/folders/1z22fJ9pRuUdsJy3LWn70C5ltqqp7UNwa?usp=sharing" title="StudentGuide (2023-2024) - دليل القبول الموحد"><i class="fi fi-rr-guide-alt"></i> - دليل القبول الموحد (2023 - 2024)</a></li>
</ul>
</div>
</div>
</li>
</ul>
</div>


<div class="secondChapterSection" id="secondChapterSection">
<ul id='list'>
<li class="sections">
<div class="mathSection" id="math">
Expand Down
Loading

0 comments on commit 40d5a9b

Please sign in to comment.