Added full source code

This commit is contained in:
Emmanuel BENOîT 2016-01-10 11:01:49 +01:00
commit 33f8586698
1377 changed files with 123808 additions and 0 deletions

View file

@ -0,0 +1,29 @@
$(function(){
var _selected;
var _getSelected = function (text) {
if (text == '#acc-quit' || $('#acc-vacation') && text == '#acc-vacation') {
_selected = text;
} else {
_selected = '#acc-games';
}
};
var _display = function () {
$('#acc-quit').css('display', (_selected == '#acc-quit') ? 'block' : 'none');
if ($('#acc-vacation')) {
$('#acc-vacation').css('display', (_selected == '#acc-vacation') ? 'block' : 'none');
}
$('#acc-games').css('display', (_selected == '#acc-games') ? 'block' : 'none');
$('#tabs a' + _selected.replace(/acc-/, 'tab-')).addClass('selected');
};
_getSelected(location.hash);
_display();
$('#tabs a').click(function() {
$('#tabs a' + _selected.replace(/acc-/, 'tab-')).removeClass('selected');
_getSelected($(this).attr('href'));
_display();
});
});

View file

@ -0,0 +1,31 @@
$(function() {
var _viewportHeight = function() {
return self.innerHeight
|| jQuery.boxModel && document.documentElement.clientHeight
|| document.body.clientHeight;
};
var _viewportWidth = function() {
return self.innerWidth
|| jQuery.boxModel && document.documentElement.clientWidth
|| document.body.clientWidth;
};
var _handleSize = function () {
var _h = _viewportHeight();
if (_h < 560) {
$("#extframe").css('top', '280px');
} else {
$("#extframe").css('top', '50%');
}
var _w = _viewportWidth();
if (_w < 950) {
$(".internal").css('left', '475px');
} else {
$(".internal").css('left', '50%');
}
};
$(window).resize(_handleSize);
_handleSize();
});

View file

@ -0,0 +1,14 @@
function beAnnoying() {
var _t = parseInt(document.getElementById('redtime').innerHTML, 10);
_t --;
if (_t == 0) {
document.location.href = document.location.href.replace(/\.php.*$/, '.php/main/contrib');
} else {
document.getElementById('redtime').innerHTML = _t;
setTimeout('beAnnoying()', 1000);
}
}
$(function(){
setTimeout('beAnnoying()', 1000);
});

32
site/static/main/js/jquery.js vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,13 @@
$(function(){
$("#showcontents").click(function() {
$("#pcontents").css("display", "block");
$("#hidecontents").css("display", "inline");
$("#showcontents").css("display", "none");
});
$("#hidecontents").click(function() {
$("#pcontents").css("display", "none");
$("#showcontents").css("display", "inline");
$("#hidecontents").css("display", "none");
});
$("#hidecontents").css("display", "inline");
});

View file

@ -0,0 +1,30 @@
$(function(){
$("li#slright span").mouseover(function() {
$("li#slleft").css({
height: "26px",
backgroundImage: "none"
});
$("li#slleft div").css("display", "none");
$("li#slleft span").css("fontWeight", "normal");
$("li#slright").css({
height: "425px",
backgroundImage: "url(__STATICURL__/main/pics/mp-tab-2.png)"
});
$("li#slright span").css("fontWeight", "bold");
$("li#slright div").css("display", "block");
});
$("li#slleft span").mouseover(function() {
$("li#slright").css({
height: "26px",
backgroundImage: "none"
});
$("li#slright div").css("display", "none");
$("li#slright span").css("fontWeight", "normal");
$("li#slleft").css({
height: "425px",
backgroundImage: "url(__STATICURL__/main/pics/mp-tab-1.png)"
});
$("li#slleft span").css("fontWeight", "bold");
$("li#slleft div").css("display", "block");
});
});