W momencie jak klikam szybka edycja na moim poście w którym jest html to w treści doklejany jest jakiś syf:
<html>
<head>
<script type="text/javascript">
//<![CDATA[
try{if (!window.CloudFlare) {var CloudFlare=[{verbose:0,p:0,byc:0,owlid:"cf",bag2:1,mirage2:0,oracle:0,paths:{cloudflare:"/cdn-cgi/nexp/dok8v=02fcfa4f56/"},atok:"011f2845e568e035ef2d4608f2d91313",petok:"6af7e9c717ade4cd6961d74af9aab4197be344df-1393073390-1800",zone:"4programmers.net",rocket:"a",apps:{}}];document.write('<script type="text/javascript" src="//ajax.cloudflare.com/cdn-cgi/nexp/dok8v=221574e73d/cloudflare.min.js"><'+'\/script>');}}catch(e){};
//]]>
</script>
<script type="text/rocketscript" >
function documentHeight()
{
var body = document.body;
var html = document.documentElement;
return Math.max(body.scrollHeight, body.offsetHeight,
html.clientHeight, html.scrollHeight, html.offsetHeight);
}
function getScrollTop()
{
if (typeof pageYOffset != 'undefined')
{
return pageYOffset;
}
else
{
var B = document.body;
var D = document.documentElement;
D = (D.clientHeight) ? D : B;
return D.scrollTop;
}
}
function pokazProcent()
{
var procentWysokosci = getScrollTop() / (documentHeight() - window.innerHeight);
var liczbaKlatek = 13;
var aktualnaKlatka = 1 + Math.round(procentWysokosci * (liczbaKlatek - 1));
var widok = document.getElementById("widok");
widok.innerHTML = Math.round(procentWysokosci * 100) + "%<br/>klatka " + aktualnaKlatka + " z " + liczbaKlatek;
}
window.addEventListener('scroll', pokazProcent, false);
window.addEventListener('load', pokazProcent, false);
</script>
</head>
<body>
<div id="dlugidiv" style="height: 5000px"></div>
<div id="widok" style="position: fixed; top: 50px; left: 50px;">Trwa ladowanie strony...</div>
</body>
</html>
oryginalny kod:
<html>
<head>
<script type="text/rocketscript" >
function documentHeight()
{
var body = document.body;
var html = document.documentElement;
return Math.max(body.scrollHeight, body.offsetHeight,
html.clientHeight, html.scrollHeight, html.offsetHeight);
}
function getScrollTop()
{
if (typeof pageYOffset != 'undefined')
{
return pageYOffset;
}
else
{
var B = document.body;
var D = document.documentElement;
D = (D.clientHeight) ? D : B;
return D.scrollTop;
}
}
function pokazProcent()
{
var procentWysokosci = getScrollTop() / (documentHeight() - window.innerHeight);
var liczbaKlatek = 13;
var aktualnaKlatka = 1 + Math.round(procentWysokosci * (liczbaKlatek - 1));
var widok = document.getElementById("widok");
widok.innerHTML = Math.round(procentWysokosci * 100) + "%<br/>klatka " + aktualnaKlatka + " z " + liczbaKlatek;
}
window.addEventListener('scroll', pokazProcent, false);
window.addEventListener('load', pokazProcent, false);
</script>
</head>
<body>
<div id="dlugidiv" style="height: 5000px"></div>
<div id="widok" style="position: fixed; top: 50px; left: 50px;">Trwa ladowanie strony...</div>
</body>
</html>