- URL 하드코딩 → .env APP_URL 기반 동적 URL로 변경 - DB 연결 하드코딩 → .env 기반으로 변경 - MySQL strict mode DATE 오류 수정
48 lines
1013 B
PHP
48 lines
1013 B
PHP
<?php
|
|
require_once($_SERVER['DOCUMENT_ROOT'] . "/session.php");
|
|
|
|
include $_SERVER['DOCUMENT_ROOT'] . '/load_header.php';
|
|
|
|
$title_message = 'The decodeURIComponent() Method';
|
|
|
|
?>
|
|
|
|
<link href="css/style.css" rel="stylesheet">
|
|
<title> <?=$title_message?> </title>
|
|
|
|
|
|
</head>
|
|
<body>
|
|
|
|
<h1>JavaScript Global Methods</h1>
|
|
<h2>The decodeURIComponent() Method</h2>
|
|
|
|
<p id="demo"></p>
|
|
|
|
<input id="source" name="source" type="text" style="width:1600px;" >
|
|
<h2>The decodeURIComponent() Method</h2>
|
|
<button type="button" id="doBtn" > 실행 </button>
|
|
<input id="source_out" name="source_out" type="text" style="width:1600px; height: 30px; font-size:20px;" >
|
|
|
|
|
|
<script>
|
|
|
|
// let encoded = encodeURIComponent(uri);
|
|
|
|
$(document).ready(function () {
|
|
|
|
$("#doBtn").click(function () {
|
|
$("#source_out").val(decodeURIComponent($("#source").val()));
|
|
});
|
|
});
|
|
|
|
$(document).ready(function(){
|
|
var loader = document.getElementById('loadingOverlay');
|
|
loader.style.display = 'none';
|
|
});
|
|
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|