Autofix small errors
This commit is contained in:
+11
-9
@@ -213,13 +213,15 @@ if(isset($_POST['leaveZv'])) {
|
||||
<script src="//capitalcity.old-dark.ru/js/jquery.plugins.js"></script>
|
||||
<link rel="stylesheet" href="https://capitalcity.icombats.ru/build/css/kicker-9def406a2a.css" />
|
||||
<script>function growl(title, color, message, stycky) { if(!stycky) { stycky = false; } if(!color) { color = 'Red'; } $.jGrowl(message, { header: '<img src="/i/jgrowl_moover.png" class="jgrowl-moover" title="Передвинуть" style="cursor: pointer;" /> <font style="color: '+color+';">'+title+'</font>', sticky: stycky, glue: 'before' }); }</script>
|
||||
<script>function shows() { var clas = $("#alt").attr('class'); $("#mkgrp").toggle(); if(clas == 'show') { $("#alt").attr('class','hide'); $("#alt").text('Скрыть ...'); } else { $("#alt").attr('class','show'); $("#alt").text('Создать группу'); } }</script>
|
||||
<script>function shows() {
|
||||
const clas = $("#alt").attr('class');
|
||||
$("#mkgrp").toggle(); if(clas == 'show') { $("#alt").attr('class','hide'); $("#alt").text('Скрыть ...'); } else { $("#alt").attr('class','show'); $("#alt").text('Создать группу'); } }</script>
|
||||
<link rel="stylesheet" type="text/css" href="//capitalcity.old-dark.ru/css/jquery.plugins.css" />
|
||||
<style>body { background-image: url('i/r240_1.jpg'); background-repeat: no-repeat; background-position: top right; }</style>
|
||||
</head>
|
||||
|
||||
<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor=#e2e0e0>
|
||||
<table style="width: 100%; height: 100%; border: 0px;" cellspacing="0" cellpadding="0">
|
||||
<table style="width: 100%; height: 100%; border: 0;" cellspacing="0" cellpadding="0">
|
||||
<tr valign=top>
|
||||
<td width=3% align=center> </td>
|
||||
<td>
|
||||
@@ -267,22 +269,22 @@ if(isset($_POST['leaveZv'])) {
|
||||
<div id="response"></div>
|
||||
<script>
|
||||
$(function() {
|
||||
var level = <?=(int)$user['level'];?>;
|
||||
$('#rate').load('ajax/rate_ruins.php?level='+level);
|
||||
let level =;
|
||||
$('#rate').load('ajax/rate_ruins.php?level='+level);
|
||||
|
||||
$.jGrowl.defaults.closerTemplate = '<div style="text-align: center; cursor: pointer;"><b>[ Закрыть ]</b></div>';
|
||||
$.jGrowl.defaults.closeTemplate = '<img src="i/clear.gif" alt="x" title="Закрыть" />';
|
||||
|
||||
$('body').delegate('div#jGrowl .jgrowl-moover', 'click', function() {
|
||||
var j = $(this).closest('div#jGrowl');
|
||||
var c = j.hasClass('top-right') ? 'top-left' : 'top-right';
|
||||
j.removeClass('top-left top-right').addClass(c);
|
||||
const j = $(this).closest('div#jGrowl');
|
||||
const c = j.hasClass('top-right') ? 'top-left' : 'top-right';
|
||||
j.removeClass('top-left top-right').addClass(c);
|
||||
});
|
||||
|
||||
|
||||
$("#rate").on("click", "a", function(e) {
|
||||
var level = $(this).attr("id");
|
||||
$('#rate').load('ajax/rate_ruins.php?level='+level);
|
||||
const level = $(this).attr("id");
|
||||
$('#rate').load('ajax/rate_ruins.php?level='+level);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user