Skip to content

Instantly share code, notes, and snippets.

@kuc-arc-f
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kuc-arc-f/0103a6afb86961e619fa to your computer and use it in GitHub Desktop.
Save kuc-arc-f/0103a6afb86961e619fa to your computer and use it in GitHub Desktop.
onload = function() {
var canvas =document.getElementById('id_canvas');
var iW = canvas.width;
var iH = canvas.height;
console.log( 'iW='+ iW +',iH=' + iH)
var items= get_slideData();
var slide = new CustomSlide(1000 * 10 ,items, iW, iH );
slide.start();
}
//
//function
//
function get_slideData(){
var items= new Array();
items[0]={ title:'p11.JPG' , url: 'http://kuc-arc-f.github.io/h5_t0604_page/img/p11.JPG' };
items[1]={ title:'p12.JPG' , url: 'http://kuc-arc-f.github.io/h5_t0604_page/img/p12.JPG' };
items[2]={ title:'p13.JPG' , url: 'http://kuc-arc-f.github.io/h5_t0604_page/img/p13.JPG' };
items[3]={ title:'p14.JPG' , url: 'http://kuc-arc-f.github.io/h5_t0604_page/img/p14.JPG' };
return items;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment