Skip to content

Commit

Permalink
fix phone view
Browse files Browse the repository at this point in the history
  • Loading branch information
pldubouilh committed Feb 2, 2019
1 parent 66be990 commit 4e043d1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 0 additions & 5 deletions src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ const prependPath = a => a.startsWith('/') ? a : decodeURI(location.pathname) +
const prevent = e => e.preventDefault()
const flicker = w => w.classList.remove('runFade') || void w.offsetWidth || w.classList.add('runFade')

// Add upload icon on phones
if (typeof window.orientation !== 'undefined') {
icHolder.innerHTML = '<div onclick="document.getElementById(\'clickupload\').click()" class="ic icon-large-upload"></div>' + icHolder.innerHTML
}

// Manual upload
manualUpload.addEventListener('change', () => Array.from(manualUpload.files).forEach(f => isDupe(f.name) || postFile(f, '/' + f.name)), false)

Expand Down
8 changes: 7 additions & 1 deletion src/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<h1>.{{.Title}}</h1>

<div id="icHolder">
<div style="display:none;" onclick="document.getElementById('clickupload').click()" class="ic icon-large-upload manualUp"></div>
<div style="display:none;" class="ic icon-large-images" onclick="window.picsToggle()"></div>
<div class="ic icon-large-folder" onclick="window.mkdirBtn()"></div>
</div>
Expand Down

0 comments on commit 4e043d1

Please sign in to comment.