Skip to content

Instantly share code, notes, and snippets.

Kouji Nakashima kuc-arc-f

Block or report user

Report or block kuc-arc-f

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View esp8266-6-arduino
#include <ESP8266WiFi.h>
extern "C" {
#include "user_interface.h"
}
const char* ssid = "";
const char* password = "";
const char* host = "aaa1234.com";
View c0605-t1.htm
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>テストーutf8</title>
<body >
<h1>テストーutf8</h1>
<br />
<p>test-moji</p>
@kuc-arc-f
kuc-arc-f / c0605-t2.htm
Last active Aug 29, 2015
html, test2-0605
View c0605-t2.htm
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>テストー utf8</title>
<body >
<h1>テスト2ーutf8</h1>
<br />
<p>test-moji-2</p>
View c0605-ajax1-Item.js
var Item = function() {
this.id = 0;
this.title =''
this.url = '';
this.toString = function() {
window.alert(this.id + " ," + this.title+ ", "+ this.url_b );
};
}
View c0605-ajax1-ctlNews.js
var mMAX_CountItem=5;
function ctlNews() {
this.name = 'ctlNews';
}
ctlNews.prototype.load_rss = function( surl ) {
var items =new Array();
View c0605-ajax1-top-1.js
ctlNews.prototype.load_rss = function( surl ) {
var items =new Array();
console.log( 'surl=' + surl );
$.ajax({
url: surl,
type: 'get',
dataType: 'xml',
timeout: 5000,
success: function(xml, status) {
if (status === 'success') {
View c0605-ajax1-top-2.js
function disp_news(items)
{
for(var i = 0; i < items.length ; i++){
var body= $('table#id-table1');
var trObj = $('<tr></tr>');
var tdObj = $('<td></td>');
var a_tag = $('<a href="'+ items[i].url +'" target="_blank">'+ items[i].title +'</a>');
var tdObj02 = $('<td align="right"></td>');
View c0605-win1-top-1.js
onload = function() {
document.querySelector('a#id-a-open').onclick = function() {
click_sub();
}
}
View c0605-store-top-1.js
function click_addStore()
{
var ct = mItems.length;
mItems[ct] = {'id': ct, 'text': 'test-'+ ct };
chrome.storage.local.set({ 'strlist' : mItems });
}
View c0605-store-top-2.js
function click_showStore()
{
$('div#id-div-box').remove();
var divShow =$('#id-div-diplay');
var divBox= $('<div id="id-div-box"></div>')
chrome.storage.local.get( 'strlist' , function(value) {
if(value && value.strlist) {
console.log( value.strlist );
console.log( 'len='+ value.strlist.length );
var items = value.strlist;
You can’t perform that action at this time.