<button onclick="location.reload()">остановить</button>
if ($('#menu-menu-1 .menu-item-147').is('.current-menu-item')) {
$('#menu-menu-2 .menu-item-147').addClass("current-menu-item");
}
$subject = '<a attr1="val1" attr2 = "" attr3 href="/link/?pa=234kjh&ff=09" attr4="val4" title="title">привет anchor 245</a>';
$pattern = '/((?:href|title)=\"[^"]+\").+?((?:href|title)=\"[^"]+")[^>]{0,}>([^<]+)/i';
preg_match($pattern,$subject,$match);
array_shift($match);
$text = array_pop($match);
$attrs = join(' ',$match);
$a_new = '<a '.$attrs.'>'.$text.'</a>';
echo htmlspecialchars($a_new);
$(".imageTmp").bind("click", function(){
alert($(this).find('img').attr("src"));
});
WEBVTT
1
00:00:14.014 --> 00:00:16.016
[theme music playing]
2
00:01:19.040 --> 00:01:23.040
Corrected by <font color="#00ffff">GoldenBeard</font>
3
00:01:25.585 --> 00:01:26.795
[horns honking]
4
00:01:26.879 --> 00:01:28.631
[indistinct chatter]
5
00:02:09.046 --> 00:02:11.715
[hip-hop music playing over headphones]
6
00:02:16.428 --> 00:02:18.138
[chuckles] That's my building.
$(document).ready(function(){
$("#myFile").on("change", function(){
var inputImg = $(this);
var inputLength = inputImg[0].files.length; //No of files selected
var file;
var formData = new FormData();
for (var i = 0; i < inputLength; i++) {
file = inputImg[0].files[i];
formData.append( 'myFile[]', file);
}
//send POST request to upload.php
$.ajax({
url: "upload.php",
type: "POST",
data: formData,
processData: false,
contentType: false,
beforeSend: function(){
$(".loading").show();
}
}).done(function( data ) {
$(".loading").hide();
$("#resultArea").append(data);
inputImg.val('');
});
});
});
$link = mysqli_connect('127.0.0.1','root','','base');
$sql = "SELECT * FROM tablepart WHERE user= $user AND reg = $reg";
$obj = mysqli_query($link, $sql);
$res = mysqli_fetch_all($obj);
var_dump($res);