Page 394 - Nodejs 교과서 개정2판
P. 394

{%	block	script	%}
           		<script>
           				window.onload	=	()	=>	{
           						if	(new	URL(location.href).searchParams.get('error'))	{
           								alert('이미	존재하는	이메일입니다.');
           						}
           				};
           		</script>
           {%	endblock	%}




         KPJO IUNM਷ ഥਗоੑೞח ಬਸ ࠁৈસפ׮

          views/error.html

           {%	extends	'layout.html'	%}


           {%	block	content	%}
           		<h1>{{message}}</h1>
           		<h2>{{error.status}}</h2>
           		<pre>{{error.stack}}</pre>
           {%	endblock	%}




         FSSPS IUNM਷ ࢲߡী ী۞о ߊࢤ೮ਸ ٸ ী۞ ղ৉ਸ ࠁৈસפ׮  ী۞ח ௑ࣛ۽ ࠊب غ૑݅ ࠳ۄ਋੷ ചݶਵ
         ۽ ࠁݶ ખ ؊ ಞܻ೤פ׮  ױ  ߓನ दীח ী۞ ղਊਸ ࠁৈ઱૑ ঋח ѱ ࠁউ࢚ જणפ׮


         ݃૑݄ਵ۽ ٣੗ੋਸ ਤೠ $44 ౵ੌੑפ׮

          public/main.css

           *	{	box-sizing:	border-box;	}
           html,	body	{	margin:	0;	padding:	0;	height:	100%;	}
           .btn	{
           		display:	inline-block;
           		padding:	0	5px;
           		text-decoration:	none;
           		cursor:	pointer;
           		border-radius:	4px;
           		background:	white;
           		border:	1px	solid	silver;
           		color:	crimson;
           		height:	37px;
           		line-height:	37px;
           		vertical-align:	top;
           		font-size:	12px;
   389   390   391   392   393   394   395   396   397   398   399