jquery audio tag prevent download (오디오 태그 다운로드 막기)
2021.03.30
audio tag를 사용하다보면 브라우저에 따라서 위처럼 다운로드 할수있는 버튼이 있다. 해당 부분은 audio tag내에 controlsList="nodownload"를 넣어주면 된다. jquery를 통해서 한꺼번에 처리 할수 있다. $(document).ready(function(){ $('audio').attr('controlsList', 'nodownload'); });
jquery를 이용해서 마우스로 스크롤시에 Progress Bar (진행바, 진행률)를 구현. 필요한 변수는 총 3가지, #1. 스크롤시에 높이 #2. 실행된 문서(웹페이지)의 총 높이 #3. 실행시 브라우저의 높이 js // 스크롤시에 $(window).scroll(function () { // 현재 높이 var nowHeight = $(window).scrollTop(); // 현재 display되어있는 body의 총 높이 var documentHeight = $('body').height(); // window창의 높이 var winHeight = $(window).height(); // 진행률 var totalProgress = (nowHeight / (documentHeight - winHeig..
getbootstrap.com/docs/4.0/utilities/embed/ Embeds Create responsive video or slideshow embeds based on the width of the parent by creating an intrinsic ratio that scales on any device. getbootstrap.com getbootstrap.com/docs/4.6/getting-started/introduction/ Introduction Get started with Bootstrap, the world’s most popular framework for building responsive, mobile-first sites, with jsDelivr and a..
stackoverflow.com/questions/3514784/what-is-the-best-way-to-detect-a-mobile-device What is the best way to detect a mobile device? Is there a way to detect whether or not a user is using a mobile device in jQuery? Something similar to the CSS @media attribute? I would like to run a different script if the browser is on a handh... stackoverflow.com var isMobile = false; if(/(android|bb\d+|meego)...
github.com/js-cookie/js-cookie js-cookie/js-cookie A simple, lightweight JavaScript API for handling browser cookies - js-cookie/js-cookie github.com jquery cookie.js를 이용해서 팝업과 닫기, 오늘만 보기등을 구현하였다. javascript로도 가능하지만 jquery를 이용하면 확실히 빠르게 처리할수있다. HTML POPUP TEST clear cookie 오늘만 안보기 일주일동안 안보기 닫기 JS function getToday(){ let date = new Date(); let year = date.getFullYear(); let month = ("0" + (1 + d..