This file contains 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
<textarea id="textareahistory"></textarea> | |
<div class="diary" id="historycontroller"></div> | |
<script> | |
var textareaHistory = new TextareaHistory((document.querySelector('#historycontroller'),{ | |
textareaRef: '#textareahistory', | |
delay: 1000, | |
max: 3 | |
loadButtonText: "読み込む" | |
}); | |
</script> |
This file contains 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
it is test file. |
This file contains 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
it is test file. |
This file contains 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
<script> | |
/* チェックキーをserviceKeyに設定する */ | |
(function(){ | |
var writeFavoriteButton = function(){ | |
var serviceKey = "xxxxxxxxxx"; | |
var url = encodeURIComponent(location.href); | |
var html = '<iframe scrolling="no" frameborder="0" allowTransparency="true" style="overflow:hidden; border:0; width:450px; height:80px" src="http://plugins.mixi.jp/favorite.pl?href=' + url + '&service_key=' + serviceKey + '&show_faces=true&width=450"></iframe>'; | |
document.write(html); | |
} | |
if(document.readyState){ |
This file contains 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
// this sets the background color of the master UIView (when there are no windows/tab groups on it) | |
Titanium.UI.setBackgroundColor('#000'); | |
/* 設定してください */ | |
// https://sap.mixi.jp/connect_consumer.pl | |
var CONSUMER_KEY = ""; | |
var CONSUMER_SECRET = ""; | |
var REDIRECT_URL = ""; | |
// http://developer.mixi.co.jp/connect/mixi_graph_api/api_auth |
This file contains 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
<a href="javascript:void(0);">menu</a> | |
<select style="display:none"> | |
<option value="home">home</option> | |
<option value="about">about</option> | |
</select> | |
<script> | |
var select = document.querySelector("select") | |
document.querySelector("a").addEventListener('click', function(){ | |
select.style.display = ""; |
This file contains 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
<select style="width:100px;opacity:0.01;top10px;left10px;position:absolute;z-index:10"> | |
<option value=home>home</option> | |
<option value=about>about</option> | |
<option value=etc>etc</option> | |
</select> | |
<ul style="padding:0px;margin:0px;top:10px;left:10px;position:absolute;"> | |
<li class="home current">home</li> | |
<li class="about" style="display:none;">about</li> | |
<li class="etc" style="display:none;">etc</li> |
This file contains 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
document.addEventListener('touchend', function(){ | |
console.log(window.scrollY); | |
var header = document.getElementById('header'); | |
header.style.top = window.scrollY; | |
var footer = document.getElementById('footer'); | |
console.log(footer.clientHeight); | |
footer.style.top = window.scrollY + screen.height - 44 - footer.clientHeight - 20; | |
}); |
This file contains 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
<? | |
class c2dm | |
{ | |
private $google_auth_url = 'https://www.google.com/accounts/ClientLogin'; | |
private $auth = ''; | |
public function __construct($google_id, $google_pwd) | |
{ |
This file contains 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
/** | |
* net.takimo.tools.sharepageとなっているところを自分のパッケージに変更(GoogleのC2DMサービスに登録したパッケージでないといけない) | |
*/ | |
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="net.takimo.tools.sharepage" | |
android:versionCode="1" | |
android:versionName="1.0"> | |
<uses-sdk android:minSdkVersion="7" /> |
OlderNewer