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 32:
<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 51: Line 51:
  <script>
  <script>
$(function() {
$(function() {
 +
drawChart1();
 +
drawChart2();
$( "#tabs" ).tabs();
$( "#tabs" ).tabs();
});
});

Revision as of 18:00, 16 October 2014

jQuery UI Tabs - Default functionality