This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trasweb.orientationchange = function() { | |
if(-90 === window.orientation || 90 === window.orientation ) { | |
alert("Landscape"); | |
}else { | |
alert("portrait"); | |
} | |
}; | |
window.addEventListener('orientationchange', function() { trasweb.orientationchange(); } ); | |
trasweb.orientationchange(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Cambia de cabecera */ | |
var trasweb = {}; | |
trasweb.cabecera = function(slayer){ | |
this.ALTURA_HACER_FLOTANTE_MENU = 400; | |
this.cabecera = document.getElementById(slayer); | |
this.getScroll = function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<input type='file'/> | |
<span id='val'></span> | |
<span id='button'>Select File</span> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input type='file' onchange="previewImage(this, 'preview-image');" /> | |
<img id="preview-image" src="http://placehold.it/300" alt="image preview" /> |
NewerOlder