Skip to content

Commit

Permalink
Added Window Popout Button (#468) + Formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
xbubbo committed Feb 22, 2024
1 parent 704a9ce commit 4b76756
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: "daily"
interval: 'daily'
27 changes: 27 additions & 0 deletions static/assets/scripts/frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,33 @@ function reload() {
}
}

function popout() {
const newWindow = window.open('about:blank', '_blank')

if (newWindow) {
const name = localStorage.getItem('name') || 'My Drive - Google Drive'
const icon = localStorage.getItem('icon') || 'https://ssl.gstatic.com/docs/doclist/images/drive_2022q3_32dp.png'

newWindow.document.title = name

const link = newWindow.document.createElement('link')
link.rel = 'icon'
link.href = icon
newWindow.document.head.appendChild(link)

const newIframe = newWindow.document.createElement('iframe')
const style = newIframe.style
style.position = 'fixed'
style.top = style.bottom = style.left = style.right = 0
style.border = style.outline = 'none'
style.width = style.height = '100%'

newIframe.src = iframe.src

newWindow.document.body.appendChild(newIframe)
}
}

function erudaToggle() {
if (!iframe) return

Expand Down
22 changes: 15 additions & 7 deletions static/go.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,37 @@
<div class="nav-bar">
<div class="nav-container">
<div class="nav-left">
<button id="home-page" class="nav-button" onclick="reload()">
<button title="Home Button" type="button" id="home-button" class="nav-button" onclick="reload()">
<i class="fa-solid fa-house"></i>
</button>
<button title="nav-button" id="nav-button" class="nav-button" onclick="goBack()">
<button type="button" title="Back Arrow" id="back-button" class="nav-button" onclick="goBack()">
<i class="fa-solid fa-arrow-left"></i>
</button>
<button title="nav-button" id="nav-button" class="nav-button" onclick="goForward()">
<button type="button" title="Forward Arrow" id="forward-button" class="nav-button" onclick="goForward()">
<i class="fa-solid fa-arrow-right"></i>
</button>
<button onclick="reload()" class="nav-button">
<button type="button" title="Reload" onclick="reload()" class="nav-button">
<i class="fa-solid fa-rotate-right"></i>
</button>
<form id="fs" class="navpost" method="POST">
<input id="is" class="navsearch" placeholder="Search or enter a new URL" type="text" />
</form>
</div>
<div class="nav-right">
<button id="fullscreen-button" class="nav-button nav-btn-right">
<button type="button" title="Fullscreen" id="fullscreen-button" class="nav-button nav-btn-right">
<i class="fa-solid fa-expand"></i>
</button>
<button id="eruda-button" class="nav-button nav-btn-right" onclick="erudaToggle()">
<button
type="button"
title="Inspect"
id="eruda-button"
class="nav-button nav-btn-right"
onclick="erudaToggle()">
<i class="fa-solid fa-code"></i>
</button>
<button type="button" title="Window Popout" id="popout-button" class="nav-button nav-btn-right" onclick="popout()">
<i class="fa-solid fa-solid fa-window-restore"></i>
</button>
</div>
</div>
</div>
Expand All @@ -56,7 +64,7 @@
<script src="assets/scripts/index.js?v=5"></script>
<script src="./m/bundle.js"></script>
<script src="./m/config.js"></script>
<script src="assets/scripts/frame.js?v=7"></script>
<script src="assets/scripts/frame.js?v=8"></script>
<script src="https://kit.fontawesome.com/1237c86ba0.js" crossorigin="anonymous"></script>
<script src="/assets/scripts/now.js?v=2"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-WKJQ5QHQTJ"></script>
Expand Down

20 comments on commit 4b76756

@hop-deploy
Copy link

@hop-deploy hop-deploy bot commented on 4b76756 Feb 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment Status Build Logs Updated At
st3llar ❌ Failed View Logs 2024-02-22T14:42:02.364Z

@hop-deploy
Copy link

@hop-deploy hop-deploy bot commented on 4b76756 Feb 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment Status Build Logs Updated At
instell ✅ Deployed View Logs 2024-02-22T14:42:09.998Z

@hop-deploy
Copy link

@hop-deploy hop-deploy bot commented on 4b76756 Feb 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment Status Build Logs Updated At
interstellar ✅ Deployed View Logs 2024-02-22T14:42:20.712Z

@hop-deploy
Copy link

@hop-deploy hop-deploy bot commented on 4b76756 Feb 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment Status Build Logs Updated At
st3lla ❌ Failed View Logs 2024-02-22T14:42:26.322Z

@hop-deploy
Copy link

@hop-deploy hop-deploy bot commented on 4b76756 Feb 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment Status Build Logs Updated At
we-love-art ✅ Deployed View Logs 2024-02-22T14:42:27.610Z

@hop-deploy
Copy link

@hop-deploy hop-deploy bot commented on 4b76756 Feb 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment Status Build Logs Updated At
interstellar ✅ Deployed View Logs 2024-02-22T14:42:33.450Z

@hop-deploy
Copy link

@hop-deploy hop-deploy bot commented on 4b76756 Feb 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment Status Build Logs Updated At
interstellar ✅ Deployed View Logs 2024-02-22T14:42:37.309Z

@hop-deploy
Copy link

@hop-deploy hop-deploy bot commented on 4b76756 Feb 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment Status Build Logs Updated At
interstellar ✅ Deployed View Logs 2024-02-22T14:42:52.504Z

@hop-deploy
Copy link

@hop-deploy hop-deploy bot commented on 4b76756 Feb 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment Status Build Logs Updated At
mountpath ✅ Deployed View Logs 2024-02-22T14:42:55.022Z

@hop-deploy
Copy link

@hop-deploy hop-deploy bot commented on 4b76756 Feb 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment Status Build Logs Updated At
interstellar ✅ Deployed View Logs 2024-02-22T14:42:55.882Z

@hop-deploy
Copy link

@hop-deploy hop-deploy bot commented on 4b76756 Feb 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment Status Build Logs Updated At
interstellar ✅ Deployed View Logs 2024-02-22T14:42:56.948Z

@hop-deploy
Copy link

@hop-deploy hop-deploy bot commented on 4b76756 Feb 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment Status Build Logs Updated At
interstellar ✅ Deployed View Logs 2024-02-22T14:43:03.483Z

@hop-deploy
Copy link

@hop-deploy hop-deploy bot commented on 4b76756 Feb 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment Status Build Logs Updated At
talonnexus ✅ Deployed View Logs 2024-02-22T14:43:08.532Z

@hop-deploy
Copy link

@hop-deploy hop-deploy bot commented on 4b76756 Feb 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment Status Build Logs Updated At
gokudoespartyparty ✅ Deployed View Logs 2024-02-22T14:43:12.584Z

@hop-deploy
Copy link

@hop-deploy hop-deploy bot commented on 4b76756 Feb 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment Status Build Logs Updated At
interstellar ✅ Deployed View Logs 2024-02-22T14:43:13.419Z

@hop-deploy
Copy link

@hop-deploy hop-deploy bot commented on 4b76756 Feb 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment Status Build Logs Updated At
interstellar ✅ Deployed View Logs 2024-02-22T14:43:29.242Z

@hop-deploy
Copy link

@hop-deploy hop-deploy bot commented on 4b76756 Feb 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment Status Build Logs Updated At
classes ✅ Deployed View Logs 2024-02-22T14:43:29.550Z

@hop-deploy
Copy link

@hop-deploy hop-deploy bot commented on 4b76756 Feb 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment Status Build Logs Updated At
learnmath ✅ Deployed View Logs 2024-02-22T14:43:30.742Z

@hop-deploy
Copy link

@hop-deploy hop-deploy bot commented on 4b76756 Feb 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment Status Build Logs Updated At
interstellar ✅ Deployed View Logs 2024-02-22T14:43:32.580Z

@hop-deploy
Copy link

@hop-deploy hop-deploy bot commented on 4b76756 Feb 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment Status Build Logs Updated At
interstellar ✅ Deployed View Logs 2024-02-22T14:43:39.815Z

Please sign in to comment.