mirror of
https://github.com/lalbornoz/roar.git
synced 2024-12-27 06:36:38 +00:00
js/ui/controls.js: remove webcam code.
assets/sally.css, index.html: updated.
This commit is contained in:
parent
fea5e2a4c9
commit
ac8fb74dc4
@ -173,8 +173,6 @@ textarea { font-size:12pt; width: 37vw; height: 300px; background: #333; color:
|
||||
user-select: none;
|
||||
}
|
||||
.close { position: absolute; top: 20px; right: 20px; z-index: 2; padding: 10px; background: black; cursor: pointer; }
|
||||
#webcam_rapper { display: none; position: absolute; top: 0px; left: 0px; width:100%;height:100%; box-sizing:border-box; border: 40px solid rgba(0,0,0,0.5); background-color: rgba(0,0,0,0.5); }
|
||||
#webcam_iframe { position: absolute; top: 0px; left: 0px; width:100%;height:100%; background-color: rgba(0,0,0,0.5); border: 0; }
|
||||
#experimental_palette_toggle.focused { box-shadow: none; }
|
||||
#cursor_input { position: fixed; top: 0; right: 0; width:30px; opacity: 0; font-size: 16px; }
|
||||
.selector_el {
|
||||
|
@ -68,7 +68,6 @@
|
||||
<span id="load_el" class="tool">load</span>
|
||||
<br>
|
||||
<span id="shader_el" class="tool">shader</span>
|
||||
<span id="webcam_el" class="tool">webcam</span>
|
||||
<a id="doc_el" href="https://www.lucioillanes.de/asciiblaster/doc/" target="_blank">doc</a>
|
||||
<a id="gallery_el" href="https://www.lucioillanes.de/asciiblaster/im/gallery/?tag=ascii&limit=80" target="_blank">gallery</a>
|
||||
<br>
|
||||
@ -105,10 +104,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="webcam_rapper" class="transparent">
|
||||
<span class="close" id="webcam_close">x</span>
|
||||
<iframe id="webcam_iframe"></iframe>
|
||||
</div>
|
||||
|
||||
<input type="text" id="cursor_input">
|
||||
|
||||
|
24
js/ui/controls.js
vendored
24
js/ui/controls.js
vendored
@ -116,30 +116,6 @@ var controls = (function(){
|
||||
current_filetool && current_filetool.blur()
|
||||
}
|
||||
|
||||
controls.webcam = new FileTool (webcam_el)
|
||||
controls.webcam.load = function(){
|
||||
this.loaded = true
|
||||
webcam_close.addEventListener("click", function(){ controls.webcam.blur() })
|
||||
window.addEventListener("message", function(e){
|
||||
if (e.origin !== window.location.origin) return
|
||||
controls.webcam.blur()
|
||||
controls.circle.focus()
|
||||
import_textarea.value = e.data
|
||||
clipboard.import_colorcode()
|
||||
})
|
||||
}
|
||||
controls.webcam.use = function(){
|
||||
if (! this.loaded) {
|
||||
this.load()
|
||||
}
|
||||
webcam_iframe.src = "webcam.html"
|
||||
webcam_rapper.style.display = "block"
|
||||
}
|
||||
controls.webcam.done = function(){
|
||||
webcam_iframe.src = ""
|
||||
webcam_rapper.style.display = "none"
|
||||
}
|
||||
|
||||
controls.grid = new BlurredCheckbox (grid_el)
|
||||
controls.grid.memorable = true
|
||||
controls.grid.use = function(state){
|
||||
|
Loading…
Reference in New Issue
Block a user