code refactor. centralized js for functions.

This commit is contained in:
Igor Barkov [iwork]
2019-01-15 13:52:15 +02:00
parent b742d8606d
commit 6113e8ed05
4 changed files with 14 additions and 15 deletions

View File

@@ -213,15 +213,11 @@ if (!empty($_GET['buy'])) {
<script src="js/jquery-1.7.2.min.js"></script>
<script src="js/jquery.simplemodal.js"></script>
<script src="js/jquery.ui.js?100"></script>
<script>
function leave() {
top.frames['main'].location = 'city.php?cp'
}
</script>
<script src="js/main.js"></script>
</head>
<body>
<h1>Государственный магазин</h1>
<a href=# onclick=leave()> ← выйти на Центральную площадь</a>
<a href=# onclick=leave('city.php?cp')> ← выйти на Центральную площадь</a>
<div><?php if (!empty($status)) err($status); ?></div>
<TABLE width=100% cellspacing="0" cellpadding="4">
<TR>