<style>
.cards { display: flex; flex-wrap: wrap; align-items: stretch; }
.card { flex: 0 0 20%; margin: 0px; border: 0; }
.card .text { padding: 0 2px 2px; }
</style>
<main class="cards">
<article class="card"> <div class="text">
1 cccccccccccccc
</div></article>
<article class="card"> <div class="text">
2 ccccccccccccccccc
</div></article>
</main>
<a class="ytp-youtube-button ytp-button yt-uix-sessionlink" target="_blank" data-sessionlink="feature=player-button" data-visual-id="7" href="https://www.youtube.com/watch?v=X2gcLUZ7qnw" title="Смотреть это видео на youtube.com"><svg height="100%" version="1.1" viewBox="0 0 67 36" width="100%">................
function getData(pageId) {var myRequest = new Request(pageId + '.php', {method: 'POST',headers: { "Content-Type":"application/x-www-form-urlencoded" },
body: 'foo={"name":"'+event.target.id+'","time":"'+pageId+'","name2":"'+$sss+'"} '});
fetch(myRequest).then(function(response) { return response.text() })
.then(function(text) { myArticle.innerHTML = text;
<button type="button" onmouseover="loadDoc2(); this.style.display='none';return false">открыть список каналов</button>
<ul> </ul>
<script> function loadDoc2(){var myList = document.querySelector('ul');fetch('products.json').then(function(response) { return response.json(); })
.then(function(json) { for(var i = 0; i < json.products.length; i++){var listItem = document.createElement('li');
listItem.innerHTML = '<strong>' + json.products[i].Name + '</strong>';
listItem.innerHTML +=' can be found in ' + json.products[i].Location + '.';
listItem.innerHTML +=' Cost: <strong>?' + json.products[i].Price + '</strong>';
myList.appendChild(listItem);
} })};
</script>
button,[role="button"] {cursor: pointer;}
button[aria-pressed="true"],[role="button"][aria-pressed="true"] { background-color: #CAE8CA; transition-property: background-color;transition-duration: 0.4s;}
:active, :hover, :focus { outline: 0; outline-offset: 0;}
button[aria-pressed="true"],[role="button"][aria-pressed="true"]:focus { background-color: rgba(204,204,255, 0.9);}
[role="button"]:active { background-color: #bbb;}
echo '<a href="'.$id.'" ><span onclick="player.loadVideoById(\''.$id.'\',0);history.pushState(\''.$id.'\',null, \''.$id.'\');return false">.................
<span onclick="player.loadVideoById(\''.$videoId.'\', 0);history.pushState(\''.$videoId.'\', null, \''.$videoId.'\');document.title = \''.$title3.'\';return false">.......................
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^v/index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . v/index.php [L]
</IfModule>
var player; function onYouTubeIframeAPIReady()
{ player = new YT.Player('player',{ videoId:'<?php echo''.$fulluri2.'' ; ?>',
playerVars: { autoplay: 1, html5: 1, theme: "light", modesbranding: 0,
color: "white", iv_load_policy: 3, showinfo: 0, controls: 2, 'wmode':'opaque',<?php echo ''.$list.''; ?>}, }); }
var tag = document.createElement('script');tag.src = "https://www.youtube.com/player_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
var idVhod = document.getElementById('idVhod'); function onclickVhod() { idVhod.style.display = (idVhod.style.display == 'inline') ? '' : 'inline';
localStorage.setItem('hide', idVhod.style.display);}if(localStorage.getItem('hide') == 'inline') { document.getElementById('idVhod').style.display = 'inline'; setTimeout(onclickVhod, 5700)};
// window.localStorage.clear();
#idVhod {position: fixed; z-index: 100; top: 3em; left: 0.3em; display: none; background-color: rgba(255,255,255,.9); padding: 0 0.6em 0.6em 0.8em;margin: 0.1em; box-shadow: rgba(0, 0, 128, 0.2) 0.3em -0.3em 0.7em;border-radius: 0.2em; }
.Vhod {cursor: pointer; padding: 0 ; display: inline-block; border: 2px solid #efefef; border-radius: 20%;margin: 8px;background-color: rgba(255,255,255,.4);}
.Vhod:hover {opacity: 0.7;}
<span class="Vhod" onclick="onclickVhod()"><img src="24px.svg"> </span> <span id="idVhod"> ggggggggggggggg11111111<span class="Vhod" onclick="onclickVhod()"> x</span><br>
gggggggggggggggggggggg
</span>
<li tabindex="1"><a id="10000000000" data-page="page1"> 1 страница</a></li>
<li tabindex="1"><a id="1111111111111111" data-page="page1"> 1 1 страница</a></li>
<li tabindex="1"><a id="20000000000" data-page="page2"> 2 страница</a></li>