| 更新: | 2013-07-30 |
|---|---|
| バージョン: | 0.1.1 |
| 作者: | @voluntas |
| URL: | http://voluntas.github.io/ |
概要
| <html> | |
| <head> | |
| <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> | |
| </head> | |
| <body> | |
| <iframe id="frame" style="width: 250px; border: solid 1px red;" ></iframe> | |
| <script type="text/javascript"> | |
| var elFrame = $('#frame')[0]; | |
| $(elFrame.contentWindow).resize(function() { | |
| $(window).trigger('zoom'); |
| /** | |
| * jQuery extension, add support `scrollstart` and `scrollend` events. | |
| * | |
| * @author RubaXa <[email protected]> | |
| * @github https://gist.github.com/RubaXa/5568964 | |
| * @license MIT | |
| * | |
| * | |
| * @settings | |
| * $.special.scrollend.delay = 300; // default ms |
| # ************************************ | |
| # Environment Switch | |
| # ************************************ | |
| # 開発モードか製品モードか指定(default :development) | |
| # Gruntfile.js or Gruntfile.coffee に設定を書いている場合は不要 | |
| # environment = :production | |
| # ************************************ | |
| # HTTP Path |
| 更新: | 2013-07-30 |
|---|---|
| バージョン: | 0.1.1 |
| 作者: | @voluntas |
| URL: | http://voluntas.github.io/ |
概要
Install the following packages using pacman -S package-name:
第4のCSSプリプロセッサ「Roole」(v0.1.3)をGruntで自動化してみるメモ。
Rooleのgruntプラグインはまだないので、野良タスク(オリジナルのタスク)を作って直接rooleコマンドを叩く。
こんな感じのpackage.jsonをプロジェクトディレクトリに用意。
| <!DOCTYPE html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Ajax Page</title> | |
| </head> | |
| <body style="background-color: #fff;"> | |
| <h1>Ajax的にナニかするよー</h1> | |
| <div id="content"> | |
| <p>loading...</p> | |
| </div> |
(Full description and list of commands at - https://npmjs.org/doc/index.html)
Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:
| //PhantomJS http://phantomjs.org/ based web crawler Anton Ivanov [email protected] 2012 | |
| //UPDATE: This gist has been made into a Node.js module and now can be installed with "npm install js-crawler" | |
| //the Node.js version does not use Phantom.JS, but the API available to the client is similar to the present gist | |
| (function(host) { | |
| function Crawler() { | |
| this.visitedURLs = {}; | |
| }; | |