+
diff --git a/src/scripts/quran.js b/src/scripts/quran.js
index 76c18bf..c50d9c0 100644
--- a/src/scripts/quran.js
+++ b/src/scripts/quran.js
@@ -23,22 +23,29 @@ function getUrlVars() {
function quranOnLoad() {
var a = getUrlVars()["sura"];
- load(a, tIndex);
+
+ if (a) {
+ load(a, tIndex);
+ } else {
+ load(1, tIndex)
+ }
+
loadSuraButtons();
try {
process.versions['electron'];
-
+
var windowBtns = document.getElementsByClassName('window-button-container');
-
+
for (var i = 0; i < windowBtns.length; i++) {
windowBtns[i].style.display = 'grid';
}
-
+
document.getElementById('openquran-link').href = 'index.html'
+ document.getElementById('openquran-home').href = 'index.html'
} catch {
var windowBtns = document.getElementsByClassName('window-button-container');
-
+
for (var i = 0; i < windowBtns.length; i++) {
windowBtns[i].style.display = 'none';
}
diff --git a/src/scripts/sura-list.js b/src/scripts/sura-list.js
index a799b02..abbae2e 100644
--- a/src/scripts/sura-list.js
+++ b/src/scripts/sura-list.js
@@ -20,6 +20,8 @@ function load() {
for (var i = 0; i < windowBtns.length; i++) {
windowBtns[i].style.display = 'grid';
}
+
+ document.getElementById('openquran-home').href = 'index.html'
} catch {
var windowBtns = document.getElementsByClassName('window-button-container');
diff --git a/src/styles/style.css b/src/styles/style.css
index 1279478..435bc6a 100644
--- a/src/styles/style.css
+++ b/src/styles/style.css
@@ -203,16 +203,53 @@ hr {
background-color: rgba(0, 0, 0, 0.2) !important;
}
+.main-sidebar {
+ position: fixed;
+ padding-left: 12.5px;
+ padding-right: 12.5px;
+ height: 100%;
+ z-index: 3;
+}
+
+.sidebar-buttons {
+ width: 35px;
+ height: 35px;
+ background-color: rgba(0, 0, 0, 0);
+ border-radius: 17.5px;
+ display: block;
+ display: grid;
+ box-sizing: border-box;
+ padding: 8px;
+ color: #000;
+ text-decoration: none;
+ transition: all 150ms;
+ margin-top: 12.5px;
+ text-align: center;
+}
+
+.sidebar-buttons:hover {
+ background-color: rgba(0, 0, 0, 0.1);
+}
+
+.sidebar-buttons:active {
+ background-color: rgba(0, 0, 0, 0.2) !important;
+}
+
+.sidebar-buttons:focus {
+ background-color: rgba(0, 0, 0, 0.1) !important;
+}
+
.sidebar {
position: fixed;
height: 100%;
- width: 260px;
+ width: 230px;
background-color: #F3F3F3;
z-index: 1;
+ margin-left: 60px;
}
.main {
- margin-left: 260px;
+ margin-left: 290px;
background-color: #FFF;
border-top-left-radius: 15px;
z-index: 3;
@@ -298,6 +335,7 @@ hr {
z-index: 2;
border-top-right-radius: 10px;
background-color: #F3F3F3;
+ display: none;
}
.dropdown-button {
@@ -393,7 +431,7 @@ hr {
.main {
border-top-left-radius: 0;
- margin-left: 0;
+ margin-left: 0 !important;
}
#dropdown-alternate {
@@ -407,4 +445,12 @@ hr {
.window-button-container {
display: none;
}
+
+ .sidebar-links {
+ display: block;
+ }
+
+ .main-sidebar {
+ display: none;
+ }
}
\ No newline at end of file
diff --git a/src/sura.html b/src/sura.html
index e90d78a..b003f75 100644
--- a/src/sura.html
+++ b/src/sura.html
@@ -49,6 +49,11 @@