<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Wialon Playground - Management Driver</title>
<script type="text/javascript" src="//code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript" src="//hst-api.wialon.com/wsdk/script/wialon.js"></script>
</head>
<body>
<div id="base">
<form id="driver_data">
<p>Resource: <select id="resource" name="resource"><option value="">-- select resource --</option></select></p>
.btn {
cursor:pointer;
}
div {
margin-bottom:20px;
#log_cont {
background-color: #EEEEEE;
height: 150px;
overflow-y: scroll;
font-size:75%;
#log_cont table {
width:100%;
var createDriver = {
init: function () {
var self = this;
this.res = null;
this.log("Logged successfully");
this.sess = wialon.core.Session.getInstance();
this.sess.loadLibrary("resourceDrivers");
// fetch data of resurse
this.getResurse();
this.addEventListeners();
},
addEventListeners: function(){
/*source*/