Team:Virginia/Tabs

From 2014.igem.org

(Difference between revisions)
Line 14: Line 14:
<script type="text/javascript">
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.load("visualization", "1", {packages:["corechart"]});
-
google.setOnLoadCallback(drawChart2);
 
function drawChart2() {
function drawChart2() {
var data = google.visualization.arrayToDataTable([
var data = google.visualization.arrayToDataTable([
Line 32: Line 31:
<script type="text/javascript">
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.load("visualization", "1", {packages:["corechart"]});
-
google.setOnLoadCallback(drawChart1);
 
function drawChart1() {
function drawChart1() {
var data = google.visualization.arrayToDataTable([
var data = google.visualization.arrayToDataTable([
Line 49: Line 47:
<!-- Tabs -->
<!-- Tabs -->
-
<script>
 
$(function() {
$(function() {
 +
drawChart1();
 +
drawChart2();
$( "#tabs" ).tabs();
$( "#tabs" ).tabs();
});
});
-
</script>
+
 
<div id="tabs">
<div id="tabs">
<ul>
<ul>

Revision as of 17:57, 16 October 2014

jQuery UI Tabs - Default functionality $(function() { drawChart1(); drawChart2(); $( "#tabs" ).tabs(); });