Lets connect BIostat with epidemiology (by JavaScript)

<!DOCTYPE html>
<html>
<body>

<h1>JavaScript Variables</h1>

<p>In this example, Sex is defined as a variable.
Then, Sex is assigned the value of 0:</p>

<p id=”demo”></p>

<script>
var sex;
sex = 0;
document.getElementById(“demo”).innerHTML = x;
</script>

</body>
</html>

 

 

Output:

JavaScript Variables

In this example, Sex is defined as a variable. Then, Sex is assigned the value of 0:

 

 

<!DOCTYPE html>
<html>
<body>

<h1>Assigning Values</h1>

<p>In JavaScript the = we are assigning values to variables.</p>

<p id=”demo”></p>

<script>
var diseaseNo = 0;
var diseaseYes = 1;
document.getElementById(“demo”).innerHTML = diseaseNo + diseaseYes;
</script>

</body>
</html>

 

Output:

Assigning Values

In JavaScript the = we are assigning values to variables.

1

Android Studio

* provides beautiful template

*Wnderful drag and drop option

*Lint tools

*Pro-guard signing capablities

*it even has Google cloud platfor

*flattened version

*gradle Scripts.

 

Console function in Java to debug!

<!DOCTYPE html>
<html>
<body>

<h1>My First Web Page</h1>
<p>My first paragraph.</p>

<p>
Activate debugging in your browser (Chrome, IE, Firefox) with F12, and select “Console” in the debugger menu.
</p>

<script>
console.log(5 + 6);
</script>

</body>
</html>

 

If this is to be work well in Firefox,,then Firebug need to be open ,ot it would result in page crash!

 

 

Java script practice!

<!DOCTYPE html>
<html>
<body>

<h1>External JavaScript</h1>

<p id=”demo”>A Paragraph.</p>

<button type=”button” onclick=”myFunction()”>Try it</button>

<p><strong>Note:</strong> myFunction is stored in an external file called “myScript.js”.</p>

<script src=”myScript.js”></script>

</body>
</html>

How to enable java in web browser!

SOCR appelated require java support. If web browser do not support java, then plot wont open on webpage..

How to enable java in web browser?

Internet Explorer
  1. Click Tools and then Internet Options, Select the Security tab, and select the Custom Level button, then click on Scripting of Java applets by scrolling down, then check enable button and click ok. Source java.com