integration/tag.html
author veltr
Fri, 04 Jan 2013 18:13:55 +0100
changeset 66 331e70527d74
parent 64 458cc4576415
child 73 fb4d0566ab19
permissions -rw-r--r--
Set version to 1.13
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 par tag "{{tag}}"</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/tagplayer.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(/tag=([^?&=#]+)/);
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    24
            tag = matches ? decodeURIComponent(matches[1]) : "ENGAGEMENT";
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
                mashup_by_tag : "http://theend-integ.ftinfo.fr/theend/ldt/mashupbytag/",
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    27
                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
    28
                post_annotation : "testdata/post-test.php",
64
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
    29
                tag_page : "tag.html?tag=__TAG__"
50
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    30
            };
57
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    31
            if (typeof window.localStorage !== "undefined" && window.localStorage.getItem !== "undefined") {
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    32
                var res = window.localStorage.getItem("resolution") || "SD";
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    33
            } else {
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    34
                var res = "SD";
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    35
            }
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    36
            IriSP.video_url_transform = function(url) {
58
00632d0dee47 Corrected HD/SD and added link to level 1
veltr
parents: 57
diff changeset
    37
                return url.replace(/[SH]D(\.[a-z0-9]+)$/,res + "$1");
57
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    38
            }
50
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    39
            $(function() {
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    40
                $("h1").text(tag);
57
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    41
                
50
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    42
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    43
                IriSP.tagplayer({
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    44
                    tag : tag
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    45
                });
57
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    46
                
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    47
                $(".sdhdgroup").addClass(res);
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    48
                
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    49
                $(".sdhdbtn").click(function() {
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    50
                    var newres = $(this).attr("title");
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    51
                    if (res !== newres) {
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    52
                        window.localStorage.setItem("resolution", newres);
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    53
                        document.location.reload();
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    54
                    }
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    55
                    return false;
b7017da5a7b5 Added SD/HD Switching
veltr
parents: 50
diff changeset
    56
                });
50
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    57
            });
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    58
        </script>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    59
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    60
    </head>
64
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
    61
    <body class="player">
50
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    62
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    63
        <header>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    64
            <div id="title_vp">
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    65
                <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
    66
                <h1>{{TAG}}</h1>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    67
            </div>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    68
        </header>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    69
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    70
        <section>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    71
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    72
            <div id="title_sequence" class="float_sequence">
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    73
                <ul></ul>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    74
            </div>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    75
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    76
            <!-- Video -->
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    77
            <div class="video_wrap">
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    78
                <div id="video_sequence">
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    79
                    <div class="video-wait"></div>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    80
                </div>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    81
            </div>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    82
            <!-- /Video -->
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    83
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    84
            <div id="tag_container">
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    85
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    86
                <form id="form_tag">
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    87
                    <input type="text" name="tag" placeholder="Entrez vos tags ici" />
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    88
                    <input type="submit" value="OK" />
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    89
                </form>
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 id="tag_sequence" class="float_sequence">
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    92
                    <ul></ul>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    93
                </div>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    94
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    95
            </div>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    96
        </section>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    97
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    98
        <!-- Controls container -->
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
    99
        <footer id="controlContainer">
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   100
            <section id="controlbar">
64
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   101
                <a id="btnInfo" class="btn" href="#" title="info"></a>
50
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   102
64
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   103
                <div class="sdhdgroup">
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   104
                    <a id="btnSD" class="sdhdbtn" href="#" title="SD"></a>
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   105
                    <div class="sdhdbtn sdhdsep"></div>
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   106
                    <a id="btnHD" class="sdhdbtn" href="#" title="HD"></a>
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   107
                </div>
50
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   108
64
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   109
                <div id="progressContainer">
50
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   110
64
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   111
                    <div id="progressBar"></div>
50
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   112
64
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   113
                    <ul id="progressTime">
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   114
                        <li id="current" class="floatL">
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   115
                            00:00
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   116
                        </li>
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   117
                        <li id="duration" class="floatR">
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   118
                            00:00
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   119
                        </li>
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   120
                    </ul>
50
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   121
64
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   122
                </div>
50
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   123
64
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   124
                <a id="btnBck" class="btn txt_hidden" href="#" title="Back"></a>
50
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   125
64
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   126
                <a id="btnPlayPause" class="btn txt_hidden" href="#" title="play/pause"></a>
50
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   127
64
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   128
                <a id="btnFwd" class="btn txt_hidden" href="#" title="Forward"></a>
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   129
458cc4576415 Various fixes
veltr
parents: 58
diff changeset
   130
                <a id="btnChoice" class="btn" href="#" title="Choice"></a>
50
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   131
            </section>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   132
            <!-- /Controlbar container -->
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   133
        </footer>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   134
        <!-- Metanav FranceTV 	-->
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   135
        <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
   136
        <!-- JavaScript -->
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   137
    </body>
9cc1b66d0880 Added directory for Level 2 Integration
veltr
parents:
diff changeset
   138
</html>