mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-25 16:29:49 -04:00
new changes
This commit is contained in:
parent
774ebdb2b4
commit
e31ac3a4ac
Binary file not shown.
Binary file not shown.
@ -1,47 +1,70 @@
|
||||
package walljm.dynamicbible;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.app.Activity;
|
||||
import android.content.res.Configuration;
|
||||
import android.os.Bundle;
|
||||
import android.view.Window;
|
||||
import android.webkit.CookieManager;
|
||||
import android.webkit.CookieSyncManager;
|
||||
import android.webkit.WebSettings;
|
||||
import android.webkit.WebView;
|
||||
import android.webkit.WebViewClient;
|
||||
|
||||
public class DynamicBibleActivity extends Activity {
|
||||
private WebView mWebView;
|
||||
public class DynamicBibleActivity extends Activity
|
||||
{
|
||||
private WebView mWebView;
|
||||
|
||||
@SuppressLint("SetJavaScriptEnabled")
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState)
|
||||
{
|
||||
super.onCreate(savedInstanceState);
|
||||
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
|
||||
setContentView(R.layout.main);
|
||||
mWebView = (WebView) findViewById(R.id.webview);
|
||||
|
||||
CookieManager.getInstance().setAcceptCookie(true);
|
||||
|
||||
CookieSyncManager.createInstance(this);
|
||||
CookieSyncManager.getInstance().startSync();
|
||||
|
||||
WebSettings webSettings = mWebView.getSettings();
|
||||
webSettings.setSavePassword(false);
|
||||
webSettings.setSaveFormData(true);
|
||||
webSettings.setJavaScriptEnabled(true);
|
||||
webSettings.setSupportZoom(true);
|
||||
|
||||
mWebView.setWebViewClient(new WebViewClient()
|
||||
{
|
||||
public void onPageFinished(WebView view, String Url)
|
||||
{
|
||||
CookieSyncManager.getInstance().sync();
|
||||
}
|
||||
});
|
||||
|
||||
mWebView.loadUrl("file:///android_asset/index.html");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onConfigurationChanged(Configuration newConfig)
|
||||
{
|
||||
super.onConfigurationChanged(newConfig);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onResume()
|
||||
{
|
||||
super.onResume();
|
||||
CookieSyncManager.getInstance().startSync();
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
|
||||
setContentView(R.layout.main);
|
||||
mWebView = (WebView) findViewById(R.id.webview);
|
||||
|
||||
CookieSyncManager.createInstance(this);
|
||||
CookieSyncManager.getInstance().startSync();
|
||||
|
||||
WebSettings webSettings = mWebView.getSettings();
|
||||
webSettings.setSavePassword(false);
|
||||
webSettings.setSaveFormData(true);
|
||||
webSettings.setJavaScriptEnabled(true);
|
||||
webSettings.setSupportZoom(true);
|
||||
mWebView.loadUrl("file:///android_asset/index.html");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onConfigurationChanged(Configuration newConfig)
|
||||
{
|
||||
super.onConfigurationChanged(newConfig);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPause()
|
||||
{
|
||||
super.onPause();
|
||||
CookieSyncManager.getInstance().sync();
|
||||
CookieSyncManager.getInstance().stopSync();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPause()
|
||||
{
|
||||
super.onPause();
|
||||
CookieSyncManager.getInstance().sync();
|
||||
CookieSyncManager.getInstance().stopSync();
|
||||
}
|
||||
}
|
||||
|
||||
|
BIN
dynamicbible.1.2.zip
Normal file
BIN
dynamicbible.1.2.zip
Normal file
Binary file not shown.
@ -583,7 +583,12 @@ var Strongs = {
|
||||
var t = Strongs.BuildStrongs(r);
|
||||
var d = $("<div></div>").append(t);
|
||||
|
||||
d.dialog({draggable:true, width: 700, height: 500, resizable: true});
|
||||
d.dialog({draggable:true, width: 600, height: 500, resizable: true, title: "Strongs Definition",
|
||||
buttons: {
|
||||
"Close": function() {
|
||||
$( this ).dialog( "close" );
|
||||
}
|
||||
}});
|
||||
return false;
|
||||
}
|
||||
catch (err)
|
||||
|
Loading…
x
Reference in New Issue
Block a user