client/test/test-writable-simple-no-hide.html
author rougeronj
Tue, 22 Sep 2015 15:14:10 +0200
changeset 543 5f7bebdcfc0d
parent 487 48be7ebb3187
permissions -rw-r--r--
Improve the way we init the view. The data loader send a "loaded" event, hooked by the scene.py and initializing the backbone.history and the view. We don't use redraw_active in save-once and full-json, because it was making the view initialization dependent of these file which are externals. Small fix to hide the "set saved view" button when there is only one view.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
487
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
     1
<!DOCTYPE html>
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
     2
<html lang="fr">
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
     3
    <head>
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
     4
        <meta charset="utf-8" />
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
     5
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
     6
        <title>Test de Rendu RENKAN</title>
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
     7
        <meta name="description" content="" />
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
     8
        <meta name="author" content="Institut de Recherche et d'Innovation" />
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
     9
        <script src="../lib/jquery/jquery.js"></script>
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    10
        <script src="../lib/jquery-mousewheel/jquery.mousewheel.js"></script>
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    11
        <script src="../lib/lodash/lodash.js"></script>
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    12
        <script src="../lib/backbone/backbone.js"></script>
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    13
        <script src="../lib/backbone-relational/backbone-relational.js"></script>
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    14
        <script src="../lib/paper/paper-full.js"></script>
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    15
        <script src="../js/main.js"></script>
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    16
        <script src="../js/dataloader.js"></script>
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    17
        <script src="../js/router.js"></script>
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    18
        <script src="../js/models.js"></script>
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    19
        <script src="../js/defaults.js"></script>
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    20
        <script src="../js/i18n.js"></script>
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    21
        <script src="../dist/js/templates.js"></script>
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    22
        <script src="../js/full-json.js"></script>
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    23
        <script src="../js/ldtjson-bin.js"></script>
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    24
        <script src="../js/list-bin.js"></script>
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    25
        <script src="../js/wikipedia-bin.js"></script>
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    26
        <script data-main="../js/main-renderer" src="../lib/requirejs/require.js"></script>
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    27
        <script type="text/javascript">
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    28
            function startRenkan(){
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    29
            	var _renkan = new Rkns.Renkan({
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    30
                    property_files: [ "../data/properties.json" ],
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    31
                    hide_nodes: false,
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    32
                    /*user_id: "u-iri",
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    33
                    language: "fr",
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    34
                    node_fill_color: false*/
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    35
                	show_bins: false,
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    36
                    static_url: "../"
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    37
                });
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    38
                Rkns.jsonIO(_renkan, {
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    39
                    url: "/simple-persist"
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    40
                });
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    41
            };
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    42
        </script>
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    43
        <link rel="stylesheet" href="../css/renkan.css" />
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    44
    </head>
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    45
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    46
    <body>
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    47
        <div id="renkan"></div>
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    48
    </body>
48be7ebb3187 add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
diff changeset
    49
</html>