Quote:
Originally Posted by TheRunner
i do not understand why all this fight ? all here know you recoded it and he re-upload it so no problem relax mike :)
Of course we did all this , we owe you thanks , and now what do you say this now? , Because one of your subject did not see ?? Oh im so sorry for that
|
stop spreading cancer
Code:
var xhr;
function Uhrzeitanzeigen(){
if (!document.all && !document.getElementById) {
return;
}
var Stunden = ServerTime.getHours();
var Minuten = ServerTime.getMinutes();
var Sekunden = ServerTime.getSeconds();
ServerTime.setSeconds(Sekunden + 1);
if (Stunden <= 9) {
Stunden = "0" + Stunden;
}
if (Minuten <= 9) {
Minuten = "0" + Minuten;
}
if (Sekunden <= 9) {
Sekunden = "0" + Sekunden;
}
jQuery('#timerClock').text(Stunden.toString()+':'+Minuten.toString()+':'+Sekunden.toString());
}
function tTimer(iEndTimeStamp, iTimeStamp, sElement) {
iTimeStamp = iTimeStamp - Math.round(+new Date() / 1000) - iEndTimeStamp;
if (iTimeStamp < 0) {
jQuery('#'+sElement).html('00:00:00');
return false;
}
diffDay = iTimeStamp / (3600 * 24 );
diffDay = diffDay.toString();
diffDay = diffDay.split(".");
diffHour = iTimeStamp / 3600 % 24;
diffHour = diffHour.toString();
diffHour = diffHour.split(".");
diffMin = iTimeStamp / 60 % 60;
diffMin = diffMin.toString();
diffMin = diffMin.split(".");
diffSek = iTimeStamp % 60;
diffSek = diffSek.toString();
diffSek = diffSek.split(".");
if(diffDay[0] != 0){
jQuery('#'+sElement).html(diffDay[0] + ':' + checkLength(diffHour[0]) + ':' + checkLength(diffMin[0]) + ':' + checkLength(diffSek[0]));
return true;
}
jQuery('#'+sElement).html(checkLength(diffHour[0]) + ':' + checkLength(diffMin[0]) + ':' + checkLength(diffSek[0]));
return true;
}
function overOverLayer(){
overOverLayerClose();
jQuery('<div id="ovd-overlay" class="ovd-overlay ovd-overlay-fixed"></div>').appendTo('body');
jQuery('<div id="ovd-loading"><div></div></div>').appendTo('body');
}
function overOverLayerClose(){
jQuery('#ovd-loading, #ovd-overlay').remove();
}
function checkLength(sString) {
sString = sString.toString();
if (sString.length == 1) {
sString = '0' + sString;
}
return sString;
}
function reloadCaptcha(){
jQuery('#captchaInput').val( '' ).removeClass( 'error' );
jQuery('#captcha .info').removeClass( 'wrong' );
jQuery.getJSON('/ajax/gencaptcha', function(data) {
sCaptcha = data['captcha'];
jQuery('#captchaImage').attr('src', '/tmp/'+sCaptcha+'.png');
jQuery('#captchaHidden').val( sCaptcha );
});
}
function itemInfo(){
jQuery( document ).tooltip({
items: "[data-itemInfo], [title]",
position: { my: "left+5 center", at: "right center"},
content: function() {
var element = jQuery( this );
if(jQuery( this ).prop("tagName").toUpperCase() == 'IFRAME'){
return;
}
if ( element.is( "[data-itemInfo]" ) ) {
if(element.parent().parent().find('.itemInfo').html() == ''){
return;
}
return element.parent().parent().find('.itemInfo').html();
}
if ( element.is( "[title]" ) ) {
return element.attr( "title" );
}
}
});
}
function ajaxReload(){
if(xhr && xhr.readystate != 4){
xhr.abort();
}
}
function loginAction(bLoginBox){
overOverLayer();
sBefore = '.box ';
if(bLoginBox){
sBefore = '#modalStatus ';
}
jQuery(sBefore+'.errorBox').addClass('hidden');
jQuery(sBefore+'.errorBox span.message').text('');
sUsername = jQuery(sBefore+'.usernameInputLogin').val();
sPassword = jQuery(sBefore+'.passwordInputLogin').val();
jQuery.post("/auth/login/", { 'username': sUsername,'password': sPassword }
).done(function(data) {
if(data['state'] == 'success'){
window.location = '/panel/account';
return true;
}else if(data['state'] == 'notactive'){
jQuery(sBefore+'.errorBox span.message').text('please active your account.');
}else if(data['state'] == 'blocked'){
jQuery(sBefore+'.errorBox span.message').text('You blocked '+data['end']+'. Reason: '+data['reason']);
}else if(data['state'] == 'user'){
jQuery(sBefore+'.errorBox span.message').text('There are problems with the security of your account, please click on the link in your eMail, to make sure that this is your account.');
}else{
jQuery(sBefore+'.errorBox span.message').text('username or password not correct.');
}
jQuery(sBefore+'.errorBox').removeClass('hidden');
overOverLayerClose();
});
}
function toggleSupportName(){
if(jQuery('#idSupportName').css('display') == 'none'){
jQuery('#idSupportName').show('blind');
jQuery('#idSupportPlus').removeClass('fa-plus').addClass('fa-minus');
}else{
jQuery('#idSupportName').hide('blind');
jQuery('#idSupportPlus').removeClass('fa-minus').addClass('fa-plus');
}
}
function reloadCoins(){
ajaxReload();
jQuery('#reloadCoins .refresh').toggleClass('loader').toggleClass('fa-refresh');
xhr = jQuery.ajax({
url : "/panel/ajax/info/",
type: "POST",
dataType: "json",
data: {serverid: 1, vipcoins: 1},
success : function(data){
jQuery('.classWebPoints').text(getFormatNumber(data.webcoins));
jQuery('#reloadCoins .refresh').toggleClass('loader').toggleClass('fa-refresh');
},
error: function(e) {
jQuery('#reloadCoins .refresh').toggleClass('loader').toggleClass('fa-refresh');
}
});
}
function getFormatNumber(number) {
number = '' + number;
if (!number.length > 3) {
return number;
}
var mod = number.length % 3;
var output = (mod > 0 ? (number.substring(0,mod)) : '');
for (i=0 ; i < Math.floor(number.length / 3); i++) {
if ((mod == 0) && (i == 0)){
output += number.substring(mod+ 3 * i, mod + 3 * i + 3);
}else{
output+= '.' + number.substring(mod + 3 * i, mod + 3 * i + 3);
}
}
return (output);
}
(function($){
$.fn.setCursorToTextEnd = function() {
moveCursorToEnd(this);
};
})(jQuery);
function moveCursorToEnd(input) {
var originalValue = input.val();
input.val('');
input.blur().focus().val(originalValue);
}
function showLogin(){
jQuery('#modalStatus h3').text('Log in to our website');
jQuery('#modalStatus .text').html(
'<form onsubmit="loginAction(true);return false;" method="post">'+
'<div class="hidden errorBox">'+
'<div class="alert alert-danger">'+
'<span class="message"></span>'+
'</div>'+
'</div>'+
'<div class="input-group margin-bottom-20">'+
'<span class="input-group-addon">'+
'<i class="fa fa-user"></i>'+
'</span>'+
'<input type="text" class="form-control usernameInputLogin" name="username" placeholder="Username" />'+
'</div>'+
'<div class="input-group margin-bottom-20">'+
'<span class="input-group-addon">'+
'<i class="fa fa-lock"></i>'+
'</span>'+
'<input type="password" class="form-control passwordInputLogin" name="password" placeholder="*****" />'+
'</div>'+
'<div class="controls form-inline">'+
'<div class="row">'+
'<div class="col-sm-9 col-xs-7">'+
'<ul class="list-unstyled">'+
'<li>You dont have an Account? <a href="/user/register/">Register</a></li>'+
'<li>Forget your Password, <a href="/user/lost-password/">click here</a> to reset your password.</li>'+
'</ul>'+
'</div>'+
'<div class="col-sm-3 col-xs-5 pull-right">'+
'<button class="btn-block btn btn-warning">Login</button>'+
'</div>'+
'</div>'+
'</div>'+
'<section class="margin-top-10 pull-right">'+
'<a class="btn btn-primary" href="/facebook/login/"><i class="fa fa-facebook"></i> Login with Facebook</a>'+
'</section>'+
'<div class="clearfix"></div>'+
'</form>'
);
jQuery('#modalStatus').modal('toggle');
}
function adjustModalMaxHeightAndPosition(){
jQuery('.modal').each(function(){
if(jQuery(this).hasClass('in') == false){
jQuery(this).show(); /* Need this to get modal dimensions */
}
var contentHeight = jQuery(window).height() - 60;
var headerHeight = jQuery(this).find('.modal-header').outerHeight() || 2;
var footerHeight = jQuery(this).find('.modal-footer').outerHeight() || 2;
jQuery(this).find('.modal-content').css({
'max-height': function () {
return contentHeight;
}
});
jQuery(this).find('.modal-body').css({
'max-height': function () {
return (contentHeight - (headerHeight + footerHeight));
}
});
jQuery(this).find('.modal-dialog').addClass('modal-dialog-center').css({
'margin-top': function () {
return -(jQuery(this).outerHeight() / 2);
},
'margin-left': function () {
return -(jQuery(this).outerWidth() / 2);
}
});
if(jQuery(this).hasClass('in') == false){
jQuery(this).hide(); /* Hide modal */
}
});
}
if (jQuery(window).height() >= 320){
jQuery(window).resize(adjustModalMaxHeightAndPosition).trigger("resize");
}
jQuery(document).ready(function() {
itemInfo();
});
this JS is stolen from KoKsPfLanzE Websites :3
meanwhile Garoofie is saying this is my website pl0x stop rlesing here :'(