diff -r 07d4049eec01 -r fb4d0566ab19 integration/content.html --- a/integration/content.html Mon Jan 07 15:54:47 2013 +0100 +++ b/integration/content.html Wed Jan 09 16:50:00 2013 +0100 @@ -27,29 +27,10 @@ post_annotation : "testdata/post-test.php", tag_page : "tag.html?tag=__TAG__" }; - if (typeof window.localStorage !== "undefined" && window.localStorage.getItem !== "undefined") { - var res = window.localStorage.getItem("resolution") || "SD"; - } else { - var res = "SD"; - } - IriSP.video_url_transform = function(url) { - return url.replace(/[SH]D(\.[a-z0-9]+)$/,res + "$1"); - } $(function() { IriSP.contentplayer({ project_url: "http://theend-integ.ftinfo.fr/theend/ldt/cljson/id/" + project }); - - $(".sdhdgroup").addClass(res); - - $(".sdhdbtn").click(function() { - var newres = $(this).attr("title"); - if (res !== newres) { - window.localStorage.setItem("resolution", newres); - document.location.reload(); - } - return false; - }); }); @@ -123,6 +104,18 @@ + +