2016-02-24から1日間の記事一覧

<Highcharts> 値が無い時の背景の色

値が無い時の背景の色。 Highchartsの空は、nullらしい。 nullだと白になった。 StackOverflow stackoverflow.com nullColor Highmaps API Reference

<jQuery> テキストボックスの値取得

テキストボックスの値を取得する。 <html> <script type="text/javascript" src="jquery-2.0.3.js"></script> <script type="text/javascript"> var s; $(function(){ // HTMLロード完了 $("#button1").click(function() { s = $("#text1").val(); // 値取得 $("#output").text(s); // 出力 }); }); </script> <body> </body></html>

<Vim> surround-vim

Vim

vim-surroudを入れた。 ds'が便利だった。 Github github.com 参考。 te2u.hatenablog.jp

<jQuery> idセレクタ

タグtag中のidにアクセスする。 $("#hage").css( "border", "3px solid red" ); で、 <div id="hage"></div> にアクセスする。 P.S Highchartの chart.renderTo での場合は、#が要らない。はまった。 ドキュメント。 api.jquery.com 参考。 jQueryのセレクタ解説 | Smart

<Javascript> HTMLの読み込み終わったら実行

HTMLの読み込みが終わったら実行する。 jQuery(document).ready(function){ //なにかしらの処理 }); jQuery(function(){ //なにかしらの処理 }); $(document).ready(function(){ //なにかしらの処理 }); $(function(){ //なにかしらの処理 }); で、上の4つ…

<iPython, python> ipywidgets を試してみた。

iPython上でインタラクティブinteractiveな動作ができるipywidgetsを試してみた。 これで、スライダーsliderとかできる。 まずは、インストール。 conda install ipywidgets で、jupyter notebook立ち上げて、 次のコード書き込み。 %matplotlib inline impo…