Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzotek authored Oct 26, 2023
1 parent 410b694 commit bda6fb9
Show file tree
Hide file tree
Showing 60 changed files with 2,516 additions and 1 deletion.
Binary file added Remoku_128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ads.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
google.com, pub-4315015870350243, DIRECT, f08c47fec0942fa0
Binary file added apple-touch-icon-ipad-precomposed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apple-touch-icon-iphone4-precomposed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apple-touch-icon-precomposed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions cache.manifest.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
CACHE MANIFEST
#Remoku Web App
#Stable Channel
#Build Date: June 24, 2020 at 9:04:10 AM EDT
#
NETWORK:
*
CACHE:
index.html
remoku-gui.css
remoku-gui.js
color-utils.js
apple-touch-icon-precomposed.png
apple-touch-icon.png
favicon.png
favicon.ico
remoku-splash.png
cp/_icons.gif
cp/_blank.cur
cp/_icons.png
cp/_horizontal.png
cp/_vertical.png
cp/_blank.gif
cp/_patches.png
cp/colorPicker.js
images/about.png
images/application_view_tile.png
images/arrow_open.gif
images/back.png
images/bottom_edge.png
images/bottom_left_corner.png
images/bottom_right_corner.png
images/down.png
images/DPad.png
images/goodies.png
images/home.png
images/info.png
images/keyboard.png
images/left.png
images/left_edge.png
images/next.png
images/ok.png
images/play.png
images/previous.png
images/replay.png
images/right.png
images/right_edge.png
images/setting_tools.png
images/top_edge.png
images/top_left_corner.png
images/top_right_corner.png
images/up.png
Empty file added clientaccesspolicy.xml
Empty file.
161 changes: 161 additions & 0 deletions color-utils.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
///////////////////////////
//http://stackoverflow.com/questions/3426404/create-a-hexadecimal-colour-based-on-a-string-with-jquery-javascript
function padZeroes(number, length)
{
var str = '' + number;
while (str.length < length) {str = '0' + str;}
return str;
}

function hashCode(str) { // java String#hashCode
var hash = 0;
for (var i = 0; i < str.length; i++) {
hash = str.charCodeAt(i) + ((hash << 5) - hash);
}
Logger.log(hash)
return hash;
}

function intToRGB(i){
return (padZeroes(((i>>16)&0xFF).toString(16), 2) +
padZeroes(((i>>8)&0xFF).toString(16), 2)+
padZeroes((i&0xFF).toString(16), 2)
);
}

function stringToColor(s)
{
return '#' + intToRGB(hashCode(s));
}

/////////////////////


//http://www.glasspants.com/?p=220
function RGBColor (color) {
//Param is a hex string of color info
//Common hex prefixes of '0x' and '#'
//is accepted.

//Properties
this.color = color;

//Methods
this.getColor = function(){
/*Return original color string*/

return this.color;
};

this.getDecimalVals = function(){
/*Returns an object with red, green, and blue
properties in decimal value*/

var color = this.color;

var rgb;
var colorObj;

//Replace hex prefixes if present
color = color.replace("0x", "");
color = color.replace("#", "");

//Easier to visualize bitshifts in hex
rgb = parseInt(color, 16);

//Extract rgb info
colorObj = new Object();
colorObj.r = (rgb & (255 << 16)) >> 16;
colorObj.g = (rgb & (255 << 8)) >> 8;
colorObj.b = (rgb & 255);

return colorObj;
};
};




// http://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb
function componentToHex(c) {
var hex = c.toString(16);
return hex.length == 1 ? "0" + hex : hex;
}
// http://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb
function rgbToHex(r, g, b) {
return "#" + componentToHex(r) + componentToHex(g) + componentToHex(b);
}

/* http://sedition.com/perl/javascript-fy.html */
function fisherYates ( myArray ) {
var i = myArray.length;
if ( i == 0 ) return false;
while ( --i ) {
var j = Math.floor( Math.random() * ( i + 1 ) );
var tempi = myArray[i];
var tempj = myArray[j];
myArray[i] = tempj;
myArray[j] = tempi;
}
}

// http://www.nbdtech.com/Blog/archive/2008/04/27/Calculating-the-Perceived-Brightness-of-a-Color.aspx#122
// var textColor = Brightness( rgbToHex(colorDec.r, colorDec.g, colorDec.b) ) < 130 ? '#FFFFFF' : '#000000';
function Brightness(color) {
if(color.length==7){color=color.substring(1);}
var R = parseInt(color.substring(0,2),16);
var G = parseInt(color.substring(2,4),16);
var B = parseInt(color.substring(4,6),16);
return Math.sqrt(R * R * .241 + G * G * .691 + B * B * .068);
}

// http://stackoverflow.com/questions/1664140/js-function-to-calculate-complementary-colour
function HueShift(h,s) { h+=s; while (h>=360.0) h-=360.0; while (h<0.0) h+=360.0; return h; }
function min3(a,b,c) { return (a<b)?((a<c)?a:c):((b<c)?b:c); }
function max3(a,b,c) { return (a>b)?((a>c)?a:c):((b>c)?b:c); }

// RGB2HSV and HSV2RGB are based on Color Match Remix [http://color.twysted.net/]
// which is based on or copied from ColorMatch 5K [http://colormatch.dk/]
function RGB2HSV(rgb) {
hsv = new Object();
max=max3(rgb.r,rgb.g,rgb.b);
dif=max-min3(rgb.r,rgb.g,rgb.b);
hsv.saturation=(max==0.0)?0:(100*dif/max);
if (hsv.saturation==0) hsv.hue=0;
else if (rgb.r==max) hsv.hue=60.0*(rgb.g-rgb.b)/dif;
else if (rgb.g==max) hsv.hue=120.0+60.0*(rgb.b-rgb.r)/dif;
else if (rgb.b==max) hsv.hue=240.0+60.0*(rgb.r-rgb.g)/dif;
if (hsv.hue<0.0) hsv.hue+=360.0;
hsv.value=Math.round(max*100/255);
hsv.hue=Math.round(hsv.hue);
hsv.saturation=Math.round(hsv.saturation);
return hsv;
}

function HSV2RGB(hsv) {
var rgb=new Object();
if (hsv.saturation==0) {
rgb.r=rgb.g=rgb.b=Math.round(hsv.value*2.55);
} else {
hsv.hue/=60;
hsv.saturation/=100;
hsv.value/=100;
i=Math.floor(hsv.hue);
f=hsv.hue-i;
p=hsv.value*(1-hsv.saturation);
q=hsv.value*(1-hsv.saturation*f);
t=hsv.value*(1-hsv.saturation*(1-f));
switch(i) {
case 0: rgb.r=hsv.value; rgb.g=t; rgb.b=p; break;
case 1: rgb.r=q; rgb.g=hsv.value; rgb.b=p; break;
case 2: rgb.r=p; rgb.g=hsv.value; rgb.b=t; break;
case 3: rgb.r=p; rgb.g=q; rgb.b=hsv.value; break;
case 4: rgb.r=t; rgb.g=p; rgb.b=hsv.value; break;
default: rgb.r=hsv.value; rgb.g=p; rgb.b=q;
}
rgb.r=Math.round(rgb.r*255);
rgb.g=Math.round(rgb.g*255);
rgb.b=Math.round(rgb.b*255);
}
return rgb;
}
Binary file added cp/_blank.cur
Binary file not shown.
Binary file added cp/_blank.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cp/_horizontal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cp/_icons.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cp/_icons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cp/_patches.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cp/_vertical.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions cp/colorPicker.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions crossdomain.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM
"http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*.remoku.tv" />
</cross-domain-policy>
15 changes: 15 additions & 0 deletions error.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html manifest="cache.manifest">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="description" content="A web app for Roku remote control" />
<link rel="icon" type="image/png" href="favicon.png" />
<style>
body{color:red; background-color: black; text-alignment:center;}
</style>
</head>
<body>
Document not found. Looking for <a href="http://remoku.tv">home</a>?
</body>
</html>
Binary file added favicon-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added favicon.ico
Binary file not shown.
Binary file added favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions googlead03697e7ed5924f.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
google-site-verification: googlead03697e7ed5924f.html
1 change: 1 addition & 0 deletions googleae851820e47f2fff.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
google-site-verification: googleae851820e47f2fff.html
Binary file added images/DPad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/UIButtonBarAction.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/about.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/application_view_tile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/arrow_open.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/back.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/bottom_edge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/bottom_left_corner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/bottom_right_corner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/down.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/goodies.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/help.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/home.png
Binary file added images/info.png
Binary file added images/keyboard.png
Binary file added images/left.png
Binary file added images/left_edge.png
Binary file added images/next.png
Binary file added images/ok.png
Binary file added images/play.png
Binary file added images/previous.png
Binary file added images/replay.png
Binary file added images/right.png
Binary file added images/right_edge.png
Binary file added images/setting_tools.png
Binary file added images/top_edge.png
Binary file added images/top_left_corner.png
Binary file added images/top_right_corner.png
Binary file added images/up.png
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -292,4 +292,4 @@ <h2>Apps</h2>First<br>Install Remoku Channel<br>Then<br>
<div id="remotespopup" class="hidden"></div>
</div>
</body>
</html>
</html>
Binary file added me.png
Loading

0 comments on commit bda6fb9

Please sign in to comment.