<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>어느 팔월의 오후 다섯시</title>
    <link>https://august5pm.tistory.com/</link>
    <description></description>
    <language>ko</language>
    <pubDate>Thu, 23 Jul 2026 12:37:40 +0900</pubDate>
    <generator>TISTORY</generator>
    <ttl>100</ttl>
    <managingEditor>august5pm</managingEditor>
    <image>
      <title>어느 팔월의 오후 다섯시</title>
      <url>https://t1.daumcdn.net/cfile/tistory/221DC94E5490692B20</url>
      <link>https://august5pm.tistory.com</link>
    </image>
    <item>
      <title>[javascript] clipboard (ios 예외처리)</title>
      <link>https://august5pm.tistory.com/78</link>
      <description>&lt;pre class=&quot;brush: js;&quot;&gt;
// 버튼 클릭 했을 때
function onClick_clipboard(){
	/* Get the text field */
	var copyText = document.getElementById(&quot;clipboard&quot;);

	var isIOS = (UserAgent.match(/i(Phone|Pod)/i) != null ) true : false;
	if(isIOS){
    	// ios 일때
		iosCopyToClipboard(copyText);
	}else{
    	// ios가 아닐때
		copyToClipboard(copyText);
	}


	/* Alert the copied text */
	alert(&quot;copy 되었습니다.&quot;);
	return false;
}

// ios가 아닐 때
function copyToClipboard(copyText){
	/* Select the text field */
	copyText.select();

	/* Copy the text inside the text field */
	document.execCommand(&quot;copy&quot;);
}

// ios 일때
function iosCopyToClipboard(el) {
	var oldContentEditable = el.contentEditable,
		oldReadOnly = el.readOnly,
		range = document.createRange();

	el.contentEditable = true;
	el.readOnly = false;
	range.selectNodeContents(el);

	var s = window.getSelection();
	s.removeAllRanges();
	s.addRange(range);

	// A big number, to cover anything that could be inside the element.
	el.setSelectionRange(0, 999999); 

	el.contentEditable = oldContentEditable;
	el.readOnly = oldReadOnly;

	document.execCommand('copy');
}
&lt;/pre&gt;</description>
      <category>프로그래밍/javascript</category>
      <author>august5pm</author>
      <guid isPermaLink="true">https://august5pm.tistory.com/78</guid>
      <comments>https://august5pm.tistory.com/78#entry78comment</comments>
      <pubDate>Tue, 3 Sep 2019 15:22:28 +0900</pubDate>
    </item>
    <item>
      <title>[sass] 웹스톰에서 node-sass 설정 해주기</title>
      <link>https://august5pm.tistory.com/77</link>
      <description>&lt;p&gt;1. 터미널에서 npm 으로&amp;nbsp; node-sass 설치&lt;/p&gt;
&lt;p&gt;npm&amp;nbsp;install&amp;nbsp;node-sass&amp;nbsp;&amp;ndash;g&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; data-filename=&quot;node_sass_1.jpg&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/yVs1x/btqxHBOsr9P/6ePdkLfryGkFU3D6qinzf1/img.jpg&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/yVs1x/btqxHBOsr9P/6ePdkLfryGkFU3D6qinzf1/img.jpg&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/yVs1x/btqxHBOsr9P/6ePdkLfryGkFU3D6qinzf1/img.jpg&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FyVs1x%2FbtqxHBOsr9P%2F6ePdkLfryGkFU3D6qinzf1%2Fimg.jpg&quot; data-filename=&quot;node_sass_1.jpg&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. 웹스톰에서 node-sass 설정&lt;/p&gt;
&lt;p&gt;1) Program&lt;/p&gt;
&lt;p&gt;C:\Users\DF-125_USER\AppData\Roaming\npm\node-sass&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2) Arguments&lt;/p&gt;
&lt;p&gt;--source-map&amp;nbsp;true&amp;nbsp;--output-style&amp;nbsp;compressed&amp;nbsp;$FilePathRelativeToProjectRoot$&amp;nbsp;$FileParentDir$/css/$FileNameWithoutExtension$.css&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3) Output paths to refresh&lt;/p&gt;
&lt;p&gt;$FileParentDir$/css/$FileNameWithoutExtension$.css:$FileParentDir$/css/$FileNameWithoutExtension$&lt;a href=&quot;.css.map&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;.css.map&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;4)&amp;nbsp; Working directory&lt;br /&gt;$ProjectFileDir$&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; data-filename=&quot;node_sass_2.jpg&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/byZR4P/btqxG7tuMEf/MpZ9fiRUuKCLrAkPhKsKM1/img.jpg&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/byZR4P/btqxG7tuMEf/MpZ9fiRUuKCLrAkPhKsKM1/img.jpg&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/byZR4P/btqxG7tuMEf/MpZ9fiRUuKCLrAkPhKsKM1/img.jpg&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbyZR4P%2FbtqxG7tuMEf%2FMpZ9fiRUuKCLrAkPhKsKM1%2Fimg.jpg&quot; data-filename=&quot;node_sass_2.jpg&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;</description>
      <category>프로그래밍/css</category>
      <author>august5pm</author>
      <guid isPermaLink="true">https://august5pm.tistory.com/77</guid>
      <comments>https://august5pm.tistory.com/77#entry77comment</comments>
      <pubDate>Fri, 23 Aug 2019 14:02:31 +0900</pubDate>
    </item>
    <item>
      <title>[javascript] 현재 페이지 이름 가져오기</title>
      <link>https://august5pm.tistory.com/76</link>
      <description>&lt;pre class=&quot;brush: js;&quot;&gt;
/**
 *	페이지 이름 가져오기
 *	@return pageName 현재 페이지 이름
 */
function getPageName(){
	var pageName = &quot;&quot;;

	var tempPageName = window.location.href;
	var strPageName = tempPageName.split(&quot;/&quot;);
	pageName = strPageName[strPageName.length-1].split(&quot;?&quot;)[0];

	return pageName;
}
&lt;/pre&gt;</description>
      <category>프로그래밍/javascript</category>
      <author>august5pm</author>
      <guid isPermaLink="true">https://august5pm.tistory.com/76</guid>
      <comments>https://august5pm.tistory.com/76#entry76comment</comments>
      <pubDate>Thu, 17 Nov 2016 15:19:03 +0900</pubDate>
    </item>
    <item>
      <title>[javascript] 키보드 숫자만 입력받게 하기</title>
      <link>https://august5pm.tistory.com/75</link>
      <description>&lt;pre class=&quot;brush: js;&quot;&gt;
/**
 *	숫자만 입력받게 하기
 *	ex) this.$el.find(&quot;#inp-call&quot;).on(&quot;keydown&quot;, _.bind(this.onKeydown_inputPhone, this))
 *	onKeydown_inputPhone : function(e){
 *		return App.appView.utilView.onlyNumberTypeInput(e);
 *	}
 */
function onlyNumberTypeInput(event){
	event = event || window.event;
	var keyID = (event.which) ? event.which : event.keyCode;

	if( ( keyID &amp;gt;=48 &amp;amp;&amp;amp; keyID &amp;lt;= 57 ) || ( keyID &amp;gt;=96 &amp;amp;&amp;amp; keyID &amp;lt;= 105 ) || keyID == 8
            || keyID == 9 || keyID == 46 || keyID == 37 || keyID == 39 )
	{
		return;
	}
	else
	{
		return false;
	}
}
&lt;/pre&gt;</description>
      <category>프로그래밍/javascript</category>
      <author>august5pm</author>
      <guid isPermaLink="true">https://august5pm.tistory.com/75</guid>
      <comments>https://august5pm.tistory.com/75#entry75comment</comments>
      <pubDate>Thu, 17 Nov 2016 15:13:58 +0900</pubDate>
    </item>
    <item>
      <title>[javascript] 정규식 유효성 검사</title>
      <link>https://august5pm.tistory.com/74</link>
      <description>&lt;pre class=&quot;brush: js;&quot;&gt;
// 숫자 유효성검사 정규식
var EXP_NUMBER = /^[0-9]*$/;

// 핸드폰 번호 유효성검사 정규식
var EXP_MOBILENUMBER = /^(01[016789]{1}|02|0[3-9]{1}[0-9]{1})-?[0-9]{3,4}-?[0-9]{4}$/;

// 공백 유효성검사 정규식
var EXP_BLANK = /^\s+|\s+$/g;

// 이메일 유효성검사 정규식
var EXP_EMAIL = /^[0-9a-zA-Z]([-_\.]?[0-9a-zA-Z])*@[0-9a-zA-Z]([-_\.]?[0-9a-zA-Z])*\.[a-zA-Z]{2,3}$/i;


/**
 *	정규식 검사하기
 *	@param exp 정규식
 *	@param val 인풋텍스트필드에 입력된 값
 */
function checkExp(exp, val){
	var isExpTest = true;
	if(exp == EXP_BLANK){
		// 공백체크 경우
		if(val.replace( exp, '' ) == &quot;&quot;){
			isExpTest = false;
		}
	}else{
		// 공백체크 아닌 경우
		if(!exp.test(val)){
			isExpTest = false;
		}
	}
	return isExpTest;
}
&lt;/pre&gt;
&lt;br&gt;
&lt;br&gt;
1. 숫자 유효성 검사
&lt;pre class=&quot;brush: js;&quot;&gt;
var isCheckNumber = checkExp(EXP_NUMBER, inputVar) // true or false
&lt;/pre&gt;
&lt;br&gt;
&lt;br&gt;
2. 휴대폰번호 유효성 검사
&lt;pre class=&quot;brush: js;&quot;&gt;
var isCheckMobileNumber = checkExp(EXP_MOBILENUMBER, inputVar) // true or false
&lt;/pre&gt;
&lt;br&gt;
&lt;br&gt;
3. 공백 유효성 검사
&lt;pre class=&quot;brush: js;&quot;&gt;
var isCheckBlank = checkExp(EXP_BLANK, inputVar) // true or false
&lt;/pre&gt;
&lt;br&gt;
&lt;br&gt;
4. 이메일 유효성 검사
&lt;pre class=&quot;brush: js;&quot;&gt;
var isCheckEmail = checkExp(EXP_EMAIL, inputVar) // true or false
&lt;/pre&gt;</description>
      <category>프로그래밍/javascript</category>
      <category>유효성검사</category>
      <category>정규식</category>
      <author>august5pm</author>
      <guid isPermaLink="true">https://august5pm.tistory.com/74</guid>
      <comments>https://august5pm.tistory.com/74#entry74comment</comments>
      <pubDate>Thu, 17 Nov 2016 15:07:45 +0900</pubDate>
    </item>
    <item>
      <title>[javascript] 3자리 마다 쉼표 찍기</title>
      <link>https://august5pm.tistory.com/73</link>
      <description>&lt;pre class=&quot;brush: js;&quot;&gt;
/**
 *	3자리수 마다 쉼표
 *	@param n 숫자
 */
function commify(n) {
	var reg = /(^[+-]?\d+)(\d{3})/;   // 정규식
	n += '';                          // 숫자를 문자열로 변환

	while (reg.test(n))
		n = n.replace(reg, '$1' + ',' + '$2');

	return n;
}
&lt;/pre&gt;</description>
      <category>프로그래밍/javascript</category>
      <author>august5pm</author>
      <guid isPermaLink="true">https://august5pm.tistory.com/73</guid>
      <comments>https://august5pm.tistory.com/73#entry73comment</comments>
      <pubDate>Thu, 17 Nov 2016 14:45:08 +0900</pubDate>
    </item>
    <item>
      <title>[javascript] 배열 오름차순 내림차순 정렬</title>
      <link>https://august5pm.tistory.com/72</link>
      <description>1. 오름차순 정렬
&lt;pre class=&quot;brush: js;&quot;&gt;/**
 *	오름차순 정렬
 *	@param a 숫자
 *	@param b 숫자
 *	array.sort(compNumber)
 */
 function compNumber(a,b){
	return a - b;
}
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
2. 내림차순 정렬
&lt;pre class=&quot;brush: js;&quot;&gt;/**
 *	내림차순 정렬
 *	@param a 숫자
 *	@param b 숫자
 *	array.sort(compNumberReverse)
 */
function compNumberReverse(a,b){
	return b - a;
}
&lt;/pre&gt;</description>
      <category>프로그래밍/javascript</category>
      <author>august5pm</author>
      <guid isPermaLink="true">https://august5pm.tistory.com/72</guid>
      <comments>https://august5pm.tistory.com/72#entry72comment</comments>
      <pubDate>Thu, 17 Nov 2016 14:42:54 +0900</pubDate>
    </item>
    <item>
      <title>[javascript] 리사이즈 비율 계산</title>
      <link>https://august5pm.tistory.com/71</link>
      <description>&lt;pre class=&quot;brush: js;&quot;&gt;
/**
 *	리사이즈 비율 계산
 *	@param targetWidth 변한 넓이
 *	@param targetHeight 변한 높이
 *	@param defaultWidth 원래 넓이
 *	@param defaultHeight 원래 높이
 *	@return per 비율값
 */
function sumSizePer(targetWidth, targetHeight, defaultWidth, defaultHeight){
	var perWidth = targetWidth / defaultWidth;
	var perHeight = targetHeight / defaultHeight;
	var per = 0;

	if(perWidth &gt; perHeight){
		per = perWidth;
	}else{
		per = perHeight;
	}

	return per;
}
&lt;/pre&gt;</description>
      <category>프로그래밍/javascript</category>
      <author>august5pm</author>
      <guid isPermaLink="true">https://august5pm.tistory.com/71</guid>
      <comments>https://august5pm.tistory.com/71#entry71comment</comments>
      <pubDate>Thu, 17 Nov 2016 14:32:44 +0900</pubDate>
    </item>
    <item>
      <title>[javascript] 10의 자리 체크</title>
      <link>https://august5pm.tistory.com/70</link>
      <description>&lt;pre class=&quot;brush: js;&quot;&gt;/**
 *	10의 자리 체크 (10의 자리가 아닐때는 앞에 0을 붙인다)
 *	@param num 숫자
 *	@return tempNum 10의 자리가 아닌경우 앞자리에 0을 붙인 값
 */
function digit(num){
	var tempNum = 0;

	if(num&amp;lt;10){
		tempNum = &quot;0&quot;+num;
	}else{
		tempNum = num;
	}

	return tempNum;
}
&lt;/pre&gt;</description>
      <category>프로그래밍/javascript</category>
      <author>august5pm</author>
      <guid isPermaLink="true">https://august5pm.tistory.com/70</guid>
      <comments>https://august5pm.tistory.com/70#entry70comment</comments>
      <pubDate>Thu, 17 Nov 2016 14:29:23 +0900</pubDate>
    </item>
    <item>
      <title>[javascript] 1차 방정식</title>
      <link>https://august5pm.tistory.com/69</link>
      <description>&lt;pre class=&quot;brush: js;&quot;&gt;
/**
 *	1차 방정식
 *	@param a, b, c
 */
function linearEquation(a, b, c){
	var xx = (b*c)/a;
	return xx
}
&lt;/pre&gt;</description>
      <category>프로그래밍/javascript</category>
      <author>august5pm</author>
      <guid isPermaLink="true">https://august5pm.tistory.com/69</guid>
      <comments>https://august5pm.tistory.com/69#entry69comment</comments>
      <pubDate>Thu, 17 Nov 2016 14:26:44 +0900</pubDate>
    </item>
  </channel>
</rss>