Forked from: js.ryomatsu's MK1: LED on View Diff (1) forked: MK1: LED on jsMKlab100 Follow 2018-11-17 15:35:57 License: MIT License Fork0 Fav0 View112 Play Stop Reload Fullscreen Smart Phone Readme JavaScript 18 lines HTML 39 lines CSS 10 lines forked: MK1: LED on // forked from js.ryomatsu's "MK1: LED on" http://jsdo.it/js.ryomatsu/Aadc $(function(){ $("#btn-find").on("tap", function(){ k.find(); }); }); k.ready(function(){ // PIO0 k.pinMode(k.PIO0, k.OUTPUT); initEvent(); }); var initEvent = function(){ k.digitalWrite(k.PIO0, k.HIGH); }; <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=2, minimum-scale=1, maximum-scale=1, user-scalable=no"> <!-- ratchet css --> <link rel="stylesheet" href="http://jsrun.it/assets/h/F/P/P/hFPPa"> </head> <body> <header class="bar-title"> <h1 class="title"></h1> </header> <div class="content"> <div style="font-size: 30px; margin: 20px;"> MK1: LED on </div> <div class="find"> <a id="btn-find" class="button-main button-block find">Find konashi</a> </div> </div> <!-- for konashijs --> <script src="http://konashi.ux-xu.com/kjs/konashi-bridge.min.js"></script> <!-- for this sample --> <!-- zepto --> <script src="http://jsrun.it/assets/1/M/0/f/1M0fl"></script> <!-- touch.js --> <script src="http://jsrun.it/assets/g/s/1/M/gs1MI"></script> <!-- ratchet.js --> <script src="http://jsrun.it/assets/g/3/W/u/g3WuF"></script> </body> </html> forked: MK1: LED on * { margin: 0; padding: 0; border: 0; } body { background: #dff; font: 40px sans-serif; } // forked from js.ryomatsu's "MK1: LED on" http://jsdo.it/js.ryomatsu/Aadc $(function(){ $("#btn-find").on("tap", function(){ k.find(); }); }); k.ready(function(){ // PIO0 k.pinMode(k.PIO0, k.OUTPUT); initEvent(); }); var initEvent = function(){ k.digitalWrite(k.PIO0, k.HIGH); }; <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=2, minimum-scale=1, maximum-scale=1, user-scalable=no"> <!-- ratchet css --> <link rel="stylesheet" href="http://jsrun.it/assets/h/F/P/P/hFPPa"> </head> <body> <header class="bar-title"> <h1 class="title"></h1> </header> <div class="content"> <div style="font-size: 30px; margin: 20px;"> MK1: LED on </div> <div class="find"> <a id="btn-find" class="button-main button-block find">Find konashi</a> </div> </div> <!-- for konashijs --> <script src="http://konashi.ux-xu.com/kjs/konashi-bridge.min.js"></script> <!-- for this sample --> <!-- zepto --> <script src="http://jsrun.it/assets/1/M/0/f/1M0fl"></script> <!-- touch.js --> <script src="http://jsrun.it/assets/g/s/1/M/gs1MI"></script> <!-- ratchet.js --> <script src="http://jsrun.it/assets/g/3/W/u/g3WuF"></script> </body> </html> * { margin: 0; padding: 0; border: 0; } body { background: #dff; font: 40px sans-serif; } use an iframe compat browser, deer Play on jsdo.it games Author Share ブログに埋め込む QR Tag Download Complete! Description What kind of game? Control Device Smartphone Controllerjsdo.it WebSocket Controller» Mouse Keyboard Touch Device Fullscreen Activated Inactivated jsdo.it games から削除する Submit Author jsMKlab100 Tweet Default Panel Auto play Screenshot Readme JavaScript HTML CSS Size Width: px Height: px code <script type="text/javascript" src="http://jsdo.it/blogparts/mJxB/js"></script> html5_elements&api konashi other sample smartphones&tablets Discussion Questions on this code? Tags html5_elements&api konashi other sample smartphones&tablets