ソーシャルプラグイン、Facebookログイン、グラフAPI呼び出しを追加するためのクライアント側の充実した機能セット。
ソーシャルプラグイン、Facebookログイン、グラフAPI呼び出しを追加するためのクライアント側の充実した機能セット。
JavaScriptでhistory.pushStateとhistory.replaceStateっていう履歴管理のための仕様があるんですけど、これを使うとlocation.hashを使って実装しているような、ページ遷移をしないでコンテンツを入れ替える(Twitterの新UIみたいな)ものを実現できます。 5.4 Session history and navigation — HTML5 Manipulating the browser history - MDC Doc Center で、これを実際使ってるところは見たことなかったんですけど、githubがいつの間にか使ってました。適当なリポジトリに入ってhistory.replaceStateをサポートしてるブラウザ(現時点ではchromeかsafari)で見るとページ遷移なしで動いて、切り替わるときにURLが書き換わってるのがわかる
Not your computer? Use a private browsing window to sign in. Learn more about using Guest mode
A JavaScript blog. Twitter | Feed Subscribe by Email Editor Alex Young Contributors Ric Roberts Oleg Podsech Justin (Gus) Knowlden Search Sponsors Swirrl. Make the most of your data: tools for working with your data online. Get free email and IM reminders with Deadline I’ve collected and edited the Let’s Make a Framework articles into a book that suitable for e-readers. Consider this a Christmas p
もう1年も経っていた。 http://d.hatena.ne.jp/arikui/20091021 久々に気になったのでちょっと直して測りなおしました。計測PCも違ってたりしますが、多分傾向は同じ。 単位はナノ秒。 fx3.6 plain 57 closure 218 call 230 apply 520 apply arguments 1700 apply this value 262 closure 3 nest 516 call 3 nest 518クロージャもcallも大して差がなくなった。argumentsをapplyすると一気に遅い。 fx4b8 plain 13 closure 114 call 137 apply 211 apply arguments 322 apply this value 107 closure 3 nest 395 call 3 nest 360ar
■ [javascript] パッケージマネージャを備えたサーバサイドJavaScript環境、node.js node.jsは最近勢いのあるサーバサイドJavaScript環境である。インタプリタにはGoogle ChromeのV8を使用している。 売りとしては「イベント駆動なHTTPサーバが書けるのでCometとかWebSocketのサーバ側に最適」という話なのだが、個人的な用途ではそれは別にRuby+EventMachineとかでいいので、 むしろパッケージマネージャ(npm)を備えたサーバサイドJS環境ができて、JSをRubyとかPerlみたいに使えますよ、という点が面白いと思った。 インストール port install nodeとか、brew install nodeとか。 パッケージ管理 前述のnpmを入れると、RubyGemsみたいにnpm install fooでパッケー
Asynchronous Javascript and XML. With a mouthful of technical geekery, the term AJAX is actually pretty lame (no offence guys) as it mystifies a process that could’ve been described as something my mum would understand: “Replacing webpage contents without doing a full page reload”. Sure, Ajax can do a lot more than that, but for the sole purpose of dynamically refreshing parts of a webpage you sti
Send feedback Data Dumps Stay organized with collections Save and categorize content based on your preferences. outlined_flag The Freebase API has been shut down, but the last available data dump is accessible. Historical data dumps are outdated and not maintained or supported, but are hosted for their citation in studies and potential contribution to open data efforts. Freebase Data Dumps are pro
■ [ruby][event] Ruby Advent Calendar 2010の参加者募集中です あのRuby Advent Calendar(jp: 2009)が帰ってきた! Advent Calendarは、12月のクリスマスまでを数えるカレンダーで、1日に1つずつ穴を開けていく感じのものです。ものによっては中にお菓子が入っていたりします。 それになぞらえて、1日に1つずつRubyに関するTipsを書いていくのがRuby Advent Calendarです。参加方法は、ATNDで登録して、担当日に自分のブログに記事を投稿するだけです。3行でもいいので、ぜひ書いてみてください。 Ruby Advent Calendar jp: 2010 英語トラック 今年はJPerl Advent Calendar 2010 - English Trackにならって、英語トラック(http://at
ホストクラブは、人気があります。 人気の理由はたくさんありますが、やはり、夢のようなひと時を過ごす事が出来るという点が大きいです。 働いている方や、専業主婦ではあるけれども、日々の家事労働などでストレスがたまる女性は多いです。 その際に誰かに話しを聞いてもらいながら、お酒を飲みたいと思う方も多いです。 しかし、女性同士だと何かと気をつかってしまい、本音が言えないケースもあります。 それを解消してくれるのがホストクラブです。 人気のヒミツは、じっくりと女性の話に耳を傾けてくれて、楽しませてくれたりもするところに惹かれてリピーターとなる方が多いです。 なかには、金額が高くて行きたいのに行けないと考えている女性も多いですが、初めて行かれる際には安く飲み放題などの設定を設けているところも多いです。 そして、楽しんだ後にまた来たいなと思わせてくれる事で、日々の生活をより楽しく過ごせるようになったと答
Welcome To AddyOsmani.com ” Hey guys. My name is Addy and I'm a passionate Web Developer. On my site you can find useful tutorials on jQuery, JavaScript and User Interface design. Who Am I? I'm a passionate 24 year old Irish Web Designer & Developer and (currently) a Project Manager who loves creating exciting new user interfaces and writing about topics that can help other web designers out there
This code is broken. See http://www.jsfuck.com/ instead. Original conversation is from http://sla.ckers.org/forum/read.php?24,33349. JSF*ck demo encode JavaScript with only 6 letters - []()!+ Enter any JavaScript source: alert("Hello, JavaScript")
今までも onorientationchange を使えば90度づつの回転(Safariの描画の向きが変わるタイミング)は取得可能でした。 このようなデモで実装されているタイプのデータであれば今までも可能でした。 Ajaxian » iPhone window.onorientationchange Code http://ajaxian.com/archives/iphone-windowonorientationchange-code 実際に返される値を確認したい場合はこちらにアクセスして下さい。90度づつの回転時に画面に現在の回転量(角度)が返されます。 iOS 4.2からはもっと細かい値がリアルタイムに取得出来るようになりました。 前回の加速度センサーのときと同様に addEventListener を使って以下の様に記述すればOKです。 window.addEventListen
iOS4.2からSafariで加速度センサーを使うことができるようになりました。 モンハンの予約を逃していつ買えるのかとヤキモキしているME課の比留間です、こんにちわ。 さて、つい先日アップデートされたiOS4.2。このアップデートでMobile Safariから加速度センサーをJavaScript経由で利用することができるようになりました。使い方は簡単で、以下のようにするだけで加速度の値を取得することができます。 JavaScriptから加速度センサーにアクセスする window.ondevicemotion = function(event) { //event.accelerationIncludingGravity.x //event.accelerationIncludingGravity.y //event.accelerationIncludingGravity.z } これ
MongoDBでは、dbがデータベース、collがコレクションだとして、db.coll.find(<クエリ式>) によって問い合わせが行えます。クエリ式として、JavaScriptの関数をそのまま渡すことができます。例えば、db.coll.find(function(){return this.a == 3;}) のように。 JavaScript関数には、コレクション内のドキュメント(オブジェクト)が順に渡されますが、引数ではなくてthisとしてドキュメントが渡されます。述語(boolean値関数)でコレクションを絞り込む高階関数をfilterとすると、db.coll.find(fun) は、filter(fun, db.coll) と同じことです。 findの引数に文字列が渡されると、その文字列はJavaScriptの関数ボディと解釈されます。db.coll.find(str) は、db
前のこちらエントリーでも紹介したこちらのサイトの「New JavaScript Data-types」の項目にWebGL由来の各種Array型がサポートされたとの情報が有りました。こちらを検証する為にプログラムを書きました。 主な処理はこちら。インスタンスの生成に失敗したら定義されていないという判断です。 function chreckResult(v) { var res = ''; if (v) { res += ' -> <span id="successded">defined</span><br>'; } else { res += ' -> <span id="failed">undefined</span><br>'; } return res; } function test() { var resMsg = ''; var int8; try { resMsg += 'I
The Stop Killing Games movement is nearing an official meeting with EU lawmakersOnce all the Stop Killing Games signatures are verified, the organizers will present the initiative to both the European Commission and Parliament. The Witcher Season 4 will hit Netflix in October with its new GeraltNetflix dropped a new teaser trailer for the upcoming fourth season, giving us a better look at Liam Hem
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く