tmledition/js/vconsole/2.5.1/vconsole.min.js"></script>
</head>
<body>
<ul id="ul">
    <li>Take Photo</li>
</ul>
<img id="image-preview"/>
<script type="text/javascript">

    var ul = document.getElementById("ul");
    var li = ul.getElementsByTagName("li");
    for (var i = 0; i < li.length; i++) {
        li[i].index = i;
        li[i].onclick = function () {
            switch (this.index) {
                case 0:
                MyBridge.native.takePhoto(function(data) {
                        var i