#emailAd.login-type-1 {display: none;}
#emailAd.login-type-2 {display: inline;}
#phoneAd.login-type-1 {display: inline;}
#phoneAd.login-type-2 {display: none;}if (login_type == 1)
$('#emailAd, #phoneAd').removeClass('login-type-2').addClass('login-type-1');
else if (login_type == 2)
$('#emailAd, #phoneAd').removeClass('login-type-1').addClass('login-type-2');$('#emailAd, #phoneAd').addClass('login-type-'+login_type);Тогда можно поступить так, я думаю что где-то в договоре должна быть подобная строчка - "возможность его расторжения по желанию одной из сторон".
function dec($h) {
$s = array(1=>1, 2=>2, 3=>3, 4=>4, 5=>5, 6=>6, 7=>7, 8=>8, 9=>9,'a'=>10, 'b'=>11, 'c'=>12, 'd'=>13, 'e'=>14, 'f'=>15);
return $h ? 16*dec(substr($h, 0, -1)) + $s[substr($h, -1)] : 0;
}
function hex($d) {
$s = array(1=>1, 2=>2, 3=>3, 4=>4, 5=>5, 6=>6, 7=>7, 8=>8, 9=>9, 10=>'a', 11=>'b', 12=>'c', 13=>'d', 14=>'e', 15=>'f');
return $d ? hex(floor($d/16)).$s[$d%16] : '';
} //конструктор
function itog($OneNumber, $TwoNumber, $Znak){
//методы
function dec($h) {
$s = array('a'=>10, 'b'=>11, 'c'=>12, 'd'=>13, 'e'=>14, 'f'=>15);
if ($h) {
$a = substr($h, -1);
$d = dec(substr($h, 0, -1));
if (!is_numeric($a))
$a = $s[$a];
return 16*$d + $a;
}
}
function hex($d) {
$s = array(10=>'a', 11=>'b', 12=>'c', 13=>'d', 14=>'e', 15=>'f');
if ($d) {
$a = $d % 16;
$h = hex(($d-$a)/16);
if ($a>=10)
$a = $s[$a];
return $h.$a;
}
}
$One = dec($OneNumber);
$Two = dec($TwoNumber);
switch($Znak){
case '-': $result = $One - $Two;
case '+': $result = $One + $Two;
};
$finalResult = hex($result);
echo $finalResult;
} <span id="error_message" style="display: none">Incorrect username or password</span>echo "<style>#error_message {display: block !important;}</style>";
include "login.php"; echo "Incorrect username or password";
include "login.php";include "login.php?incorrent=true" // Отдаём информацию скрипту login.php<div id="login-wrapper">
// здесь echo
<?php if ($incorrect)
echo "<span>Incorrect username or password</span>";?>
<form method="post" action="">
<ul>
... $(window).scroll(move_symbols);
2. Кроме того манипулируя с классами гораздо проще наблюдать, что происходит, в отладчике. Проще проверить наличие или отсутствия у элемента класса, чем просматривать каскад стилей для этого элемента и гадать, откуда что взялось?