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
function showPreview(event){ | |
if(event.target.files.length > 0){ | |
var src = URL.createObjectURL(event.target.files[0]); | |
var preview = document.getElementById("file-ip-1-preview"); | |
preview.src = src; | |
preview.style.display = "block"; | |
} |
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
<?php | |
// ref: https://stackoverflow.com/questions/557959/ | |
$mils = round(microtime(true) * 1000); | |
$sec = ceil($mils / 1000); | |
echo date("D M d Y H:i:s",$sec); | |
echo " ---> "; | |
echo $mils; |
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
// | |
# | |
<!--> | |
/**/ |