integration/content.html
author veltr
Mon, 07 Jan 2013 15:54:35 +0100
changeset 70 afa0cdb56132
parent 64 458cc4576415
child 73 fb4d0566ab19
permissions -rw-r--r--
Version 1.14
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
50
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
     1
<!DOCTYPE html>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
     2
<html lang="fr">
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
     3
    <head>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
     4
        <meta charset="utf-8">
64
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
     5
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
50
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
     6
        <title>The End - Visionnage de la séquence "{{content.title}}"</title>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
     7
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
     8
        <!-- Mobile Specific Metas -->
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
     9
        <meta name="viewport" content="initial-scale=1,user-scalable=no,maximum-scale=1,width=device-width" />
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    10
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    11
        <link rel="stylesheet" href="lib/jquery-ui.css" />
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    12
        <link rel="stylesheet" href="css/theend.css" />
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    13
        <script type="text/javascript" src="lib/jquery.min.js"></script>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    14
        <script type="text/javascript" src="lib/jquery-ui.min.js"></script>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    15
        <script type="text/javascript" src="lib/jquery.ui.touch-punch.min.js"></script>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    16
        <script type="text/javascript" src="lib/underscore-min.js"></script>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    17
        <script type="text/javascript" src="js/init.js"></script>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    18
        <script type="text/javascript" src="js/model.js"></script>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    19
        <script type="text/javascript" src="js/ldt-serializer.js"></script>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    20
        <script type="text/javascript" src="js/ldt-annotate.js"></script>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    21
        <script type="text/javascript" src="js/contentplayer.js"></script>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    22
        <script type="text/javascript">
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    23
            var matches = document.location.href.match(/project=([^?&=#]+)/);
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    24
            project = matches ? decodeURIComponent(matches[1]) : "4160b910-3a3a-11e2-9b33-12313c033dc2";
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    25
            IriSP.endpoints = {
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    26
                annotations_by_timecode : "http://theend-integ.ftinfo.fr/theend/api/ldt/1.0/segments/bytimecode/__CONTENT_ID__/__BEGIN__/__END__",
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    27
                post_annotation : "testdata/post-test.php",
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    28
                tag_page : "tag.html?tag=__TAG__"
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    29
            };
57
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    30
            if (typeof window.localStorage !== "undefined" && window.localStorage.getItem !== "undefined") {
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    31
                var res = window.localStorage.getItem("resolution") || "SD";
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    32
            } else {
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    33
                var res = "SD";
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    34
            }
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    35
            IriSP.video_url_transform = function(url) {
58
00632d0dee47 Corrected HD/SD and added link to level 1
veltr
parents: 57
diff changeset
    36
                return url.replace(/[SH]D(\.[a-z0-9]+)$/,res + "$1");
57
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    37
            }
50
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    38
            $(function() {
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    39
                IriSP.contentplayer({
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    40
                    project_url: "http://theend-integ.ftinfo.fr/theend/ldt/cljson/id/" + project
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    41
                });
57
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    42
                
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    43
                $(".sdhdgroup").addClass(res);
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    44
                
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    45
                $(".sdhdbtn").click(function() {
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    46
                    var newres = $(this).attr("title");
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    47
                    if (res !== newres) {
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    48
                        window.localStorage.setItem("resolution", newres);
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    49
                        document.location.reload();
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    50
                    }
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    51
                    return false;
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    52
                });
50
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    53
            });
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    54
        </script>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    55
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    56
    </head>
64
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
    57
    <body class="player">
50
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    58
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    59
        <header>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    60
            <div id="title_vp">
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    61
                <a href="home.html" class= "link_prev link_img"> <img alt="Retour" src="img/retour.png" /> </a>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    62
                <h1>{{content.title}}</h1>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    63
            </div>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    64
        </header>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    65
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    66
        <section>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    67
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    68
            <div id="title_sequence" class="float_sequence">
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    69
                <ul></ul>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    70
            </div>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    71
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    72
            <!-- Video -->
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    73
            <div class="video_wrap">
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    74
                <div id="video_sequence">
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    75
                    <div class="video-wait"></div>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    76
                </div>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    77
            </div>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    78
            <!-- /Video -->
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    79
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    80
            <div id="tag_container">
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    81
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    82
                <form id="form_tag">
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    83
                    <input type="text" name="tag" placeholder="Entrez vos tags ici" />
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    84
                    <input type="submit" value="OK" />
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    85
                </form>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    86
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    87
                <div id="tag_sequence" class="float_sequence">
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    88
                    <ul></ul>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    89
                </div>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    90
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    91
            </div>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    92
        </section>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    93
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    94
        <!-- Controls container -->
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    95
        <footer id="controlContainer">
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    96
            <section id="controlbar">
64
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
    97
                <a id="btnInfo" class="btn" href="#" title="info"></a>
50
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    98
64
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
    99
                <div class="sdhdgroup">
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   100
                    <a id="btnSD" class="sdhdbtn" href="#" title="SD"></a>
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   101
                    <div class="sdhdbtn sdhdsep"></div>
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   102
                    <a id="btnHD" class="sdhdbtn" href="#" title="HD"></a>
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   103
                </div>
50
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   104
64
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   105
                <div id="progressContainer">
50
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   106
64
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   107
                    <div id="progressBar"></div>
50
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   108
64
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   109
                    <ul id="progressTime">
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   110
                        <li id="current" class="floatL">
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   111
                            0:00
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   112
                        </li>
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   113
                        <li id="duration" class="floatR">
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   114
                            0:00
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   115
                        </li>
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   116
                    </ul>
50
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   117
64
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   118
                </div>
50
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   119
64
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   120
                <a id="btnPlayPause" class="btn txt_hidden" href="#" title="play/pause"></a>
50
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   121
64
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   122
                <a id="btnChoice" class="btn" href="#" title="Choice"></a>
50
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   123
            </section>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   124
            <!-- /Controlbar container -->
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   125
        </footer>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   126
        <!-- Metanav FranceTV 	-->
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   127
        <script src="http://static.francetv.fr/js/jquery.metanav-min.js" charset="utf-8"></script>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   128
        <!-- JavaScript -->
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   129
    </body>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   130
</html>