1.5 UI サンプル帖

1.2.3 enchantのでもファイルにアクセスできなくて、何も表示していませんでしたが、1.5が公開されているので、差し替えました。
1.5 UI サンプル帖

サンプル帖のjQueryのページ長期間にわたって、ソースしか表示できないようになっていました。
ごめんなさい。
そちらに、理由も書いておきました。

ライセンス まとめ

CVSが欲しかったので、ソースフォージというところをたずねたら、新しいプロジェクト作るなら、ライセンスのことをしっかり考えなさい。ってことで、リンクが48もずらずら並んでいる。

英文かよ!

ちんぷんかんぷんなので、日本語訳メモ帳を作りました。

どうしたらいいのか

  1. GNU General Public License (GPL)
  2. GNU Library or "Lesser" Public License (LGPL)
  3. BSD License


    • 修正済みBSD ライセンス

      (注意: 前述のリンク先において、修正済み BSD ライセンスは「General」セクションに載っています)

      基本的にこれはオリジナルの BSD ライセンスと同一ですが、宣伝条項を削除するという修正が加えられています。単純かつ制限の緩い非コピーレフトフリーソフトウェアライセンスであり、GNU GPL とも矛盾しません。
  4. MIT License
  5. Artistic License
  6. Mozilla Public License 1.0 (MPL)

    • これはフリーソフトウェアライセンスですが、コピーレフトという見地か らはそれほど強いものではありません。X11 ライセン スと違い、このライセンスはいくつかの複雑な制約を課すので、そのため にGNU GPLとは矛盾します。よって、 GPL で保護されたモジュールと MPL で保護されたモジュールは合法的に一緒 にリンクすることができません。このため、私たちは MPL を適用しないよう 強くお勧めします。
  7. Q Public License (QPL)


    • これは非コピーレフトフリーソフトウェアライセンスで、GNU GPL とは矛盾します。また、このライセンスは実際上重大な不便を引き起こします。というのも、改変されたソースはパッチとしてしか頒布できないからです。

  8. IBM Public License 1.0


    • これはフリーソフトウェアのライセンスですが、 GPLとは矛盾します。

      IBM 公衆利用許諾契約書は GPL とは矛盾します。GPL にはない様々な特定の必要条件を課すからです。

      例えば、このライセンスでは、ある種の特許許諾が与えられることを要求しますが、GPL はこういったものを条件とはしていません(私たちはこういった特許許諾要求が本質的に悪い考えだとは思いませんが、それでもなお GNU GPL とは矛盾します)。

  9. MITRE Collaborative Virtual Workspace License (CVW License)
  10. Ricoh Source Code Public License 1.0
  11. Python License
  12. zlib/libpng License
  13. Apache Software License
  14. Vovida Software License 1.0
  15. Sun Industry Standards Source License (SISSL)
  16. Intel Open Source License
  17. Mozilla Public License 1.1 (MPL 1.1)
  18. Jabber Open Source License
  19. Nokia Open Source License
  20. Sleepycat License
  21. Nethack General Public License
  22. Apple Public Source License
  23. Academic Free License
  24. Attribution Assurance Licenses
  25. Common Public License


    • これはフリーソフトウェアのライセンスですが、 GPLとは矛盾します。

      IBM 公衆利用許諾契約書は GPL とは矛盾します。GPL にはない様々な特定の 必要条件を課すからです。

      例えば、このライセンスでは、ある種の特許許諾が与えられることを要求しま すが、GPL はこういったものを条件とはしていません(私たちはこういった特 許許諾要求が本質的に悪い考えだとは思いませんが、それでもなお GNU GPL とは矛盾します)。

  26. Eiffel Forum License
  27. Eiffel Forum License V2.0
  28. Entessa Public License
  29. Frameworx License
  30. Lucent Public License (Plan9)
  31. Historical Permission Notice and Disclaimer
  32. Motosoto License
  33. Naumen Public License
  34. OCLC Research Public License 2.0
  35. Open Group Test Suite License
  36. Open Software License
  37. PHP License


    • このライセンスは PHP4 のほとんどの部分に適用されています。非コピー レフトのフリーソフトウェアライセンスですが、GNU GPL とは矛盾します。

      私たちは、PHP のアドオン以外でこのライセンスを使わないようお勧めします。


      Zend ライセンス、バージョン 2.0

      このライセンスは PHP4 の一部に適用されています。非コピーレフトのフ リーソフトウェアライセンスですが、GNU GPL とは矛盾し、オリジナルの BSD ライセンスと同様の実務上の問題が あります。

      私たちは、皆さんがお書きになるものにはこのライセンスを適用しないようお 勧めします。

  38. Python Software Foundation License

    • GNU GPL と矛盾しません。しかし、より新しいバージョンの Python には異なるライセンスが適用されていることに注意してください
  39. RealNetworks Public Source License V1.0
  40. Sun Public License

    • これは基本的には Mozilla 公衆利用許諾書と同じものです。よって、フリー ソフトウェアライセンスですが GNU GPL とは矛盾します。
  41. Sybase Open Watcom Public License 1.0
  42. University of Illinois/NCSA Open Source License
  43. W3C License
  44. wxWindows Library License

  45. X.Net License
  46. Zope Public License
  47. Eclipse Public License
  48. Website Only
  49. Other/Proprietary License​​​​​

見る人は、時間がかかるのが嫌いだ。

うれしがっていろいろやってると、とても表示に時間がかかることに気づいたのでメモ。
Web Page Analyzer - free website optimization tool website speed test check website performance report from web site optimization

jQuery使わないとき

Connection Rate Download Time
14.4K 32.88 seconds
28.8K 17.14 seconds
33.6K 14.89 seconds
56K 9.49 seconds
ISDN 128K 3.88 seconds
T1 1.44Mbps 1.62 seconds

jQueryを使ったとき

Connection Rate Download Time
14.4K 126.11 seconds
28.8K 65.26 seconds
33.6K 56.56 seconds
56K 35.70 seconds
ISDN 128K 13.98 seconds
T1 1.44Mbps 5.23 seconds
以下のスクリプトと、付属のスタイル。

	<script src="/js/jquery.js"                 type="text/javascript"></script>
	<script src="/js/jquery.dimensions.js"      type="text/javascript"></script>
	<script src="/js/jquery.gradient.js"        type="text/javascript"></script>
	<script src="/js/ui.tabs.pack.js"           type="text/javascript"></script>
	<script src="/js/jquery.jcarousel.pack.js"  type="text/javascript"></script>
	<script src="/js/jquery.flatheights.js" type="text/javascript"></script>
	<script src="/js/jquery.easing.1.3.js" 		type="text/javascript"></script>
	<script type="text/javascript">
	
	(function($){
	
	   jQuery(function(){
	   
		jQuery('#mycarousel').jcarousel();
		jQuery('#mycarousel2').jcarousel();
	   
			jQuery('div[class^="toggle"]').hide();

			
		//h2 idと同名のクラスをトグル
	
			jQuery('h3[id^="toggle"]').css("cursor","pointer").click(function(){
			var target ="."+jQuery(this).attr("id");
			jQuery(target).toggle("slow").css("background","#fff");
			});
			
		//スクリプト、グラデーション
			
			/*jQuery("#header").gradient({
			from:      'eeeeff',
			to:        'ffffff',
			direction: 'horizontal'
			});
			
			jQuery("#footer").gradient({
			from:      'ffffff',
			to:        'eeeeff',
			direction: 'horizontal'
			});*/

			
			jQuery("h3").gradient({
			from:      'eeeeff',
			to:        'ffffff',
			direction: 'horizontal'
			});
			
			
		//指定したノードの高さをそろえる
		jQuery('.calendar-layout li').flatHeights();
		
		
		
		//インクルード
		jQuery(".calendar-layout strong").click(function(){

        var target = jQuery(this).attr("id");

        jQuery("#demo").empty();
        jQuery("#demo").append("<iframe src=\"http://example.com/" + target + ".html\" frameborder=\"0\" height=\"940\" width=\"800\" allowtransparency=\"true\"></iframe>");
        });

		jQuery('.inline_list li').flatHeights();
		jQuery('.inline_list').after("<br style=\"clear:both\" />");
	
		//カルーセル イメージクリックアクション
		  
			jQuery("#mycarousel img").click(function(){
			
				var file 		= jQuery(this).attr("alt");
				var directory 	= jQuery(this).attr("id");
				jQuery("#result").load("goods/" + directory + '/' + file);
			});
		  
			

		//ページを開いたときの、タブ位置指定
		
		jQuery('#tab > ul').tabs();
			
		//style
		
		jQuery("table tr:odd").css("background","#ccf");
		jQuery(".submit input")
		.hover(function(){jQuery(this)
		.css("background","#ccc")},function(){
			jQuery(this).css("background","#eef");
		});
		
		jQuery("hr").wrap("<div class=\"hr\"></div>");
		
		//UA機能 補完
				
		jQuery("blockquote").prepend("<div style=\"width:1em;font-weight:bold;float:left;\">&quot;</div>");
		
		//cite属性の明示
		jQuery("blockquote").each(function(){
        var cite  = jQuery(this).attr("cite");
		if( cite ){
	
        jQuery(this).append("<p style=\"text-align:right;\">引用元:<a href=\"" + cite +"\" onclick=\"this.target='_blank';\" onkeypress=\"this.target='_blank';\">" + cite + "</a></p>");
		
		}
		
        });
		
		

		
		//load top image
		
		jQuery("#header-image").append("<img src=\"/text2html/document/images/top.gif\" />");
		
		
	});

	
			
	})(jQuery);
	</script>