<form method="post" id="myform">
<input type="text" placeholder="Your name" autofocus required pattern="[a-z]{1,15}"/>
<input type="text" placeholder="Phone-number" required pattern="[0-9]{6,15}"/>
<input type="email" placeholder="Email" required/>
<input class="button" type="button" onclick="sendMyForm();" rel="reg_form" value="request call"/>
</form>
<script type="text/javascript" language="javascript">
function sendMyForm() {
var msg = $('#myform').serialize();
$.ajax({
type: 'POST',
url: 'res.php',
data: msg,
success: function(data) {
$('.popup').fadeIn(500);
$("body").append("<div id='overlay'></div>");
$('#overlay').show().css({'filter' : 'alpha(opacity=80)'});
},
error: function(xhr, str){
alert('Возникла ошибка: ' + xhr.responseCode);
}
});
}
</script>
block {
flex-shrink: 0
}
$ cd ${HOME}
$ mkdir AndroidDev
$ cd AndroidDev/
$ unzip /tmp/android-studio-ide-143.2915827-linux.zip
$ tar zxf /tmp/android-sdk_r24.4.1-linux.tgz
$ tar zxf /tmp/jdk-8u101-linux-x64.tar.gz
$ touch var
export JAVA_HOME=${HOME}/AndroidDev/jdk1.8.0_101
export ANDROID_HOME=${HOME}/AndroidDev/android-sdk-linux
export PATH=${JAVA_HOME}/bin:${ANDROID_HOME}/tools:${HOME}/AndroidDev/android-studio/bin:${PATH}
$ source var
$ studio.sh
Архив распоковался при помощи менеджера архива и усе , где так сказать местный exe ?
./configure
make
sudo make install
function look(t) {
var pList = document.getElementsByClassName(t);
var l = document.getElementsByClassName("a-" + t)[0];
for(var i = 0; i < pList.length; i++) {
var p = pList[i];
if (p.style.display == "block") {
l.innerHTML = "Показать все";
p.style.display = "none";
} else {
l.innerHTML = "скрыть";
p.style.display = "block";
}
}
}