cambio posicion boton

parent 4629f16b
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
{{ include('producto_final/camera_logic.html.twig') }} {{ include('producto_final/camera_logic.html.twig') }}
{#CODIGO OCULTO#} {#CODIGO OCULTO#}
</div> </div>
<button id="startbutton"></button>
<div class="botonera-fotos"> <div class="botonera-fotos">
<div> <div>
<button id="tomarFoto" name="tomarFoto" class="tomarFoto" onclick="mostrarTomarFoto(event)">Tomar Foto</button> <button id="tomarFoto" name="tomarFoto" class="tomarFoto" onclick="mostrarTomarFoto(event)">Tomar Foto</button>
...@@ -276,5 +276,16 @@ ...@@ -276,5 +276,16 @@
} }
window.onorientationchange = function () {
var orientation = window.orientation;
switch (orientation) {
case 0:
case 90:
case - 90: console.log("modo horizontal");
//window.location.reload();
break;
}
};
</script> </script>
{% endblock %} {% endblock %}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment