repeating-linear-gradient(<?php echo rand(20, 90); ?>deg, transparent, transparent 5px, rgba(143, 77, 63, 0.25) 5px,
rgba(143, 77, 63, 0.25) <?php echo rand(7, 21); ?>px);background-attachment:fixed; position:relative;max-width:2000px;}
......
$(document).ready(function(){
if ($('#t').css('display') == 'block') {
////
} else {
/// ваш код примерно так {$('#ms').css({'bottom':'2%'} );
}
});
$fff2 ='https://www.googleapis.com/youtube/v3/search'.$region.'&'.$vpoisk.'&key=///////////////'.$rating.'&type=video&'.$time.'&part=snippet&safeSearch=none'. $kolisestvo.'
';
$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $fff2);
curl_setopt($ch, CURLOPT_USERAGENT, 'PHP Bot');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_exec($ch);
$json = curl_exec($ch);
curl_close($ch);
if ($json !== false) {
$json = preg_replace("#(/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+/)|([\s\t]//.*)|(^//.*)#", '', $json);
// setlocale(LC_ALL, 'ru_RU.utf8');
$json = json_decode($json, true) ;
// print_r($json);
if (isset($json['items']))
{
foreach($json['items'] as $items) {
$channelId =$items['snippet']['channelId'];
$publishedAt =$items['snippet']['publishedAt'];
$title =$items['snippet']['title'];
if (isset($items['snippet']['thumbnails']['default']['url']))
{ $thumbnails =$items['snippet']['thumbnails']['default']['url'];
if (isset($items['id']['videoId'])) {
$videoId =$items['id']['videoId'];
<span onclick="player.loadVideoById(\''.$videoId.'\', 0);history.pushState(\''.$videoId.'\', null, \''.$videoId.'\');document.title = \''.$title3.'\';return false">◄ <img src="'.$thumbnails.'" align="right" hspace=" 4px" width="60" height="47" > '.$title.'</span> <br> <button type="submit" name="message" value="'.$title.',live5" style="border: 0; cursor: pointer; background: transparent">