このエントリの賞味期限は 2015-12-31 です。
IndexedDB は、ユーザーのブラウザー内にデータを永続的に保存する手段です。ネットワークの状態にかかわらず高度な問い合わせ機能を持つウェブアプリケーションを作成できますので、アプリケーションがオンラインとオフラインの両方で動作するようになります。 この記事について このチュートリアルでは、IndexedDB の非同期 API の使い方を見ていきます。IndexedDB について詳しくない場合は、始めに IndexedDB の主な特徴と基本用語をお読みください。 IndexedDB API のリファレンスドキュメントとして、IndexedDB API の記事とそのサブ記事をご覧ください。この記事では、IndexedDB で使用されるオブジェクトの種類と、非同期 API のメソッドについて説明します (同期 API は仕様から削除されました)。 基本パターン IndexedDB で推奨さ
This project is the JavaScript implementation of HotDraw, a framework for developing 2-dimensional structured drawing editors. HotDraw was built in the late 80s by Kent Beck and Ward Cunningham. HowDraw.js can be used to build all sorts of diagram software for making UML tools, schematic diagram editors, blueprints and program design. Elements of drawings can be treated interdentally but they can
photo credit: paul bica via photopin cc Summaryサマリ jQuery Behaviorsは、jQuery を使った開発の1つのアプローチです。jQuery behaviorsは、jQueryを使った中規模Webアプリケーションにおいて、肥大化するjQueryコードを効率的に管理し、再利用性を高めるためのプラクティスです。 ※ Behaviorの本質は、jQueryを使った開発のためのプラクティスであり、プラグインを提供することでありません。プラグインとしてダウンロードできますが、それはただの実装例ですので、あなたが自分好みにカスタマイズしてください。 Getting Started なにはともあれ、あなたの環境で動くようになるまでを説明しておきます。 1. 構成 Github からダウンロードできます。jQuery Behaviors を動かす
Most Javascript implementations have great sort implementations utilizing a fast sort algorithm but they all lack the ability to perform a "natural sort". That is, sorting an array of dates, software version numbers, etc. and getting the "natural" a.k.a. "expected" ordering on the results. UPDATE 2/25/2012 New 0.7 version with more fixes and support for case-insensitive sorting which has been aske
Result jQuery // by Real-Time Search in JavaScript //http://osvaldas.info/real-time-search-in-javascript 'use strict'; (function ($, window, document, undefined) { var $container = $('.faq'); if (!$container.length) return true; var $input = $container.find('input'), $notfound = $container.find('.faq__notfound'), $items = $container.find('> ul > li'), $item = $(), itemsIndexed = []; $items.each(fu
value - 0### 数値演算のオペランドに文字列値を書くと、暗黙に数値に型変換されます。(+は文字列連結として扱われる) そのため、value - 0 ではnumが暗黙の型変換によって数値になりますが、0を引いても数値は変わらないため型変換だけが行われることになります。 +value### また、+演算子を単項演算子で使用すると、正の符号演算になります。正の符号演算で数値型への型変換が行われるので、+value とだけ記述すると、結果的に数値型への型変換のみを行います。 ---- 2015/05/14追記 ---- +valueに関して Airbnb JavaScript Style Guideによると +valueは //badとなっておりましたので、parceInt()やNumber()を使用するのが良さそうです。 しかし、全てが同じ挙動をするわけではなく、それぞれ微妙に違う動き
HTML is designed with extensibility in mind for data that should be associated with a particular element but need not have any defined meaning. data-* attributes allow us to store extra information on standard, semantic HTML elements without other hacks such as non-standard attributes, or extra properties on DOM. HTML syntax The syntax is simple. Any attribute on any element whose attribute name s
This module, containing both a client and server, can be imported via require('node:http') (CommonJS) or import * as http from 'node:http' (ES module). The HTTP interfaces in Node.js are designed to support many features of the protocol which have been traditionally difficult to use. In particular, large, possibly chunk-encoded, messages. The interface is careful to never buffer entire requests or
Bootstrap 3 Bootstrap 3 is a CSS framework that lets you quickly and easily build a user interface that has a unified look and feel. It is super easy to integrate Bootstrap and DataTables so that your fully featured DataTables will match the same look and feel of the rest of your site. Bootstrap 3 provides a number of options for styling HTML tables, giving you flexibility over the table, while en
レスポンシブサイトではウィンドウの幅(画面解像度)によって、レイアウトの調整や動作処理の制御を行います。 ウィンドウサイズ(画面幅/高さ)の取得方法に関しては、スクリプト制御ではjQueryの「.width()」メソッドのほか、JavaScriptの「.innerWidth」メソッドや「.matchMedia」メソッドを使用する方法などがあり、CSSメディアクエリでは「@media only screen and (max-width:○○px)」などといった手法でウィンドウサイズを取得することが可能になります。 それぞれの取得する方法によってすこし厄介なのは、ページ内にスクロールバーがある時とない時で取得する値が変わってくるというもの。 さまざまな場面でウィンドウサイズを取得する機会が増えてきているので、上記のそれぞれ取得方法について比較してみました。 まずは各スクリプト処理とCSSメデ
[javascript][sprintf] で検索してたどり着く方が多いようなので、uupaa-0.7.js から切り出して張ってみます。 /*!{id:"uupaa.js",ver:0.7,license:"MIT",author:"uupaa.js@gmail.com"}*/ window.sprintf || (function() { var _BITS = { i: 0x8011, d: 0x8011, u: 0x8021, o: 0x8161, x: 0x8261, X: 0x9261, f: 0x92, c: 0x2800, s: 0x84 }, _PARSE = /%(?:(\d+)\$)?(#|0)?(\d+)?(?:\.(\d+))?(l)?([%iduoxXfcs])/g; window.sprintf = _sprintf; function _sprintf(fo
#divclass(page_title){ &this_page() } 我々は&blanklink(C++ style for comments){http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Comments}の考え方に従います。 全てのファイル、クラス、メソッド、プロパティに&blanklink(JSDoc){http://code.google.com/p/jsdoc-toolkit/}コメントが、適切な&link_anchor(jsdoc_tag_reference){タグ}と&link_anchor(js_type_language,pageid=17){データ型}を伴って記されるべきです。また名前から明白に判断できる場合を除き、プロパティ、メソッド、メソッドの引数、メソッドの戻り値を説明する文章
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く