mirror of
https://github.com/MinimalBible/MinimalBible
synced 2024-11-04 23:28:19 -05:00
Initial Angular commit
This commit is contained in:
parent
bd77dcc3a7
commit
1255580b7a
@ -1,11 +1,8 @@
|
|||||||
<html>
|
<html lang="en" ng-app>
|
||||||
|
<head>
|
||||||
|
<script type="text/javascript" src="file:///android_asset/dist/book-bundle.js"></script>
|
||||||
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="content"></div>
|
<div id="content">Hello {{ 'Android!' }}</div>
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
function set_content(content) {
|
|
||||||
document.getElementById("content").innerHTML = content;
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
4
app/src/main/assets/dist/book-bundle.js
vendored
4
app/src/main/assets/dist/book-bundle.js
vendored
File diff suppressed because one or more lines are too long
4
app/src/main/assets/dist/bundle.js
vendored
4
app/src/main/assets/dist/bundle.js
vendored
File diff suppressed because one or more lines are too long
@ -1 +1,3 @@
|
|||||||
require 'angular'
|
require 'angular'
|
||||||
|
|
||||||
|
console.log 'hello'
|
@ -1,6 +1,7 @@
|
|||||||
package org.bspeice.minimalbible.activity.viewer;
|
package org.bspeice.minimalbible.activity.viewer;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
@ -112,7 +113,7 @@ public class BookFragment extends BaseFragment {
|
|||||||
Verse initial = new Verse(vUtil.getVersification(mBook.get()),
|
Verse initial = new Verse(vUtil.getVersification(mBook.get()),
|
||||||
BibleBook.GEN, 1, 1);
|
BibleBook.GEN, 1, 1);
|
||||||
super.onPageFinished(view, url);
|
super.onPageFinished(view, url);
|
||||||
invokeJavascript("set_content", lookupService.getHTMLVerse(initial));
|
// invokeJavascript("set_content", lookupService.getHTMLVerse(initial));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -122,6 +123,11 @@ public class BookFragment extends BaseFragment {
|
|||||||
description);
|
description);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// TODO: Remove remote debugging when ready
|
||||||
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
|
||||||
|
WebView.setWebContentsDebuggingEnabled(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user