github.com/cayleygraph/cayley@v0.7.7/templates/visualize.html (about)

     1  <!DOCTYPE html>
     2  <!--
     3  // Copyright 2014 The Cayley Authors. All rights reserved.
     4  //
     5  // Licensed under the Apache License, Version 2.0 (the "License");
     6  // you may not use this file except in compliance with the License.
     7  // You may obtain a copy of the License at
     8  //
     9  //     http://www.apache.org/licenses/LICENSE-2.0
    10  //
    11  // Unless required by applicable law or agreed to in writing, software
    12  // distributed under the License is distributed on an "AS IS" BASIS,
    13  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14  // See the License for the specific language governing permissions and
    15  // limitations under the License.
    16  -->
    17  <html>
    18  <head>
    19  {{template "head"}}
    20  <script src="/static/third_party/sigmajs/sigma.min.js"></script>
    21  <script src="/static/third_party/sigmajs/plugins/sigma.layout.forceAtlas2.min.js"></script>
    22  <script src="/static/third_party/sigmajs/plugins/sigma.parsers.json.min.js"></script>
    23  <script src="/static/third_party/sigmajs/plugins/sigma.plugins.animate.min.js"></script>
    24  </head>
    25  <body>
    26  <div class="page-container">
    27  
    28    {{template "top_navbar"}}
    29  
    30    <div class="container-fluid">
    31      <div class="row row-offcanvas row-offcanvas-left">
    32        {{template "sidebar"}}
    33        <!-- main area -->
    34        <div class="col-sm-10 col-xs-12" id="main">
    35          <div class="row">
    36            <div class="col-sm-12 col-xs-12 codecol">
    37              <textarea id="code">g.Emit("Hello World")</textarea>
    38            </div>
    39          </div>
    40          <div class="row">
    41            <div class="col-xs-12 col-sm-12">
    42              <div id="visualize" width=100% height=100%>
    43                </div>
    44            </div><!-- /.col-xs-12 main -->
    45          </div>
    46        </div> <!--/#main-->
    47      </div> <!--/.row-->
    48    </div><!--/.container-->
    49  </div><!--/.page-container-->
    50  </body>
    51  {{template "foot"}}
    52  <script src="/static/js/cayley_main.js" type="text/javascript" charset="utf-8"></script>
    53  <script src="/static/js/cayley_visualize.js" type="text/javascript" charset="utf-8"></script>
    54  </html>