JQUERY
-
lightslider auto height(라이트슬라이드 자동높이 조절)JQUERY 2021. 4. 15. 16:50
$('#imageGallery').lightSlider({ gallery:true, item:1, loop:true, thumbItem:9, slideMargin:0, enableDrag: false, currentPagerPosition:'left', onSliderLoad: function(el) { el.lightGallery({ selector: '#imageGallery .lslide' }); }, onAfterSlide: function (el) { //자동높이 조절 var heightTemp = $("#imageGallery").children(".active").find("img").height(); $("#imageGallery").css("height", heightTemp) ; } }..
-
크롬 오토플레이 푸는방법 (jwplayer)JQUERY 2021. 1. 28. 15:04
오토플레이는 마우스 또는 포커스의 위치가 있는지 없는지로 판단하여 play를 결정한다 화면로드후 아무 앨리먼트를 지정한후 포커스한다 $('#musicPlayer').load(function(){ // iframe이 모두 load된후 제어 $("#wrapper").focus(); }); 포커스가 걸리면 오토플레이를 막고 있던것이 풀리고 플레이를 실행하여도 실행이 된다 ex)jwplayer // Force the player width once it gets going jwplayer().onPlay(function(){ var playerWidth = getPlayerWidth(); jwplayer().resize(playerWidth,40); scrollToTrack(getPlaylistIndex());..
-
데이트픽커 initJQUERY 2020. 6. 11. 17:05
$.datepicker.setDefaults({ dateFormat: 'yy-mm-dd', prevText: '이전 달', nextText: '다음 달', monthNames: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'], monthNamesShort: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'], dayNames: ['일', '월', '화', '수', '목', '금', '토'], dayNamesShort: ['일', '월', '화', '수', '목', '금', '토'], dayNamesMin: ['일', '월', '화', ..
-
-
데이트픽커 지정일만 출력JQUERY 2020. 5. 6. 18:53
var daySum2 = 0; $("#datepicker1").datepicker({ dateFormat: 'yy-mm-dd', prevText: '이전 달', nextText: '다음 달', monthNames: ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'], monthNamesShort: ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'], dayNames: ['SU', 'MO', 'TU', 'WE', 'TH', 'FR', 'SA'], dayNamesShort: ['SU', 'MO', 'TU', 'WE', 'TH', 'FR', 'SA'], ..