Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion iotas/www/apps/colorwheel/colorwheel.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ function colorwheel() {

function appStart() {
console.log("colorwheel.appStart");
$("head").append('<link rel="stylesheet" href="colorwheel.css" />');
var cssPathFromBase = $('head base').attr('href') + "colorwheel.css";
$("head").append('<link rel="stylesheet" type="text/css" href="' + cssPathFromBase + '" />');
setCanvasImage()
}

Expand All @@ -37,6 +38,8 @@ function colorwheel() {
var wh = $('.selector').innerWidth();
$('#canvas').attr('width', wh);
$('#canvas').attr('height', wh);
$('#canvas').css('-touch-action','none');
$('#canvas').css('-ms-touch-action','none');
theApp.context.drawImage(canvasImage, x, y, wh, wh);
};
canvasImage.src="colorwheel.png";
Expand Down