Added full source code
This commit is contained in:
commit
33f8586698
1377 changed files with 123808 additions and 0 deletions
site/static/main/js
29
site/static/main/js/account.js
Normal file
29
site/static/main/js/account.js
Normal 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();
|
||||
});
|
||||
});
|
31
site/static/main/js/adapt.js
Normal file
31
site/static/main/js/adapt.js
Normal 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();
|
||||
});
|
14
site/static/main/js/annoy.js
Normal file
14
site/static/main/js/annoy.js
Normal 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
32
site/static/main/js/jquery.js
vendored
Normal file
File diff suppressed because one or more lines are too long
13
site/static/main/js/manual.js
Normal file
13
site/static/main/js/manual.js
Normal 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");
|
||||
});
|
30
site/static/main/js/sidebox.js
Normal file
30
site/static/main/js/sidebox.js
Normal 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");
|
||||
});
|
||||
});
|
Reference in a new issue