반응형
반응형

jQuery 에서 해당 요소(element)의 존재여부를 확인할 때


length로 길이를 확인해서 처리하면 된다.


//This will not work
if ( $("#myid") ) {
//do something
}


아래와 같이 해야 확인이 가능하다.



if ( $("#myid").length > 0 ) {
//do something
}

반응형
반응형

Deckard: Web Animations API slide deck

 

Deckard is a library for creating slide decks using the Web Animations API. There are no dependencies, except for the Web Animations Polyfill if you want it to work in browsers that don’t yet support the API.

deckard

Demos

 

 

 

반응형
반응형

 

HTML Minifier: Minify your HTML files

HTML 소스 줄여줘요~

HTML Minifier is a simple web app that minifies your HTML code according to options you select. You can opt to remove comments, collapse whitespace, remove optional tags, and more.

minifier

반응형
반응형

Can I use?: Up-to-date browser support reference



사용할 수 있나? 최신 브라우저 지원 참조~


Can I Use? is a complete table of up-to-date browser support for various modern font-end web technologies. Search by keyword to quickly find what you’re looking for, select specific browsers to compare, or even download the raw support data.

can i use


반응형
반응형

jQuery.vibrate.js: Trigger mobile device vibrations

jQuery.vibrate.js lets you trigger vibrations on mobile devices in the pattern and duration you choose. It’s very simple to use, with a number of options for when to trigger vibrations and how long those vibrations should last (there’s even a handy chart so you can check out the durations for yourself).

jquery.vibrate.js

Vibration API Wrappers 

However, this doesn't mean that your device can vibrate. Just that it's recent enough. There are a few requirements you need to meet.

  1. You need the hardware for it.
  2. The page needs to be visible.
  3. Browser-specific implementation prevents the vibration.

 

반응형
반응형

Smallworld.js is a utility for generating simple map previews with GeoJSON and HTML5 Canvas. It has no dependencies, and comes with a simple wrapper for use with jQuery and Zepto.smallworld.js

 

It's a (small utility for generating a) small world. 



smallworld.js is a small utility for generating small world maps. Documentation can be found on its official page.

반응형

+ Recent posts