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 c0605-store-top-3.js
function click_deleteStore()
{
mItems= new Array();
chrome.storage.local.set({ 'strlist' : mItems });
$('div#id-div-box').remove();
}
View c0530-sound-index-1.js
function init_item()
{
var items = new Array();
items[0] = {snd_name : 's1', snd_url : 'https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/playlists/36209861&color=ff5500&auto_play=true&hide_related=false&show_artwork=true' };
items[1] = {snd_name : 's2', snd_url : 'https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/playlists/36479386&color=ff5500&auto_play=true&hide_related=false&show_artwork=true' };
items[2] = {snd_name : 's3', snd_url : 'https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/playlists/36480994&color=ff5500&auto_play=true&hide_related=false&show_artwork=true' };
return items;
}
View c0605-win1-top-2.js
function click_sub()
{
chrome.app.window.create(
'sub.html',
{id: "browserSlideID",
bounds: {
'width' : 1024,
'height': 600
}
}
View c0530-sound-index-2.js
function load_sound( items )
{
if((items ==null) || (items.length < 1))
{
return;
}
var s_url = get_sound_id(items);
console.log('s_url=' + s_url );
var divSound= $('div#id-div-sound1');
View c0530-sound-index-3.htm
<iframe width="100%" height="450" scrolling="no" frameborder="no"
src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/playlists/36480994&amp;color=ff5500&amp;auto_play=true&amp;hide_related=false&amp;show_artwork=true">
</iframe>
View c0605-win2-top-1.js
function click_sub()
{
chrome.app.window.create(
'sub.html',
{id: "browserSlideID",
bounds: {
'width' : 1024,
'height': 600
}
}
View c0605-image-top-1.js
var xhr = new XMLHttpRequest();
xhr.open('GET', imageUrl);
xhr.responseType = 'blob';
xhr.onload = function() {
var img = document.createElement('img');
img.setAttribute('data-src', imageUrl);
img.setAttribute('id', s_id);
img.className = 'icon';
var objURL = this._createObjectURL(xhr.response);
img.setAttribute('src', objURL);
View c0605-image-top-2.js
AppShow.prototype.proc_init = function() {
console.log('#proc_init');
var s1='http://kuc-arc-f.github.io/h5_t0604_page/img/p1.png';
var s2='http://kuc-arc-f.github.io/h5_t0604_page/img/p2.JPG';
var s3='http://kuc-arc-f.github.io/h5_t0604_page/img/p3.JPG';
var ctl = new Controller();
var divcont = document.querySelector('div#id-div-img');
var img_t= ctl._requestRemoteImageAddElem( s1, divcont ,'id_img1');
View c0606-db1-top3.js
DbHelper.prototype.proc_addItem = function(item ,view)
{
var rq = indexedDB.open(DB_NAME);
rq.onsuccess = function(e) {
console.log('#onsuccess_open');
var db= e.target.result;
var tx = db.transaction(STORE_NAME, 'readwrite');
tx.oncomplete = function() { };
var store = tx.objectStore(STORE_NAME);
View c0606-db1-top4.js
DbHelper.prototype.get_allItems = function(view)
{
var rqOpen = indexedDB.open(DB_NAME);
rqOpen.onsuccess = function(e) {
var db= e.target.result;
var tx = db.transaction(STORE_NAME, 'readonly' );
var store = tx.objectStore(STORE_NAME);
var rq = store.openCursor();
rq.onsuccess = function(e) {
cursor = rq.result;
You can’t perform that action at this time.