コンテンツへスキップ こちらには何もありません。検索をお試しください。 検索: 検索
Sugamo.cssでちょっと前に話題になったのが、CSSのメタ言語(って言い方でいいのかな)であるSassです。 Sassを使うと、CSSをクールに記述する事ができます。 Sass自体についての解説はググると詳しいものがいくつかあります。 この記事では、Windows PC(XPとVistaで試しました)にSassを導入する手順を紹介します。 Rubyのインストール SassはRubyで動いているので、まずはRubyをインストールします。 RubyInstaller for Windows を使えば、何度かクリックするだけで完了します。 インストールが終了したらコマンドプロンプトを起動して、次のコマンドを入力してエンターをッターンと叩いてください。 ruby -v ruby 1.9 1p430(2010-08-16 revision 28998) みたいのが出たらgemのアップデートに進
使いまわしそうなSassのコードをメモっておいたら、(自分が)便利かなあとか思ったので載せておくテスト。 // =============================== // Variables // =============================== $red: #f00; $blue: blue; // =============================== // Mixins (Include) // =============================== @mixin link { color: #00f; } @mixin link_h { color: #fff; background: #00f; } @mixin link_v { color: #600; } @mixin min-height($px) { min-height: $px
現在、このサイトを HTML5 で再構築しようと画策しています。今日はその「準備編」ということで、WordPress で HTML5 をパブリッシュするために、どのようにテンプレートをいじればよいかを考えてみました。ここでは WordPress 2.9 のデフォルトのテーマ、WordPress Default 1.6 に手を加えていきます。 文書型宣言 header.php の 7 行目 (実際に出力されるのは 1 行目) あたりで以下のように文書型が宣言されています: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> これを以下のように修正します: <!DOCTYPE html> HTML5 の文
The Firefox implementation of XMLHttpRequest has a convenience feature for sending binary data to a server using HTTP POST. The binary data is passed to a method called sendAsBinary as a string with meaningless upper bytes. Javascript has 16-bit strings, so when used to represent binaries each characters has 8 extra bits. A bug had been filed against Google Chrome not having such a method. While m
前回の記事に以下の質問がありました。 質問なのですがバイナリデータはsendでは送れないのでは? 自分も同じようなことをしているのですがFireFox限定のsendAsBinaryでないと無理でした。 どのようにして転送してるのでしょうか? えーと。。。(・Θ・;)。。。あの、その。。。うかれててサーバ側を考えてませんでした。すみませんm(_ _)m ■クライアント側のコード 前回のコードとおなじ。 function dragStart(e){ //e.preventDefault(); } function dragEnter(e){ //e.preventDefault(); } function dragOver(e){ e.preventDefault(); } function drop(e){ var files = e.dataTransfer.files; for(var
structs.js Written by Dave Herman A prototype implementation of the ECMAScript Binary Data API. This version currently only works in Firefox 4, because it depends on proxies. It could be extended to work in Safari and Chrome by avoiding proxies (whose use is confined only to field.js). Then with a bit more work, it could be extended to work in IE by shimming typed arrays via plain arrays. To use t
Last week a colleague asked for my help finding better unit test tools for Java Script. He’s done some digging on the state of the art with JavaScript unit tests and finds the whole lot wanting. His discoveries:
jQuery 1.5.1 is now out! This is the first minor release on top of jQuery 1.5 and lands a number of fixes for bugs. We would like to thank the following contributors that provided patches towards this release: antonkovalyov, csnover, danheberden, davidmurdoch, dmethvin, gnarf37, jaubourg, jeresig, jitter, jrburke, lrbabe, mathiasbynens, rwldrn, SlexAxton, and voxwerk. We’d especially like to thank
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く