(
hndlr = function handler()
{
succfun = function succ() {
succ.flag = "всё хорошо";
return succ.flag
};
if(!flag)var flag="privet diatel";
$.ajax({
'url': "http://blablahost/blabla.blab",
'success':succfun(),
'type': "GET",
'dataType': "json",
'data': {congr:"Hi User!"}
})
console.log(succfun.flag)
},
setInterval(
hndlr,2000
)
)
<html>
<head>
<script>
function hcG(name)
{
if(hcG.cache!={})hcG.cache = {};
return hcG.cache[name]==undefined?hcG.cache[name]=document.getElementsByTagName(name):hcG.cache[name]=hcG.cache[name]
}
function iT()
{
for(var i=0;i<hcG.cache.h3.length;i++)
{hcG.cache.h3[i].innerText=hcG.cache.h3[i].id}
}
(
htmlc =hcG('h3'),
(htmlc),
this.onclick =function(){
iT();
}
)
</script>
</head>
<h3 id = "Hello World!">Tap</h3>
<h3 id = "Hi User!"></h3>
<h3 id = "Hello Woodpecker!"></h3>
</html>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 734.56 911">//параметры отображения на странице
<defs><style>.a{fill:broun;}.b{fill:#005aaa;}</style>
</defs><title>comp2</title>
<rect class="a" x="200" y="99" width="310" height="318"/>//параметры x,y - задают расположение отдельного элемента, width, height - высоту, ширину
<rect class="b" x="300" y="93" width="280" height="280"/>
</svg>