function onBodyLoad() {
document.addEventListener("deviceready", onDeviceReady, false);
ko.applyBindings(myViewModel);
}
//GLOBAL ARRAY FOR DOCUMENTS CREATION AND EMAIL ATTACHMENT
var databaseArray = []; <!--CSV database parsed into json data here. Checkmarks correlate to data elements within this array and are pushed into th feedbackDocumentArray below. -->
var feedbackArray = []; <!--Selected comments are pushed to this global variable.-->
//KNOCKOUT DYNAMIC UI SCRIPT
var viewModel = {
remark: ko.observableArray([{
tab: "tab-1k",
column: "tab-1K-column-1k",
commentLabel: "tab-1K-column-1k-comment-1k",
commentText: "Comment text for tab-1-column-1-comment-1."
}, {
tab: "tab-1k",
column: "tab-1K-column-1k",
commentLabel: "tab-1K-column-1k-comment-2k",
commentText: "Comment text for tab-1-column-1-comment-2."
}, {
tab: "tab-2k",
column: "tab-2K-column-1k",
commentLabel: "tab-2K-column-1k-comment-1k",
commentText: "Comment text for tab-2-column-1-comment-1."
}, {
tab: "tab-2k",
column: "tab-2K-column-1k",
commentLabel: "tab-2K-column-1k-comment-2k",
commentText: "Comment text for tab-2-column-1-comment-2."
}])
}
$('.tabList').ul();
$('.tab[data-role="controlgroup"]').input();
$('div[data-role="page"]').trigger('create');
//EXTERNAL NAVBAR SCRIPT
$(function () {
$("[data-role='navbar']").navbar();
$("[data-role='header'], [data-role='footer']").toolbar();
});
$(document).on("pagecontainershow", function () {
var current = $(".ui-page-active").jqmData("title");
$("[data-role='header'] h3").text(current);
$("[data-role='navbar'] a.ui-btn-active").removeClass("ui-btn-active");
$("[data-role='navbar'] a").each(function () {
if ($(this).text() === current) {
$(this).addClass("ui-btn-active");
}
});
}); <!--/external navbar script-->
//EXTERNAL INFO PANEL...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.