Google Chrome 34.0.1797.2 (Official Build 246002) dev-m
OS Windows
Blink 537.36 (@165430)
enable-experimental-web-platform-features フラグ オン
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <form action=""> | |
| <input type="text"> | |
| <input type="text"> | |
| <input type="submit"> | |
| </form> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html lang="jp" ng-app> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>todo</title> | |
| <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.7/angular.min.js"></script> | |
| <script src="myscript.js"></script> | |
| <style> | |
| .done-true { | |
| color: gray; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
| // jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
| // author: Pawel Kozlowski | |
| var myApp = angular.module('myApp', []); | |
| //service style, probably the simplest one | |
| myApp.service('helloWorldFromService', function() { | |
| this.sayHello = function() { | |
| return "Hello, World!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //<h1 id="element-h1">指定要素</h1> | |
| var elm = document.getElementById("element-h1"); | |
| //[getBoundingClientRect]を参照する | |
| var rect = elm.getBoundingClientRect() ; | |
| //ブラウザの左上からのX座標を取得する | |
| var positionX = rect.left ; | |
| //ブラウザの左上からのY座標を取得する |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>test</title> | |
| </head> | |
| <body> | |
| <h1>gist test</h1> | |
| </body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function onEdit(e) { | |
| if(e.source.getSheetName() === 'sheet_name'){ | |
| if(e.range.getColumn() === column_number) { | |
| Browser.msgBox(e.value); | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function resetSheet() { | |
| var _last_row = sheet.getLastRow(); | |
| var _last_column = sheet.getLastColumn(); | |
| var _range = sheet.getRange(2, 1, _last_row, _last_column); | |
| _range.clear(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| convert number to letter | |
| e.g.1: 1 -> A | |
| e.g.2: 100 -> CV | |
| */ | |
| function convertToLetter(iCol) { | |
| var str = ""; | |
| var iAlpha = 0; | |
| var iRemainder = 0; |
OlderNewer