2017年6月13日 星期二

jQuery datepicker change position 改變位置


原本是自動調整上下,
改成只顯示在下面:

https://stackoverflow.com/questions/3474018/how-to-set-the-show-position-of-datepicker


在ready裡面新增 beforeShow方法

 $('.datetime').datepicker({
     dateFormat: 'm/d/yy',
     beforeShow: function (input, inst) {
         var offset = $(input).offset();
         var height = $(input).height();
         window.setTimeout(function () {
             inst.dpDiv.css({ top: (offset.top + height + 4) + 'px', left: offset.left + 'px' })
         }, 1);
     }

 });

改變位置範例

http://2008.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerPosition.html

2017年6月7日 星期三

JavaScript and jQuery Get Radio Value 如何取值

JavaScript Get Radio Value 如何取值?

另外加上JQuery的取法~

Html:

<input type="radio" name = myRadio value="Get One">
<input type="radio" name = myRadio value="Get TWO">


Javascript:
         var wow= document.getElementsByName("myRadi");
         for(var i = 0;i<wow.length;i++) {
            if(wow[i].checked) {
            alert(wow[i].value);
            }
         }
       }

jQuery:

$('input[name=myRadio]').val()

範例:
https://api.jquery.com/checked-selector/

2017年6月5日 星期一

Machine Learning Resource 機器學習人工智慧人工智能 資源




NTUEE ML 2016
https://www.youtube.com/playlist?list=PLJV_el3uVTsPy9oCRY30oBPNLCo89yu49
李宏毅28 videos53,870 viewsLast updated on Mar 25, 2017
課程網頁: http://speech.ee.ntu.edu.tw/~tlkagk/courses_ML16.html


NTUEE MLDS 2017
https://www.youtube.com/playlist?list=PLJV_el3uVTsPMxPbjeX7PicgWbY7F8wW9
李宏毅12 videos10,313 viewsUpdated yesterday
這門課的全名是 Machine Learning and having it Deep and Structured ,銜接 Machine Learning (https://www.youtube.com/watch?v=fegAeph9UaA&list=PLJV...) 這門課,目標是要深度學習深度學習 課程網頁: http://speech.ee.ntu.edu.tw/~tlkagk/courses_MLDS17.html



Dr. Fei Fei Li of Stanford's Artificial Intelligence Lab
Innovate and Celebrate 2016
https://www.youtube.com/watch?v=IXxh5C9iKFE



《硅谷财经圈》科技钱缘:人工智能和深度学习 By DingDingTV
https://www.youtube.com/watch?v=xaq7CVlHTwU



基礎
線性代數    電機系 蘇柏青
http://ocw.aca.ntu.edu.tw/ntu-ocw/index.php/ocw/cou/102S207

線性代數    趙啟超
http://ocw.nthu.edu.tw/ocw/index.php?page=course&cid=89

線性代數   應用數學系 莊重老師
http://ocw.nctu.edu.tw/course_detail_3.php?bgid=1&gid=1&nid=271#.WTVY8mh95EZ