twitter-gas.js の利用方法です。
- スプレッドシートを作成して、名前をつける。
- ツール> スクリプトエディタ を開く
- プロジェクト名をつける
- リソース > ライブラリ > ライブラリを検索 に以下を入力して選択ボタンを押下。
| var PROJECT_KEY = ''; | |
| var TWITTER_CONSUMER_KEY = ''; | |
| var TWITTER_CONSUMER_SECRET = ''; | |
| function trigger() { | |
| search('東京オリンピック', 0); | |
| } | |
| function reset() { | |
| var service = getService(); |
twitter-gas.js の利用方法です。
| $(window).on('touchmove.noScroll', function(evt) { | |
| if ($(evt.target).hasClass('modal-class-name')) { | |
| return; | |
| } | |
| evt.preventDefault(); | |
| }) |
rendr-examplesを眺めてみたメモ。
基本的な構成。npm install & grunt serverでhttp://localhost:3030で起動する(以下のexampleも同様)。
00ではindex.jsに直接書かれていたdataAdapterConfigを/configディレクトリ内のファイルに分離。
NODE_ENVの値で本番/開発環境の設定ファイル切り替えを行う
| ``` | |
| @charset "UTF-8"; | |
| @import "../../public/components/foundation/scss/foundation/variables"; | |
| ``` | |
| こういうやつを、 | |
| ``` | |
| @charset "UTF-8"; |
| module.exports = function(grunt) { | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON("package.json"), | |
| uglify: { | |
| dist: { | |
| src: ["public/js/remp.js"], | |
| dest: "public/js/remp.min.js" | |
| } | |
| }, |
| // This File is imported last, and will override other styles in the cascade | |
| // Add styles here to make changes without digging in too much | |
| /* | |
| * Fix: list margin | |
| */ | |
| @if $indented-lists == false { | |
| @media only screen and (min-width: 768px) { | |
| ul, ol { margin-left: 1.5em; } | |
| } |
| * { | |
| margin: 0; | |
| padding: 0; | |
| border: 0; | |
| } | |
| body { | |
| background: #ddf; | |
| font: 30px sans-serif; | |
| } |
| * { | |
| margin: 0; | |
| padding: 0; | |
| border: 0; | |
| } | |
| body { | |
| background: #ffd; | |
| font: 30px sans-serif; | |
| } |