index.html 4.4 KB
Newer Older
W
wangqun 已提交
1 2 3 4 5
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>paddle web demo</title>
W
wangqun 已提交
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <style>
        .demo-nav {
            background-color: #2932e1;
            color: #fff;
        }
        .paddle-demo-card {
            margin-right: 0;
            margin-left: 0;
            background-color: #fff;
            border: 1px solid #ddd;
        }
        .infobox {
            background-color: #fff;
            border-radius: 6px;
            margin-bottom: 30px;
            padding: 20px;
            position: relative;
            min-height: 350px;
            box-sizing: border-box;
            color: #707070;
        }
        @-webkit-keyframes spin {
            from {
                -webkit-transform: rotate(0deg);
            }
            to {
                -webkit-transform: rotate(360deg);
            }
        }
        @keyframes spin {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(360deg);
            }
        }
        .data-loading {
            visibility: hidden;
            -webkit-animation: spin 1s linear 1s 5 alternate;
                    animation: spin 1s linear infinite;
        }
        #model-txt {
            visibility: hidden;
        }
        </style>
W
wangqun 已提交
54 55
    </head>
    <body>
W
wangqun 已提交
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
        <header class="navbar navbar-static-top bs-docs-nav demo-nav">
            <div class="container">
                <div class="navbar-header">
                    <div class="navbar-brand">paddleJS Demo Page</div>
                </div>
            </div>
        </header>
        <div class="container">
            <div class="col-xs-12">
                <div class="row">

                    <div class="col-lg-3 col-md-6 col-sm-6 col-xs-12 continfobox">
                        <div class="paddle-demo-card infobox text-center">
                            <div class="flip-container">
                                <div class="paddle-demo-block-wrapper">
                                    <div class="h2">操作面板:</div><input type="file" id="uploadImg">
                                    <p class="help-block">点击按钮,选择图片触发计算.</p>
                                    <p id="model-txt">模型加载中.</p>
                                    <div class="glyphicon glyphicon-refresh data-loading"></div>
                                    <div class="paddle-demo-block-wrapper">
                                        <img id="image" src="https://mms-voice.cdn.bcebos.com/mumstory/banana.jpg" style="height: 50px" alt="Responsive image">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="col-lg-3 col-md-6 col-sm-6 col-xs-12 continfobox">
                        <div class="paddle-demo-card infobox text-center">
                            <div class="flip-container">
                                <div class="paddle-demo-block-wrapper">
                                    <div class="h2">预测结果:</div><div id="txt">...</div>
                                    <div class="glyphicon glyphicon-refresh data-loading"></div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="col-lg-3 col-md-6 col-sm-6 col-xs-12 continfobox">
                        <div class="paddle-demo-card infobox text-center">
                            <div class="flip-container">
                                <div class="paddle-demo-block-wrapper">
                                    <div class="h2">性能分析:</div><div id="all-performance-time">...</div>
                                    <div class="glyphicon glyphicon-refresh data-loading"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
W
wangqun 已提交
107 108 109
        <script src="index.es6"></script>
    </body>
</html>