mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-27 09:29:59 -04:00
new changes
This commit is contained in:
parent
774ebdb2b4
commit
e31ac3a4ac
Binary file not shown.
Binary file not shown.
@ -1,23 +1,31 @@
|
|||||||
package walljm.dynamicbible;
|
package walljm.dynamicbible;
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint;
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.res.Configuration;
|
import android.content.res.Configuration;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.view.Window;
|
import android.view.Window;
|
||||||
|
import android.webkit.CookieManager;
|
||||||
import android.webkit.CookieSyncManager;
|
import android.webkit.CookieSyncManager;
|
||||||
import android.webkit.WebSettings;
|
import android.webkit.WebSettings;
|
||||||
import android.webkit.WebView;
|
import android.webkit.WebView;
|
||||||
|
import android.webkit.WebViewClient;
|
||||||
|
|
||||||
public class DynamicBibleActivity extends Activity {
|
public class DynamicBibleActivity extends Activity
|
||||||
|
{
|
||||||
private WebView mWebView;
|
private WebView mWebView;
|
||||||
|
|
||||||
|
@SuppressLint("SetJavaScriptEnabled")
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState)
|
||||||
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
|
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
|
||||||
setContentView(R.layout.main);
|
setContentView(R.layout.main);
|
||||||
mWebView = (WebView) findViewById(R.id.webview);
|
mWebView = (WebView) findViewById(R.id.webview);
|
||||||
|
|
||||||
|
CookieManager.getInstance().setAcceptCookie(true);
|
||||||
|
|
||||||
CookieSyncManager.createInstance(this);
|
CookieSyncManager.createInstance(this);
|
||||||
CookieSyncManager.getInstance().startSync();
|
CookieSyncManager.getInstance().startSync();
|
||||||
|
|
||||||
@ -26,6 +34,15 @@ public class DynamicBibleActivity extends Activity {
|
|||||||
webSettings.setSaveFormData(true);
|
webSettings.setSaveFormData(true);
|
||||||
webSettings.setJavaScriptEnabled(true);
|
webSettings.setJavaScriptEnabled(true);
|
||||||
webSettings.setSupportZoom(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");
|
mWebView.loadUrl("file:///android_asset/index.html");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -35,13 +52,19 @@ public class DynamicBibleActivity extends Activity {
|
|||||||
super.onConfigurationChanged(newConfig);
|
super.onConfigurationChanged(newConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onResume()
|
||||||
|
{
|
||||||
|
super.onResume();
|
||||||
|
CookieSyncManager.getInstance().startSync();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPause()
|
public void onPause()
|
||||||
{
|
{
|
||||||
super.onPause();
|
super.onPause();
|
||||||
CookieSyncManager.getInstance().sync();
|
CookieSyncManager.getInstance().sync();
|
||||||
CookieSyncManager.getInstance().stopSync();
|
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 t = Strongs.BuildStrongs(r);
|
||||||
var d = $("<div></div>").append(t);
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
catch (err)
|
catch (err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user