--- a/web/static/res/js/incplayer.js Wed Jan 16 12:12:51 2013 +0100
+++ b/web/static/res/js/incplayer.js Wed Jan 16 21:26:15 2013 +0100
@@ -48,6 +48,8 @@
this.nextPage = nextPage;
this.videoDivId = videoDivId;
+ this.readUrlVideosIndex();
+
// Control
this.playButton = $("#" + playButtonId).get(0);
this.hdSdButton = $("#" + hdSdButtonId).get(0);
@@ -824,6 +826,25 @@
}
return "";
};
+
+ this.createUrlVideosIndex = function(index1, index2, index3)
+ {
+ return ((index1 << 16) | (index2 << 8) | index3) << 4;
+ }
+
+ this.readUrlVideosIndex = function()
+ {
+ var query = window.location.search.substring(1);
+ if (query.length < 0) {
+ return;
+ }
+
+ var number = parseInt(query);
+ number = this.createUrlVideosIndex(20, 30, 44);
+
+ console.log("query: " + number);
+ console.log(n);
+ };
}
var incPlayer = new IncPlayer();