ECN>> ui>> 返回
项目作者: kimkee

项目描述 :
HTML,CSS,JS UI
高级语言: JavaScript
项目地址: git://github.com/kimkee/ui.git
创建时间: 2020-05-06T08:33:45Z
项目社区:https://github.com/kimkee/ui

开源协议:

下载


``` ![image](https://user-images.githubusercontent.com/6386956/109746945-9de52980-7c19-11eb-8f92-b4092070be93.png) ### Select ``` html //기본UI // jQuery selectmenu(); ``` ### 별점 ``` html
// 별점 보기
3.5
// 별점 주기 버튼
0
``` ![image](https://user-images.githubusercontent.com/6386956/81248311-02b21080-9057-11ea-8174-fa4922a978d0.png) ### 탭UI ``` html
탭내용1
탭내용2
``` ![image](https://user-images.githubusercontent.com/6386956/81248519-748a5a00-9057-11ea-9c37-a7ba4f965ca6.png) ### 아코디언 ``` html
  • 타이틀
    내용
  • 타이틀
    내용
  • 타이틀
    내용
``` ![image](https://user-images.githubusercontent.com/6386956/81160926-b4a0fc80-8fc5-11ea-8a31-f68701e4e9e8.png) ### 툴팁레이어 ``` html !

안내

  • 가능한 이메일을 사용바랍니다.
``` ### 리스트 More Load ``` html
    出错啦~ -codez

    "出错啦~{code=404, servlet=dispatcherServlet, uri=/inc/list_more.html}"

```

ui.js

HTML,CSS,JS UI

https://kimkee.github.io/ui/

https://kimkee.github.io/ui/static/js/ui.js

ui.alert();

커스텀 알럿창 Alert UI

  1. ui.alert('공통 알럿창입니다.'); // 옵션없이 메시지만..
  2. ui.alert('공통 알럿창입니다.',{ // 알럿 옵션들
  3. tit:"알럿타이틀",
  4. ycb:function(){
  5. console.log('알럿확인결과');
  6. },
  7. ybt:"확인" // 기본값 "확인"
  8. });

ui.confirm();

커스텀 컨펌창 Confirm UI

  1. ui.confirm('공통 컨펌창 입니다.',{ // 컨펌 창 옵션들
  2. tit:"컨펌타이틀",
  3. ycb:function(){
  4. console.log('컨펌확인결과');
  5. },
  6. ncb:function(){
  7. console.log('컨펌취소결과');
  8. },
  9. ybt:"확인", // 기본값 "확인"
  10. nbt:"취소" // 기본값 "취소"
  11. });

ui.toast();

토스트창 하단에서 올라오는 알림메시지 UI

  1. // 토스트 창띄우기
  2. ui.toast('토스트메시지입니다.');
  3. ui.toast('토스트메시지입니다.',{
  4. cls:'abcd', // null , string
  5. bot:74, // 바닥에서 띄울 간격
  6. sec:3000 // 사라질 시간 number
  7. });

ui.popup

레이어팝업 뛰우기 (전체,가운데,하단에 띄우기) 히스토리백 historyback 레이어팝업 닫기 지원

  1. ui.popup.open('pop-sample1'); // 팝레이어열기
  2. ui.popup.close('pop-sample1'); // 팝레이어닫기
  3. ui.popup.refresh('pop-sample1'); // 팝스크롤새로고침
  4. ui.popup.open('pop-sample1',{ // 레이어팝업 콜백
  5. ocb:function(){
  6. console.log("pop-sample1 열림");
  7. },
  8. ccb:function(){
  9. console.log("pop-sample1 닫힘");
  10. }
  11. });
  1. <article class="pop-layer a pop-sample1" id="pop-sample1">
  2. <div class="pbd">
  3. <div class="phd">
  4. <div class="in">
  5. <h1 class="ptit">타이틀</h1>
  6. <button type="button" class="btnPopClose">닫기</button>
  7. </div>
  8. </div>
  9. <div class="pct">
  10. <main class="poptents">
  11. 내용
  12. </main>
  13. </div>
  14. <div class="pbt">
  15. <div class="bts">
  16. <a href="javascript:;" class="btn e">버튼</a>
  17. <a href="javascript:;" class="btn a">버튼</a>
  18. </div>
  19. </div>
  20. </div>
  21. </article>

ui.isUA(t);

  1. ui.isUA("Chrome"); // true
  2. ui.isUA("Windows"); // false
  3. ui.isUA("Chrome Windows"); // false

ui.form.attach();

첨부파일 UI

  1. <span class="ui-add-file on" data-ui="attach">
  2. <span class="btn-attach btn">
  3. <label class="fileButton">파일선택<input type="file" class="fileInput" accept="*/*"></label>
  4. </span>
  5. <span class="file">
  6. <span class="loc">파일이름.psd</span>
  7. <button type="button" class="delete">삭제</button>
  8. </span>
  9. </span>

ui.form.chkall();

첵크박스 모두 첵크

  1. <label class="checkbox"><input type="checkbox" data-check="all" data-check-id="checkTest1"><span>전체선택</span></label>
  2. <label class="checkbox"><input type="checkbox" data-check="check" data-check-id="checkTest1"><span>선택1</span></label>
  3. <label class="checkbox"><input type="checkbox" data-check="check" data-check-id="checkTest1"><span>선택2</span></label>
  4. <label class="checkbox"><input type="checkbox" data-check="check" data-check-id="checkTest1"><span>선택3</span></label>

image

ui.form.spinner();

수량입력 최고수량 data-max=”5”

  1. <div class="ui-amts" data-min="1" data-max="5">
  2. <input type="text" value="1" class="amt" title="수량선택">
  3. <button type="button" class="bt minus">수량더하기</button>
  4. <button type="button" class="bt plus">수량빼기</button>
  5. </div>

ui.form.spined();

수량선택

  1. <span class="ui-amtd" data-max="5"><input class="amt" value="3" type="number"></span>
  2. <span class="ui-amtd" data-max="12"><input class="amt" value="5" type="number"></span>
  3. <span class="ui-amtd" data-max="20"><input class="amt" value="15" type="number"></span>

image

ui.loading;

로딩중… ui.loading.show(); ui.loading.hide();

  1. ui.loading.show(); // 로딩열기
  2. ui.loading.hide(); // 로딩닫기

ui.datePick

달력 날짜 선택 - 일선택,주선택,월선택

  1. <span class="input db ui-date"><input type="text" placeholder="YYYY-MM-DD" class="datepicker" readonly></span>
  2. <div class="weeks"><span id="START_DT"></span> ~ <span id="END_DT"></span></div>
  3. <span class="ui-date input db week"><input type="text" id="schedWeek" value="2019-04-09" placeholder="YYYY-MM-DD" class="datepicker" readonly></span>
  4. <span class="input db ui-date"><input type="text" class="datepicker_month" placeholder="YYYY-MM-DD" value="2019-06" readonly></span>

image
image
image
image

ui.tog

토글 UI

  1. <a href="javascript:;" data-ui-tog="btn" data-ui-tog-val="tog_sample1" class="btn">토글UI</a>
  2. <div data-ui-tog="ctn" data-ui-tog-val="tog_sample1">
  3. <p>토글내용 토글내용</p>
  4. <p>토글내용 토글내용</p>
  5. </div>

ui.lock.using();

화면 스크롤 잠금,풀기 (레이어팝업 띄울때 사용)

  1. ui.lock.using(true); // 잠금
  2. ui.lock.using(false); // 풀기

쿠키설정,

  1. ui.cookie.set(cname, cvalue, exdays); // cname(이름), cvalue(값), exdays(시간)
  2. ui.cookie.get(cname); // cname(이름)

버튼

  1. <a href="javascript:;" class="btn xs">버튼</a>
  2. <a href="javascript:;" class="btn sm">버튼</a>
  3. <a href="javascript:;" class="btn md">버튼</a>
  4. <a href="javascript:;" class="btn lg">버튼</a>
  5. <a href="javascript:;" class="btn xl">버튼</a>
  6. <a href="javascript:;" class="btn" disabled>버튼</a>
  7. <button type="button" class="btn" disabled>버튼</button>

image

폼요소

  1. <label class="checkbox"><input type="checkbox"><span class="txt">선택</span></label>
  2. <label class="radio"><input type="radio" name="radio1"><span class="txt">선택</span></label>
  3. <div class="ui-chk"><input type="checkbox" title="텍스트" checked><em></em></div>

image

입력

``` html


검색