Skip to content

Commit

Permalink
update version due to syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
7killer committed Oct 12, 2024
1 parent 59c8181 commit b74de6f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 16 deletions.
Binary file modified ITYC_Dash.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion css/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

}
[data-theme="dark"] {
--bg_body_color: #202124;
--bg_body_color: rgb(3,38,63);
--body_color: #FFFFFF;

--th_color : #ededed;
Expand Down
11 changes: 0 additions & 11 deletions listenerIframe.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,8 @@ function manageFullScreen(e) {
if(!ourDiv) return;
const iframeHeight = window.innerHeight;
const iframeWidth = window.innerWidth;

console.log("iframe " + iframeWidth + " x " + iframeHeight);

let canvaSizeOriginW = 0;
let canvaSizeOriginH = 0;
//

let spacer = 0;
let dashRowH = 0;
Expand Down Expand Up @@ -83,18 +79,14 @@ function manageFullScreen(e) {
{
originalGameWidth = canvaSizeOriginW;
originalGameHeight = canvaSizeOriginH;
console.log("original game size : " +originalGameWidth + " x "+ originalGameHeight);
console.log("screen size : " +screenWidth + " x "+ screenHeight);

let maxGameWidth = Math.ceil(screenWidth*gameSize/100);
let maxGameHeight = Math.ceil(maxGameWidth*originalRatio);
console.log("max game size : " +maxGameWidth + " x "+ maxGameHeight);

if((maxGameHeight + offsetDash) > screenHeight)
{
maxGameHeight = Math.ceil(screenHeight-offsetDash);
maxGameWidth = Math.ceil(maxGameHeight/originalRatio);
console.log("max size corr: " +maxGameWidth + " x "+ maxGameHeight);
}
canvaSizeOriginW = maxGameWidth;
canvaSizeOriginH = maxGameHeight;
Expand All @@ -118,9 +110,6 @@ function manageFullScreen(e) {
}
}
}

console.log("game size : " +canvaSizeOriginW + " x "+ canvaSizeOriginH);
console.log("iframe size " + iframeWidth + " x " + iframeHeight);

if(iframeHeight > window.innerHeight && window.parent == window)
{// acces by iframe page most of the times
Expand Down
5 changes: 1 addition & 4 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "VR Dashboard I.T.Y.C.",
"short_name": "VR Dashboard I.T.Y.C.",
"description": "Monitor boat position & call virtual sailor weather router",
"version": "1.4.0",
"version": "1.4.1",
"permissions": [
"tabs",
"storage",
Expand Down Expand Up @@ -65,8 +65,5 @@
"ids": ["*"],
"matches": ["https://www.virtualregatta.com/en/offshore-game/*","https://www.virtualregatta.com/offshore-game/*","https://beta.virtualregatta.com/*","https://play.offshore.virtualregatta.com/*"
]
},
"side_panel": {
"default_path": "panel.html"
}
}

0 comments on commit b74de6f

Please sign in to comment.