Browse Source

Remove old submodule

master
Daniel 7 months ago
parent
commit
912c32ffa7
3 changed files with 4 additions and 148 deletions
  1. +3
    -0
      .gitmodules
  2. +0
    -148
      src/main/assets/index.html
  3. +1
    -0
      src/main/assets/ui

+ 3
- 0
.gitmodules View File

@@ -4,3 +4,6 @@
[submodule "backend/biblec"]
path = backend/biblec
url = https://code.heb12.com/heb12/biblec
[submodule "src/main/assets/ui"]
path = src/main/assets/ui
url = https://github.com/heb12/ui

+ 0
- 148
src/main/assets/index.html View File

@@ -1,148 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>Heb12 Bible</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<style>
html, body {
width: 100%;
height: 100%;
margin: 0;
}

.screen {
width: 100%;
height: 100%;
display: none;
}

#nojs {display: block;}
#content {width: 100%;}

#content p {
margin: 0;
padding: 20px 20px;
cursor: pointer;
}

.page{padding: 10px;}

.top {
border-bottom: 2px solid black;
/* box-shadow: 0px 5px 8px grey; */
text-align: center;
height: 40px;
}

.top input {
border: transparent;
outline: none;
font-size: 22px;
text-align: center;

width: 200px;
}

.top img {padding: 2px 2px;}

.top img.left {
float: left;
}

.click {
cursor: pointer;
}

img.clickable, .top input {
height: 100%;
box-sizing: border-box;
}

img.clickable {
cursor: pointer;
}

#content p:hover, img.clickable:hover, .top input:hover {background: lightgrey;}
#content p:active, img.clickable:active {background: grey;}
</style>
</head>
<body>
<div class="screen" id="nojs">
<span>For a JavaScript-less experience, visit ...</span>
</div>

<div class="screen" id="main">
<div class="top">
<img class="clickable left" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAK0lEQVR4Ae3UoREAAAgDMfZfGjZAQkVyV/+qRSCgj7cTBN/8kKBs4IcEATB7U/sFHIey0AAAAABJRU5ErkJggg==" onclick="showScreen('settings');">
<input id="verse" value="Heb 12 1-10" onkeypress="checkEnter(event, updateContent)">
</div>
<div id="content">

</div>
</div>

<div class="screen" id="settings">
<div class="top">
<img class="clickable left" onclick="showScreen('main');" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAABYklEQVR4Ae3XIWzCQBiG4YmKikq8mg8+OHwqEMjJyfNBICqQ+CCRFQi8QiAQlRMIBKISOVHx7xUTyyWXL/l3NRtv8jhCvpTrJbw8+y9N0eCAM27fTmixwitGrUTAHQZIH3hDgazVuMKcOsyQpQaWwYB3uCvQwjLbwtUGNgrHk1rCRjRgBtJV6MUBNU1+tkMB2Rrq99/ChKDPIVeCqMQDFsMRRHpUiF6OLnlPiebid1+oUQj4WYAliRt9B3OM8o0BVkh2gflGOcYALZLdYZ5RrjHACclMi0eJMdrNMUi8TeKgC3ck691j/KPOSNY5xwQsnKMOSLZ3jRFXgtAgWe0bA/+oKZJV+NSPNh4jR3XyQDsPZIjH6FHq+3QTPMQhNAUDjrCEK0roKMBGVkOn37gsGu//sBMssxbuysxPaoMCvy6Ig670WCJrE2yje0p5YI0Ko1Whxh4d+uiiu2CHOUo8+9t9AUcCWfVf/Xv1AAAAAElFTkSuQmCC">
</div>
<div class="page">
foo
</div>
</div>
</body>

<script>
// Current interchangable UI bindings
var bindings = {
getVerses: function(reference, callback) {
callback(b.getVerses(reference).split("\n"));
}
}
</script>

<script>
window.onload = function() {
b.loadTranslation(
"/sdcard/heb12data/web.i",
"/sdcard/heb12data/web.t"
);

updateContent("Heb 12 1-10");
}

// Current and default screen
var screen = "nojs";
showScreen("main");

// Function to update page contents
function updateContent(reference) {
var content = document.getElementById("content");
while (content.firstChild) {
content.removeChild(content.firstChild);
}

bindings.getVerses(reference, function(verses) {
for (var i = 0; i < verses.length; i++) {
var p = document.createElement("p");
p.innerHTML += "<b>" + (i + 1) + " </b>" + verses[i];
p.onclick = function() {};

content.appendChild(p);
}
});
}

function showScreen(next) {
document.getElementById(screen).style.display = "none";
document.getElementById(next).style.display = "block";
screen = next;
}

// Input handler
function checkEnter(env, code) {
if (env.keyCode == 13) {
updateContent(verse.value);
}
}
</script>
</html>

+ 1
- 0
src/main/assets/ui

@@ -0,0 +1 @@
Subproject commit f7f053c17ebf431296496b6455cb9c1d8f7c64a7

Loading…
Cancel
Save